View Full Version : C code help request


Genghis_Kai
Mar 13, 2009, 06:22 AM
I am wondering if someone can do me a favor for the following issues:

1) Make a 50 civ and a 60 civ version for the latest dll. I want to test and if 50 or even 60 doesn't degrade performance that much, I would like to make it as GEM's default. Imagine having Switerland and Ireland being playable in the 1940 scenario! :D

2) Make Minor Nation peaceful (i.e. not start to be at war with everyone). I've spent the last two nights to see whether I can do this in XML or python's level without success. I think this has to be hard-coded (Hence, I need help :eek:)

Adhesive86
Mar 13, 2009, 08:11 AM
I am wondering if someone can do me a favor for the following issues:

1) Make a 50 civ and a 60 civ version for the latest dll. I want to test and if 50 or even 60 doesn't degrade performance that much, I would like to make it as GEM's default.


Great idea!

armand453
Mar 13, 2009, 11:56 AM
Its not difficult at all you can do that by only changing one variable (MAX_CIV_PLAYER) in CvDefines.h.
Here (http://forums.civfanatics.com/showthread.php?t=196283) you have tutorial for installing correctly VC express 2005 if you need, and here (http://forums.civfanatics.com/showthread.php?t=196283&page=7) the latest make file for 3.17. Its really fast to do.

Armand.

Genghis_Kai
Mar 13, 2009, 12:49 PM
Its not difficult at all you can do that by only changing one variable (MAX_CIV_PLAYER) in CvDefines.h.
Here (http://forums.civfanatics.com/showthread.php?t=196283) you have tutorial for installing correctly VC express 2005 if you need, and here (http://forums.civfanatics.com/showthread.php?t=196283&page=7) the latest make file for 3.17. Its really fast to do.

Armand.

Thanks Armand. However, I did try before working on the SDK but wasn't success. Would you mind to do that for me?

Genghis_Kai
Mar 20, 2009, 12:06 AM
I now have got different versions of the dll already (48, 50 and 60 civs). Thanks Ace of Spades and the Better AI mod team :goodjob: I will try adding more civs to the 1940 scenario first to see if there is any significant performance degradation.

Ace of Spades
Mar 20, 2009, 08:08 AM
What you should be aware of is that it will probably lead to a high number of colonies created, taking up the free slots. Too bad that cannot (to my knowledge) be disabled manually, but expect weird civilizations to show up in the scenarios in weird places... like Iraq in Australia and the like.

Best Regards,
Martin

Traiano
Mar 22, 2009, 12:17 PM
I now have got different versions of the dll already (48, 50 and 60 civs). Thanks Ace of Spades and the Better AI mod team :goodjob: I will try adding more civs to the 1940 scenario first to see if there is any significant performance degradation.

Genghis,

That's great!
Any chance you can upload the 48 civs dll?
I'd like to download it and test a few things on my mod as well, and perhaps add 2-3 civs.

Thanks.

Genghis_Kai
Mar 23, 2009, 04:58 AM
Genghis,

That's great!
Any chance you can upload the 48 civs ddl?
I'd like to download it and test a few things on my mod as well, and perhaps add 2-3 civs.

Thanks.

The 48 civ dll can be found here:
http://forums.civfanatics.com/downloads.php?do=file&id=11546

Traiano
Mar 23, 2009, 10:30 AM
The 48 civ dll can be found here:
http://forums.civfanatics.com/downloads.php?do=file&id=11546

Thanks a lot!