include new dds files (iconatlas, dom, map) - unable to load texture -.-

sT0!ka

Chieftain
Joined
Dec 27, 2008
Messages
13
hi again folks,

since a week i am facing the problem, that i'm not able to include my new dds-files in my "project". Means: the starting-picture/map after activating the mob; the IconAtlas-files/dds and the DoM.

My dds-files i can edit and save with gimp 64bit. pixel-sizes should be ok, IconAtlas-files 8x8 for 256, 128, 80,64 and only edited für PortraitIndex 0.

Next: i copied my dds-files into the mod, folder art. then i was including those dds-files into the xml-files, hopefully in the right way ...

At least i noticed, that the dds needs to be set on true in their properties import to Vfs ...but hasn't changed anything with that error-message: "unable to load texture [*.dds]" ...after i activated the scenario

so ...i googled a lot and haven't found anything useful ....now i hope, someone has any idea what i could do

Here are all hopefully relevant files in short:

"North of Westeros (v 1).modinfo"
Spoiler :


<?xml version="1.0" encoding="utf-8"?>
<Mod id="21aadd0a-49c9-4199-8a5d-7f750ae0b6b6" version="1">
<Properties>
<Name>North of Westeros</Name>
<Stability>Alpha</Stability>
<Teaser>North of Westeros</Teaser>
<Description>North of Westeros</Description>
<Authors>admin</Authors>
<HideSetupGame>0</HideSetupGame>
<AffectsSavedGames>1</AffectsSavedGames>
<MinCompatibleSaveVersion>0</MinCompatibleSaveVersion>
<SupportsSinglePlayer>1</SupportsSinglePlayer>
<SupportsMultiplayer>1</SupportsMultiplayer>
<SupportsHotSeat>0</SupportsHotSeat>
<SupportsMac>1</SupportsMac>
<ReloadLandmarkSystem>0</ReloadLandmarkSystem>
<ReloadStrategicViewSystem>0</ReloadStrategicViewSystem>
<ReloadUnitSystem>0</ReloadUnitSystem>
</Properties>
<Dependencies />
<References />
<Blocks />
<Files>
<File md5="4075D54A78DE3282E85833999D10D6E0" import="1">Art/DOM/House_Stark.dds</File>
<File md5="44BAB81390BD3683D302F4BEE3BF6F8A" import="1">Art/IconAtlas128Westeros.dds</File>
<File md5="B368CC29546957A6C5CE7F27714AA2BA" import="1">Art/IconAtlas256Westeros.dds</File>
<File md5="E42BC890A61D620D5419EE2EBB55765B" import="1">Art/IconAtlas64Westeros.dds</File>
<File md5="300B10CBA6C0E8378734372EF7CCA0D7" import="1">Art/IconAtlas80Westeros.dds</File>
<File md5="D34FC9B14B0DBBBC3D79F2AABA59520E" import="1">Art/MapImages/map.dds</File>
<File md5="FACA2C7CDD6F1DC66E470BCBC2BD27FB" import="0">Westeros-north.Civ5Map</File>
<File md5="6DE84868445153E07347A11CF7BB0A45" import="0">XML/Civilizations/Civilizations.xml</File>
<File md5="81E4E7980DFED4A81183736BE5623782" import="0">XML/Civilizations/Leaders.xml</File>
<File md5="6DAC9CC865647FAA947149E5A09FF7D6" import="0">XML/GameInfo/CIV5IconTextureAtlases.xml</File>
<File md5="1EF0F4A7E38B803941B1E8CCE8D4A3F9" import="0">XML/Leaders/civ_stark.xml</File>
<File md5="720016503BA7DFC53AF754E1B1949B86" import="0">XML/NewTexts/GameText.xml</File>
<File md5="26243384F4B6E5C5510877F38916EFAF" import="0">XML/TechTree/Technologies.xml</File>
<File md5="3A24045A471DE702F80C4DEBB5408F3D" import="0">XML/Units/CIV5Units.xml</File>
</Files>
<Actions>
<OnModActivated>
<UpdateDatabase>XML/Civilizations/Civilizations.xml</UpdateDatabase>
<UpdateDatabase>XML/Civilizations/Leaders.xml</UpdateDatabase>
<UpdateDatabase>XML/GameInfo/CIV5IconTextureAtlases.xml</UpdateDatabase>
<UpdateDatabase>XML/NewTexts/GameText.xml</UpdateDatabase>
<UpdateDatabase>XML/TechTree/Technologies.xml</UpdateDatabase>
<UpdateDatabase>XML/Units/CIV5Units.xml</UpdateDatabase>
</OnModActivated>
</Actions>
</Mod>


"CIV5IconTextureAtlases.xml"
Spoiler :

<GameData>
<IconTextureAtlases>
<Row>
<Atlas>CIV_COLOR_ATLAS_WESTEROS</Atlas>
<IconSize>256</IconSize>
<Filename>IconAtlas256Westeros.dds</Filename>
<IconsPerRow>8</IconsPerRow>
<IconsPerColumn>8</IconsPerColumn>
</Row>
<Row>
<Atlas>CIV_COLOR_ATLAS_WESTEROS</Atlas>
<IconSize>128</IconSize>
<Filename>IconAtlas128Westeros.dds</Filename>
<IconsPerRow>8</IconsPerRow>
<IconsPerColumn>8</IconsPerColumn>
</Row>
<Row>
<Atlas>CIV_COLOR_ATLAS_WESTEROS</Atlas>
<IconSize>80</IconSize>
<Filename>IconAtlas80Westeros.dds</Filename>
<IconsPerRow>8</IconsPerRow>
<IconsPerColumn>8</IconsPerColumn>
</Row>
<Row>
<Atlas>CIV_COLOR_ATLAS_WESTEROS</Atlas>
<IconSize>64</IconSize>
<Filename>IconAtlas64Westeros.dds</Filename>
<IconsPerRow>8</IconsPerRow>
<IconsPerColumn>8</IconsPerColumn>
</Row>

<Row>
<Atlas>CIV_COLOR_ATLAS_LEGENDS</Atlas>
<IconSize>45</IconSize>
<Filename>CivSymbolsColorLegends45.dds</Filename>
<IconsPerRow>8</IconsPerRow>
<IconsPerColumn>8</IconsPerColumn>
</Row>
<Row>
<Atlas>CIV_COLOR_ATLAS_LEGENDS</Atlas>
<IconSize>32</IconSize>
<Filename>CivSymbolsColorLegends32.dds</Filename>
<IconsPerRow>8</IconsPerRow>
<IconsPerColumn>8</IconsPerColumn>
</Row>
</IconTextureAtlases>
</GameData>


"Civilizations.xml"
Spoiler :

<GameData>
<Civilizations>
<Update>
<Set MapImage="map.dds" IconAtlas="CIV_COLOR_ATLAS_WESTEROS" PortraitIndex="0" DawnOfManQuote="TXT_KEY_CIV5_STARK_TEXT_1" DawnOfManImage="House_Stark.dds" DawnOfManAudio="NONE" />
<Where Type="CIVILIZATION_CHINA" />
</Update>
</Civilizations>
</GameData>


"Leaders.xml"
Spoiler :

<GameData>
<Leaders>
<Update>
<Set Description="TXT_KEY_LEADER_STARK" PortraitIndex="0" IconAtlas="CIV_COLOR_ATLAS_WESTEROS" CivilopediaTag="TXT_KEY_CIV5_STARK"/>
<Where Type="CIVILIZATION_CHINA" />
</Update>

</Leaders>
</GameData>


"civ_stark.xml"
Spoiler :

<GameData>
<Civilizations>
<Row>
<Type>CIVILIZATION_STARK</Type>
<Description>TXT_KEY_LEADER_STARK</Description>
<ShortDescription>TXT_KEY_CIV_STARK_SHORT_DESC</ShortDescription>
<Adjective>TXT_KEY_CIV_STARK_ADJECTIVE</Adjective>
<Civilopedia>TXT_KEY_CIV_STARK_PEDIA</Civilopedia>
<CivilopediaTag>TXT_KEY_CIV5_STARK</CivilopediaTag>
<DefaultPlayerColor>PLAYERCOLOR_DARK_GREEN</DefaultPlayerColor>
<ArtDefineTag>ART_DEF_CIVILIZATION_ENGLAND</ArtDefineTag>
<ArtStyleType>ARTSTYLE_EUROPEAN</ArtStyleType>
<ArtStyleSuffix>_EURO</ArtStyleSuffix>
<ArtStylePrefix>EUROPEAN </ArtStylePrefix>
<PortraitIndex>0</PortraitIndex>
<IconAtlas>CIV_COLOR_ATLAS_WESTEROS</IconAtlas>
<AlphaIconAtlas>CIV_ALPHA_ATLAS</AlphaIconAtlas>
<MapImage>map.dds</MapImage>
<DawnOfManQuote>TXT_KEY_CIV5_STARK_TEXT_1</DawnOfManQuote>
<DawnOfManImage>House_Stark.dds</DawnOfManImage>
</Row>
</Civilizations>
<!--
<Civilization_FreeBuildingClasses>
<Row>
<CivilizationType>CIVILIZATION_CELT</CivilizationType>
<BuildingClassType>BUILDINGCLASS_PALACE</BuildingClassType>
</Row>
</Civilization_FreeBuildingClasses>
<Civilization_FreeTechs>
<Row>
<CivilizationType>CIVILIZATION_CELT</CivilizationType>
<TechType>TECH_AGRICULTURE</TechType>
</Row>
</Civilization_FreeTechs>
<Civilization_FreeUnits>
<Row>
<CivilizationType>CIVILIZATION_CELT</CivilizationType>
<UnitClassType>UNITCLASS_SETTLER</UnitClassType>
<Count>1</Count>
<UnitAIType>UNITAI_SETTLE</UnitAIType>
</Row>
</Civilization_FreeUnits>
-->
<Civilization_Leaders>
<Row>
<CivilizationType>CIVILIZATION_CELT</CivilizationType>
<LeaderheadType>LEADER_STARK</LeaderheadType>
</Row>
</Civilization_Leaders>
</GameData>


"GameText.xml" - probably not necessary ^^
Spoiler :

<GameData>
<Language_en_US>
<Row>
<Tag>TXT_KEY_LEADER_STARK</Tag>
<Text>Lord Eddard Stark</Text>
</Row>
<Row>
<Tag>TXT_KEY_CIV5_STARK_TEXT_1</Tag>
<Text>The Starks is an ancient house, descended from Brandon the Builder, a legendary figure from the Age of Heroes, thousands of years in the past, who built their ancestral home Winterfell. They are descendants of the First Men and still follow some of their ancient traditions and the Old Gods of the forest. The Starks were Kings of Winter in the North for many thousands of years from the Age of Heroes, beginning with Bran the Builder. For several millennia, the Starks were not the uncontested Kings of the North, and their primary antagonists the Boltons of the Dreadfort did not bend the knee until some 1,000 years ago. The last Stark King of the North was Torrhen, who submitted to Aegon the Conqueror at the end of the War of Conquest. Since that time the Starks have held the North for the kings of the Seven Kingdoms as Wardens of The North. Around 213AL, House Stark was in a difficult situation, with the lord of the house, Beron Stark, slowly succumbing to wounds he received fighting Dagon Greyjoy and his ironborn. Lady Stark and four Stark widows struggled over who would succeed him. There were a number of potential heirs, with some ten Stark children about. House Stark played a key role in Robert's Rebellion against the Targaryens, after which the Starks have become a relatively inactive Great House. They share a common ancestor with the Karstarks, and may have distant relatives elsewhere in the North, possibly in White Harbor and Barrowton. The Starks joined forces with House Tully to drive the Lannisters away from the Riverlands during the War of the Five Kings; however in the process they lost dominance over the North to the Boltons, while the family members were either killed or driven into hiding.</Text>
</Row>
<Row>
<Tag>TXT_KEY_CIVILOPEDIA_LEADERS_STARK_NAME</Tag>
<Text>Lord Eddard Stark</Text>
</Row>
<Row>
<Tag>TXT_KEY_CIVILOPEDIA_LEADERS_STARK_HEADING_1</Tag>
<Text>History</Text>
</Row>
<Row>
<Tag>TXT_KEY_CIVILOPEDIA_LEADERS_STARK_LIVED</Tag>
<Text>263AL-298AL</Text>
</Row>
<Row>
<Tag>TXT_KEY_CIVILOPEDIA_LEADERS_STARK_SUBTITLE</Tag>
<Text>Lord of Winterfell</Text>
</Row>
<Row>
<Tag>TXT_KEY_CIVILOPEDIA_LEADERS_STARK_TEXT_1</Tag>
<Text>Civilopedia text on STARK goes here.</Text>
</Row>
</Language_en_US>
</GameData>


at least a screenshot of the project, maybe useful

so - thx a lot

greetz - sT0!ka
 

Attachments

  • screeni-projekt.JPG
    screeni-projekt.JPG
    100.2 KB · Views: 313
The problem is in your IconTextureAtlases table; your 45 and 32-pixel atlases have the name "CIV_COLOR_ATLAS_LEGENDS" instead of "_WESTEROS". That's why it's dying; there are no 45 or 32-pixel files with the WESTEROS name.

While we're more than willing to help someone who's making a mod, you really don't need to ask us questions like this; your log files will catch most XML errors right away, and checking those first will save you a LOT of time. You only have to turn on logging; go into your user directory (on Win7, that's My Documents/My Games/Sid Meier's Civilization V/), open the config.ini file, find the line "LoggingEnabled = 0" and change it to a 1. The next time you load a mod, it'll put all the error messages into your Logs directory; the only files in there you need to care about are Database.log, xml.log, and Lua.log. Note that each of these has a set of "default" error messages that will happen no matter what you do in your own mod, so you should see what those look like in an unmodded game to get a better idea of which errors/warnings aren't caused by your own mod.

Also, when you're posting text from your XML/Lua onto this board, use the (CODE)(/CODE) environment to preserve indentations (with brackets instead of parentheses, of course). It makes it MUCH easier for us to read. You can put the CODE tag inside a SPOILER tag, too (just not the other way around).

Now, there are other major issues with your XML. Here are the ones I spotted right away:
> Civilations have two separate icons, the Color one (which you've substituted) and the Alpha one (which you haven't). You don't HAVE to change both when you're altering an existing entry, but it might look funny in some situations if the two are substantially different if you pick your China-as-Westeros option.
> You're adding CIVILIZATION_STARK, but all of the other changes you're making to the Civilizations file say CIVILIZATION_CELT. Most of those are commented out, meaning CIVILIZATION_STARK won't start with Agriculture or a Settler (bad idea), but the Civilization_Leaders table one is NOT commented out and still says _CELT.
> You're ALSO updating China's entry in the Civilizations table to use Stark, meaning you'll have two separate civilizations with the same Leader. Do the new civ OR the Update, not both. (Hint: do the new civ. Leave the Chinese alone.)
> In the Leaders file, instead of creating a new leader entry you're stealing China's. While this'd work with the update just mentioned, it again means you have two civs with the same leader. Your CIVILIZATION_STARK won't work because of this (it'd need a new row for the new leader).
> You don't have an OnModActivated for civ_stark.xml, so that file never loads at all.
 
Hi Spatzimaus

thx a lot for your fast answer. I'll try to fix all of the things you've mentioned. Activated the logfiles. Edited the 45 and 32-pixel atlases (they were commented out, but i've added them now). soooooo - i'll work on that this evening - takes some time - and hope to come back with good news ^^

thx again - or should i say: "Danke" ? 8) sounds pretty german, your name

greetz
 
thx again - or should i say: "Danke" ? 8) sounds pretty german, your name

It is, but I'm not. It was a bad pun from a German friend of mine back in the days of Ultima Online.

Anyway, it seems like you understand the key elements of XML modding just fine (especially the VFS rules), so it shouldn't take you too long to get this functioning. Once you've got the hang of XML modding, then you get to start learning SQL, Lua, and eventually DLL modding, but one step at a time. Just realize that if you have a question, these boards are quiet enough that it might take a little while (as in, a day or more) to get an answer, hence my suggestion about checking logs first.
 
uh, i loved to play UO ... started to search for a free shard, may be playing it another time ^^

beside that: i've struggled to find a solution for my still existing problem (hadn't have that much time). the log-files weren't that helpful and all your hints couldn't help me out ... so - maybe i will start from the beginning, reorganize all that ...could be the best idea.

another question ..i started the project with creating a map, which has existing cities with defined Civ's (the standard civ's) ...how could i include a new civ in the worldbuilder?

thx for reading ^^

greetz
 
Back
Top Bottom