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

Modding

Discussion in 'Civ4 - Rhye's and Fall of Civilization' started by J. pride, Jul 21, 2011.

  1. J. pride

    J. pride Chieftain

    Joined:
    Feb 23, 2011
    Messages:
    788
    I have a few questions which i would appreciate if you answer.

    1) I have successfully recompiled the dll, so how would i put these files back to the mod? Which files would i put under assets?

    2) In CvRhyes settler map, which value is used to block an area from settling? What is 20 for, what about 3 and what is the highest value for settling?

    (If it helps i am triying to modify RFC Dawn of Civilization)
     
  2. LuKo

    LuKo The Royal Guard

    Joined:
    Aug 28, 2006
    Messages:
    1,500
    Location:
    Poland
  3. J. pride

    J. pride Chieftain

    Joined:
    Feb 23, 2011
    Messages:
    788
    So everything else i just paste it in CvGameCoreDll Folder
     
  4. Baldyr

    Baldyr "Hit It"

    Joined:
    Dec 5, 2009
    Messages:
    5,530
    Location:
    Sweden
    The DLL file is the only one that does anything, the other stuff is just for building a new DLL. So once you compile those you get the DLL, and then you can discard the build files. Unless, of course, you want to recompile. But then you can put those anywhere you like, because they do nothing for your mod-mod itself.
     
  5. J. pride

    J. pride Chieftain

    Joined:
    Feb 23, 2011
    Messages:
    788
    Thanks Baldyr, I think its working now.

    My other question, what files do i need to modify in order to influence the settler map and what number value blocks an area from settlement?
     
  6. Dumanios

    Dumanios MLG

    Joined:
    Oct 24, 2008
    Messages:
    4,874
    I've been modding RFC. Though essentially, due to my modding noobishness, it's essentially DoC with better graphics and different DCNs.

    So I'm probably very limited help.
     
  7. J. pride

    J. pride Chieftain

    Joined:
    Feb 23, 2011
    Messages:
    788
    I need all the help i can get so thnx. Can u or anybody look at this compilation and tell me whats wrong. If it helps im trying to add the Holy Roman Empire to the game. I started out with a 200 errors now im down to 10 but i just cant solve. So if anybody can take a look and tell me whats wrong that would be appreciated.

    Spoiler :
    1>CvRhyes.cpp(13) : error C2078: too many initializers
    1>CvRhyes.cpp(16) : error C2078: too many initializers
    1>CvRhyes.cpp(19) : error C2078: too many initializers
    1>CvRhyes.cpp(20) : error C2078: too many initializers
    1>CvRhyes.cpp(21) : error C2078: too many initializers
    1>CvRhyes.cpp(22) : error C2078: too many initializers
    1>CvRhyes.cpp(23) : error C2078: too many initializers
    1>CvRhyes.cpp(24) : error C2078: too many initializers
    1>CvRhyes.cpp(62) : error C2078: too many initializers
    1>CvRhyes.cpp(62) : fatal error C1903: unable to recover from previous error(s); stopping compilation



    And there all from this little bit of coding (starts line 13 and ends at 62) of CvRhyes.cpp
    Spoiler :

    // rhyes.cpp

    int startingTurn[28] = {0, 0, 0, 0, 50, 84, 66, 90, 97, 121, 145, 163, 177, 183, 187, 193, 196, 203, 205, 207, 281, 220, 234, 236, 240, 241, 249, 301, 346}; //332 for 1733

    // edead: replaces the above to allow different game speeds
    int startingTurnYear[28] = {-3000, -3000, -3000, -3000, -1600, -844, -1200, -753, -660, -300, 60, 330, 551, 622, 657, 718, 751, 829, 843, 860, 1500, 989, 1128, 1150, 1190, 1195, 1280, 1600, 1775};

    //Alphabetical order: AME ARA AZT BAB BYZ CAR XXX CHI EGY ENG ETH FRA GER GRE HRE XXX INC IND XXX JAP KHM XXX MAL MAY MON XXX HOL TUR PER POR ROM RUS SPA XXX VIK XXX
    char loadingTime[35][4] = { "60", "20", "35", "0", "15", "5", "X", "0", "0", "30", "10", "25", "30", "2", "30", "X", "35", "0", "35", "10", "20", "X", "35", "15", "35", "X", "40", "35", "5", "35", "5", "30", "25", "X", "20", "X"};
    char loadingTime600AD[35][4] = { "30", "0", "15", "0", "0", "0", "X", "0", "0", "10", "0", "5", "10", "0", "10", "X", "15", "0", "15", "0", "2", "X", "15", "0", "15", "X", "20", "15", "0", "15", "0", "10", "5", "X", "0", "X"};
    char startingYear[35][6] = {"1775 ", "620 ", "1200 ", "3000 ", "330 ", "1200 ", "XXX ", "3000 ", "3000 ", "820 ", "295 ", "750 ", "1600 ", "1600 ", "840 ", "XXX ", "1150 ", "3000 ", "1167 ", "655 ", "660 ", "XXX ", "980 ", "65 ", "1190 ", "XXX ", "1500 ", "1280 ", "850 ", "1130 ", "760 ", "860 ", "720 ", "XXX ", "545 ", "XXX "};
    bool startingEra[35] = {true, true, true, false, true, false, false, false, false, true, false, true, true, false, true, false, true, false, true, false, true, false, true, true, true, false, true, true, false, true, false, true, true, false, true, false}; //AD or BC
    char startingYear600AD[35][6] = {"1775 ", "600 ", "1200 ", "3000 ", "600 ", "1200 ", "XXX ", "600 ", "3000 ", "820 ", "295 ", "750 ", "1600 ", "1600 ", "840 ", "XXX ", "1150 ", "3000 ", "1167 ", "600 ", "660 ", "XXX ", "980 ", "65 ", "1190 ", "XXX ", "1500 ", "1280 ", "850 ", "1130 ", "760 ", "860 ", "720 ", "XXX ", "600 ", "XXX "};
    bool startingEra600AD[35] = {true, true, true, false, true, false, false, true, false, true, false, true, true, false, true, false, true, false, true, true, true, false, true, false, true, false, true, true, false, true, false, true, true, false, true, false}; //AD or BC

    char uniquePower[35][2][16] = {
    {"TXT_KEY_UP_AME", "TXT_KEY_UP_AME2"},
    {"TXT_KEY_UP_ARA", "TXT_KEY_UP_ARA2"},
    {"TXT_KEY_UP_AZT", "TXT_KEY_UP_AZT2"},
    {"TXT_KEY_UP_BAB", "TXT_KEY_UP_BAB2"},
    {"TXT_KEY_UP_BYZ", "TXT_KEY_UP_BYZ2"},
    {"TXT_KEY_UP_CAR", "TXT_KEY_UP_CAR2"},
    {"XXX", "XXX"},
    {"TXT_KEY_UP_CHI", "TXT_KEY_UP_CHI2"},
    {"TXT_KEY_UP_EGY", "TXT_KEY_UP_EGY2"},
    {"TXT_KEY_UP_ENG", "TXT_KEY_UP_ENG2"},
    {"TXT_KEY_UP_ETH", "TXT_KEY_UP_ETH2"},
    {"TXT_KEY_UP_FRA", "TXT_KEY_UP_FRA2"},
    {"TXT_KEY_UP_GER", "TXT_KEY_UP_GER2"},
    {"TXT_KEY_UP_GRE", "TXT_KEY_UP_GRE2"},
    {"TXT_KEY_UP_HRE", "TXT_KEY_UP_HRE2"},
    {"XXX", "XXX"},
    {"TXT_KEY_UP_INC", "TXT_KEY_UP_INC2"},
    {"TXT_KEY_UP_IND", "TXT_KEY_UP_IND2"},
    {"TXT_KEY_UP_ITA", "TXT_KEY_UP_ITA2"},
    {"TXT_KEY_UP_JAP", "TXT_KEY_UP_JAP2"},
    {"TXT_KEY_UP_KHM", "TXT_KEY_UP_KHM2"},
    {"XXX", "XXX"},
    {"TXT_KEY_UP_MAL", "TXT_KEY_UP_MAL2"},
    {"TXT_KEY_UP_MAY", "TXT_KEY_UP_MAY2"},
    {"TXT_KEY_UP_MON", "TXT_KEY_UP_MON2"},
    {"XXX", "XXX"},
    {"TXT_KEY_UP_HOL", "TXT_KEY_UP_HOL2"},
    {"TXT_KEY_UP_TUR", "TXT_KEY_UP_TUR2"},
    {"TXT_KEY_UP_PER", "TXT_KEY_UP_PER2"},
    {"TXT_KEY_UP_POR", "TXT_KEY_UP_POR2"},
    {"TXT_KEY_UP_ROM", "TXT_KEY_UP_ROM2"},
    {"TXT_KEY_UP_RUS", "TXT_KEY_UP_RUS2"},
    {"TXT_KEY_UP_SPA", "TXT_KEY_UP_SPA2"},
    {"XXX", "XXX"},
    {"TXT_KEY_UP_VIK", "TXT_KEY_UP_VIK2"},
    {"XXX", "XXX"}};
     
  8. lzd

    lzd Chieftain

    Joined:
    Mar 22, 2011
    Messages:
    23
    You've added an element to the array, but you haven't increased the size of the array:
    Code:
    int startingTurn[28] = { ... };
    
    Within {} there are 29 elements, but the array can only hold 28, thus leading to the error:

    Code:
    1>CvRhyes.cpp(13) : error C2078: too many initializers
    
    Initializers in this context means "starting values for the array". Wherever the compiler complains of this, you should expand the size.
     
  9. J. pride

    J. pride Chieftain

    Joined:
    Feb 23, 2011
    Messages:
    788

Share This Page