Stalker crashing with new music >_<

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

Stalker crashing with new music >_<

Postby ket on 11 Oct 2011 18:21

I don't get this at all.. heres what I've done;

Added some new music files to be played over the radio
Converted the files to mono, ogg format
Told the game to use these new files by adding them to sound_theme.script


I fire up stalker, load a savegame, and the game crashes with this CTD;

FATAL ERROR

[error]Expression : fatal error
[error]Function : CScriptEngine::lua_error
[error]File : E:\stalker\patch_1_0004\xr_3da\xrGame\script_engine.cpp
[error]Line : 73
[error]Description : <no expression>
[error]Arguments : LUA error: ...shadow of chernobyl\gamedata\scripts\xr_sound.script:268: attempt to index global 'sound_theme' (a nil value)


stack trace:


So, I open xr_sound.script, go to line 268 and it looks like this;

function load_sound(npc)
sound_theme.load_sound(npc)
end


I see absolutely no problem here. ](*,) Anybody have a idea? Interestingly, If I add just 1 (any one) of the 6 new sounds to sound_theme, the game loads fine.
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: Stalker crashing with new music >_<

Postby ket on 12 Oct 2011 01:08

I fixed most the problems but in doing so I got another, CTD something along the lines of "invalid bitrate". Even after reencoding same problem. I'll probably just remove that file as the other 5 work fine, quick fix maybe, but diversity for radio music isn't really effected.
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 30 guests