--
[ Picked text/plain from multipart/alternative ]
I was developing some NPCs for use in multiplayer environment that make use
of Player Companion, etc classes as base classes. The problem is that in
release mode NPCs who use flex animation crash on load.

I could not believe anything in my code was the cause after extensive
analysis, and so I created a Vanilla HL2MP sdk and tried spawning different
NPCs. When I spawn Alyx in release build she crashes the game just like my
npcs. Unfortunately according to the call stack etc. What happens is that
memory seems to have been overwritten in the Scene Load function for the
string it uses for filename. It is filled with partial bogus information.

I did note one possible Valve code issue which is that calls to HL2Gamerules
are not null checked or anything so I took all the npc functions used in
there and defined them in my gamerules and replaced all those calls. That
fixes a Debug Build issue I had where it would try to call a function in
HL2Gamerules but instead called a different function GetNextLevelName for
all the different NPC functions. This function was called with random junk
and so in the engine it would spam a IsMapValid: r3839fs in the console over
and over only if the follow behavior was in use. (So all that is solved).

I hope someone has encountered these issues, esp. someone who is developing
for COOP mods because using Alyx in HL2MP in vanilla was crashing the game.

Chris
--

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to