Joij21
🔥Hail Satan!🔥
What do you guys use to decompile the DLL? Just curious.
Era infos, civilization infos, leaderhead infos have references to music files.Do you know which file controls the soundtrack that's played on era changes? I'd like to make a modmod that causes the soundtrack to be different based on what base culture you have. As a matter of fact I discussed this with Leoreth from RFC-Dawn of Civilization https://forums.civfanatics.com/threads/question-about-the-music-soundtrack.657894/ since it has a system very similar to what I had in mind.
Era infos, civilization infos, leaderhead infos have references to music files.
Audio folder (Assets\XML\Audio) contains sound defines.
I've never looked into that before.I meant the files that handle the soundtrack in the DLL.
int CvGame::getNextSoundtrack(EraTypes eLastEra, int iLastSoundtrack) const
{
EraTypes eCurEra = GET_PLAYER(getActivePlayer()).getCurrentEra();
CvEraInfo& kCurrentEra = GC.getEraInfo(eCurEra);
if (kCurrentEra.getNumSoundtracks() == 0)
{
return -1;
}
else if (kCurrentEra.getNumSoundtracks() == 1 || (eLastEra != eCurEra && kCurrentEra.isFirstSoundtrackFirst()))
{
return kCurrentEra.getSoundtracks(0);
}
else
{
return kCurrentEra.getSoundtracks(GC.getASyncRand().get(kCurrentEra.getNumSoundtracks(), "Pick Song ASYNC"));
}
}
int CvGame::getSoundtrackSpace() const
{
return std::max(1, GC.getEraInfo(GET_PLAYER(getActivePlayer()).getCurrentEra()).getSoundtrackSpace());
}
bool CvGame::isSoundtrackOverride(CvString& strSoundtrack) const
{
if (GC.getDefineINT("VICTORY_SOUNDTRACK_AVAILABLE") != 0)
{
if (getGameState() == GAMESTATE_EXTENDED || getGameState() == GAMESTATE_OVER)
{
if (getWinner() == getActiveTeam())
{
strSoundtrack = "AS2D_VICTORY";
}
else
{
strSoundtrack = "AS2D_DEFEAT";
}
return true;
}
}
return false;
}
See the post above yours on how to get the source files. Search in them for MAX_NUM_PLAYERS and you'll find it's a little more complicated than one player count to set up properly but you CAN change it, recompile and play. However, do understand we have it limited where it is to help avoid later game memory limit crashes.Does anyone know if there already is the civ 4 decompiled dll for download?
Or what files do I have to modify in the dll to change the max num of players?