Increasing Research costs question

Delrod66

Chieftain
Joined
Apr 18, 2013
Messages
3
Hello I am trying to increase the research percent cost to make my game last longer. I can set the percent to 750% without any issues however when I set it any higher the Technologies in the later eras always have -research costs so they complete it 1 turn.

I am guessing its because I am missing some kind of option that removes a limit on how much research points a game can last but I cannot find the option anywhere in the Civ files. Anyone have any solutions to this problem?

Thanks
 
I've seen this before but I don't remember where. IIRC, there was a thread that stated that research cost would roll over to 0 if cost got above a integer value. You might be able to find the discussion or just test it out empirically.
 
I've seen this before but I don't remember where. IIRC, there was a thread that stated that research cost would roll over to 0 if cost got above a integer value. You might be able to find the discussion or just test it out empirically.

Thanks for the response, I have checked all the XML files looking for a line of code that would work, but I am not a modder only changing this so I can have a nice long game. What other parts of the CIV folder may it be located in?
 
I've seen this before but I don't remember where. IIRC, there was a thread that stated that research cost would roll over to 0 if cost got above a integer value. You might be able to find the discussion or just test it out empirically.
That's because an integer has a maximum size in code. Based on it's bits (4, 8, etc.). If it's signed it will roll over to a negative number. If it's unsigned it will roll over to 0. I have no idea what size ints are in lua or if they are signed or unsigned, but I could probably find out. But there will always be a limit on the size of all variables. Since we can't change it in the database, we're stuck with it.
 
Back
Top Bottom