| General | Hosted Sites | Civ5 | CivRev | Civ4Col | Civ4 | Civ3 | Civ2 | Civ1 | Misc | Marketplace |
![]() |
|
|
Welcome to Civilization Fanatics' Center. You are currently viewing our site as a guest which gives you limited access to our site features. By joining our free community, you will be able to participate in the discussions, search the forum, send private messages, vote in polls, upload your own screenshots to the gallery, and access many other special features. Registration is fast, simple and absolutely free, so sign up today! If you have any problems with the registration process or your account login, please contact support. |
|
|||||||
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Chieftain
Join Date: May 2007
Posts: 14
|
I am getting this error after editing the units with wordpad.
Failed loading xml file xml\units/civ4unitinfos.xml [.\FXml.cpp.133] Error parsing xml file File: xml\units/civ4unitinfos.xml Reason: Element content is invalid according to the DTD/ Schema Expecting {x-schema:Civ4unitschema.xml}PrereqBonuses Line 10811, 15 Source: <BonusType>Bonus_Uranium</BonusType> Load xml failed for units/civ4unitsinfos.xml Current xml: units/civ4buildinfos Then it goes on to tell me that the class infos for all the Country unit specifics are wrong i.e. navyseal-american, panzer-german, cossack-russian etc etc. Have I forgotten to do something somwhere? Please help! Thank you.
|
|
|
|
|
|
#2 | |
|
Emperor
Join Date: Mar 2006
Location: Germany
Posts: 1,267
|
You've made little little mistake in the civ4unitinfos. Maybe you mispelled something or forgot a "/". Now the game is unable to load this file. So the game has no info about units. And this leads to probs with other files...
the solution: Quote:
__________________
(...) |
|
|
|
|
|
|
#3 |
|
Emperor
Join Date: May 2006
Location: Middle of Cyberspace
Posts: 1,554
|
Well, cIV is case sensitive so maybe try changing <BonusType>Bonus_Uranium</BonusType> to <BonusType>BONUS_URANIUM</BonusType> and it might work.
__________________
I'm Updating My MOD COMPs![]() |
|
|
|
|
|
#5 |
|
Chieftain
Join Date: May 2007
Posts: 14
|
I think it has something to do with the bonuses I am trying to use to 'have' to build the unit. i.e.: the destroyer; I want to have whomever is building the ship to have to have the resources iron, oil, and uranium. I don't know if I have put them in the wrong perameter or what. I still don't understand why all the classes are messed up. Thanks for the help everyone.
This is my unitinfos file(please don't make fun of it, it is mine ) :http://forums.civfanatics.com/upload...4UnitInfos.rar Last edited by CivMarine; May 24, 2007 at 02:25 PM. |
|
|
|
|
|
#6 |
|
Deity
Join Date: Jan 2006
Posts: 2,267
|
You shoudl use notepad instead of wordpad, I don't know if it makes a difference or not but I think wordpad causes problems.
|
|
|
|
|
|
#7 | |
|
Emperor
Join Date: Mar 2006
Location: Germany
Posts: 1,267
|
I have found the bug:
Quote:
But you can have several "PrereqBonuses": <BonusType>BONUS_IRON</BonusType> <PrereqBonuses> <BonusType>BONUS_OIL</BonusType> <BonusType>BONUS_URANIUM</BonusType> <BonusType>NONE</BonusType> <BonusType>NONE</BonusType> </PrereqBonuses>
__________________
(...) Last edited by Chamaedrys; May 24, 2007 at 03:03 PM. |
|
|
|
|
|
|
#8 |
|
Chieftain
Join Date: May 2007
Posts: 14
|
Thanks a lot Chamaedrys. What about the unit upgrade? Can I erase that without changing the sdk?
|
|
|
|
|
|
#9 | ||
|
Emperor
Join Date: Mar 2006
Location: Germany
Posts: 1,267
|
Quote:
Quote:
__________________
(...) |
||
|
|
|
|
|
#10 |
|
Chieftain
Join Date: May 2007
Posts: 14
|
That's what I figured. Just thought I would make sure. I hate to ask more of you since you have helped me so much already, but can I add upgrades? i.e.
unit swordsman: <UnitClassUpgrade> <UnitClassUpgradeType>UNITCLASS_KNIGHT</UnitClassUpgradeType> <bUnitClassUpgrade>1</bUnitClassUpgrade> </UnitClassUpgrade> Sorry I am somewhat a noob, I know more than most, but not as much as many. Thanks for putting up with my annoyance. Last edited by CivMarine; May 24, 2007 at 03:41 PM. |
|
|
|
|
|
#11 |
|
Caveman2Cosmos Modder
|
See told you someone MIGHT help, but you always get those few idiots that have nothing better to do than rate MODs with a 1 star, IDIOTS, LOL
Glad you got some help!!!
__________________
Caveman 2 CosmosCaveman2Cosmos Forum: Project and Mod Development Forum HERE |
|
|
|
|
|
#12 |
|
Chieftain
Join Date: May 2007
Posts: 14
|
CASE CLOSED! Thanks for all the help everyone. This is a great site!
|
|
|
|
![]() |
| Bookmarks |
|
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| XML Load Error civ4gametext_objects_bts.xml | Oddible | Civ4 - Bug Reports | 2 | Aug 11, 2008 04:37 PM |
| Help editing XML with MS XML Notepad 2007 | Acronym2 | Civ4 - Creation & Customization | 4 | Jun 22, 2008 11:11 PM |
| xml editing help | sabres77 | Civ4 - General Discussions | 2 | Sep 06, 2007 07:56 PM |
| XML parse error in CIV4PlotLSystem.xml--FIX | largeprimenumbe | Civ4 - Technical Support | 0 | Mar 03, 2007 09:50 AM |
| XML Editing. | D'Artagnan59 | Civ4 - Technical Support | 1 | Sep 18, 2006 07:15 AM |