Fabrysse
Charming-snake learner
My questions are about my Mod España 1936 (Spanish civil war).
All is OK (or not so far), except 2 important functions.
I'm afraid I'll have to go into the SDK. And each time I did it I couldn't compile. I'm ready to try again, but I have questions...
2 problems, 2 questions :
First : are we sure that there is no way doing that with python ?
Second : If I try to get these RiseNFall functions, and compile my special DLL, wich files will I have to change ? Will it be easy for a first try with dll mod ?
All is OK (or not so far), except 2 important functions.
I'm afraid I'll have to go into the SDK. And each time I did it I couldn't compile. I'm ready to try again, but I have questions...
2 problems, 2 questions :
- Change LeaderHead :
I want, at a turn n, a civ to change of LeaderHead (graphical change minimally, real changing would be cool). With python, I tried to use these functions :
Code:in CvArtInfoLeaderhead : [LIST][*]VOID setKFM(STRING szDesc) [*]VOID setNIF(STRING szDesc) [*]VOID setTag(STRING szDesc)[/LIST] in CyPlayer : [LIST][*]VOID setPersonalityType(LeaderHeadType eNewValue)[/LIST]
I saw that Rhye's and Fall added a gc.getGame().setLeader(something) in the SDK. But the only copy/paste DLL to my mod crashes the game.
- Change Player :
At a turn n, I want the human player to choose if he wants to lead an other civ.
In my Warlords version, I used the Revolution DLL. But with BtS, the DLL crashes my game when I use my map and creates several other problems.
I saw that Rhye's and Fall added a gc.getPlayer(int).setActivePlayer(something, boolean) in the SDK. But the only copy/paste DLL to my mod crashes the game.
First : are we sure that there is no way doing that with python ?
Second : If I try to get these RiseNFall functions, and compile my special DLL, wich files will I have to change ? Will it be easy for a first try with dll mod ?