[NEED HELP] WTH!? Compiler error...

Grave

1 Goat = 400 Horses
Joined
May 5, 2002
Messages
1,530
Location
Louisiana
Ok, so last night I was doing some compiling... adding a few SDK mods into my project. All is well before I go to bed.


Now today, I added a new SDK mod to my project, go to compile... and these errors pop up:

Spoiler :
Project : CvGameCoreDLL
Compiler : Microsoft Visual C++ Toolkit 2003 (called directly)
Directory : D:\Games\Sid Meier's Civilization IV\Warlords\CvGameCoreDLL\
--------------------------------------------------------------------------------
Switching to target: Final Release
CvCity.cpp
CvCity.cpp(184) : error C2039: 'isVassal' : is not a member of 'CvTeamAI'
d:\Games\Sid Meier's Civilization IV\Warlords\CvGameCoreDLL\CvTeamAI.h(8) : see declaration of 'CvTeamAI'
CvCity.cpp(702) : error C2039: 'isVassal' : is not a member of 'CvTeamAI'
d:\Games\Sid Meier's Civilization IV\Warlords\CvGameCoreDLL\CvTeamAI.h(8) : see declaration of 'CvTeamAI'
CvCity.cpp(3893) : error C2039: 'isVassal' : is not a member of 'CvTeamAI'
d:\Games\Sid Meier's Civilization IV\Warlords\CvGameCoreDLL\CvTeamAI.h(8) : see declaration of 'CvTeamAI'
CvCity.cpp(3911) : error C2039: 'isVassal' : is not a member of 'CvTeamAI'
d:\Games\Sid Meier's Civilization IV\Warlords\CvGameCoreDLL\CvTeamAI.h(8) : see declaration of 'CvTeamAI'
CvCity.cpp(5065) : error C2039: 'isVassal' : is not a member of 'CvTeamAI'
d:\Games\Sid Meier's Civilization IV\Warlords\CvGameCoreDLL\CvTeamAI.h(8) : see declaration of 'CvTeamAI'
Process terminated with status 1 (0 minutes, 10 seconds)



So I think, "OK, must of entered the code in wrong."

I go to the backup of my project (I always make backups before adding new content), and try and re-compile that info.

And I get the SAME errors! So I completely delete all my SDK files in the Warlords/CvGameCoreDLL directory, and install a fresh copy. Then I take all the C++ files from the backup of my mod that I made last night (that worked perfectly fine last night, BTW) and copy those files into the Warlords/CvGameCoreDLL directory.

Recompile...

Same damn errors! Why is a set of code that was working percectly fine last night (and was unmodified since last night when it was working) suddenly not work at all today?


I'm totally stumped on this one. What am I doing wrong? :confused: :mad:
 
It would seemed that something is different. I would start with line 184 in CvCity.cpp. If you have an isVassal check in that line (there isnt one in the default warlords sdk).

If you do have an isVassal line there it should look something like the following:

Code:
		if (GET_TEAM(GET_PLAYER(eOwner).getTeam()).isVassal((TeamTypes)iI))
 
Kael said:
It would seemed that something is different. I would start with line 184 in CvCity.cpp. If you have an isVassal check in that line (there isnt one in the default warlords sdk).

If you do have an isVassal line there it should look something like the following:

Code:
		if (GET_TEAM(GET_PLAYER(eOwner).getTeam()).isVassal((TeamTypes)iI))

This is what line 184 looks like in my CvCity.cpp:

Code:
if (GET_TEAM(getTeam()).isVassal((TeamTypes)iI))


What I don't understand is... I never changed this line of code before. And in my working backup copy it looks the same, too.

I had to dig up a backup copy in my recycle bin (good thing I didn't empty it!) and start from there. The good thing is I really didn't lose any work, except for the 2 hours I wasted today pulling my hair out.

But I'm looking at the CvCity.cpp that was from the backup copy I retreived from the recycle bin, and it looks the same, too.

I'm compiling all the C++ files from that retreived copy, and it's all compiling just fine.


I'll post more findings about this as I discover them.
 
Interesting, your line should be good so its not that. But it sounds like you are golden if you have a copy that works, one that doesnt work, and a decent compare utility.

If you dont have a decent compare utility just post your working and not working cvcity.cpp and cvteamai.cpp and I will run a compare for you.
 
Kael said:
Interesting, your line should be good so its not that. But it sounds like you are golden if you have a copy that works, one that doesnt work, and a decent compare utility.

If you dont have a decent compare utility just post your working and not working cvcity.cpp and cvteamai.cpp and I will run a compare for you.

Thanks for the offer, Kael... but I think I figured it out... somehow! :confused:

I don't know what I did different... but I took the working copy (from out of the recycle bin), then added to it the ModComp I was working on earlier today before the errors.

Recompiled... and now everything compiled correctly! :confused:

So I don't know what the deal was, but what ever it is... it's history. :goodjob:
 
Back
Top Bottom