ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
Stalker Shoc crash-how do I view scripts and script numbers (no acdc.pl)

Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  09:02:24  24 May 2018
profilee-mailreply Message URLTo the Top
optical_illusion
Senior Resident
 

 
On forum: 02/09/2013
 

Message edited by:
optical_illusion
05/24/2018 13:22:13
Messages: 174
Stalker Shoc crash-how do I view scripts and script numbers (no acdc.pl)

Im using this program called Xr.spawner and it kind of lets me edit all.spawn but lately I ran into a problem

I get

cl setDestroy [303][10354]
cl setDestroy [302][10354]

FATAL ERROR

[error]Expression : fatal error
[error]Function : CScriptEngine::lua_error
[error]File : E:\stalker\sources\trunk\xr_3da\xrGame\script_engine.cpp
[error]Line : 73
[error]Description : <no expression>
[error]Arguments : LUA error: ...adow of chernobyl\gamedata\scripts\se_respawn.script:534: bad argument #1 to 'random' (number expected, got nil)

what is the script 534? Im currently trying to add some NPCs that dont belong(for example pseudogiants and snorks to cordon and garbage and mercs to dark valley) and add smart terrains and respawns for them but I cant figure out what is this "script 534"

I do have ZRP installed and latest patch and the stalker SHOC OWR mod+owr zrp fix
  14:04:30  24 May 2018
profilee-mailreply Message URLTo the Top
Stalkerstein
Senior Resident
 

 
On forum: 04/24/2010
 

Message edited by:
Stalkerstein
05/24/2018 14:06:11
Messages: 1990
534 is the line number in the script file that is either incorrect or points to another script file and possible function name.
  14:28:21  24 May 2018
profilee-mailreply Message URLTo the Top
optical_illusion
Senior Resident
 

 
On forum: 02/09/2013
 

Message edited by:
optical_illusion
05/24/2018 16:56:37
Messages: 174

---QUOTATION---
534 is the line number in the script file that is either incorrect or points to another script file and possible function name.[/quote]

well I even started a new game

reinstalled sHoc+ZRP+owr(and owr fix)

and I still get the script 534

this is what it says when I open it in Notepad++

error]Expression : fatal error
[error]Function : CScriptEngine::lua_error
[error]File : E:\stalker\sources\trunk\xr_3da\xrGame\script_engine.cpp
[error]Line : 73
[error]Description : <no expression>
[error]Arguments : LUA error: .


534
idle_time:setHMSms( 0, 0, math.random(self.idle_spawn_min, self.idle_spawn_max), 0)




what timers should go here? Googling it gets a bunch of different replies

I suspect it crashes because I also went into all.spawn and changed all stalker spawns to "seldom" instead of "often" and "medium" because I had a problem seeing new 5-10+ human NPCs of each kind respawn in 2 or so game hours (even in ZRP). No idea how to find line 73 either
  03:58:20  25 May 2018
profilee-mailreply Message URLTo the Top
NatVac
Senior Resident
 

 
On forum: 06/15/2007
Messages: 4261
Line 73 is for the devs. It tells them what line of engine code was executing when the exception (crash) happened. The important lines are the Expression and Description lines, and the Arguments line for script problems as Stalkerstein indicated. The Function line helps sometimes, and you can pretty much ignore the other two lines for Lua problems.

I would expect that one of your changes has caused a problem with the initialization of the spawn timing data for the respawner. The changes from "often" or "medium" to "seldom" should not have caused a problem, but the addition of new respawners can cause trouble if you don't have the entries properly spelled and assigned valid values. Only idle_spawn should have "seldom", "medium", or "often" values, although it can also have -1 as a valid value.

One thing you can do is change quit_on_abort = false in _g.script to quit_on_abort = true to see if it crashes earlier with a report of which respawner is broken. Before you do this, you might find something in your log file that starts with "RESPAWN:" that tells you where to look, somewhere above the crash info at the end of the file.

It concerns me that you are seeing high respawn rates and that you are using XrSpawner. You should be able to control respawn rates with the Modifier's RespawnerControl.cfg without changing the all.spawn file. And XrSpawner has been known to corrupt all.spawn files when entries are added (unless there has been an update to the program that I don't know about).
 
Each word should be at least 3 characters long.
Search:    
Search conditions:    - spaces as AND    - spaces as OR   
 
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
 

All short dates are in Month-Day-Year format.


 

Copyright © 1995-2019 GSC Game World. All rights reserved.
This site is best viewed in Internet Explorer 4.xx and up and Javascript enabled. Webmaster.
Opera Software products are not supported.
If any problem concerning the site functioning under Opera Software appears apply
to Opera Software technical support service.