Linkman226
#anarchy
- Joined
- Sep 14, 2007
- Messages
- 2,493
For the benefit of new modders, I think the RFC modding community should have some sort of central database for RFC modding resources and to a list of common RFC modding mistakes already made by other modders. This thread is for that purpose.
Resources
A Guide to Adding New Civilizations to RFC- by Jarkov (at the bottom of the post)
Technical Documentation for RFC: Sword of Islam- by EmbryoDead- A great guide if you want to create your own RFC total conversion mod or import SoI features into your mod
Description of Each RFC Python File
Overlay Maps Information
How to Call Python Functions from the DLL- Case Study: Calling Civilization Modifiers from Python
That's all I have for now. If you guys have anything else, post the link, that'd be greatly appreciated
Common Mistakes
Python
The first thing you should do is enable python exceptions and logging. See this guide.
-When adding buildings/ units/ civilizations/ techs- you need to make sure you modify the Consts.py value. Moreover, if the building is added before the values for the religious buildings are, you need to modify the generic values iTemple, iCathedral, and iMonastery by setting them equal to the first building of that type. Lastly, if you are adding a new type of religious building, you need to do a search for iReligion*4 in the python files and replace it with iReligion*5
-I would recommend you go through the Consts.py file and the CvRhyes.h file and find oddities- namely, places where Rhye has given a building more than one name, and mark them via a comment sign to the right so that when you add units/buildings/civs, you know to skip numbers accordingly
-When adding minor civs, you DO need to increase the CvDefines value for the max number of civs
If you guys could help with this, that'd be fantastic. Thanks.
Resources
A Guide to Adding New Civilizations to RFC- by Jarkov (at the bottom of the post)
Technical Documentation for RFC: Sword of Islam- by EmbryoDead- A great guide if you want to create your own RFC total conversion mod or import SoI features into your mod
Description of Each RFC Python File
Overlay Maps Information
How to Call Python Functions from the DLL- Case Study: Calling Civilization Modifiers from Python
That's all I have for now. If you guys have anything else, post the link, that'd be greatly appreciated
Common Mistakes
Python
The first thing you should do is enable python exceptions and logging. See this guide.
-When adding buildings/ units/ civilizations/ techs- you need to make sure you modify the Consts.py value. Moreover, if the building is added before the values for the religious buildings are, you need to modify the generic values iTemple, iCathedral, and iMonastery by setting them equal to the first building of that type. Lastly, if you are adding a new type of religious building, you need to do a search for iReligion*4 in the python files and replace it with iReligion*5
-I would recommend you go through the Consts.py file and the CvRhyes.h file and find oddities- namely, places where Rhye has given a building more than one name, and mark them via a comment sign to the right so that when you add units/buildings/civs, you know to skip numbers accordingly
-When adding minor civs, you DO need to increase the CvDefines value for the max number of civs
If you guys could help with this, that'd be fantastic. Thanks.