Modmodding Q&A Thread

Congrats :D But since you've already found Stack Overflow, you're already half way to being a computer scientist yourself ;)
 
I am technically a social scientist, or an infrastructure analyst. But my work routine largely comprises problem ... code ... Stack Overflow ... better code ... answer.
 
My job is largely the same :D
 
Do you want the ships in the 600 AD scenario to appear in a random tile or was that just a quick fix? Because I could just make the Human Viking settler appear on a specific tile rather than appearing on a random tile.

Vikings and Japan I'm happy with since they only start a few turns before, but what do you think about having Korea start with Seoul and Pyongyang settled and a few improvements created already?

Also, not sure if this is a bug, the Human Vikings get 1 more longbowman than the AI. Doesn't matter but is there any reason the AI vikings don't get that longbowman?

Sorry about the 3000 BC autoplay bug, I didn't think to check autoplay.
 
They spawned on a random tile previously so they should continue to behave that way.
 
They spawned on a random tile previously so they should continue to behave that way.

What about the japanese work boats? Because, occasionally they can spawn on the inland coast tile which requires that you settle on the spot or lose the work boats.
 
Where can I find the names of great people?
 
Thank you. I thought it was in XML.
 
It was until recently.
 
Sigh. Let me guess: The American UP is handled in the DLL?
 
Sigh. Let me guess: you still haven't come to terms with the fact that serious modding requires editing the DLL?
 
Sigh. Let me guess: you still haven't come to terms with the fact that serious modding requires editing the DLL?

Hey, I tried compiling DoC's DLL again just this morning, but I still have the same problem as last time and no idea how to fix it:

Code:
1>CvPlot.obj : error LNK2019: unresolved external symbol _GetProcessMemoryInfo@12 referenced in function "bool __cdecl NeedToFreeMemory(void)" (?NeedToFreeMemory@@YA_NXZ)
1>Release\CvGameCoreDLL.dll : fatal error LNK1120: 1 unresolved externals
1>NMAKE : warning U4010: 'Release\CvGameCoreDLL.dll' : build failed; /K specified, continuing ...
1>NMAKE : warning U4011: 'Release' : not all dependents available; target not built
1>Project : error PRJ0019: A tool returned an error code from "Performing Makefile project actions"

And yes I googled it, and no that did not help.
 
Let me guess: you still haven't come to terms with the fact that serious modding requires editing the DLL?

:lol: This, this is a great quote.

Hey, I tried compiling DoC's DLL again just this morning, but I still have the same problem as last time and no idea how to fix it:

Code:
1>CvPlot.obj : error LNK2019: unresolved external symbol _GetProcessMemoryInfo@12 referenced in function "bool __cdecl NeedToFreeMemory(void)" (?NeedToFreeMemory@@YA_NXZ)
1>Release\CvGameCoreDLL.dll : fatal error LNK1120: 1 unresolved externals
1>NMAKE : warning U4010: 'Release\CvGameCoreDLL.dll' : build failed; /K specified, continuing ...
1>NMAKE : warning U4011: 'Release' : not all dependents available; target not built
1>Project : error PRJ0019: A tool returned an error code from "Performing Makefile project actions"

And yes I googled it, and no that did not help.

Can you link the the uncompiled DLL files? I'd like to take a look.
 
No I mean the files you are trying compile. The entire folder. Should look something like this depending on what you named it where it is stored:

Spoiler :

img



You did not edit any of the CPP or H files?

You used leoreth's makefile, edited to match your folder structure?
 
No I mean the files you are trying compile. The entire folder. Should look something like this depending on what you named it where it is stored:

Spoiler :

img



You did not edit any of the CPP or H files?

You used leoreth's makefile, edited to match your folder structure?

I didn't edit any file except for the makefile.

I am using Asaf's makefile, edited to match my folder structure, because when I last tried Leoreth's makefile a month ago Visual Studio wouldn't even let me compile, claiming that there was no target selected I think. Apparently the makefile wasn't imported correctly or something? I'll try it again with his makefile later.

I attached the folder with all the files I will now use to try compiling again.

Edit: The predictable result:

Code:
1> "C:\Microsoft Visual C++ Toolkit 2003\bin\link.exe" /out:Release\CvGameCoreDLL.dll /INCREMENTAL:NO /OPT:REF /OPT:ICF /PDB:"Release\CvGameCoreDLL.pdb" /DLL /NOLOGO /SUBSYSTEM:WINDOWS /LARGEADDRESSAWARE /TLBID:1 /LIBPATH:Python24/libs /LIBPATH:boost-1.32.0/libs/ boost_python-vc71-mt-1_32.lib /LIBPATH:"C:\Microsoft Visual C++ Toolkit 2003/lib" /LIBPATH:"C:\WindowsSDK/Lib"  /LIBPATH:"C:\Games\Sid Meier's Civilization 4 Complete\Beyond the Sword\CvGameCoreDLL\Boost-1.32.0/libs" /LIBPATH:"C:\Games\Sid Meier's Civilization 4 Complete\Beyond the Sword\CvGameCoreDLL\Python24/libs" winmm.lib user32.lib Release\CvArea.obj  Release\CvArtFileMgr.obj  Release\CvBugOptions.obj  Release\CvCity.obj  Release\CvCityAI.obj  Release\CvDeal.obj  Release\CvDiploParameters.obj  Release\CvDLLButtonPopup.obj  Release\CvDLLEntity.obj  Release\CvDLLPython.obj  Release\CvDllPythonEvents.obj  Release\CvDllTranslator.obj  Release\CvDLLWidgetData.obj  Release\CvEventReporter.obj  Release\CvFractal.obj  Release\CvGame.obj  Release\CvGameAI.obj  Release\CvGameCoreDLL.obj  Release\CvGameCoreUtils.obj  Release\CvGameInterface.obj  Release\CvGameTextMgr.obj  Release\CvGlobals.obj  Release\CvHallOfFameInfo.obj  Release\CvInfos.obj  Release\CvInfoWater.obj  Release\CvInitCore.obj  Release\CvMap.obj  Release\CvMapGenerator.obj  Release\CvMessageControl.obj  Release\CvMessageData.obj  Release\CvPlayer.obj  Release\CvPlayerAI.obj  Release\CvPlot.obj  Release\CvPlotGroup.obj  Release\CvPopupInfo.obj  Release\CvPopupReturn.obj  Release\CvRandom.obj  Release\CvReplayInfo.obj  Release\CvReplayMessage.obj  Release\CvRhyes.obj  Release\CvSelectionGroup.obj  Release\CvSelectionGroupAI.obj  Release\CvStatistics.obj  Release\CvStructs.obj  Release\CvTalkingHeadMessage.obj  Release\CvTeam.obj  Release\CvTeamAI.obj  Release\CvUnit.obj  Release\CvUnitAI.obj  Release\CvXMLLoadUtility.obj  Release\CvXMLLoadUtilityGet.obj  Release\CvXMLLoadUtilityInit.obj  Release\CvXMLLoadUtilitySet.obj  Release\CyArea.obj  Release\CyAreaInterface.obj  Release\CyArgsList.obj  Release\CyArtFileMgr.obj  Release\CyArtFileMgrInterface.obj  Release\CyCity.obj  Release\CyCityInterface1.obj  Release\CyCityInterface2.obj  Release\CyDeal.obj  Release\CyEnumsInterface.obj  Release\CyGame.obj  Release\CyGameCoreUtils.obj  Release\CyGameCoreUtilsInterface.obj  Release\CyGameInterface.obj  Release\CyGameTextMgr.obj  Release\CyGameTextMgrInterface.obj  Release\CyGlobalContext.obj  Release\CyGlobalContextInterface1.obj  Release\CyGlobalContextInterface2.obj  Release\CyGlobalContextInterface3.obj  Release\CyGlobalContextInterface4.obj  Release\CyHallOfFameInfo.obj  Release\CyHallOfFameInterface.obj  Release\CyInfoInterface1.obj  Release\CyInfoInterface2.obj  Release\CyInfoInterface3.obj  Release\CyMap.obj  Release\CyMapGenerator.obj  Release\CyMapGeneratorInterface.obj  Release\CyMapInterface.obj  Release\CyMessageControl.obj  Release\CyMessageControlInterface.obj  Release\CyPlayer.obj  Release\CyPlayerInterface1.obj  Release\CyPlayerInterface2.obj  Release\CyPlot.obj  Release\CyPlotInterface1.obj  Release\CyRandomInterface.obj  Release\CyReplayInfo.obj  Release\CySelectionGroup.obj  Release\CySelectionGroupInterface.obj  Release\CyStructsInterface1.obj  Release\CyTeam.obj  Release\CyTeamInterface.obj  Release\CyUnit.obj  Release\CyUnitInterface1.obj  Release\FAssert.obj  Release\FDialogTemplate.obj  Release\_precompile.obj 
1>   Creating library Release\CvGameCoreDLL.lib and object Release\CvGameCoreDLL.exp
1>CvPlot.obj : error LNK2019: unresolved external symbol _GetProcessMemoryInfo@12 referenced in function "bool __cdecl NeedToFreeMemory(void)" (?NeedToFreeMemory@@YA_NXZ)
1>Release\CvGameCoreDLL.dll : fatal error LNK1120: 1 unresolved externals
1>NMAKE : warning U4010: 'Release\CvGameCoreDLL.dll' : build failed; /K specified, continuing ...
1>NMAKE : warning U4011: 'Release' : not all dependents available; target not built
1>Project : error PRJ0019: A tool returned an error code from "Performing Makefile project actions"
1>Build log was saved at "file://c:\Games\Sid Meier's Civilization 4 Complete\Beyond the Sword\Mods\RFC Dawn of :) :) :) :):) :) :) :):) :) :) :):) :) :) :) Visual Studio\CvGameCoreDLL\Release\BuildLog.htm"
1>CvGameCoreDLL - 3 error(s), 2 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped =========

I guess I shall try again after replacing Asaf's makefile with Leoreth's.
 

Attachments

Did you edit Asaf's makefile in any way? DoC has some additional source files compared to BtS (I can only think of CvRhyes.h right now but there might be more). That's why I encourage using the makefile included in the repo. But you can also look up the referenced sources there and include them in the makefile you're using.
 
*fives minutes of compiling with Leoreth's makefile later*

And to the surprise of absolutely no one, another failu- f- f- f- fuuuuuuaaaawhaaaaaa???

attachment.php


:eek:

... Nah, it can't be, that has to be a fluke.

*ten minutes of compiling again, this time debug instead of release*

I can't believe it. It's functioning properly? But I didn't do anything different from last time! Who the, how the, what the, why the? :confused:

Well, erm, your services are no longer needed I guess? :crazyeye:
 

Attachments

  • huawhat.png
    huawhat.png
    1.9 KB · Views: 163
Back
Top Bottom