*sigh* why does lua hate me?

Discussions on Modding of S.T.A.L.K.E.R. SoC & Clear Sky

*sigh* why does lua hate me?

Postby ket on 08 Mar 2013 19:22

Ho-hum...... quirky lua would seem to be giving me headaches again. I'm getting VERY close to being able to release a RC build (yes, RC not beta, dun-dun-dunnn!) but I have one obstacle being a huge pain in my backside. I'm heavily upgrading blowouts and almost everything is working great (I'm using a modified version of the merged dexx and dez0wave blowouts). Everything works apart from one aspect which as far as I can see shouldn't be causing a problem. What I've done is add the ability for human NPCs to also spawn during/after the blowout, exact process;

made a "npcs.ltx" file to be "read"
added self.npcs = parser.read_section([[blowout\npcs.ltx]], level.name(), "parse_npcs") to blowout.script
added spawn_npcs section to blowout.ltx
adjusted math.random and frequency of blowouts

Now, the blowout phase happens just fine, but shortly after the blowout SoC CTDs with loads of errors (see attachment) complaining about line 396 in state_mgr.script and line 13 of state_mgr_weapon.script. Couple examples;

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: ...f chernobyl\gamedata\scripts\state_mgr_weapon.script:13: attempt to index field '?' (a nil value)


stack trace:

Scheduler tried to update object esc_shustryi
! Unknown command: dbg:_ERROR:_ILLEGAL_SET_STATE_CALLED!!!_nil_fo_esc_novice_attacker2

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: ...hadow of chernobyl\gamedata\scripts\state_mgr.script:396: attempt to index field '?' (a nil value)


stack trace:

Scheduler tried to update object esc_blokpost_commander

Any ideas guys?
You do not have the required permissions to view the files attached to this post.
Mobo: Asrock Z77 Extreme6
CPU: Intel i5 3570k @ 4.5GHz 1.18v (actual)
RAM: 2x4GB G.Skill Ripjaws @ 2133MHz 10-11-10-25 1T
GPU: VTX3D HD7970 3GB @ 1125MHz / 6600MHz
Sound: Asus Xonar DX 7.1 PCI-E
HDD: 2TB Seagate Barracuda, Sata3 64MB Cache
Opticals: 2x Sony Optiarc DVD-RW
PSU: Corsair 850w HX
Case: Zalman Z11

TK - Singularity homepage
User avatar
ket
Senior Resident
 
Posts: 1259
Joined: 14 Sep 2008 11:57
Location: The solar system

Re: *sigh* why does lua hate me?

Postby ket on 12 Mar 2013 15:11

Nevermind error(s) fixed. Some dopey bastard (me) forgot to comment out a OL exclusive function in blowout_anim.script #-o 8-[
Mobo: Asrock Z77 Extreme6
CPU: Intel i5 3570k @ 4.5GHz 1.18v (actual)
RAM: 2x4GB G.Skill Ripjaws @ 2133MHz 10-11-10-25 1T
GPU: VTX3D HD7970 3GB @ 1125MHz / 6600MHz
Sound: Asus Xonar DX 7.1 PCI-E
HDD: 2TB Seagate Barracuda, Sata3 64MB Cache
Opticals: 2x Sony Optiarc DVD-RW
PSU: Corsair 850w HX
Case: Zalman Z11

TK - Singularity homepage
User avatar
ket
Senior Resident
 
Posts: 1259
Joined: 14 Sep 2008 11:57
Location: The solar system

Re: *sigh* why does lua hate me?

Postby Nightwatch on 13 Mar 2013 00:34

ket wrote:Nevermind error(s) fixed. Some dopey bastard (me) forgot to comment out a OL exclusive function in blowout_anim.script #-o 8-[

It's always the small things that get stuck between the cogs :mozilla_smile:
NEWSA.SIMBION_TWEAK 3.0
Mod Website= Features, Video, Tips & Download Link: NEWSA.SIMBION_Tweak

Watch the Trailer: http://www.youtube.com/watch?v=1Ajw_f8K ... re=channel
Please Do Not download and install any files from links other than those on the Mod's Website
User avatar
Nightwatch
Site Admin
 
Posts: 2613
Joined: 13 Apr 2007 05:42
Location: London, United Kingdom

Re: *sigh* why does lua hate me?

Postby ket on 13 Mar 2013 23:09

lol definitely! I think people will like the new blowout scheme I'm working on for the RC build of TK, I'm tweaking everything for as little on demand spawning lag as possible. Theres still a touch of it, but its all of about 1 second. Hopefully that lag won't increase with the extra scripting I still have to do for the human spawns. I'll have to upload some screenshots I haven't posted any here in ages.
Mobo: Asrock Z77 Extreme6
CPU: Intel i5 3570k @ 4.5GHz 1.18v (actual)
RAM: 2x4GB G.Skill Ripjaws @ 2133MHz 10-11-10-25 1T
GPU: VTX3D HD7970 3GB @ 1125MHz / 6600MHz
Sound: Asus Xonar DX 7.1 PCI-E
HDD: 2TB Seagate Barracuda, Sata3 64MB Cache
Opticals: 2x Sony Optiarc DVD-RW
PSU: Corsair 850w HX
Case: Zalman Z11

TK - Singularity homepage
User avatar
ket
Senior Resident
 
Posts: 1259
Joined: 14 Sep 2008 11:57
Location: The solar system


Return to Modding Techniques

Who is online

Users browsing this forum: No registered users and 1 guest

cron