DOM, map and diploscene not showing

Danmacsch

Geheimekabinetsminister
Joined
Jan 14, 2014
Messages
1,316
Location
Copenhagen, Denmark
Hi,

I'm doing a custom civ, and can't get the DOM image and text to show up. Also the map doesn't show when selecting the civ in game setup. Furthermore, the diploscene isn't showing either - it's just black/grey screen.

I've read more or less all threads concerning these problems, and I think everything is set correctly in ModBuddy.
I've made all the images in Photoshop, and saved them as dds files with the dds plugin. I've tried a lot of different setting (DXT3, DXT5, etc.) but none of them have worked. In the end I used WHoward's DDS converter with the DXT3, no MIP maps setting. Still not working.
All my icons, iconalphas and unit flags work fine.

Here's a link to the mod.
And here's the code from my modinfo file:
Spoiler :
Code:
<?xml version="1.0" encoding="utf-8"?>
<Mod id="55abc424-63ea-4858-a3e5-15e8cca4890b" version="1">
  <Properties>
    <Name>Corsican Republic</Name>
    <Stability>Alpha</Stability>
    <Teaser>This mod adds the civilization "Corsican Republic" to the game. Requires BNW.</Teaser>
    <Description>This mod adds the civilization "Corsican Republic" to the game. Requires BNW.</Description>
    <Authors>Damasc</Authors>
    <SpecialThanks>JFD</SpecialThanks>
    <HideSetupGame>0</HideSetupGame>
    <AffectsSavedGames>1</AffectsSavedGames>
    <MinCompatibleSaveVersion>0</MinCompatibleSaveVersion>
    <SupportsSinglePlayer>1</SupportsSinglePlayer>
    <SupportsMultiplayer>1</SupportsMultiplayer>
    <SupportsHotSeat>1</SupportsHotSeat>
    <SupportsMac>1</SupportsMac>
    <ReloadAudioSystem>1</ReloadAudioSystem>
    <ReloadLandmarkSystem>0</ReloadLandmarkSystem>
    <ReloadStrategicViewSystem>0</ReloadStrategicViewSystem>
    <ReloadUnitSystem>0</ReloadUnitSystem>
  </Properties>
  <Dependencies />
  <References />
  <Blocks />
  <Files>
    <File md5="4F12783160B9800E9BB1C0E804CE31F6" import="0">Art/ArtDefines.sql</File>
    <File md5="6829D802E3A481BE2C9FF258D8B735C3" import="1">Art/IconAtlas/CorsicaAlphaAtlas_128.dds</File>
    <File md5="DFB753FED674E8B99B2BCBCCFE7930C0" import="1">Art/IconAtlas/CorsicaAlphaAtlas_16.dds</File>
    <File md5="F3AA3F76838FF49BBB845A2A69541BF0" import="1">Art/IconAtlas/CorsicaAlphaAtlas_24.dds</File>
    <File md5="77EB715B040ECA182ED1CD0DC5E09794" import="1">Art/IconAtlas/CorsicaAlphaAtlas_32.dds</File>
    <File md5="563628630871AD086A5D5F2CD7ED4951" import="1">Art/IconAtlas/CorsicaAlphaAtlas_45.dds</File>
    <File md5="563628630871AD086A5D5F2CD7ED4951" import="1">Art/IconAtlas/CorsicaAlphaAtlas_48.dds</File>
    <File md5="92AC76121D82F0C3017C461D22CC5EFD" import="1">Art/IconAtlas/CorsicaAlphaAtlas_64.dds</File>
    <File md5="9B1B3331DA7E22C9FE2C9418AA408726" import="1">Art/IconAtlas/CorsicaAlphaAtlas_80.dds</File>
    <File md5="008CCCB98413B25C135B7A79864E9903" import="1">Art/IconAtlas/CorsicaAtlas_128.dds</File>
    <File md5="62643FF1852C2A11AEE8047412BA7819" import="1">Art/IconAtlas/CorsicaAtlas_256.dds</File>
    <File md5="B4AF56FE40A98DAD4C221E3999EFB20C" import="1">Art/IconAtlas/CorsicaAtlas_32.dds</File>
    <File md5="3FFCD37CD13D473C14CEAC390769CB96" import="1">Art/IconAtlas/CorsicaAtlas_45.dds</File>
    <File md5="D52648FDB65E83B9D328FC1EF4F1AA46" import="1">Art/IconAtlas/CorsicaAtlas_64.dds</File>
    <File md5="8C73C49547CD5C924CCAF24977D30B77" import="1">Art/IconAtlas/CorsicaAtlas_80.dds</File>
    <File md5="2A834D15219122C401E6F7450AADA806" import="1">Art/IconAtlas/sv_BuonSelvaggio.dds</File>
    <File md5="011737708AA5099C6AFA66AAE5B9D89E" import="1">Art/IconAtlas/Unit_Buon_Selvaggio_Flag_32.dds</File>
    <File md5="1007BA275F41A0D584F9BFBDBB0BC720" import="1">Art/Leaderscene/Paoli_Diplo.dds</File>
    <File md5="7C4B58728A79FF9A3F14980A6952D2FE" import="1">Art/Leaderscene/Paoli_Scene.xml</File>
    <File md5="598712355560F926D782F58D7485DB15" import="1">Art/Map/CorsicaMap512.dds</File>
    <File md5="5A1A4BBD4DEC2BB62AD94477B3B1D0B4" import="1">Art/Map/Paoli_DOM.dds</File>
    <File md5="730AB2F7A9E00EBB546B7D1199987A47" import="0">Audio/Audio.sql</File>
    <File md5="FAE6628CB6CC761CE01829FEE7AEC5E0" import="1">Audio/Paoli_Peace.mp3</File>
    <File md5="A295A7C963E0909510A63993FF5F538D" import="1">Audio/Paoli_War.mp3</File>
    <File md5="9577BB826E58F5B9CCCDF74C5AC83448" import="0">Core/Buildings.sql</File>
    <File md5="D614C29426EAB7D850244D1138E0992F" import="0">Core/Civilizations.sql</File>
    <File md5="B8A68D4CE5487C8FE683BC36E88D24A8" import="0">Core/Diplomacy.sql</File>
    <File md5="54F8FCFA9AB1F7A90F8FD93C6F578D7C" import="0">Core/Leaderhead.sql</File>
    <File md5="1D74B67FE1CFE9389A8D1B924E8E6DD3" import="0">Core/PediaVisible.sql</File>
    <File md5="499A837B7402512B8F506608C6674ED7" import="0">Core/PlayerColours.sql</File>
    <File md5="83006FE3EA956AAFABED9CF8FF499E05" import="0">Core/Promotions.sql</File>
    <File md5="5BBFA35D0175B188671820CC63E1C49F" import="0">Core/Specialists.sql</File>
    <File md5="83D2626205A3C614EA5BA7E72422D953" import="0">Core/Traits.sql</File>
    <File md5="A6AD0A4BC5EDD35B5CD40409AC6F9D36" import="0">Core/Units.sql</File>
    <File md5="D41D8CD98F00B204E9800998ECF8427E" import="1">Lua/CorsicaFunctions.lua</File>
    <File md5="08B1F0F52FE3521DF27208A2E230437B" import="0">XML/GameText.xml</File>
    <File md5="4D33AE020B96CA73942F4B14378BE7E3" import="0">YnAEMP/TSL.sql</File>
  </Files>
  <Actions>
    <OnModActivated>
      <UpdateDatabase>Art/ArtDefines.sql</UpdateDatabase>
      <UpdateDatabase>Audio/Audio.sql</UpdateDatabase>
      <UpdateDatabase>XML/GameText.xml</UpdateDatabase>
      <UpdateDatabase>YnAEMP/TSL.sql</UpdateDatabase>
      <UpdateDatabase>Core/Buildings.sql</UpdateDatabase>
      <UpdateDatabase>Core/Civilizations.sql</UpdateDatabase>
      <UpdateDatabase>Core/Diplomacy.sql</UpdateDatabase>
      <UpdateDatabase>Core/Leaderhead.sql</UpdateDatabase>
      <UpdateDatabase>Core/PediaVisible.sql</UpdateDatabase>
      <UpdateDatabase>Core/PlayerColours.sql</UpdateDatabase>
      <UpdateDatabase>Core/Promotions.sql</UpdateDatabase>
      <UpdateDatabase>Core/Specialists.sql</UpdateDatabase>
      <UpdateDatabase>Core/Traits.sql</UpdateDatabase>
      <UpdateDatabase>Core/Units.sql</UpdateDatabase>
    </OnModActivated>
  </Actions>
</Mod>

And here is some of my Civilization.sql file (only the first few lines):
Spoiler :
Code:
INSERT INTO Civilizations 	
			(Type, 						Description, 					ShortDescription, 						Adjective, 							Civilopedia, 						CivilopediaTag, 				DefaultPlayerColor, 		ArtDefineTag, ArtStyleType, ArtStyleSuffix, ArtStylePrefix, IconAtlas, 			PortraitIndex, 	AlphaIconAtlas, 			SoundtrackTag, 	MapImage, 				DawnOfManQuote, 							DawnOfManImage)
SELECT		('CIVILIZATION_CORSICA'), 	('TXT_KEY_CIV_CORSICA_DESC'), 	('TXT_KEY_CIV_CORSICA_SHORT_DESC'), 	('TXT_KEY_CIV_CORSICA_ADJECTIVE'), 	('TXT_KEY_CIV5_CORSICA_TEXT_1'), 	('TXT_KEY_CIV5_JFD_PRUSSIA'), 	('PLAYERCOLOR_CORSICA'), 	ArtDefineTag, ArtStyleType, ArtStyleSuffix, ArtStylePrefix, ('CORSICA_ATLAS'), 	0, 				('CORSICA_ALPHA_ATLAS'), 	('Venice'), 	('CorsicaMap512.dds'), 	('TXT_KEY_CIV5_DOM_PASQUALE_PAOLI_TEXT'), 	('Paoli_DOM.dds')
FROM Civilizations WHERE (Type = 'CIVILIZATION_VENICE');

UPDATE Civilizations 
SET ArtStyleSuffix = (CASE WHEN EXISTS(SELECT ArtStyleSuffix FROM Civilizations WHERE ArtStyleSuffix = '_VENICE' )
	THEN '_VENICE'
	ELSE '_EURO' END) 
WHERE Type = 'CIVILIZATION_CORSICA';

Seriously hope someone can help me with this.
 

whoward69

DLL Minion
Joined
May 30, 2011
Messages
8,601
Location
Near Portsmouth, UK
Seriously hope someone can help me with this.

Obvious question first: have you enabled logging (see the link in my sig) and checked the database.log for errors?
 

Danmacsch

Geheimekabinetsminister
Joined
Jan 14, 2014
Messages
1,316
Location
Copenhagen, Denmark
Obvious question first: have you enabled logging (see the link in my sig) and checked the database.log for errors?

Well, I had enabled logging, but apparently I overlooked a pretty big error in the database log. The trait reference in my leaderhead.sql file didn't have the same name as the one in my trait.sql.
Sorry to waste your time :blush:
 

AW Arcaeca

Deus Vult
Joined
Mar 10, 2013
Messages
2,976
Location
Operation Padlock ground zero
How about the diplo screen XML? Unless you're using a 3d leader head, it should only consist of 1 line:
Code:
<LeaderScene FallbackImage="YourLeaderSceneImage.dds"/>
And the name of the diplo screen XML file matches up exactly with the one you put in the leader info file?

Better yet, could you attach the built mod, so we don't have to guess what you're doing wrong?
2nd link in whoward's sig.
 

Danmacsch

Geheimekabinetsminister
Joined
Jan 14, 2014
Messages
1,316
Location
Copenhagen, Denmark
How about the diplo screen XML? Unless you're using a 3d leader head, it should only consist of 1 line:
Code:
<LeaderScene FallbackImage="YourLeaderSceneImage.dds"/>
And the name of the diplo screen XML file matches up exactly with the one you put in the leader info file?

Better yet, could you attach the built mod, so we don't have to guess what you're doing wrong?
2nd link in whoward's sig.

It doesn't show up - just a grey screen. Actually my XML file was
Code:
<LeaderScene FallbackImage="Paoli_Diplo.dds">
</LeaderScene>
but I changed it to
Code:
<LeaderScene FallbackImage="Paoli_Diplo.dds"/>
Nonetheless the screen remains grey (actually it was black before I think?)

I've attached the mod.
 

LeeS

Imperator
Joined
Jul 23, 2013
Messages
7,241
Location
Illinois, USA
Code:
<File md5="FE48C32A87C035FBC22B40C6BD8AC054" import="0">Art/Leaderscene/Paoli_Diplo.dds</File>

not sure if you were actually using this one:
Code:
<File md5="FAE6628CB6CC761CE01829FEE7AEC5E0" import="0">Audio/Paoli_War.mp3</File>
 

Danmacsch

Geheimekabinetsminister
Joined
Jan 14, 2014
Messages
1,316
Location
Copenhagen, Denmark
Code:
<File md5="FE48C32A87C035FBC22B40C6BD8AC054" import="0">Art/Leaderscene/Paoli_Diplo.dds</File>

not sure if you were actually using this one:
Code:
<File md5="FAE6628CB6CC761CE01829FEE7AEC5E0" import="0">Audio/Paoli_War.mp3</File>

I guess it helps changing the settings to True when actually adding new files :blush:. I added new files earlier and just forgot to change the VFS setting.
Thanks a lot.
 

Danmacsch

Geheimekabinetsminister
Joined
Jan 14, 2014
Messages
1,316
Location
Copenhagen, Denmark
I just tried again and still no leader scene. I'm just getting the "There's no scene loaded for this leader!!" text
 

AW Arcaeca

Deus Vult
Joined
Mar 10, 2013
Messages
2,976
Location
Operation Padlock ground zero
AHA! Problem = found... I think!
Code:
--==========================================================================================================================
-- Leaders
--==========================================================================================================================		
INSERT INTO Leaders 
			(Type, 						Description, 							Civilopedia, 							CivilopediaTag, 								[B][COLOR="red"]ArtDefineTag[/COLOR][/B], 			VictoryCompetitiveness, WonderCompetitiveness, 	MinorCivCompetitiveness, 	Boldness, 	DiploBalance, 	WarmongerHate, 	DenounceWillingness, 	DoFWillingness, Loyalty, 	Neediness, 	Forgiveness, 	Chattiness, Meanness, 	IconAtlas, 				PortraitIndex)
VALUES		('LEADER_PASQUALE_PAOLI', 	'TXT_KEY_LEADER_PASQUALE_PAOLI_DESC', 	'TXT_KEY_LEADER_PASQUALE_PAOLI_PEDIA', 	'TXT_KEY_CIVILOPEDIA_LEADERS_PASQUALE_PAOLI', 	[B][COLOR="Red"]'Paoli_Diplo.dds'[/COLOR][/B],		6, 						6, 						8, 							6, 			8, 				8, 				7, 						8, 				7, 			6, 			5, 				4, 			3, 			'CORSICA_ATLAS',		1);
<ArtDefineTag> is supposed to reference the leaderscene XML file, not the actual leaderscene image. If it worked like that, there would be no need for the XML file. ;)

So it should work if you change the ArtDefineTag to 'Paoli_Scene.xml'.
 

Danmacsch

Geheimekabinetsminister
Joined
Jan 14, 2014
Messages
1,316
Location
Copenhagen, Denmark
AHA! Problem = found... I think!
Code:
--==========================================================================================================================
-- Leaders
--==========================================================================================================================
INSERT INTO Leaders 
(Type, Description, Civilopedia, CivilopediaTag, [B][COLOR="red"]ArtDefineTag[/COLOR][/B], VictoryCompetitiveness, WonderCompetitiveness, MinorCivCompetitiveness, Boldness, DiploBalance, WarmongerHate, DenounceWillingness, DoFWillingness, Loyalty, Neediness, Forgiveness, Chattiness, Meanness, IconAtlas, PortraitIndex)
VALUES('LEADER_PASQUALE_PAOLI', 'TXT_KEY_LEADER_PASQUALE_PAOLI_DESC', 'TXT_KEY_LEADER_PASQUALE_PAOLI_PEDIA', 'TXT_KEY_CIVILOPEDIA_LEADERS_PASQUALE_PAOLI', [B][COLOR="Red"]'Paoli_Diplo.dds'[/COLOR][/B],6, 6, 8, 6, 8, 8, 7, 8, 7, 6, 5, 4, 3, 'CORSICA_ATLAS',1);
<ArtDefineTag> is supposed to reference the leaderscene XML file, not the actual leaderscene image. If it worked like that, there would be no need for the XML file. ;)

So it should work if you change the ArtDefineTag to 'Paoli_Scene.xml'.
Solved!! :D thanks AW - the leader scene shows up now.
… and now, on to testing my lua code. Maybe I'll end up starting a new thread if that causes problems as well ;)
 
Top Bottom