Kublai Khan

That code is an md5 used to check data integrity.

I made a utility program called ModBBF that can add files to a mod if the mod already exists with a .modinfo file. It will generate md5's and add things to the Files section with include=1, which is all you need to do for added art files (dds, etc). You could use it for other files but you would have to edit modinfo manually to get them "added correctly" (e.g., as OnModActivated). It was never meant to be a replacement for ModBuddy, just a complement (ModBuddy gets terribly slow with many big art files). But it may be your only choice.

Thanks for the info. I already got the md5 code, but I'll look at this next time.

By the way, I'm a fan of Macs because you can type Éa with a standard US keyboard. Or at least I remember doing that back in 1992 or so. It's 20 years later and I still can't do that in Windows (not without memorizing a 3 digit code).

I love Macs too! However, they suck for mods!
 
The only reason it'd be doing that is if the mod has trouble recognizing the file name. Which means it's not linked correctly or it's not set to import.

That's the only reason why it wouldn't work. Are the spellings identical?
 
I would believe so.... you are a mod master... could you check please?
I wouldn't really know what to check or what would be wrong.

The most updated file is attached to this thread.
 
Okay, well, um...hm...

I'm receiving a crash upon loading up the civ, so I can't poke around in-game to see if anything is off.

Then, I tried numerous things with the kublai.dds. The game simply refuses to want to load that file. I'm going to reassign it a different texture, see if that works.

Also, the _scene file you included in the main post was corrupted, I had to make a new file with new text and stuffs.

I think I know why it's crashing, your ArtDefineTag for the civilization was wrong. I changed it to ART_DEF_CIVILIZATION_CHINA, hopefully that'll fix the crash. As for kublai.dds, I have no clue???

EDIT: Well the game reads yuan.dds fine. I'm thinking kublai.dds is corrupted. Make a new image, convert it to a .dds using GIMP. You should be fine then.

As for the crash, are you experiencing that on the Mac? That might be a problem from Mac -> PC. I dunno what's causing the crash, nor do I know if you're having them because from what I've seen you haven't reported one?
 
I'm receiving a crash upon loading up the civ, so I can't poke around in-game to see if anything is off.

I know, because the kublai.dds file.

Then, I tried numerous things with the kublai.dds. The game simply refuses to want to load that file. I'm going to reassign it a different texture, see if that works.

Also, the _scene file you included in the main post was corrupted, I had to make a new file with new text and stuffs.

Can you post that file here?

I think I know why it's crashing, your ArtDefineTag for the civilization was wrong. I changed it to ART_DEF_CIVILIZATION_CHINA, hopefully that'll fix the crash. As for kublai.dds, I have no clue???

Where did you change this? In kublai.xml or the Kublai_Scene.xml?

Well the game reads yuan.dds fine. I'm thinking kublai.dds is corrupted. Make a new image, convert it to a .dds using GIMP. You should be fine then.

The only reason yuan.dds is now working is because Androrc the Orc helped me by saying my dimensions were off. I will try GIMP now, though for kublai.dds.

As for the crash, are you experiencing that on the Mac? That might be a problem from Mac -> PC. I dunno what's causing the crash, nor do I know if you're having them because from what I've seen you haven't reported one?

I am having the crash as well. It's all this kublai.dds file.
 
I think the scene file is what's messed up. @Putmalk, you said you created a new scene file?

This may be the key to fixing the kublai.dds. I just converted it in GIMP, and it still didn't work.
 
I think I've found the error. The art define tag of CIVILIZATION_YUAN is set to "Kublai_Scene.xml" (it should be something else, like "ART_DEF_CIVILIZATION_MONGOL". It is only LEADER_KUBLAI_KHAN's art define tag that should be set to "Kublai_Scene.xml".
 
in the kublai.xml?

EDIT: found what you are saying... went from this

Spoiler :
<Type>CIVILIZATION_YUAN</Type>
<Description>TXT_KEY_CIV_YUAN_DESC</Description>
<ShortDescription>TXT_KEY_CIV_YUAN_SHORT_DESC</ShortDescription>
<Adjective>TXT_KEY_CIV_YUAN_ADJECTIVE</Adjective>
<Civilopedia>TXT_KEY_CIV_YUAN_PEDIA</Civilopedia>
<CivilopediaTag>TXT_KEY_CIV5_YUAN</CivilopediaTag>
<DefaultPlayerColor>PLAYERCOLOR_YUAN</DefaultPlayerColor>
<ArtDefineTag>Kublai_Scene.xml</ArtDefineTag>
<ArtStyleType>ARTSTYLE_MIDDLE_EAST</ArtStyleType>
<ArtStyleSuffix>_AFRI</ArtStyleSuffix>
<ArtStylePrefix>AFRICAN </ArtStylePrefix>
<PortraitIndex>0</PortraitIndex>
<IconAtlas>CIV_COLOR_ATLAS_YUAN</IconAtlas>
<AlphaIconAtlas>CIV_ALPHA_ATLAS</AlphaIconAtlas>
<MapImage>yuan.dds</MapImage>
<DawnOfManQuote>TXT_KEY_CIV5_DAWN_YUAN_TEXT</DawnOfManQuote>
<DawnOfManImage>kublai.dds</DawnOfManImage>


To this
Spoiler :
<Type>CIVILIZATION_YUAN</Type>
<Description>TXT_KEY_CIV_YUAN_DESC</Description>
<ShortDescription>TXT_KEY_CIV_YUAN_SHORT_DESC</ShortDescription>
<Adjective>TXT_KEY_CIV_YUAN_ADJECTIVE</Adjective>
<Civilopedia>TXT_KEY_CIV_YUAN_PEDIA</Civilopedia>
<CivilopediaTag>TXT_KEY_CIV5_YUAN</CivilopediaTag>
<DefaultPlayerColor>PLAYERCOLOR_YUAN</DefaultPlayerColor>
<ArtDefineTag>ART_DEF_CIVILZATION_MONGOL</ArtDefineTag>
<ArtStyleType>ARTSTYLE_MIDDLE_EAST</ArtStyleType>
<ArtStyleSuffix>_AFRI</ArtStyleSuffix>
<ArtStylePrefix>AFRICAN </ArtStylePrefix>
<PortraitIndex>0</PortraitIndex>
<IconAtlas>CIV_COLOR_ATLAS_YUAN</IconAtlas>
<AlphaIconAtlas>CIV_ALPHA_ATLAS</AlphaIconAtlas>
<MapImage>yuan.dds</MapImage>
<DawnOfManQuote>TXT_KEY_CIV5_DAWN_YUAN_TEXT</DawnOfManQuote>
<DawnOfManImage>kublai.dds</DawnOfManImage>



I changed the error to what you said, but still the error. I think it's in what Putmalk said about the Kublai_Scene.xml file.
 
I just checked the file and indeed that's very probable. These are the contents of your file:

Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?mso-application progid="Word.Document"?>
<w:wordDocument xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:sl="http://schemas.microsoft.com/schemaLibrary/2003/core" xmlns:aml="http://schemas.microsoft.com/aml/2001/core" xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" w:macrosPresent="no" w:embeddedObjPresent="no" w:ocxPresent="no" xml:space="preserve"><o:DocumentProperties></o:DocumentProperties><w:fonts><w:defaultFonts w:ascii="Times New Roman" w:fareast="Times New Roman" w:h-ansi="Times New Roman" w:cs="Times New Roman"/></w:fonts><w:docPr>w:defaultTabStop w:val="720"/></w:docPr><w:body><wx:sect><w:p><w:pPr></w:pPr><w:r><w:rPr><w:rFonts w:ascii="Courier" w:h-ansi="Courier" w:cs="Courier"/><wx:font wx:val="Courier"/><w:sz w:val="26"/><w:sz-cs w:val="26"/></w:rPr><w:t>&lt;LeaderScene FallbackImage="kublai.dds"&gt;</w:t></w:r></w:p><w:p><w:pPr></w:pPr><w:r><w:rPr><w:rFonts w:ascii="Courier" w:h-ansi="Courier" w:cs="Courier"/><wx:font wx:val="Courier"/><w:sz w:val="26"/><w:sz-cs w:val="26"/></w:rPr><w:t>&lt;/LeaderScene&gt;</w:t></w:r></w:p><w:p><w:pPr></w:pPr><w:r><w:rPr><w:rFonts w:ascii="Courier" w:h-ansi="Courier" w:cs="Courier"/><wx:font wx:val="Courier"/><w:sz w:val="26"/><w:sz-cs w:val="26"/></w:rPr><w:t></w:t></w:r></w:p><w:sectPr><w:pgSz w:w="12240" w:h="15840"/><w:pgMar w:top="1440" w:right="1440" w:bottom="1440" w:left="1440"/></w:sectPr></wx:sect></w:body></w:wordDocument>

And it should be just:

Code:
<LeaderScene FallbackImage="kublai.dds">
</LeaderScene>

What text editor did you use?
 
TextEdit.... my file shows what you want it to be. I have a feeling that's from Mac-PC crossover.

<LeaderScene FallbackImage="kublai.dds">
</LeaderScene>
 
This is possibly true, but then why would I have the issue? The kublai.dds file isn't working for me, either.

Well, you could just edit the Kublai_Scene.xml file to what you need it to be.
 
Is it possible for anybody to take ALL the SDK tools/applications, put them in a folder, compress them into a .zip file, and then post them? They could help me figure out the issue here.
 
I also have another theory...... the md5 code that I uploaded may not be correct and Civ5 may not be reading that part of the .modinfo file so then the "kublai.dds" file is failing.
 
No, the game is not crashing because kublai.dds is wrong. I've had numerous times where the .dds's wouldn't load but the game loaded up fine.
 
Then what is wrong with Kublai.dds?

If nothing is wrong with it, then why do we keep getting a texture error?
 
I think I know exactly what's wrong.

Give me a couple minutes.

When I was creating the .modinfo file, I just used the md5 checksum for the DoM image that the original modder used. The checksum of kublai.dds is not imported, I'm getting it right now.

Even with the correct md5 checksum, it's STILL not working.

Any ideas?
 
At this point, I don't know what's wrong with the .dds file.

The .dds file will work as long as it's properly inserted into the mod, and set to be imported into the VFS. That's pretty much all that's required for it to work.

A failing .dds won't cause a mod to crash. A crash in a civilization mod is most likely caused by having an improper scene file (which needs to be imported, as well, btw).

As I said, my final guess would be an error that is caused by the Mac...other than that, I'm empty for ideas. It just refuses to work. Trust me, I'm confused as well.

Sorry mate, but there's not much more I can do.

Did you generate the .dds in GIMP? Or did you use some other method?
 
Back
Top Bottom