Add Civs to DLL

Mattygerst

Prince
Joined
Jan 19, 2008
Messages
597
Location
St. Louis, Missouri, USA
I have a question regarding modding, but don't have the expertise in this manner ... Karadoc has helped me over the years create my mod, which is based off his. You can find a link to my mod here: https://forums.civfanatics.com/threads/mmod.482015/ & the sources here: https://github.com/karadoc/Civ4-MMod

What I am wanting to do is increase the civ DLL count from 48 to a higher number with the goal of creating scenarios based upon GEM map, which is included in my mod already. Currently, when my mod reaches the late game on on GEM map with 48 civs, turns take probably 5-15 seconds or so. If I were to add to the civ count ... say, 64, or 75, or even double at 96, would you expect the turn times to increase exponentially (as in minutes), or just just change gradually (as in, maybe up to double the amount of seconds)?

EDIT: I have stumbled into this thread: https://forums.civfanatics.com/threads/going-beyond-50-players.483899/ which indicates it would be maxed out at 62 players, which is fine with me. Even adding the additional 14 will be of great help with the scenario builds Im working on.

Furthermore, I was able to track down an email Karadoc left me several years ago which stated:
.
"...changing the maximum number of civs in the dll is really easy - it's just a single number in the source code"

Is this something someone can provide guidance on because I have searched this site and can only people who have posted increased civ counts or even referenced others ... but no implicit instructions on how to do so. I have posted the source code posted above and would appreciate some guidance on how to achieve what I am wanting to do. Although I am not an expert with either Python, SDK, C++, or XML, I have tried my best in the past to learn and implement some changes along the way. I just would like to be able to change the max civ count before I started working on any scenarios so that I don't waste my time working on something I will wholly change when I am able to change the civ-count.
 
Last edited:
In CvDefines.h, look for #define MAX_CIV_PLAYERS and edit its value. Then recompile the DLL.
 
No I haven't. My mod is currently on 49 players. But I edead generally knows what he's talking about. Personally I don't want to go over 60 players for performance reasons anyway.
 
Back
Top Bottom