| General | Hosted Sites | Civ5 | CivRev | Civ4Col | Civ4 | Civ3 | Civ2 | Civ1 | Misc | Marketplace |
![]() |
|
|
Welcome to Civilization Fanatics' Center. You are currently viewing our site as a guest which gives you limited access to our site features. By joining our free community, you will be able to participate in the discussions, search the forum, send private messages, vote in polls, upload your own screenshots to the gallery, and access many other special features. Registration is fast, simple and absolutely free, so sign up today! If you have any problems with the registration process or your account login, please contact support. |
|
|||||||
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Chieftain
Join Date: Nov 2005
Posts: 93
|
A building question
I posted something like this in the actual Revolution mod thread, but since it's 50 pages long and apparently posted in only once every 3 days or so, I thought it might be okay for me to post it here too.
Basically, I'm working on a personal mod designed to enhance my own playing experience. While most of this comes from simple rebalancing, one thing I found interesting was the concept of revolutions, etc. I wrote the python scripts for this addition from scratch, but found that I could save myself time in implementing a few necessary funcitons (creating a new civ for example) by using jdog5000's source code (provided in his revolution mod). But when I built his mod (without making any changes of my own) I get a massive amount of errors. This confounds me because it's known good code. CvGame.cpp(1721) : error C2039: 'reinit' : is not a member of 'CvPlayerAI' c:\Users\...\Desktop\SDK Source (modified)\CvPlayerAI.h(8) : see declaration of 'CvPlayerAI' CvGame.cpp(1756) : error C2039: 'resetRelations' : is not a member of 'CvPlayerAI' c:\Users\...\Desktop\SDK Source (modified)\CvPlayerAI.h(8) : see declaration of 'CvPlayerAI' CvGame.cpp(2020) : error C2039: 'reinit' : is not a member of 'CvPlayerAI' c:\Users\...\Desktop\SDK Source (modified)\CvPlayerAI.h(8) : see declaration of 'CvPlayerAI' CvGame.cpp(5340) : error C2039: 'setDisableHuman' : is not a member of 'CvPlayerAI' c:\Users\...\Desktop\SDK Source (modified)\CvPlayerAI.h(8) : see declaration of 'CvPlayerAI' CvGame.cpp(5359) : error C2039: 'setDisableHuman' : is not a member of 'CvPlayerAI' c:\Users\...\Desktop\SDK Source (modified)\CvPlayerAI.h(8) : see declaration of 'CvPlayerAI' What's more, if I compile CvPlayer.cpp individually I get 20+ errors relating to undeclared variables and other things. Yet I've included all the files he used in his mod and made no changes. As I said, it's known good code. Any ideas? I asked jdog5000 himself but to no avail. I'm using the latest warlords download from this link: http://forums.civfanatics.com/showthread.php?t=171127 |
|
|
|
|
|
#2 |
|
Caveman2Cosmos Modder
|
I might be wrong, but if this is a Vanilla MOD and you use it in Warlords, you get alot of errors also, and vice vera.
btw : Wrong Forum area, should be in Creation & Customization Forum area.
__________________
Caveman 2 CosmosCaveman2Cosmos Forum: Project and Mod Development Forum HERE |
|
|
|
|
|
#3 |
|
Chieftain
Join Date: Nov 2005
Posts: 93
|
My mistake. Feel free to move it mods.
As for what you're saying: it's not a vanilla mod, I'm using the warlords version. Using the .dll he provides, it works fine. But if I try to rebuild the .dll using the source he provides, I get the errors I describe. I've tried using 1.61 code just to check, and that (rightly so) does not work. I feel that the problem isn't some setting in my codeblocks because I can build the provided warlords SDK fine, but when I introduce the files in the revolution mod source it screws up. |
|
|
|
|
|
#4 |
|
Chieftain
Join Date: Nov 2005
Posts: 93
|
Edit: Problem solved. After further reviewing the relevant code, I ascertained that jdog5000 must have forgotten to include a version of CvPlayer.h which reflected his changes. I quickly filled the holes in myself and it worked.
|
|
|
|
|
|
#5 |
|
Bard
![]() Join Date: Jun 2003
Location: Gallery
Posts: 15,001
|
Moderator Action: Thread moved. I'm glad you solved your problem.
|
|
|
|
![]() |
| Bookmarks |
|
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Question] New building = crash? | agentsmith952 | Civ3 - Creation & Customization | 1 | Oct 08, 2007 04:51 AM |
| Improvement Building Question | TheLopez | Civ4 - Creation & Customization | 5 | Mar 11, 2006 04:37 AM |
| Building Question | groobz | Civ3 - General Discussions | 6 | Jan 20, 2004 07:21 PM |
| Question about Road-Building | 80k | Civ3 - Strategy & Tips | 24 | Jan 13, 2004 06:17 AM |
| Question on building icons?!?! | ERLoft | Civ3 - Creation & Customization | 3 | Jan 05, 2004 02:46 AM |