1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

You've Grown too Powerful for us

Discussion in 'Rise from Erebus Modmod' started by Evalis, Jun 3, 2014.

  1. Evalis

    Evalis Prince

    Joined:
    Mar 2, 2009
    Messages:
    493
    So I was looking for the file to edit to remove this restriction from attempts to vassalize or ally with friendly nations but I cannot seem to find it anywhere in the mod. I edited the base dll located in beyond the sword folder but it didn't seem to have any effect.

    Is there some other file this information has been placed it? How would I go about finding it?
     
  2. arcticnightwolf

    arcticnightwolf Emperor

    Joined:
    Jun 8, 2008
    Messages:
    1,301
    Location:
    Prague, Czech Republic
    file CvTeamAI.cpp
    in function
    Code:
    DenialTypes CvTeamAI::AI_permanentAllianceTrade(TeamTypes eTeam) const
    Code:
    [..]
    	if ((getPower(true) + GET_TEAM(eTeam).getPower(true)) > (GC.getGameINLINE().countTotalCivPower() / 2))
    	{
    		if (getPower(true) > GET_TEAM(eTeam).getPower(true))
    		{
    			return DENIAL_POWER_US;
    		}
    		else
    		{
    			return DENIAL_POWER_YOU;
    		}
    	}
    [..]
    also,
    you need to edit the DLL source code for your version of RifE and you need to recompile it into DLL after you change it and replace the [..]/Beyond the Sword/Mods/<mod name>/Assets/CvGameCoreDLL.dll file
     

Share This Page