Description

Reposted from the one I posted for DA since the file in question is probably identical.

Preview
Fix for crash of xr_reach_task.script *Reupload 09/09/21*
Comments
L4U6H1N6-LUN4T1C
L4U6H1N6-LUN4T1C

you are a godsend! I suddely kept having this error, but only at night (or shortly before night). very strange. What exactly did you do to fix it?

Reply Good karma Bad karma+3 votes
FishWings Author
FishWings

The function << formations >> is called in line 57, and sometimes returns a non-indexable value. Trying to index it causes insta-CTD. So this file just has an alternate case for when << formations >> is empty or nil, and assigns the 'default' values of vertexid and directions for that NPC. Let me know if the crash happens again though.

Reply Good karma+2 votes
Guest
Guest

There is an entry in the script called "alan_utils" which is no longer valid in Anomaly. It has been renamed "utils_obj". In Anomaly 1.5.1 there are some scripts that have been renamed but do the same thing. Just for info.

Reply Good karma Bad karma+6 votes
FishWings Author
FishWings

Thanks for the information +1

Reply Good karma+2 votes
FishWings Author
FishWings

It has been resolved accordingly

Reply Good karma+1 vote
GamersGen
GamersGen

What is this error exactly? it happens on different games with different modpacks, too many npc at work?

Reply Good karma Bad karma+3 votes
wanderer3421
wanderer3421

either you edited the squad_descr_default_stalkers.ltx our some mods that edits stalker pop.

Reply Good karma Bad karma+1 vote
bhelen
bhelen

Hey do you have a response to my problem below?

Reply Good karma Bad karma+1 vote
bhelen
bhelen

Any ideas on this? I'm playing the 1.5.0 version. Your file just gave me another random error about this on line 108. But the error below is from the original xr_reach_task from 1.5.0. I constantly get this error in rostok playing as a merc in warfare. Always am_i_reached

! [SCRIPT ERROR]: ...iles (x86)/anomaly\gamedata\scripts\xr_reach_task.script:96: attempt to call method 'am_i_reached' (a nil value)

FATAL ERROR

[error]Expression : <no expression>
[error]Function : CScriptEngine::lua_error
[error]File : ..\xrServerEntities\script_engine.cpp
[error]Line : 191
[error]Description : fatal error
[error]Arguments : LUA error: ...iles (x86)/anomaly\gamedata\scripts\xr_reach_task.script:96: attempt to call method 'am_i_reached' (a nil value)

stack trace:

Anyone have an idea on how to fix this?

Reply Good karma Bad karma+1 vote
FishWings Author
FishWings

Hello, sorry for such a late response. I was busy recently with my studies so I did not notice this message, until now. Anyway, I have modified the file to address this issue, with the same method. I am still going to be busy, so test it out and let me know if it works. Thanks.

Reply Good karma+1 vote
FishWings Author
FishWings

Oh and by the way, apparently some changes in 1.5.1 involved the renaming of some functions/classes/etc., as another poster mentioned above. If you are playing 1.5.0, those things are probably named differently (such as utils_obj being named alun_utils) and they will 100% result in issues. As such, I have created a test version of the file with the according name changes. See if that works out better for you. Thanks.

Reply Good karma+1 vote
RPLPhil
RPLPhil

I always get the crash but for xr_reach_task.script: 59. This mod seems to fix it though. So thank you! Hope you can make fixes for other crashes as well.

Reply Good karma Bad karma+2 votes
FishWings Author
FishWings

The file for Anomaly 1.5.1 is slightly different than the same file for the Dead Air mod, which is what I originally made this for. But the issue seems to be the same in this case. Glad to know it works out for you!

Reply Good karma+1 vote
Post a comment
Sign in or join with:

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.

Tags