Advertisement
Civilization Fanatics' Center  

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.

Go Back   Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization

Notices

Reply
 
Thread Tools
Old Feb 14, 2007, 03:51 PM   #1
PTM
Chieftain
 
PTM's Avatar
 
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
PTM is offline   Reply With Quote
Old Feb 14, 2007, 07:27 PM   #2
strategyonly
Caveman2Cosmos Modder
 
strategyonly's Avatar
 
Join Date: Mar 2006
Location: MN
Posts: 14,456
Images: 5
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 Cosmos updated 8 May 13, 2:00 a.m.
Caveman2Cosmos Forum: Project and Mod Development Forum HERE
strategyonly is offline   Reply With Quote
Old Feb 14, 2007, 08:31 PM   #3
PTM
Chieftain
 
PTM's Avatar
 
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.
PTM is offline   Reply With Quote
Old Feb 15, 2007, 02:31 AM   #4
PTM
Chieftain
 
PTM's Avatar
 
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.

PTM is offline   Reply With Quote
Old Feb 15, 2007, 04:48 AM   #5
woodelf
Bard
 
woodelf's Avatar
 
Join Date: Jun 2003
Location: Gallery
Posts: 15,001
Moderator Action: Thread moved. I'm glad you solved your problem.
woodelf is offline   Reply With Quote
Reply

Bookmarks

Go Back Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > A building question

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


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


Advertisement

All times are GMT -6. The time now is 01:54 AM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
This site is copyright © Civilization Fanatics' Center.
Support CFC: Amazon.com | Amazon UK | Amazon DE | Amazon CA | Amazon FR