Modding sounds

Game crashes when tries to get sounds

Hello everyone! After multiple hours I've decided to change all the game's sounds to my favourites. I've started with frigates and capital ships voice sounds. I've changed the original ones and added some more sounds to them. For those entities I've changed NumSounds to the needed values and added the strings of those sounds. All the changes have been made in Mods folder. I have there only two folders: GameInfo and Sounds with edited files. After I try to enable the mod via dev executable, it says that it can't find those sounds despite the fact they exist. It can't just find them. All the sound files have correct names and .ogg format. I don't really get what the problem is.

Details:

Log file:

SoundData does not exists for: CAPITALSHIP_TECHBATTLESHIP_ONGENERALORDERISSUED_3

SoundData does not exists for: CAPITALSHIP_TECHBATTLESHIP_ONGENERALORDERISSUED_4

SoundData does not exists for: CAPITALSHIP_TECHBATTLESHIP_ONGENERALORDERISSUED_5

SoundData does not exists for: CAPITALSHIP_TECHBATTLESHIP_ONSELECTED_3

SoundData does not exists for: CAPITALSHIP_TECHBATTLESHIP_ONSELECTED_4

SoundData does not exists for: CAPITALSHIP_TECHCOLONY_ONATTACKORDERISSUED_3

SoundData does not exists for: CAPITALSHIP_TECHCOLONY_ONATTACKORDERISSUED_4

SoundData does not exists for: CAPITALSHIP_TECHCOLONY_ONGENERALORDERISSUED_3

SoundData does not exists for: CAPITALSHIP_TECHCOLONY_ONGENERALORDERISSUED_4

SoundData does not exists for: CAPITALSHIP_TECHCOLONY_ONSELECTED_3

SoundData does not exists for: CAPITALSHIP_TECHSIEGE_ONATTACKORDERISSUED_4

SoundData does not exists for: CAPITALSHIP_TECHSIEGE_ONATTACKORDERISSUED_5

 

CAPITALSHIP_TECHBATTLESHIP.entity

NumSoundsFor:ONATTACKORDERISSUED 4

SoundID "CAPITALSHIP_TECHBATTLESHIP_ONATTACKORDERISSUED_0"

SoundID "CAPITALSHIP_TECHBATTLESHIP_ONATTACKORDERISSUED_1"

SoundID "CAPITALSHIP_TECHBATTLESHIP_ONATTACKORDERISSUED_2"

SoundID "CAPITALSHIP_TECHBATTLESHIP_ONATTACKORDERISSUED_3"

NumSoundsFor:ONCREATION 1

SoundID "CAPITALSHIP_TECHBATTLESHIP_ONCREATION"

NumSoundsFor:ONGENERALORDERISSUED 6

SoundID "CAPITALSHIP_TECHBATTLESHIP_ONGENERALORDERISSUED_0"

SoundID "CAPITALSHIP_TECHBATTLESHIP_ONGENERALORDERISSUED_1"

SoundID "CAPITALSHIP_TECHBATTLESHIP_ONGENERALORDERISSUED_2"

SoundID "CAPITALSHIP_TECHBATTLESHIP_ONGENERALORDERISSUED_3"

SoundID "CAPITALSHIP_TECHBATTLESHIP_ONGENERALORDERISSUED_4"

SoundID "CAPITALSHIP_TECHBATTLESHIP_ONGENERALORDERISSUED_5"

NumSoundsFor:ONSELECTED 5

SoundID "CAPITALSHIP_TECHBATTLESHIP_ONSELECTED_0"

SoundID "CAPITALSHIP_TECHBATTLESHIP_ONSELECTED_1"

SoundID "CAPITALSHIP_TECHBATTLESHIP_ONSELECTED_2"

SoundID "CAPITALSHIP_TECHBATTLESHIP_ONSELECTED_3"

SoundID "CAPITALSHIP_TECHBATTLESHIP_ONSELECTED_4"

NumSoundsFor:ONSTARTPHASEJUMP 1

SoundID "CAPITALSHIP_TECHBATTLESHIP_ONSTARTPHASEJUMP_0"

10,211 views 4 replies
Reply #1 Top

UPDATE

Found out that I didn't edit SoundDialogue.sounddata file to add extra sounds. After I edited it I got the new error:

Assert @ d:\perforce_sinsrebellion\sinsrebellion\minorfactions\codesource\engine\datastructures\fixedvector.h(149)

 

m_CurrentSize < MAX_SIZE

 

I've changed numEffects in that file to actual number but still got this error. Maybe I'm doing something wrong or forget to change something else. I don't get it.

Reply #2 Top

It's possible you added too many sounds for a particular action. 

NumSoundsFor:ONGENERALORDERISSUED 6

Off the top of my head I don't know if I've used more than 5 lines for any particular dialogue action. I'd try setting this lower and see if that fixes it.

Reply #3 Top

Thank you for the answer. I have also found more info about this on the forum which says that I can't have more numEffects than standart. For example, it's 1114 effects and the value can't be higher. I don't if it's the thruth but I'll follow your advice and see if it works. I'll answer later, thanks.

Reply #4 Top

Unbelievable, it worked! So, finally, THE SOLUTION!

I've tried to decrease number of sounds for each dialogue to 5 as GoaFan77 adviced and everything has started working properly. Thank so much, I thought I'd never make it work.