*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: MSI X570 Tomahawk
CPU: R7 3700X @ 4.4GHz 1.3v
RAM: 2x16GB Klevv BoltX 3600MHz 16-20-20-35
GPU: Powercolor 6800XT Red Devil
Sound: Asus Xonar DX 7.1 PCI-E, Realtek ALC1200
HDD: 250GB & 500GB nVME 3.0 M.2 drives, 2TB Seagate Barracuda, Sata3 64MB Cache, 250GB Hynix SL301
Opticals: DVD-RW, Blu-Ray
PSU: eVGA 1000w G2 Supernova
Case: NZXT Phantom 530

STALKER: Singularity (SIN) homepage
User avatar
ket
Senior Resident
 
Posts: 1262
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: MSI X570 Tomahawk
CPU: R7 3700X @ 4.4GHz 1.3v
RAM: 2x16GB Klevv BoltX 3600MHz 16-20-20-35
GPU: Powercolor 6800XT Red Devil
Sound: Asus Xonar DX 7.1 PCI-E, Realtek ALC1200
HDD: 250GB & 500GB nVME 3.0 M.2 drives, 2TB Seagate Barracuda, Sata3 64MB Cache, 250GB Hynix SL301
Opticals: DVD-RW, Blu-Ray
PSU: eVGA 1000w G2 Supernova
Case: NZXT Phantom 530

STALKER: Singularity (SIN) homepage
User avatar
ket
Senior Resident
 
Posts: 1262
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: 2676
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: MSI X570 Tomahawk
CPU: R7 3700X @ 4.4GHz 1.3v
RAM: 2x16GB Klevv BoltX 3600MHz 16-20-20-35
GPU: Powercolor 6800XT Red Devil
Sound: Asus Xonar DX 7.1 PCI-E, Realtek ALC1200
HDD: 250GB & 500GB nVME 3.0 M.2 drives, 2TB Seagate Barracuda, Sata3 64MB Cache, 250GB Hynix SL301
Opticals: DVD-RW, Blu-Ray
PSU: eVGA 1000w G2 Supernova
Case: NZXT Phantom 530

STALKER: Singularity (SIN) homepage
User avatar
ket
Senior Resident
 
Posts: 1262
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 25 guests

cron