Modmodding Q&A Thread

It's just a random thought. Since there's many important cities but so close to each other, I thought, rather than seeing city X all the time, it would be cool if each time a settler settle a city, the game will choose a name between Taracco or Barcino randomly.

Never mind that one. I have a real question now :lol:

Rather than
Code:
'Azimabad'	:	'Gron Kyer Me Tog',
'Palibothra'	:	'Gron Kyer Me Tog',
'Huazhicheng'	:	'Gron Kyer Me Tog',
'Kashijou'	:	'Gron Kyer Me Tog',
'Patna'		:	'Gron Kyer Me Tog',
'Pataliputra'	:	'Gron Kyer Me Tog',

Is it possible to shorten these into the following?
Spoiler :
Code:
def lPataliputra = ['Azimabad', 'Palibothra', 'Huazhicheng', 'Kashijou', 'Patna', 'Pataliputra', 'Gron Kyer Me Tog']
and then, on the conquest part,
Code:
#Tibet
{ lPataliputra : 'Gron Kyer Me Tog',
'Lasa' : 'Rasa'
'Lhasa' : 'Rasa',},

It will greatly reduce the length of CNM for good ^^
 
It's just a random thought. Since there's many important cities but so close to each other, I thought, rather than seeing city X all the time, it would be cool if each time a settler settle a city, the game will choose a name between Taracco or Barcino randomly.
You cannot write logical expressions into tuples (which is what the city name maps are), but it should be possible to add lists instead of single strings. Of course then you'd also have to change the code that assigns the name to new cities so that it first checks if there is a list of names, and then randomly selects one of them.

Never mind that one. I have a real question now :lol:

Rather than
Code:
'Azimabad'	:	'Gron Kyer Me Tog',
'Palibothra'	:	'Gron Kyer Me Tog',
'Huazhicheng'	:	'Gron Kyer Me Tog',
'Kashijou'	:	'Gron Kyer Me Tog',
'Patna'		:	'Gron Kyer Me Tog',
'Pataliputra'	:	'Gron Kyer Me Tog',

Is it possible to shorten these into the following?
Spoiler :
Code:
def lPataliputra = ['Azimabad', 'Palibothra', 'Huazhicheng', 'Kashijou', 'Patna', 'Pataliputra', 'Gron Kyer Me Tog']
and then, on the conquest part,
Code:
#Tibet
{ lPataliputra : 'Gron Kyer Me Tog',
'Lasa' : 'Rasa'
'Lhasa' : 'Rasa',},

It will greatly reduce the length of CNM for good ^^
Not really. The data structure we're using here is a dictionary, i.e. pairs of keys (left) and values (right). I want to find a new city name (value) for an old city name (key), which is what the dictionary can give me with that setup. For example, if my old city name is "Azimabad" it can look it up in the dictionary and see that the corresponding new name is "Gron Kyer Me Tog". Under your setup, "Azimabad" isn't a key of the dicionary, only the long list lPataliputra is, so it cannot be found.

I know that this is rather annoying to write, especially because the number of entries for a city grows quadratically with the number of languages that have a name for it (Venice and Constantinople are the worst). But so far I haven't been able to come up with a more convenient way to handle this.
 
I did that, and I have one error. I think it has to do with the fact that the Nmake wasn't properly converted from Version 9 (2008) to Version 10 (2010). Do you think that you could upload your VCPROJ++ file?

Here's the one error:
Code:
1>------ Build started: Project: CvGameCoreDLL, Configuration: Debug Win32 ------
1>makefile(12): fatal error U1036: syntax error : too many names to left of '='
1>  Stop.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.MakeFile.Targets(38,5): error MSB3073: The command "nmake /NOLOGO /K Debug" exited with code 2.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Also, if you are going to include the VCPROJ++ file in the SVN, do you think that you could make the tech lead penalty not apply until Turn 60 (or 50)? Babylon is still pretty weak tech-wise.
 
Just read your error message :) In line 12 you have replaced the variable name YOURMOD with your mod's name, you weren't supposed to do that. The build fails because variable names aren't allowed to have white spaces, but renaming it is problematic anyways because the variable is still referred to as YOURMOD in the rest of the makefile. Simply name it back.
 
Not really. The data structure we're using here is a dictionary, i.e. pairs of keys (left) and values (right). I want to find a new city name (value) for an old city name (key), which is what the dictionary can give me with that setup. For example, if my old city name is "Azimabad" it can look it up in the dictionary and see that the corresponding new name is "Gron Kyer Me Tog". Under your setup, "Azimabad" isn't a key of the dicionary, only the long list lPataliputra is, so it cannot be found.

I know that this is rather annoying to write, especially because the number of entries for a city grows quadratically with the number of languages that have a name for it (Venice and Constantinople are the worst). But so far I haven't been able to come up with a more convenient way to handle this.

How about this:
Code:
"Azimabad" [COLOR="RoyalBlue"]OR[/COLOR] "Pataliputra" : "Gron Kyer Me Tog",
Can the dictionary accepts OR (what is these expression called? Boolean?) between the strings? Alexandria and Pataliputra is pretty worse too.
 
No. A logical expression is not a variable. You can only put variables in data structures of any kind.
 
Well, I just fixed the Makefile and rebuilt it, and here is the one error and one message.

Code:
Message	6	Could not find schema information for the attribute 'Condition'.	C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.MakeFile.Targets	60
Error	113	error MSB3073: The command "nmake /NOLOGO /K Debug" exited with code 1.	C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.MakeFile.Targets	38

Here are 100 of the 111 warnings (I didn't have room for all 111), which I think have to do the the Message and the error.
Spoiler :
Code:
Warning	1	The element 'PropertyGroup' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child element 'TargetPath' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'. List of possible elements expected: 'Property, AllowUnsafeBlocks, AppConfigForCompiler, ApplicationIcon, ApplicationRevision, ApplicationVersion, AppDesignerFolder, AspNetConfiguration, AssemblyKeyContainerName, AssemblyKeyProviderName, AssemblyName, AssemblyOriginatorKeyFile, AssemblyOriginatorKeyFileType, AssemblyOriginatorKeyMode, AssemblyType, AutorunEnabled, BaseAddress, BootstrapperComponentsLocation, BootstrapperComponentsUrl, BootstrapperEnabled, CharacterSet, CheckForOverflowUnderflow, CLRSupport, CodePage, Configuration, ConfigurationName, ConfigurationOverrideFile, CreateDesktopShortcut, CreateWebPageOnPublish, CurrentSolutionConfigurationContents, DebugSecurityZoneURL, DebugSymbols, DebugType, DefaultClientScript, DefaultHTMLPageLayout, DefaultTargetSchema, DefineConstants, DefineDebug, DefineTrace, DelaySign, DisableLangXtns, DisallowUrlActivation, CodeAnalysisAdditionalOptions, CodeAnalysisApplyLogFileXsl, CodeAnalysisConsoleXsl, CodeAnalysisCulture, CodeAnalysisFailOnMissingRules, CodeAnalysisForceOutput, CodeAnalysisGenerateS....	C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.MakeFile.Targets	22
Warning	2	The element 'ItemGroup' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child element 'NMakeNativeOutput' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'. List of possible elements expected: 'Item, Reference, COMReference, COMFileReference, Xdcmake, Bscmake, ClCompile, ClInclude, Midl, ResourceCompile, PreLinkEvent, CustomBuildStep, Manifest, ProjectConfiguration, NativeReference, ProjectReference, Compile, EmbeddedResource, Content, Page, Resource, ApplicationDefinition, None, BaseApplicationManifest, Folder, Import, Service, WebReferences, WebReferenceUrl, FileAssociation, BootstrapperFile, PublishFile, CodeAnalysisDependentAssemblyPaths, CodeAnalysisDictionary, CodeAnalysisImport, Link, ResourceCompile, PreBuildEvent, PostBuildEvent' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'.	C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.MakeFile.Targets	67
Warning	3	The element 'ItemGroup' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child element 'NMakeNativeOutput' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'. List of possible elements expected: 'Item, Reference, COMReference, COMFileReference, Xdcmake, Bscmake, ClCompile, ClInclude, Midl, ResourceCompile, PreLinkEvent, CustomBuildStep, Manifest, ProjectConfiguration, NativeReference, ProjectReference, Compile, EmbeddedResource, Content, Page, Resource, ApplicationDefinition, None, BaseApplicationManifest, Folder, Import, Service, WebReferences, WebReferenceUrl, FileAssociation, BootstrapperFile, PublishFile, CodeAnalysisDependentAssemblyPaths, CodeAnalysisDictionary, CodeAnalysisImport, Link, ResourceCompile, PreBuildEvent, PostBuildEvent' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'.	C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.MakeFile.Targets	70
Warning	4	The element 'PropertyGroup' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child element 'NMakeManagedOutput' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'. List of possible elements expected: 'Property, AllowUnsafeBlocks, AppConfigForCompiler, ApplicationIcon, ApplicationRevision, ApplicationVersion, AppDesignerFolder, AspNetConfiguration, AssemblyKeyContainerName, AssemblyKeyProviderName, AssemblyName, AssemblyOriginatorKeyFile, AssemblyOriginatorKeyFileType, AssemblyOriginatorKeyMode, AssemblyType, AutorunEnabled, BaseAddress, BootstrapperComponentsLocation, BootstrapperComponentsUrl, BootstrapperEnabled, CharacterSet, CheckForOverflowUnderflow, CLRSupport, CodePage, Configuration, ConfigurationName, ConfigurationOverrideFile, CreateDesktopShortcut, CreateWebPageOnPublish, CurrentSolutionConfigurationContents, DebugSecurityZoneURL, DebugSymbols, DebugType, DefaultClientScript, DefaultHTMLPageLayout, DefaultTargetSchema, DefineConstants, DefineDebug, DefineTrace, DelaySign, DisableLangXtns, DisallowUrlActivation, CodeAnalysisAdditionalOptions, CodeAnalysisApplyLogFileXsl, CodeAnalysisConsoleXsl, CodeAnalysisCulture, CodeAnalysisFailOnMissingRules, CodeAnalysisForceOutput, CodeAnalysisGenerateS....	C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.MakeFile.Targets	81
Warning	5	The element 'ItemGroup' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child element 'PropertyPageSchema' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'. List of possible elements expected: 'Item, Reference, COMReference, COMFileReference, Xdcmake, Bscmake, ClCompile, ClInclude, Midl, ResourceCompile, PreLinkEvent, CustomBuildStep, Manifest, ProjectConfiguration, NativeReference, ProjectReference, Compile, EmbeddedResource, Content, Page, Resource, ApplicationDefinition, None, BaseApplicationManifest, Folder, Import, Service, WebReferences, WebReferenceUrl, FileAssociation, BootstrapperFile, PublishFile, CodeAnalysisDependentAssemblyPaths, CodeAnalysisDictionary, CodeAnalysisImport, Link, ResourceCompile, PreBuildEvent, PostBuildEvent' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'.	C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.MakeFile.Targets	90
Message	6	Could not find schema information for the attribute 'Condition'.	C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.MakeFile.Targets	60
Warning	7	warning U4010: 'Debug\CvGameCoreDLL.pch' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	8	warning U4010: 'Debug\CvArea.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	9	warning U4010: 'Debug\CvArtFileMgr.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	10	warning U4010: 'Debug\CvBugOptions.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	11	warning U4010: 'Debug\CvCity.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	12	warning U4010: 'Debug\CvCityAI.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	13	warning U4010: 'Debug\CvDeal.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	14	warning U4010: 'Debug\CvDiploParameters.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	15	warning U4010: 'Debug\CvDLLButtonPopup.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	16	warning U4010: 'Debug\CvDLLEntity.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	17	warning U4010: 'Debug\CvDLLPython.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	18	warning U4010: 'Debug\CvDllPythonEvents.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	19	warning U4010: 'Debug\CvDllTranslator.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	20	warning U4010: 'Debug\CvDLLWidgetData.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	21	warning U4010: 'Debug\CvEventReporter.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	22	warning U4010: 'Debug\CvFractal.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	23	warning U4010: 'Debug\CvGame.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	24	warning U4010: 'Debug\CvGameAI.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	25	warning U4010: 'Debug\CvGameCoreDLL.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	26	warning U4010: 'Debug\CvGameCoreUtils.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	27	warning U4010: 'Debug\CvGameInterface.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	28	warning U4010: 'Debug\CvGameTextMgr.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	29	warning U4010: 'Debug\CvGlobals.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	30	warning U4010: 'Debug\CvHallOfFameInfo.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	31	warning U4010: 'Debug\CvInfos.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	32	warning U4010: 'Debug\CvInfoWater.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	33	warning U4010: 'Debug\CvInitCore.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	34	warning U4010: 'Debug\CvMap.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	35	warning U4010: 'Debug\CvMapGenerator.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	36	warning U4010: 'Debug\CvMessageControl.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	37	warning U4010: 'Debug\CvMessageData.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	38	warning U4010: 'Debug\CvPlayer.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	39	warning U4010: 'Debug\CvPlayerAI.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	40	warning U4010: 'Debug\CvPlot.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	41	warning U4010: 'Debug\CvPlotGroup.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	42	warning U4010: 'Debug\CvPopupInfo.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	43	warning U4010: 'Debug\CvPopupReturn.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	44	warning U4010: 'Debug\CvRandom.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	45	warning U4010: 'Debug\CvReplayInfo.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	46	warning U4010: 'Debug\CvReplayMessage.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	47	warning U4010: 'Debug\CvRhyes.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	48	warning U4010: 'Debug\CvSelectionGroup.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	49	warning U4010: 'Debug\CvSelectionGroupAI.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	50	warning U4010: 'Debug\CvStatistics.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	51	warning U4010: 'Debug\CvStructs.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	52	warning U4010: 'Debug\CvTalkingHeadMessage.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	53	warning U4010: 'Debug\CvTeam.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	54	warning U4010: 'Debug\CvTeamAI.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	55	warning U4010: 'Debug\CvTextScreens.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	56	warning U4010: 'Debug\CvUnit.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	57	warning U4010: 'Debug\CvUnitAI.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	58	warning U4010: 'Debug\CvXMLLoadUtility.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	59	warning U4010: 'Debug\CvXMLLoadUtilityGet.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	60	warning U4010: 'Debug\CvXMLLoadUtilityInit.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	61	warning U4010: 'Debug\CvXMLLoadUtilitySet.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	62	warning U4010: 'Debug\CyArea.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	63	warning U4010: 'Debug\CyAreaInterface.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	64	warning U4010: 'Debug\CyArgsList.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	65	warning U4010: 'Debug\CyArtFileMgr.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	66	warning U4010: 'Debug\CyArtFileMgrInterface.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	67	warning U4010: 'Debug\CyCity.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	68	warning U4010: 'Debug\CyCityInterface1.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	69	warning U4010: 'Debug\CyDeal.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	70	warning U4010: 'Debug\CyEnumsInterface.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	71	warning U4010: 'Debug\CyGame.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	72	warning U4010: 'Debug\CyGameCoreUtils.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	73	warning U4010: 'Debug\CyGameCoreUtilsInterface.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	74	warning U4010: 'Debug\CyGameInterface.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	75	warning U4010: 'Debug\CyGameTextMgr.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	76	warning U4010: 'Debug\CyGameTextMgrInterface.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	77	warning U4010: 'Debug\CyGlobalContext.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	78	warning U4010: 'Debug\CyGlobalContextInterface1.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	79	warning U4010: 'Debug\CyGlobalContextInterface2.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	80	warning U4010: 'Debug\CyGlobalContextInterface3.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	81	warning U4010: 'Debug\CyGlobalContextInterface4.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	82	warning U4010: 'Debug\CyHallOfFameInfo.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	83	warning U4010: 'Debug\CyHallOfFameInterface.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	84	warning U4010: 'Debug\CyInfoInterface1.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	85	warning U4010: 'Debug\CyInfoInterface2.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	86	warning U4010: 'Debug\CyInfoInterface3.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	87	warning U4010: 'Debug\CyMap.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	88	warning U4010: 'Debug\CyMapGenerator.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	89	warning U4010: 'Debug\CyMapGeneratorInterface.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	90	warning U4010: 'Debug\CyMapInterface.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	91	warning U4010: 'Debug\CyMessageControl.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	92	warning U4010: 'Debug\CyMessageControlInterface.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	93	warning U4010: 'Debug\CyPlayer.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	94	warning U4010: 'Debug\CyPlayerInterface1.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	95	warning U4010: 'Debug\CyPlayerInterface2.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	96	warning U4010: 'Debug\CyPlot.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	97	warning U4010: 'Debug\CyPlotInterface1.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	98	warning U4010: 'Debug\CyRandomInterface.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
Warning	99	warning U4010: 'Debug\CyReplayInfo.obj' : build failed; /K specified, continuing ...	C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\RFC Dawn of Alternate History\CvGameCoreDLL\NMAKE
etc...

I still think there might be something wrong with the Makefile, because it didn't work when I changed it to your version and I reverted it back. I'll post it again.
 
I'm more interested in where you got your Visual Studio project files. I never had to edit anything in them by hand, they were simply created when I created the project and imported the source files into VS itself.
 
I got them from the tutorial. However, they are Microsoft Studio 2008 files, which I had to convert, and the tutorial said to make sure that the NMAKE files look fine if you're using 2010 (for some reason, I couldn't use 2008 for some of the files, so I had to use 2010). I think that is where the problem is. Could you upload your VCPROJ++ file with the next SVN commit? I think, using that with your solution file (not the ones provided in the tutorial) would be the best way to get around those problems.
 
Can't you simply use VS08?

I've appended my project file, but I don't know if it's of much use because it appears to be partially language-specific.
 
I think that I need the Vc++ Project File, not the VC++ Project Filters File. It doesn't recognize the filters file that you gave me.
 
Right, sorry.
 
I compiled the DLL successfully! Now, after adding in some files for a Venetian civ, the game crashes while it is loading the XML files. Before, it listed some errors, which I fixed, and then an error relating to "Info class" for everything in the CivilizationDefines, I think. After I fixed all of those errors, the game just crashes while loading the XML without any message. Is there some sort of an error log for me to see?
 
Great that your compiler errors have finally been resolved.

What exactly have you added? Art defines? There should be an xmlDebug in the logs folder, although I don't know how helpful it is. I'm pretty sure you either have a wrong tag somewhere or the art you have specified somewhere could not be found.
 
I have added a Venetian civ, art tags for an Enrico Dandolo LH, art tags for a Galeass unit, art tags for a Arsenal building, and the dynamic names and other necessary things required to add a civ in RFC. Most of the Venice stuff I stole from a Venice civ pack.

EDIT: This is the XML log:
Code:
[9408.857] Loading XML file xml\GameInfo/CIV4PlayerOptionInfos.xml
[9408.888] Load XML file xml\GameInfo/CIV4PlayerOptionInfos.xml SUCCEEDED
[9408.888] SetGlobalClassInfo (Civ4PlayerOptionInfos/PlayerOptionInfos/PlayerOptionInfo)
[9408.888] Loading XML file xml\GameInfo/CIV4GraphicOptionInfos.xml
[9408.903] Load XML file xml\GameInfo/CIV4GraphicOptionInfos.xml SUCCEEDED
[9408.903] SetGlobalClassInfo (Civ4GraphicOptionInfos/GraphicOptionInfos/GraphicOptionInfo)
Not exactly the most informative.
 
Do the paths in the new art tags point to actual art files?
 
I'm pretty sure, though it think at this point the best thing to do is manually check everything related to Venice.
 
Replace the art paths with that of other units/buildings that actually work (like the units they're replacing), see if the game loads, then gradually revert until you find the responsible entry.
 
I changed everything back, and now I've gotten these errors for every leader:

Code:
There are more siblings than memory allocated for them in CvXMLLoadUtility::SetVariableListTagPair
Current XML file is: xml\Civilizations/CIV4CivilizationInfos.xml

Code:
Allocating zero or less memory in CvXMLLoadUtility::SetVariableListTagPair
Current XML file is: xml\Civilizatoins/CIV4CivilizationInfos.xml

[CODE]Tag: LEADER_MONTEZUMA in Info class was incorrect
Current XML file is xml\Civilizations/CIV4CivilizationInfos.xml
Obviously, replace the name of the leader.

Was there some sort of a constants file that I needed to edit in the XML?

EDIT: I also got this type of error:
Code:
[102276.626] info type NONE not found, Current XML file is: xml\Units/CIV4UnitInfos.xml
for every single unit, building, promotion, goody hut bonus, civ, and religion in the game.
 
Then apparently you still have an error in one of the XML files, and the problem is cascading down several others that depend on it.
 
Back
Top Bottom