RCOM or 'Realistic' 'Combat' 'Overhaul' 'Mod' is a mod for S.T.A.L.K.E.R. - Call of Pripyat that aims to bring in a greater emphasis on realism. After years of no development, I have returned to release a new version of RCOM as an addom to "Call of Chernobyl"

Forum Thread
  Posts  
NPC AI Crash (Games : S.T.A.L.K.E.R.: Call of Pripyat : Mods : RCOM : Forum : delite : NPC AI Crash) Locked
Thread Options
Jul 23 2011 Anchor

I encountered a crash when a rather large group of NPCs (6-12) entered combat with a distant mutant. The crash report was as such:

FATAL ERROR

[error]Expression : !m_error_code
[error]Function : raii_guard::~raii_guard
[error]File : D:\prog_repository\sources\trunk\xrServerEntities\script_storage.cpp
[error]Line : 748
[error]Description : ...er call of pripyat\gamedata\scripts\state_mgr.script:259: C stack overflow

stack trace:

0023:69737365 gameux.dll

Since stack overflow is almost always the result of a function calling itself endlessly, I took a look at the script to see if there was an obvious fix. The associated line is:

function eva_state_mgr_end:evaluate()
if self.mgr == nil then

I looked over this function and determined that I am not familiar enough with the code to see where the recursion could be stemming from.

Jul 24 2011 Anchor

Thanks for the crash report. I've actually run into this crash report myself. I've gotten stack overflows pop up in several different lines of several different scripts, most of which are lines/scripts that I didn't influence.

I never got stack overflow crashes with RCOM until I started spawning many more NPC's than in the vanilla game, for Debugging A-Life. I'll take a look at the code from state_mgr. Unfortunately, I get the feeling that these stack overflows are an innate problem with the engine or GSC's scripting itself...

Reply to thread
click to sign in and post

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.