[BtS] Hungary mod for Varietas Delectat

Lengyel, Magyar – két jó barát, együtt harcol, s issza borát. With both Hungarian and Polish civs I can finally make my favourite alliance in the game ;) Thanks!
 
Lengyel, Magyar – két jó barát, együtt harcol, s issza borát. With both Hungarian and Polish civs I can finally make my favourite alliance in the game ;) Thanks!

:goodjob:
 
Okay, this is an old thread, and I don't know if anyone will answer, but I have a problem. The LH's don't have diplo music, and if I play as those leaders, there is no music from the cities.....
Am I the only one with this problem?
 
Music can't be made modular, so I think avains mod refers to the new music, which the game fails to load and therefor no music is played at all. Search the xml file for the leaders and edit the sound definitions there.
 
As I said...
Search the xml file for the leaders and edit the sound definitions there.
 
I'm a noob at this, sorry, but what do I change specifically? In fact if you can upload screenshots of what I'm supposed to do, that would be extremely helpful.
 
I will return to this matter tomorrow, no time yet. Sorry.
 
Okay, I'll give you more detailed instructions on how to fix the sound.

First of all, you'll need to locate the files that you have to edit. Locate the directory where you have installed civ4. I can't give you much help with that as civ4s install directory depends on what you have set it to be when you installed civ4. You should be able to find the directory by right-click on the shortcut (icon) of civ4 (either in the start menu or on the desktop), then choose properties from the context menu. Have a close look at the window showing up, the directory should be given somewhere there (it's the directory where civ4s exe is placed). Once you found the directory, browse it in your explorer. There should be a Beyond The Sword subdirectory, change to that. You are now in BtS install directory which contains a Mods subdirectory. Open the Mods directory. There should be another subdirectory called Varietas Delectat - this is Varietas Delectats install directory. VDs install directory should contain a directory called Assets, which contains Modules, finally Hungary. The entire path should look like this:
Civ4s install directory\Beyond the Sword\Mods\Varietas Delectat\Assets\Modules\Hungary
In that directory, you'll find a subdirectory for each hungarian leader:
- Kossuth - Lajos Kossuth
- Matthias - Matthias Corvinus
- Szechenyi - István Széchenyi
- SzentIstvan - Saint Stephen I
Each directory contains a file called XYZ_CIV4LeaderHeadInfos.xml, which are the files you need to edit. Open one of them to get an idea what's done there. Windows editor should be fine to open the xml.

Now that you found the files to be edited, let's look at the files you need to find valid definitions for sounds. Remember Beyond The Swords install directory? It's:
Civ4s install directory\Beyond the Sword
Besides of the Mods subdirectory and many more, the is a directory called Assets. Browse that, then change to XML, finally to Civilizations. You should be here now:
Civ4s install directory\Beyond the Sword\Assets\XML\Civilizations
There is a similar file like the ones I showed you in VDs Hungary module: CIV4LeaderHeadInfos.xml. It's different in that ways, that it contains definitions for more than only one leader - all the leaders coming with civ4 and its expansions attributes are given here. All the definitions given here are valid, so you can reuse them for a user-made leader. But never alter this file as that might break your game!

Now, you should decide for a leader thats music you'd like to hear for Hungary. Search that leader in the file. For each leader, there is a line saying <DiplomacyIntroMusicPeace> - it's there for the large file from BtS and in any leaders file provided with VDs Hungary module I pointed you to before. The lines following <DiplomacyIntroMusicPeace> control the sounds. Look at Matthias' file, you'll find lines with words written in capital letters containing the phrase MAGYAR. Any of these lines is broken as the game won't find the music the lines refer to. Find these lines' counterparts in BtS' file (the large one) for the leader you have decided for. Copy those lines from the large file into Matthias' file overwriting the lines containing MAGYAR (actually, it should be fine to overwrite the entire section including and following the line <DiplomacyIntroMusicPeace>). If you feel uncomfortable about this, feel free to make a copy of Matthias file renaming it (make sure it's not called *.xml, but *.txt so the game won't try to load it), so you can always restore the definitions. If you've done that, save Matthias' file, start VD and play as Matthias. Found a city, you should hear sound now. Repeat the procedure for any leader.

If you have problems with my instructions, feel free to ask here. If you've done a mistake when copying and pasting the sound definitions, civ4 might refuse to start VD. It should throw an error giving information about where the error can be found. If you are unable to correct the error by yourself, feel free to post the error message and the files content here.
 
Many thanks, mate. I got it working, but now I have two questions:

1. This works for all the LH's that don't have music?

2. How can I change the language of the units, because the Hungarians are speaking English.....
 
Many thanks, mate. I got it working, ...
No prob :goodjob:

1. This works for all the LH's that don't have music?
Sure. You'll just need to locate the right CIV4LeaderHeadInfos.xml for the leader.

2. How can I change the language of the units, because the Hungarians are speaking English.....
The problem is similar to that of the leaders. Sound per se can't be made modular, this conflicts with the idea of VD of giving a base package, then extend it with additional modules. This is why avain used the english texts. Check this thread for basic information about unit sounds: http://forums.civfanatics.com/showthread.php?t=168876 (see post 2). You won't need to follow that tutorial, just have an overview.

First of all, you should create a directory for the sound files. Create a folder called Audio in
Civ4s install directory\Beyond the Sword\Mods\Varietas Delectat\Assets\Modules\Hungary
Now, you'll need the mp3s. You can take them from my mod: http://forums.civfanatics.com/showthread.php?t=143879 (do a search for mp3 files through the explorer, take the MagyarOrder and MagyarSelect files). Place the mp3s in the folder previously created, do not rename the mp3s.

EDIT: When downloading my mod, read caefully what is written in the filedbs thread (the files description) to make sure you get the latest version (download the [stable] beta).

Now, locate the files you need to alter. Two of them are here:
Civ4s install directory\Beyond the Sword\Mods\Varietas Delectat\Assets\XML\Audio
In that directory, you'll find Audio3DScripts.xml and AudioDefines.xml. Open Audio3DScripts.xml and add the following two defines to the end of the file (if you don't add it to the end, the sounds may refuse to work, don't know why):
<Script3DSound>
<ScriptID>AS3D_MAGYAR_SELECT</ScriptID>
<SoundID>SND_MAGYAR_SELECT</SoundID>
<SoundType>GAME_SPEECH</SoundType>
<iMinVolume>100</iMinVolume>
<iMaxVolume>100</iMaxVolume>
<iPitchChangeDown>0</iPitchChangeDown>
<iPitchChangeUp>0</iPitchChangeUp>
<bLooping>0</bLooping>
<iMinTimeDelay>0</iMinTimeDelay>
<iMaxTimeDelay>0</iMaxTimeDelay>
<StartPosition>NONE</StartPosition>
<EndPosition>NONE</EndPosition>
<iMinVelocity>0</iMinVelocity>
<iMaxVelocity>0</iMaxVelocity>
<iMinDistanceFromListener>0</iMinDistanceFromListener>
<iMaxDistanceFromListener>0</iMaxDistanceFromListener>
<iMinDistanceForMaxVolume>500</iMinDistanceForMaxVolume>
<iMaxDistanceForMaxVolume>1000</iMaxDistanceForMaxVolume>
<iMinCutoffDistance>7000</iMinCutoffDistance>
<iMaxCutoffDistance>7000</iMaxCutoffDistance>
<bTaperForSoundtracks>0</bTaperForSoundtracks>
<iLengthOfSound>0</iLengthOfSound>
<fMinDryLevel>1.0</fMinDryLevel>
<fMaxDryLevel>1.0</fMaxDryLevel>
<fMinWetLevel>0.5</fMinWetLevel>
<fMaxWetLevel>0.5</fMaxWetLevel>
<iNotPlayPercent>0</iNotPlayPercent>
</Script3DSound>
<Script3DSound>
<ScriptID>AS3D_MAGYAR_ORDER</ScriptID>
<SoundID>SND_MAGYAR_ORDER</SoundID>
<SoundType>GAME_SPEECH</SoundType>
<iMinVolume>100</iMinVolume>
<iMaxVolume>100</iMaxVolume>
<iPitchChangeDown>0</iPitchChangeDown>
<iPitchChangeUp>0</iPitchChangeUp>
<bLooping>0</bLooping>
<iMinTimeDelay>0</iMinTimeDelay>
<iMaxTimeDelay>0</iMaxTimeDelay>
<StartPosition>NONE</StartPosition>
<EndPosition>NONE</EndPosition>
<iMinVelocity>0</iMinVelocity>
<iMaxVelocity>0</iMaxVelocity>
<iMinDistanceFromListener>0</iMinDistanceFromListener>
<iMaxDistanceFromListener>0</iMaxDistanceFromListener>
<iMinDistanceForMaxVolume>500</iMinDistanceForMaxVolume>
<iMaxDistanceForMaxVolume>1000</iMaxDistanceForMaxVolume>
<iMinCutoffDistance>7000</iMinCutoffDistance>
<iMaxCutoffDistance>7000</iMaxCutoffDistance>
<bTaperForSoundtracks>0</bTaperForSoundtracks>
<iLengthOfSound>0</iLengthOfSound>
<fMinDryLevel>1.0</fMinDryLevel>
<fMaxDryLevel>1.0</fMaxDryLevel>
<fMinWetLevel>0.5</fMinWetLevel>
<fMaxWetLevel>0.5</fMaxWetLevel>
<iNotPlayPercent>0</iNotPlayPercent>
</Script3DSound>
(You better restore the indents.)

Note the bold lines, we'll need them later. Save the file and open AudioDefines.xml. Search the section with the <SoundData> defines, add the following to the end of that section:
<SoundData>
<SoundID>SND_MAGYAR_SELECT</SoundID>
<Filename>Modules/Hungary/Audio/MagyarSelect</Filename>
<LoadType>DYNAMIC_RES</LoadType>
<bIsCompressed>1</bIsCompressed>
<bInGeneric>1</bInGeneric>
</SoundData>
<SoundData>
<SoundID>SND_MAGYAR_ORDER</SoundID>
<Filename>Modules/Hungary/Audio/MagyarOrder</Filename>
<LoadType>DYNAMIC_RES</LoadType>
<bIsCompressed>1</bIsCompressed>
<bInGeneric>1</bInGeneric>
</SoundData>
Save the file and close it.

Lastly, in
Civ4s install directory\Beyond the Sword\Mods\Varietas Delectat\Assets\Modules\Hungary\XML
search the file called Hungary_CIV4CivilizationInfos.xml. Search for the following two lines:
<CivilizationSelectionSound>AS3D_ENGLAND_SELECT</CivilizationSelectionSound>
<CivilizationActionSound>AS3D_ENGLAND_ORDER</CivilizationActionSound>
This is the place where we need the lines I made bold when giving you the definitions for Audio3DScripts.xml. So change the two lines to:
<CivilizationSelectionSound>AS3D_MAGYAR_SELECT</CivilizationSelectionSound>
<CivilizationActionSound>AS3D_MAGYAR_ORDER</CivilizationActionSound>
Save it and start VD with Hungary.

BTW, there is more music for Hungary in my mod, you are free to use them. Browse my xmls to find out the correct definitions and how to refer to them.
 
I'm having trouble with this, so I sent you my problem in an e-mail. It's my files and such, but it wouldn't fit in the forum replies. Be warned it is a ton of stuff, but I wanted to know exactly what was wrong with what I did. It should be from meac637[at]yahoo[dot]com Reply in the forum, if you can, please! Thanks in advance!
 
Please, if you like to share your files - which is totally fine - please don't put them in an email. It's pretty hard to read it as the idents disappeared and as the text is pretty long. Instead, put them in a zip and attach the zip to your post. Alternatively, rename the *.xmls to *.txt, that should do it, too.

Although it's hard to judge, I think I found your mistake. Your Audio3DScripts.xml's end looks like this:
...
<Script3DSound>
<ScriptID>AS3D_UN_FT17_FIRE</ScriptID>
<SoundID>SND_FT17_FIRE</SoundID>
<SoundType>GAME_SFX</SoundType>
<iMinVolume>90</iMinVolume>
<iMaxVolume>100</iMaxVolume>
<iPitchChangeDown>-7000</iPitchChangeDown>
<iPitchChangeUp>7000</iPitchChangeUp>
<bLooping>0</bLooping>
<iMinTimeDelay>0</iMinTimeDelay>
<iMaxTimeDelay>0</iMaxTimeDelay>
<StartPosition>NONE</StartPosition>
<EndPosition>NONE</EndPosition>
<iMinVelocity>0</iMinVelocity>
<iMaxVelocity>0</iMaxVelocity>
<iMinDistanceFromListener>0</iMinDistanceFromListener>
<iMaxDistanceFromListener>0</iMaxDistanceFromListener>
<iMinDistanceForMaxVolume>500</iMinDistanceForMaxVolume>
<iMaxDistanceForMaxVolume>1000</iMaxDistanceForMaxVolume>
<iMinCutoffDistance>7000</iMinCutoffDistance>
<iMaxCutoffDistance>7000</iMaxCutoffDistance>
<bTaperForSoundtracks>0</bTaperForSoundtracks>
<iLengthOfSound>0</iLengthOfSound>
<fMinDryLevel>1.0</fMinDryLevel>
<fMaxDryLevel>1.0</fMaxDryLevel>
<fMinWetLevel>0.5</fMinWetLevel>
<fMaxWetLevel>0.5</fMaxWetLevel>
<iNotPlayPercent>0</iNotPlayPercent>
</Script3DSound>

</Script3DSounds>
<Script3DSound>
<ScriptID>AS3D_MAGYAR_SELECT</ScriptID>
<SoundID>SND_MAGYAR_SELECT</SoundID>
<SoundType>GAME_SPEECH</SoundType>
<iMinVolume>100</iMinVolume>
<iMaxVolume>100</iMaxVolume>
<iPitchChangeDown>0</iPitchChangeDown>
<iPitchChangeUp>0</iPitchChangeUp>
<bLooping>0</bLooping>
<iMinTimeDelay>0</iMinTimeDelay>
<iMaxTimeDelay>0</iMaxTimeDelay>
<StartPosition>NONE</StartPosition>
<EndPosition>NONE</EndPosition>
<iMinVelocity>0</iMinVelocity>
<iMaxVelocity>0</iMaxVelocity>
<iMinDistanceFromListener>0</iMinDistanceFromListener>
<iMaxDistanceFromListener>0</iMaxDistanceFromListener>
<iMinDistanceForMaxVolume>500</iMinDistanceForMaxVolume>
<iMaxDistanceForMaxVolume>1000</iMaxDistanceForMaxVolume>
<iMinCutoffDistance>7000</iMinCutoffDistance>
<iMaxCutoffDistance>7000</iMaxCutoffDistance>
<bTaperForSoundtracks>0</bTaperForSoundtracks>
<iLengthOfSound>0</iLengthOfSound>
<fMinDryLevel>1.0</fMinDryLevel>
<fMaxDryLevel>1.0</fMaxDryLevel>
<fMinWetLevel>0.5</fMinWetLevel>
<fMaxWetLevel>0.5</fMaxWetLevel>
<iNotPlayPercent>0</iNotPlayPercent>
</Script3DSound>
<Script3DSound>
<ScriptID>AS3D_MAGYAR_ORDER</ScriptID>
<SoundID>SND_MAGYAR_ORDER</SoundID>
<SoundType>GAME_SPEECH</SoundType>
<iMinVolume>100</iMinVolume>
<iMaxVolume>100</iMaxVolume>
<iPitchChangeDown>0</iPitchChangeDown>
<iPitchChangeUp>0</iPitchChangeUp>
<bLooping>0</bLooping>
<iMinTimeDelay>0</iMinTimeDelay>
<iMaxTimeDelay>0</iMaxTimeDelay>
<StartPosition>NONE</StartPosition>
<EndPosition>NONE</EndPosition>
<iMinVelocity>0</iMinVelocity>
<iMaxVelocity>0</iMaxVelocity>
<iMinDistanceFromListener>0</iMinDistanceFromListener>
<iMaxDistanceFromListener>0</iMaxDistanceFromListener>
<iMinDistanceForMaxVolume>500</iMinDistanceForMaxVolume>
<iMaxDistanceForMaxVolume>1000</iMaxDistanceForMaxVolume>
<iMinCutoffDistance>7000</iMinCutoffDistance>
<iMaxCutoffDistance>7000</iMaxCutoffDistance>
<bTaperForSoundtracks>0</bTaperForSoundtracks>
<iLengthOfSound>0</iLengthOfSound>
<fMinDryLevel>1.0</fMinDryLevel>
<fMaxDryLevel>1.0</fMaxDryLevel>
<fMinWetLevel>0.5</fMinWetLevel>
<fMaxWetLevel>0.5</fMaxWetLevel>
<iNotPlayPercent>0</iNotPlayPercent>
</Script3DSound>
The bold line is important as it marks the end of the <Script3DSounds>-section. The defines for the hungarian sounds belong in that section, but you put it after it. So the end of the files should look like this:
...
<Script3DSound>
<ScriptID>AS3D_UN_FT17_FIRE</ScriptID>
<SoundID>SND_FT17_FIRE</SoundID>
<SoundType>GAME_SFX</SoundType>
<iMinVolume>90</iMinVolume>
<iMaxVolume>100</iMaxVolume>
<iPitchChangeDown>-7000</iPitchChangeDown>
<iPitchChangeUp>7000</iPitchChangeUp>
<bLooping>0</bLooping>
<iMinTimeDelay>0</iMinTimeDelay>
<iMaxTimeDelay>0</iMaxTimeDelay>
<StartPosition>NONE</StartPosition>
<EndPosition>NONE</EndPosition>
<iMinVelocity>0</iMinVelocity>
<iMaxVelocity>0</iMaxVelocity>
<iMinDistanceFromListener>0</iMinDistanceFromListener>
<iMaxDistanceFromListener>0</iMaxDistanceFromListener>
<iMinDistanceForMaxVolume>500</iMinDistanceForMaxVolume>
<iMaxDistanceForMaxVolume>1000</iMaxDistanceForMaxVolume>
<iMinCutoffDistance>7000</iMinCutoffDistance>
<iMaxCutoffDistance>7000</iMaxCutoffDistance>
<bTaperForSoundtracks>0</bTaperForSoundtracks>
<iLengthOfSound>0</iLengthOfSound>
<fMinDryLevel>1.0</fMinDryLevel>
<fMaxDryLevel>1.0</fMaxDryLevel>
<fMinWetLevel>0.5</fMinWetLevel>
<fMaxWetLevel>0.5</fMaxWetLevel>
<iNotPlayPercent>0</iNotPlayPercent>
</Script3DSound>

<Script3DSound>
<ScriptID>AS3D_MAGYAR_SELECT</ScriptID>
<SoundID>SND_MAGYAR_SELECT</SoundID>
<SoundType>GAME_SPEECH</SoundType>
<iMinVolume>100</iMinVolume>
<iMaxVolume>100</iMaxVolume>
<iPitchChangeDown>0</iPitchChangeDown>
<iPitchChangeUp>0</iPitchChangeUp>
<bLooping>0</bLooping>
<iMinTimeDelay>0</iMinTimeDelay>
<iMaxTimeDelay>0</iMaxTimeDelay>
<StartPosition>NONE</StartPosition>
<EndPosition>NONE</EndPosition>
<iMinVelocity>0</iMinVelocity>
<iMaxVelocity>0</iMaxVelocity>
<iMinDistanceFromListener>0</iMinDistanceFromListener>
<iMaxDistanceFromListener>0</iMaxDistanceFromListener>
<iMinDistanceForMaxVolume>500</iMinDistanceForMaxVolume>
<iMaxDistanceForMaxVolume>1000</iMaxDistanceForMaxVolume>
<iMinCutoffDistance>7000</iMinCutoffDistance>
<iMaxCutoffDistance>7000</iMaxCutoffDistance>
<bTaperForSoundtracks>0</bTaperForSoundtracks>
<iLengthOfSound>0</iLengthOfSound>
<fMinDryLevel>1.0</fMinDryLevel>
<fMaxDryLevel>1.0</fMaxDryLevel>
<fMinWetLevel>0.5</fMinWetLevel>
<fMaxWetLevel>0.5</fMaxWetLevel>
<iNotPlayPercent>0</iNotPlayPercent>
</Script3DSound>
<Script3DSound>
<ScriptID>AS3D_MAGYAR_ORDER</ScriptID>
<SoundID>SND_MAGYAR_ORDER</SoundID>
<SoundType>GAME_SPEECH</SoundType>
<iMinVolume>100</iMinVolume>
<iMaxVolume>100</iMaxVolume>
<iPitchChangeDown>0</iPitchChangeDown>
<iPitchChangeUp>0</iPitchChangeUp>
<bLooping>0</bLooping>
<iMinTimeDelay>0</iMinTimeDelay>
<iMaxTimeDelay>0</iMaxTimeDelay>
<StartPosition>NONE</StartPosition>
<EndPosition>NONE</EndPosition>
<iMinVelocity>0</iMinVelocity>
<iMaxVelocity>0</iMaxVelocity>
<iMinDistanceFromListener>0</iMinDistanceFromListener>
<iMaxDistanceFromListener>0</iMaxDistanceFromListener>
<iMinDistanceForMaxVolume>500</iMinDistanceForMaxVolume>
<iMaxDistanceForMaxVolume>1000</iMaxDistanceForMaxVolume>
<iMinCutoffDistance>7000</iMinCutoffDistance>
<iMaxCutoffDistance>7000</iMaxCutoffDistance>
<bTaperForSoundtracks>0</bTaperForSoundtracks>
<iLengthOfSound>0</iLengthOfSound>
<fMinDryLevel>1.0</fMinDryLevel>
<fMaxDryLevel>1.0</fMaxDryLevel>
<fMinWetLevel>0.5</fMinWetLevel>
<fMaxWetLevel>0.5</fMaxWetLevel>
<iNotPlayPercent>0</iNotPlayPercent>
</Script3DSound>
</Script3DSounds>

Does this work for you?

EDIT: Please don't give your email adress on the forum, instead, share it through private messages. It's in your interest as bots might take it from here and start spam you, even if you hide @ with [at] etc.
 
Thanks again mate, got it working. Now I have another question, and you can reply to me in PM since it isn't about the Hungarians. I want to make the French Modern Infantry use the French Foreign Legion skin that is somewhere around here. How do I do that?
 
Hi Folks,

unfortunately the download link seems to be broken. Is there anyone out that could provide the files for the [BtS] Hungary mod v6.01 for Varietas Delectat.?
 
Hi Folks,

unfortunately the download link seems to be broken. Is there anyone out that could provide the files for the [BtS] Hungary mod v6.01 for Varietas Delectat.?
Saw the Discord msg. Got the file! :) Using the atomic archive trick I found the original download page here:
https://web.archive.org/web/2015072...les/86147/hungary-v6-01-for-varietas-delectat
Which gave me a upload date of 16/05/2010 which reversed told me it would be in the atomic backup file for 100516 here:
https://archive.org/details/AtomicGamer_100516
I viewed the contents of the tar file in there and location the mod, renamed the file back to it's original 'BtS_Hungary_VD_v6.01_Setup.exe', uploaded the file to CivFanatics, and fixed the broken download page below to go to the new CFC hosted download.
 
Last edited:
Top Bottom