Home » PLAYER'S HQ 1.13 » JA2 Complete Mods & Sequels » AIMNAS » Editing Items.xml causes Runtime Error (Plus another question)
Editing Items.xml causes Runtime Error[message #350361] Thu, 20 July 2017 06:03 Go to next message
CaptainPanzer

 
Messages:13
Registered:August 2014
Location: Las Vegas, Nevada, USA
Hello,

Starting off, I am running JA2 1.13 version 8408 (GameDir 2364), with the most recently updated AIMNAS (can't recall version, but it was the latest unstable build as it was downloaded 5/25/2017). I have an original backup of the Items.xml that works fine as well.

I have edited the Items.xml, adding more weapons and gear not normally sold on Bobby Rays by adding "<BR_NewInventory>5</BR_NewInventory>". However, upon starting the game, I get a runtime error:

"Runtime Error

File: Init.cpp / Line: 293 / Function: LoadExternalGameplayData

Items/Items.xml (red text)"

"File: Init.ccp / Line: 1465 / Function: InitializeJA2

Loading external data failed (red text)"

How can i fix this? Are there other factors (maybe <NotBuyable> is conflicting?>

Another question: is there any way to get XML Editor to work? The editor only starts up if I don't have AIMNAS, but refuses to start if AIMNAS is in the JA2 folder.

Thanks!
Re: Editing Items.xml causes Runtime Error[message #350362 is a reply to message #350361] Thu, 20 July 2017 10:45 Go to previous messageGo to next message
DepressivesBrot

 
Messages:3804
Registered:July 2009
Afaik the game doesn't really check for plausibility but it will go haywire over syntax. Best to load up your xml and an original side by side in a tool like winmerge and check for things like out of place opening/closing tags, dots or commas in integer attributes or missing/extraneous reserved characters like '<,>,/' in your edits.



Chat with us!
#bearpit on IRC
Discord
Get your latest 1.13 Builds
(Pls don't use my forum PMs for general game queries)


Re: Editing Items.xml causes Runtime Error[message #350364 is a reply to message #350362] Thu, 20 July 2017 17:16 Go to previous messageGo to next message
smeagol

 
Messages:2710
Registered:June 2008
Location: Bremen, Germany
Or do an auto xml syntax check with notepad ++. ;)


Re: Editing Items.xml causes Runtime Error[message #350368 is a reply to message #350361] Fri, 21 July 2017 13:10 Go to previous messageGo to next message
CaptainPanzer

 
Messages:13
Registered:August 2014
Location: Las Vegas, Nevada, USA
Sorry for the late reply; I will certainly try it out and report back later!
Re: Editing Items.xml causes Runtime Error[message #350372 is a reply to message #350368] Sat, 22 July 2017 02:50 Go to previous message
CaptainPanzer

 
Messages:13
Registered:August 2014
Location: Las Vegas, Nevada, USA
Got it! Some random invalid character (two D's in a black box) that my other XML Editor didn't pick up. And after removing it, it launches without error! Thank you Smeagol and DepressivesBrot!
Previous Topic: Sleeping mat
Next Topic: Is the full map ready?
Goto Forum:
  


Current Time: Thu Jun 21 18:58:22 EEST 2018

Total time taken to generate the page: 0.01059 seconds