Soupy Delicious

Warlord
Joined
Jul 31, 2017
Messages
106
Hey Guys,

If someone could quickly help me out here, Ive just been trying to put in some music to my game of Civ 4 for the past 6 hours. I'm stuck and confused.

I've edited the Audio2DScripts.xml, the AudioDefines.xml, the GameInfoEras.xml to suit me. No typoes, nuffin.

I've put in my music, referenced it properly, and when I go to launch it simply crashes when it reaches 'Init Audio'. In the log it says the following:
[25738.838] Audio Manager: Loading Audio Defines file XML\Audio\AudioDefines.xml...
[25738.854] ERR: Audio Manager: Could not load XML file XML\Audio\AudioDefines.xml.
[25738.854] Audio Manager: Loading 2D Scripts file XML\Audio\Audio2DScripts.xml...
[25738.870] ERR: Audio Manager: Could not load XML file XML\Audio\Audio2DScripts.xml.
[25738.870] Audio Manager: Loading 3D Scripts file XML\Audio\Audio3DScripts.xml...


followed by a lot of:
[25738.932] ERR: FAudioManager::GetAudioTagIndex(): Could not find string SND_ERROR of TagId 0
[25738.932] ERR: FAudioManager::GetAudioTagIndex(): Could not find string GAME_SFX of TagId 2
[25738.932] ERR: FAudioManager::GetAudioTagIndex(): Could not find string FRONT of TagId 6


and the like.

What my simple brain gets from this is that perhaps everything in the Audio2Dscripts file has to be ordered just so, and I've just plopped everything in wherever I can? Is that my error? Or is there perhaps a typo hidden somewhere? I don't think that's it, only because of the endless lines of that 'Could not find string...' text.

Could someone please help me out here. And not by telling me I've posted in the wrong forum!

Thanks in advance to any and all

EDIT: I just did a little test which sorta told me it is a referencing problem. Maybe a typo after all. What I'm having trouble with is working out which assets folder the game uses when I launch it up. And say, if I wanted to use Kmod at the same time as my own music, I would have to replace Kmod's XML/ Audio2DScripts.xml, right?
 

Attachments

  • XML.7z
    31.5 KB · Views: 97
Last edited:

Lemon Merchant

Not Quite Sonic
Retired Moderator
Joined
Jun 27, 2008
Messages
8,773
Location
Red Sector A
What my simple brain gets from this is that perhaps everything in the Audio2Dscripts file has to be ordered just so, and I've just plopped everything in wherever I can? Is that my error? Or is there perhaps a typo hidden somewhere? I don't think that's it, only because of the endless lines of that 'Could not find string...' text.

The Audio XML files are notoriously picky about things, even so much as whitespace in the files. You really have to be careful with them. It looks like from your error snippets that either the game can't find the proper audio files to load, or that they are corrupted. I suspect corruption if you just put everything in willy nilly. When I put music into the BAT Mod for the National wonder movies it was a daunting process.

EDIT: I just did a little test which sorta told me it is a referencing problem. Maybe a typo after all. What I'm having trouble with is working out which assets folder the game uses when I launch it up. And say, if I wanted to use Kmod at the same time as my own music, I would have to replace Kmod's XML/ Audio2DScripts.xml, right?
You would have to replace the files in KMod's XML/ Audio2DScripts.xml, yes.
 

Soupy Delicious

Warlord
Joined
Jul 31, 2017
Messages
106
I did so much typing last night my keyboard's stopped working. I didn't smash my keyboard, honest.
Thanks for the confirmation Lemon. ;P

Edit: Well, went through the A2DS.xml again and found one tiny little missing line of text. Being awake helped.

Just to update the problem, now when I launch BTS it crashes half a second into the Firaxis intro-movie. Not sure if its related to the actual movie and its sounds.

[5003.373] ERR: FAudioManager::GetAudioTagIndex(): Could not find string AS2D_Modern_Soundtrack_6 of TagId 3
[5010.720] ERR: FAudioManager::GetAudioTagIndex(): Could not find string AS2D_IF_SELECT of TagId 3
[5010.720] ERR: FAudioManager::DoSound(): Illegal scriptId -1 attempted./n
[5011.220] ERR: FAudioManager::GetAudioTagIndex(): Could not find string AS2D_OPENING_MENU of TagId 3

Goes on like this for a while. What's this illegal scriptId mean? Have I typed something wrong somewhere?
 
Last edited:

Soupy Delicious

Warlord
Joined
Jul 31, 2017
Messages
106
I did so much typing last night my keyboard's stopped working. I didn't smash my keyboard, honest.
Thanks for the confirmation Lemon. ;P

Edit: Well, went through the A2DS.xml again and found one tiny little missing line of text. Being awake helped.

Just to update the problem, now when I launch BTS it crashes half a second into the Firaxis intro-movie. Not sure if its related to the actual movie and its sounds.

[5003.373] ERR: FAudioManager::GetAudioTagIndex(): Could not find string AS2D_Modern_Soundtrack_6 of TagId 3
[5010.720] ERR: FAudioManager::GetAudioTagIndex(): Could not find string AS2D_IF_SELECT of TagId 3
[5010.720] ERR: FAudioManager::DoSound(): Illegal scriptId -1 attempted./n
[5011.220] ERR: FAudioManager::GetAudioTagIndex(): Could not find string AS2D_OPENING_MENU of TagId 3

Goes on like this for a while. What's this illegal scriptId mean? Have I typed something wrong somewhere?

EDIT 2: I remade it all perfectly, and now I've made it into the game with music, but in the log it still shows errors of the 'could not find string' type. Is there a maximum amount of music one is allowed to put into the music files? Are there any ceilings I should be aware of?
 

Soupy Delicious

Warlord
Joined
Jul 31, 2017
Messages
106
Nevermind, problem solved. There was no problem, I'm just stupid. Remade the whole thing, and it works, so obviously I DID lay something out badly.

Thanks
 
Top Bottom