Please help me- explain these XML errors!

mrkingkong

Young Padawan
Joined
Apr 19, 2005
Messages
350
Location
Between fantasy and reality
UPDATED 19/02/07

Okay, file is uploaded so you can try the mod and see if you can find out what the error is, if you would be so kind.
Download is here

Okay, im having problems with the pop-ups which should come up to allow you choose new techs and what to build in a city (the blue one on the right-hand side).

If anyone could have a look and tell me what the problem is (graphics-related, i rekon) that would be fantastic.

The problem is the pop-ups which should appear on the right hand side. When you establish a city and the blue thing pops up, this causes a CTD with all civs except 3 (bizarre that these three work). This is also the case for the tech popup which also displays on the right hand side (sorry for the hazy description, hopefully fileplanet will approve my file in the next couple of days so you can take a look and see what the problem is for yourselves, hopefully).
Finally, the city view one of the civs that does work throws up the CityError.jpeg Python error below .

I havnt changed any units, and dont really have a clue what could cause it? Im thinking perhaps there is a limit to how many buildings you can have with the same graphic (currently they all are linked to one art define, granary i think)? Not sure about the techs problem, cause all graphics work fine in the pedia.
Please take a look at the files, and il show a screenie of the pop-up screen i mean (these dont display for cities and techs in my mod- screen taken from another mod iv got), and the error when trying to view city screen...

Thanks for your help,
mrkingkong
 

Attachments

  • CIV4ArtDefines_Building.txt
    CIV4ArtDefines_Building.txt
    12.4 KB · Views: 210
  • CIV4BuildingInfos.txt
    CIV4BuildingInfos.txt
    333.7 KB · Views: 52
  • popup.JPG
    popup.JPG
    106.4 KB · Views: 112
  • cityerror.JPG
    cityerror.JPG
    53.2 KB · Views: 87
No idea if they are permanently messed up, but I'm always shocked no one seems to use XML Marker when it's so easy and it catches your flubs! And it's free. :)
 
No idea if they are permanently messed up, but I'm always shocked no one seems to use XML Marker when it's so easy and it catches your flubs! And it's free. :)

Perhaps we didn't know it existed! Any ways, my XMLSpy trial ran out so I'll have to try this. Thanks woodelf.
 
Did you change something in the buildingInfo file??

Yeah is that a problem?

No idea if they are permanently messed up, but I'm always shocked no one seems to use XML Marker when it's so easy and it catches your flubs! And it's free.

Ye actually i didnt know anything about this. Will have a look into it- thanks Woodelf!

mrkingkong
 
Well the only way to fix a wordpad problem is to load the file in wordpad and copy all the text into an empty notepad file and save it as the xml and this should give an unformated file.
 
yeah, everytime i used to get that sibling memory thing it was from a building , but maybe not.

Yeah im now getting 29x -> Tag: in Info class was incorrect for the Civ4BuildingInfos file.

And im getting CTDs when i try to look at the city view, and when the techs should pop-up on the right hand side of the screen.
This is an art problem, but im not sure what it is!
(The art files have been a pain the the butt to me in the past, i remember!)

Well the only way to fix a wordpad problem is to load the file in wordpad and copy all the text into an empty notepad file and save it as the xml and this should give an unformated file.

I hate WordPad! Its official. I just trawled through my entire file in Notepadchanging everything (i.e. deleting /par, /tab, and fixing the start and end tags- DO NOT EVER USE WORDPAD FOR XML!)

thanks,
mrkingkong

PS. If you have any ideas about what my art problemis please share!
(I can send file if its easier)
 
Okay, iv included the two problem files at the top of the post, (in .txt format)

If anyone could have a look and tell me what the problem is (art-related) that would be fantastic.

The problem is that when you go to the city view (with all civs except one), it causes a CTD. I havnt changed any units or anything elsethat i think could have caused it.

Thanks for your help and patience,
mrkingkong
 
I figured that one out, but thanks anyway. It was because i used WordPad, which added a lot of "helpful" formatting such as /tab and /par, which Civ didnt like. Trawled through my entire file removing the formatting, so now it works.

Iv updated the first post with my current problems, if you want to have a look?

thanks,
mrkingkong

@Ploep: i cant get the Candy Guard working, button only shows up as a pink square and animations arent on the model in game- kind of "floats" about without moving its limbs. Can you send me a PM of how the art_def files should look plz? Thnx for your time :)
 
Art Definition:

<UnitArtInfo>
<Type>ART_DEF_UNIT_CANDY_WARRIOR</Type>
<fScale>0.44</fScale>
<fInterfaceScale>1.0</fInterfaceScale>
<NIF>Art/Units/CandyWarrior/maceman.nif</NIF>
<KFM>Art/Units/CandyWarrior/warrior.kfm</KFM>
<SHADERNIF>Art/Units/CandyWarrior/warrior_FX.nif</SHADERNIF>
<ShadowDef>
<ShadowNIF>Art/Units/01_UnitShadows/UnitShadow.nif</ShadowNIF>
<ShadowAttachNode>BIP Pelvis</ShadowAttachNode>
<fShadowScale>1.0</fShadowScale>
</ShadowDef>
<fBattleDistance>0.35</fBattleDistance>
<fRangedDeathTime>0.31</fRangedDeathTime>
<bActAsRanged>0</bActAsRanged>
<TrainSound>AS2D_UNIT_BUILD_UNIT</TrainSound>
<AudioRunSounds>
<AudioRunTypeLoop/>
<AudioRunTypeEnd/>
</AudioRunSounds>
</UnitArtInfo>

(I know warrior.kfm is probably wrong, but i tried maceman and that doesnt work either.)

Iv sorted the button problem, it seems i am an absolute and utter noob, i forgot to add the ".dds" to the back of the button name, didnt think it would make a difference (as it is a dds file anyway) but it does. So thats sorted. And the button looks great Ploep! :goodjob:
 
I have added in my MOD the gingerbread building(s), if you want to take a look and then change them to your set desire, hope they help and anything else that's there.

EDIT: I downloaded it, and all it does is give me a regular game of CIV4, not yours??
 
Back
Top Bottom