Help Merging Multiple Favorite Civics Mod

OrionVeteran

Deity
Joined
Dec 25, 2003
Messages
2,443
Location
Newport News VA
I'm having a problem with merging the Multiple Favorite Civics Mod by TheLopez. I added my Slave Cage building, which has construction that is restricted to the slavery Civic. This worked just fine. However, when I merged this SDK with Grand Inquisitions, it failed to restrict the construction of the Slave Cage. The DLL compiled fine twice! The only thing I can think of is some other mod, within the SDK, is conflicting in some way with Multiple Favorite Civics Mod. Can someone check out these 7 files and tell me what might be the cause of the failure and perhaps make a recommendation on how to fix it? All merging is labelled with: "Building Civic Prereqs"
 

Attachments

Might I suggest that you debug the relevant code? It'd be much easier to find the problem this way than by simply looking at the code.
 
Might I suggest that you debug the relevant code? It'd be much easier to find the problem this way than by simply looking at the code.

Remember, The dll compiled without encountering any errors. Do you have a new step by step procedure for debugging the compiled code?
 
Use a debug Dll, and run the program from within Visual Studios. Asaf has a guide for doing this, so I'm guessing he'll try and direct you there.


Another thing you could do is try out different buildings with similar properties to what was added, see if they behave funny as well, and narrow the problem down that way.
 
I'm trying to direct you there as we speak ;)
See my signature.

OK I went to your Debugging page. In CvGameCoreDLL properties page, I do not have Active(Debug) in the configuration Drop down. The Application fails to compile a dll in debug mode. I believe the debug mode is broke. If I select debug, the program does not retain it in the properties page. How can I fix this?
 
You probably have Debug and Active(Release). That would mean that your current configuration is Release (or Final_Release, depending on your project and makefile).
At the top of the VS window (right below the main menu) you'll see a drop down in which you should have a Debug configuration available.
 
You probably have Debug and Active(Release). That would mean that your current configuration is Release (or Final_Release, depending on your project and makefile).
At the top of the VS window (right below the main menu) you'll see a drop down in which you should have a Debug configuration available.

OK I changed the configuration manager to debug mode and tried compiling. It failed to produce a debug DLL.

Code:
Command Lines      Creating temporary file "C:\DOCUME~1\JMS\LOCALS~1\Temp\BAT0000063004392.bat" with contents
[
@echo off

nmake Final_Release

if errorlevel 1 goto VCReportError

goto VCEnd

:VCReportError

echo Project : error PRJ0019: A tool returned an error code from "Performing Makefile project actions"

exit 1

:VCEnd
]
Creating command line "C:\DOCUME~1\JMS\LOCALS~1\Temp\BAT0000063004392.bat"
 Output Window      Performing Makefile project actions
Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.
The system cannot find the path specified.
        0 file(s) copied.
 Results      Build log was saved at "file://c:\SDK\CvGameCoreDLL\Debug\BuildLog.htm"
CvGameCoreDLL - 0 error(s), 0 warning(s)
 
I'm not completely sure it failed, but in any case it tried compiling Final_Release instead of debug.
Can you attach your makefile and vcproj files?
 
I'm not completely sure it failed, but in any case it tried compiling Final_Release instead of debug.
Can you attach your makefile and vcproj files?

Here it is:

Unfortunately, real life says I must leave now. Be back around 6:00 PM EDT.
 

Attachments

Your project's debug configuration tried building the final release Dll.
Try using the attached proj file (I modified yours a bit).
 

Attachments

Your project's debug configuration tried building the final release Dll.
Try using the attached proj file (I modified yours a bit).

Thanks. I ran the file and got this error:

Code:
1>NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual C++ Toolkit 2003/bin/link.exe"' : return code '0x460'
1>Stop.
1>Project : error PRJ0019: A tool returned an error code from "Performing Makefile project actions"

Any ideas on how to resolve this error?
 
Where you will quite likely realize the problem is something incredibly dumb, like a messed up name or such.

Good luck with it.
 
Back
Top Bottom