A problem adding a new improvement.

Peuri

Game
Joined
Feb 11, 2005
Messages
673
Location
Not here
A couple of weeks back I got interested in adding some new units to various mods that I played, for my own pleasure. Then I found Fall from Heaven (absolutely amazing mod by the way.) So I played it and found out that there is a dark elf -sort of -race. I was very happy and started adding some units found in these forums and edited their skins a bit with a try out version of photoshop 7.

All went until I started to want a bit more. I added a new terrain type (ashlands *köh*Morrowind*köh*) and it looked kind of nice (just darkened the tundra from vanilla civ 4.) Then I added a salt rice resource there too, but then I noticed that since I had simply copied tundra's base and edited a it bit the areas with ashands were mostly useless. I could have allowed like cottage improvements to be build there, but it didn't look nice.

So I wanted to add a new improvement. I copied the art from tribal village and made it a little darker etc. Then I edited some XML files (below.) But now when I add it to the game I get a heap loads of errors and the red and green face above the cities' names have disappeared. Nothing seems to be wrong on those XML files. The ashcamp is there like any other improvement without any graphical errors or anything visible. Then I removed the new improvement and the errors were gone.. Along with the smiley faces..

I edited the following XML files and the camp is in the game, but the smiley faces are gone:

Art/CIV4ArtDefines_Improvement
Terrain/CIV4ImprovementInfos
Text/CIV4GameText_FFH2
Units/CIV4BuildInfos
Units/CIV4UnitInfos

(Is there any other files that I have to edit to add a new improvement?)

The errors are as follows:

Tag: in info class was incorrect
Current XML file is: Terrain/Civ4ImprovementInfos.cml

(That comes four(4) times)

I don't know if this has something to do with the mod or something. And also if it is considered evil here to edit mods for my own use or something like that I am very sorry. :sad:
 
Upload the file(s) that gives you errors here.
 
hmm.. that error sound ominous like one I had...

Are you sure all it says is: Tag: in info class was incorrect
Current XML file is: Terrain/Civ4ImprovementInfos.xml ??

Reason I am asking is because I had a similar problem I talked about in another topic. My error was like this:

Tag: ` in info class was incorrect
Current XML file is: CIV4TechInfos.xml

(Although the spaces above aren't displaying) that character is not a standard apostrophe... it is ASCII Value 96. The apostrophe next to the enter key is: '

Basically notepad decided to put this in my tech file and then not realizing it I ended up copying it and pasting it in another area of the file so the error started happening twice. :mad:

So I think you should run the mod again and make sure what character is really displaying there in the message, find the ASCII value for it, and do a search of that particular file it is in. ;)
 
I looked at it, and it didn't say anything like that. Thanks for the advice though. :) It looked like this:
 

Attachments

  • nimetön.JPG
    nimetön.JPG
    33.7 KB · Views: 88
Peuri said:
I looked at it, and it didn't say anything like that. Thanks for the advice though. :) It looked like this:


Well it might still be related to my problem...

I just looked up the ASCII table and low and behold there is another value for a space.

http://www.lookuptables.com/

Scroll to the bottom and you'll see value 255 is a blank space. (Not the spacebar on the keyboard.)

To do a search for this, open up the CIV4ImprovementInfos.xml file with notepad or wordpad, and do a search. Press down ALT, and hit 255 on the numpad. This will enter that character in the search window and then click find. Hopefully it will find where this is.

Let me know if this works. ;)
 
I did what you adviced me to do, but I didn't find what you said to search for. But! I found out why the faces disappear. It was because of my salt rice resource. After I disapled that resource the faces came back.
 
Well. I did the improvement again (I should have done that before, but as I said I thought that there was nothing wrong there) and it works fine now. I don't know what was wrong with it since I didn't see anything wrong. But I must have missed something. Thanks for your help everyone!
 
Back
Top Bottom