Home » MODDING HQ 1.13 » v1.13 Modding, Customising, Editing » v1.13 XML Customization » Unhandled error
Unhandled error[message #321012] Mon, 27 May 2013 21:32 Go to next message
Smigoz

 
Messages:19
Registered:March 2012
I tried to edit mortars out of the AI's gear (hate them! Razz) and now i'm getting this error every time i try to open XML Editor.

"Unhandled error.- Please report this error to the JA2 1.13 development team.

Error:
Column "uilndex" is constrained to be unique. Value "0" is already present."

I'm playing with SCI_unstable_Revision_6023, game was perfectly funtional before and still is, i just can't open XML editor.
Re: Unhandled error[message #321059] Tue, 28 May 2013 10:24 Go to previous messageGo to next message
JMich

 
Messages:580
Registered:January 2011
Location: Greece
This means a Data Error. In one of the XMLs (the one that has the error), you have 2 (or more) items with a uiIndex of 0. Find them, and fix the erroneous entries.
P.S. Did you modify them by hand or through the XML editor?
Re: Unhandled error[message #321110] Wed, 29 May 2013 03:55 Go to previous messageGo to next message
Smigoz

 
Messages:19
Registered:March 2012
By hand, i fixed the mistake with a bit of dirty work. Thanks anyway Smile
Re: Unhandled error[message #344974 is a reply to message #321110] Sun, 10 April 2016 10:23 Go to previous messageGo to next message
winehouse

 
Messages:91
Registered:October 2012
Having this problem. Column 'uiIndex' is constrained to be unique. Value '0' is already present.

Also, game will not start now: [9.70149] : ERROR : File : Init.cpp
Line : 1519
Location : InitializeJA2
Loading external data failed
File : Init.cpp
Line : 292
Location : LoadExternalGameplayData
Items\Items.xml

I looked in Items.xml for recurring uiIndex value of 0, but failed to find any.
Re: Unhandled error[message #344975 is a reply to message #344974] Sun, 10 April 2016 10:51 Go to previous messageGo to next message
silversurfer

 
Messages:2080
Registered:May 2009
The game says that there is more than one set of data with <uiIndex>0</uiIndex> or maybe <uiIndex>00</uiIndex> or something? A search for <uiIndex>0 should find these.



Wildfire Maps Mod 6.07 on SVN: https://ja2svn.mooo.com/source/ja2/branches/Wanne/JA2%201.13 %20Wildfire%206.06%20-%20Maps%20MOD

Re: Unhandled error[message #344977 is a reply to message #344975] Sun, 10 April 2016 11:05 Go to previous messageGo to next message
winehouse

 
Messages:91
Registered:October 2012
No, there are no duplicates. 1 Match.

Edit: It's like the end of the xml got cut off while saving.
Edit 2: Something like 50,000 lines got cut off some how. Attempting to Frankenstein the missing xml data.
Edit 3: Sorted Out...for now...
Edit 4: Still can't get XML editor to work.

[Updated on: Sun, 10 April 2016 16:18]

Re: Unhandled error[message #344985 is a reply to message #344977] Sun, 10 April 2016 17:13 Go to previous messageGo to next message
edmortimer

 
Messages:766
Registered:January 2015
Location: Home Free
DO NOT USE THE XML EDITOR. IT TRUNCATED YOUR FILE. IT IS DANGEROUS. IT SHOULD BE SHOT ON SIGHT.




Arulco Vacations Blog

Arulco Vacations Bears Pit Forum

Re: Unhandled error[message #346557 is a reply to message #344985] Tue, 09 August 2016 06:26 Go to previous messageGo to next message
Julix

 
Messages:91
Registered:June 2010
Location: Germany

What editor should we be using then? - I'm editing by hand with notepad ++ which works fine, but it's really not that handy for viewing/sorting/etc. -- What should I use for that?
Re: Unhandled error[message #346558 is a reply to message #346557] Tue, 09 August 2016 09:41 Go to previous message
ratpaz

 
Messages:122
Registered:April 2015
Location: Italy
Yeah XML is great for edit stuff, but is bugged now
Manually with notepad++ is the secure way, until and if the xml editor will get fixed.
But that will be most unlikely since the game get continuous new features, the editor need to be updated for almost every new feature added and i heard the creator of xml editor is missing from a long time.
Previous Topic: IMP Starting Items
Next Topic: AmmoTypes.XML Tags
Goto Forum:
  


Current Time: Tue May 23 11:46:58 EEST 2017

Total time taken to generate the page: 0.00813 seconds