nltp-ashes / Western-Goods

Western Goods is an addon for the game S.T.A.L.K.E.R. Anomaly.
https://discord.gg/7Z8S2qg
Other
8 stars 3 forks source link

[BUG]: western_goods_tasks_act_3.script:450: attempt to index local 'sender_2' (a nil value) #62

Closed Annoneq closed 3 days ago

Annoneq commented 4 months ago

Description

when picking up documents from dead SSU squad game get crash

Addon version

v2.5.0

Game version

1.5.2

Log output

Expression : Function : CScriptEngine::lua_pcall_failed File : D:\a\xray-monolith\xray-monolith\src\xrServerEntities\script_engine.cpp Line : 262 Description : fatal error Arguments : 1 : [Lua] ....5.1.2\gamedata\scripts\western_goods_tasks_act_3.script(450) :

LUA error: ....5.1.2\gamedata\scripts\western_goods_tasks_act_3.script:450: attempt to index local 'sender_2' (a nil value)

Check log for details

stack trace:

Illustrations

No response

Contact

Annoneq

Confirmation

Annoneq commented 4 months ago

xray_annoneq.log

nltp-ashes commented 3 months ago

Hello @Annoneq,

Sorry for taking a while to answer you.

Reading your log, it seems the task NPC has somehow disappeared (or was killed, but this is technically not possible).

I cannot explain what happened. I was suspecting grok_dynamic_despawner.script to be the cause of this problem, but you do not seem to be using it. If you have used it in the past, it could still be the problem.

You can try spawning the NPC again with the debug menu's Object Spawner :

image

After this, you should be able to proceed with the task normally.

nltp-ashes commented 3 days ago

Hello @Annoneq,

Given you are not answering, and someone has found that this solution does indeed fix the problem, I am closing this issue.