Ermelinho
Child with the Mirror
I wanna be able to ally with more than one guy in the game.
which file to change?
thanks
which file to change?
thanks
case TRADE_PERMANENT_ALLIANCE:
if (!(GET_TEAM(getTeam()).isAVassal()) && !(GET_TEAM(GET_PLAYER(eWhoTo).getTeam()).isAVassal()))
{
if (getTeam() != GET_PLAYER(eWhoTo).getTeam() && !GET_TEAM(GET_PLAYER(eWhoTo).getTeam()).isVassal(getTeam()))
{
if (!atWar(getTeam(), GET_PLAYER(eWhoTo).getTeam()))
{
if (GET_TEAM(getTeam()).isPermanentAllianceTrading() || GET_TEAM(GET_PLAYER(eWhoTo).getTeam()).isPermanentAllianceTrading())
{
if ((GET_TEAM(getTeam()).getNumMembers() == 1) && (GET_TEAM(GET_PLAYER(eWhoTo).getTeam()).getNumMembers() == 1))
{
return true;
}
}
}
}
}
There is a pretty good guide on compiling the civcoregamedll.dll here.
No you cannot decompile an existing .dll
Regarding 34 Civs or whatever, I think you only have to change the following:
line:
in CvDefines.hCode:#define MAX_CIV_PLAYERS (18)
I havn't done it yet (and I am frankly not interested after seeing how many loops there are that loop through each player - I don't believe my machine wants to think about itNot to derail or anything, but are you saying if I change that single value in my game core .dll I will be able to have 34 civs?
thank you once again, ori.
there´s still something that would be nice to have: naming the team, or making it get a default name (like NATO or warsaw pact or something like that!
maybe if two players ally, the alliance could be named after one of their members capital. afterwards you can invite other players to join the pact (except of their founders). one should also be able to resign from the pact with an latency of 10 turns or something...
would that be realizable?
That would probably be realizable but require some more programming since you would need to rewrite the way permanent alliances are handled (the code above just handles how you can trade (i.e. start) permanent alliances).thank you once again, ori.
there´s still something that would be nice to have: naming the team, or making it get a default name (like NATO or warsaw pact or something like that!
maybe if two players ally, the alliance could be named after one of their members capital. afterwards you can invite other players to join the pact (except of their founders). one should also be able to resign from the pact with an latency of 10 turns or something...
would that be realizable?
There is a pretty good guide on compiling the civcoregamedll.dll here.
No you cannot decompile an existing .dll
Regarding 34 Civs or whatever, I think you only have to change the following:
line:
in CvDefines.hCode:#define MAX_CIV_PLAYERS (18)
Sorry I was not clear on this:Do I need to change this file in the main Civ4 folder as well as the BTS folder? I just updated my BTS CvDefines.h file and i still only have 18 teams available.
Sorry I was not clear on this:
The CvGameCoreDLL folder contains all files that are necessary to compile a CvGameCoreDLL.dll - so what you need to do is change the value in CvDefines.h then compile the CvGameCoreDLL.dll from these files and replace your old one with that...
Can you clue me in on how to compile a .dll file ? Or would it be easier to just email me the .dll file ?kalelpi314@hotmail.com
![]()
There is a pretty good guide on compiling the civcoregamedll.dll here.
No you cannot decompile an existing .dll
Regarding 34 Civs or whatever, I think you only have to change the following:
line:
in CvDefines.hCode:#define MAX_CIV_PLAYERS (18)
lex: Just grab my 40civs mod from the mod components forum. It includes solver's changes and unless you change the xml files to add my features it won't change the game in any other way than to add >18 civ support and colonies.
http://forums.civfanatics.com/showthread.php?t=234779