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: 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: 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: 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