New Civ won't show up in my Scenario

Craig_Sutter

Deity
Joined
Aug 13, 2002
Messages
2,773
Location
Calgary, Canada
I've added a new Civ into the game.

When I start my mod, it does not show up as a leader that I can select. However, if I don't load my scenario, and just play on an random map, I can select my civilization and the game will play as normal... the pedia entries and names all work out.

My civ name is Hladir and the leader is Haakon. My map has this civilization saved as one of the scenario civilizations. The map is Viking Age Huge Map.

My log files are enabled, but show nothing unusual.

I've seen other people on this forum with the same problem, but haven't seen a solution outlined... perhaps they solved the problem and might let me know how they did it.

Here is the zipped mod:

View attachment 322975

here are the logs:

database:
Code:
[11495.074] constraint failed
[11495.074] While executing - 'INSERT INTO ArtDefine_StrategicView(StrategicViewType, TileType, Asset) VALUES(?,?,?)'
[11498.974] Validating Foreign Key Constraints...
[11498.974] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[11498.974] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[11498.974] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[11499.738] Invalid Reference on UnitGameplay2DScripts.UnitType - "UNIT_PRIVATEER" does not exist in Units
[11499.738] Invalid Reference on UnitGameplay2DScripts.UnitType - "UNIT_SPANISH_GALLEON" does not exist in Units
[11499.738] Invalid Reference on UnitGameplay2DScripts.UnitType - "UNIT_SPANISH_TREASURE CART" does not exist in Units
[11499.738] Invalid Reference on UnitGameplay2DScripts.UnitType - "UNIT_DANISH_LONGBOAT" does not exist in Units
[11499.738] Invalid Reference on UnitGameplay2DScripts.UnitType - "UNIT_SAXON_HUSCARL" does not exist in Units
[11499.738] Invalid Reference on UnitGameplay2DScripts.UnitType - "UNIT_POLYNESIAN_WAR_CANOE" does not exist in Units
[11499.738] Invalid Reference on UnitGameplay2DScripts.UnitType - "UNIT_HITTITE_WARCHARIOT" does not exist in Units
[11499.738] Invalid Reference on UnitGameplay2DScripts.UnitType - "UNIT_SUMERIAN_PHALANX" does not exist in Units
[11499.738] Failed Validation.
[11500.034] 
-- SQLite Memory Statistics --
Memory Usage:
		[Cur]		[Max]
Malloc:		286712		2405056
PageCache:	3207		3664
LookAside:	45		1878
Scratch:	0		1

Static Buffer Overflows:
		[TooLarge]	[NoSpace]
PageCache:	0		0
Scratch:	0		0

Largest Allocations:
Malloc:		65280
PageCache:	1160
Scratch:	5128

Prepared Statements:
Current:		5
------------------------------
[11608.096] Validating Foreign Key Constraints...
[11608.112] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[11608.112] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[11608.112] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[11608.830] Invalid Reference on UnitGameplay2DScripts.UnitType - "UNIT_PRIVATEER" does not exist in Units
[11608.830] Invalid Reference on UnitGameplay2DScripts.UnitType - "UNIT_SPANISH_GALLEON" does not exist in Units
[11608.830] Invalid Reference on UnitGameplay2DScripts.UnitType - "UNIT_SPANISH_TREASURE CART" does not exist in Units
[11608.830] Invalid Reference on UnitGameplay2DScripts.UnitType - "UNIT_DANISH_LONGBOAT" does not exist in Units
[11608.830] Invalid Reference on UnitGameplay2DScripts.UnitType - "UNIT_SAXON_HUSCARL" does not exist in Units
[11608.830] Invalid Reference on UnitGameplay2DScripts.UnitType - "UNIT_POLYNESIAN_WAR_CANOE" does not exist in Units
[11608.830] Invalid Reference on UnitGameplay2DScripts.UnitType - "UNIT_HITTITE_WARCHARIOT" does not exist in Units
[11608.830] Invalid Reference on UnitGameplay2DScripts.UnitType - "UNIT_SUMERIAN_PHALANX" does not exist in Units
[11608.830] Failed Validation.
[11609.095] 
-- SQLite Memory Statistics --
Memory Usage:
		[Cur]		[Max]
Malloc:		377848		2405056
PageCache:	3266		4982
LookAside:	1336		3169
Scratch:	0		1

Static Buffer Overflows:
		[TooLarge]	[NoSpace]
PageCache:	0		186760
Scratch:	0		0

Largest Allocations:
Malloc:		65280
PageCache:	1160
Scratch:	5128

Prepared Statements:
Current:		22
------------------------------

XML

Code:
[11498.974] **** Validating Game Database *****
[11499.738] Performing Localization Checks
[11499.738] Checking Tag Format...
[11499.738] Note: Tags must only use [A-Z_] characters, start with 'TXT_KEY_', and be under 128 characters long.
[11499.754] Validating UnitGameplay
[11499.754] Number of selection sounds doesn't match number of units.
[11499.754] Validating Notifications
[11499.754] **** VALIDATION FAILED *****
[11499.754] Validation Took 0.780789 seconds
[11500.034] **** Validating Prefetch Process *****
[11500.034] **** Validation Success *****
[11500.034] SetGlobalActionInfo
[11500.034] 
-- SQLite Memory Statistics --
Memory Usage:
		[Cur]		[Max]
Malloc:		286712		2405056
PageCache:	3207		3664
LookAside:	45		1878
Scratch:	0		1

Static Buffer Overflows:
		[TooLarge]	[NoSpace]
PageCache:	0		0
Scratch:	0		0

Largest Allocations:
Malloc:		65280
PageCache:	1160
Scratch:	5128

Prepared Statements:
Current:		5
------------------------------
[11608.096] **** Validating Game Database *****
[11608.830] Performing Localization Checks
[11608.830] Checking Tag Format...
[11608.830] Note: Tags must only use [A-Z_] characters, start with 'TXT_KEY_', and be under 128 characters long.
[11608.830] Validating UnitGameplay
[11608.830] Number of selection sounds doesn't match number of units.
[11608.830] Validating Notifications
[11608.830] **** VALIDATION FAILED *****
[11608.830] Validation Took 0.741092 seconds
[11609.095] **** Validating Prefetch Process *****
[11609.095] **** Validation Success *****
[11609.095] SetGlobalActionInfo
[11609.095] 
-- SQLite Memory Statistics --
Memory Usage:
		[Cur]		[Max]
Malloc:		377848		2405056
PageCache:	3266		4982
LookAside:	1336		3169
Scratch:	0		1

Static Buffer Overflows:
		[TooLarge]	[NoSpace]
PageCache:	0		186760
Scratch:	0		0

Largest Allocations:
Malloc:		65280
PageCache:	1160
Scratch:	5128

Prepared Statements:
Current:		22
------------------------------

I used an old Civ 4 map and wonder if that might be causing problems. As I've said, though, I've seen other posts on this forum dealing with this issue as well, so likely that is not it.

Appreciate any advice.

Thank-you
 
If it doesn't work, attach your mod (preferably the one from the MODS sub-dir, not the project from the Firaxis ModBuddy dir) and I'll try and take a look - as I'm currently bored with creating images for the Workshop uploads ;)
 
The most recent version? Including this "I'll paste in your correction to see what happens, but I am pessimistic."?

The zip name is V2 but the .modinfo file inside the zip is V1 - something wrong there!
 
In the mod info file

Code:
<Files>
  <File md5="3A04ECDDB036D39870A3E5E53A231DE2" import="[B][COLOR="Red"]1[/COLOR][/B]">Viking Age Huge Map.Civ5Map</File>
</Files>

and

Code:
[COLOR="red"]<EntryPoints>
  <EntryPoint type="Map" file="Viking Age Huge Map.Civ5Map">
    <Name>Viking Age Huge Map</Name>
    <Description>Viking Age Huge Map</Description>
  </EntryPoint>
</EntryPoints>[/COLOR]

See pages 23-25 of my scenario tutorial
 
Oh, and to answer the original question - "New Civ won't show up in my Scenario" - it's because your WB map (nice map BTW) doesn't include your new civilisation!
 
I think I changed out the civs at some point to make certain that I had 18 playable civs in a game without my added civilization... but trust me, when I edit the map to include my civilization it did not show up...

The map is an old civ 4 one I used with European Medieval Mod... I resurrected it once I got Civ 5.

I have been following your tutorial and I seem to be getting the same errors you noted even after making vfs true and adding the map to content. I'm wondering if my file paths are screwing things up...

under mods I get two folders... one is Viking Age (it has subfolders - Builds, Packages, and another Viking Age folder, and the other is Viking Age (v1). The latter is the mod path. I assume the former is the project.

I'm wondering... I recall that when I created the mod, I was asked if I wanted a directory for the solution, I chose yes... was this a mistake?
 
Here is my newest version... I followed the tutorial exactly, as far as I know, but I still get the same errors in the mod info file.

The new version has my custom civ included on map but only 17 of the 18 civs show up on the leader selection area when scenario is highlighted. My civ is not one of the 17 (although there ought to be 18).

View attachment 322996

No idea what's wrong... might end up simply using Update on a current civ if I can't get this working... won't be too difficult I suppose.
 
7166104105_88c8373302_z.jpg


We've seen this before with SPQR where the custom civs only show up the SECOND time you start the scenario.

The work-around was, start the scenario, don't even both playing one turn, exit, setup again and you'll see the custom civs.

Apparently fixed in version 20 (see http://forums.2kgames.com/showthread.php?115219-SPQR-Rise-of-Rome&p=1587186#post1587186) - a PM may be worth a try
 
Had a response. Unfortunately whar he had to do was update current civilzations rather than creating new ones... I suppose that is what I will...I am going to download sprq to use as a templatr.

Thanks again

Ah, I had kinda guessed as much.

SPQR is HUGE, so may just confuse more than help!
 
Success was achieved... used some of SPRQ as a template and it worked out fine... Now I've got a template of my own to follow so adding Civs, at least, should go smoothly from now on.

Thank-you for all the advice.
Could you share the lines you used to fix this? I'm having the same problem.
 
Back
Top Bottom