Thread: Modding SW3?
View Single Post
  #252  
Old 06-10-2010, 07:12 AM
Trucidation
Guest
 
Posts: n/a
Default

Damn, adding sound effects to Rockets.xml is bugged. Notice how all entries have blank <work_sound> tags? (They are just declared as "<work_sound/>".)

If I attempt to add a sound, e.g. <work_sound>horn3_2.wav</work_sound>, the sound works (but it's repeated as long as the missile is flying, so it's kind of odd), but the game CTDs when the missile hits the target. Unfortunately LOGfile.txt does not say what caused it, it just complains about memory access violation. Damn.

Also, I cannot find where the missile firing sound is called. I know the file, it is "s_rocket_launch.wav", but I cannot find references to it. The game just plays it as if it were hardcoded

This is unfortunate because sounds are defined and used in Carcasses.xml and they seems fine there.

Edit:
Here's the error. I tested on the T3 Supernova Torpedo since I didn't mod that one previously. Without sound = ok. With sound = CTD upon explosion.
Quote:
Originally Posted by LOGfile.txt
(15:31:44) (INFO) LoadFromStream_GameInterface: result: Ok!
(15:31:44) (INFO) LoadFromStream_MusicPlayList: result: Ok!
(15:31:44) (INFO) LoadFromStream_LocationManager: result: Ok!
(15:31:44) (INFO) LoadFromStream_TradeSystem: result: Ok!
(15:31:45) (INFO) LoadFromStream_QuestManager2: result: Ok!
(15:31:45) (INFO) LoadFromStream_PortalManager: result: Ok!
(15:31:45) (INFO) LoadFromStream_RecruitManager: result: Ok!
(15:31:45) (INFO) ExecuteScriptFile - DATA\Scripts\Locations\elio\functions.script
(15:31:45) (INFO) ExecuteScriptFile - DATA\Scripts\Quests\MISSION_4_5\AEROGRAPHY_ELIO.sc ript

[EXCEPTION] 0x0060df71 EXCEPTION_ACCESS_VIOLATION (The thread attempted to read from or write to a virtual address for which it does not have the appropriate access.)
[EXCEPTION] [INFO] Memory Usage = 230.816406 Mb
[EXCEPTION] [INFO] heapchk return = -2 HEAP Ok
As you can see, nothing is wrong prior to that. I fire the torpedo and watch as it flies to the target (and the sound file plays while it flies). As soon as the missile hits target and explodes... CTD.

Last edited by Trucidation; 06-10-2010 at 07:24 AM.
Reply With Quote