Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Issues with XML file editing  (Read 1074 times)

Keltiknight

  • Bay Watcher
    • View Profile
Issues with XML file editing
« on: August 17, 2011, 12:03:52 am »

Well, I am trying to add a armor item, essentially, something that will make my leader less...squishy, so he does not die one round into combat, but, I did it right text wise (I think.), but when I open LCS now, I get an error:"Attempting to open filename: sitemaps.txt FAILED to load armors.xml!"
Also, I deleted what I added, and it works fine, here is my addition's XML text.

Spoiler (click to show/hide)

Also, if it helps, I did the editing in Wordpad and notepad...why do I think thats the issue, and if it is, what program do I have to use to edit the XML files correctly?
Thanks for any help you can give me. (I am about clueless with this kind of thing, most of the time.)
Logged
First things first.  You're all soulless husks of what might have once been decent human beings, drafted into a sort of moral apartheid from your better natures in the pursuit of things made out of cute animals.  I love it.-Corvidae

Kay12

  • Bay Watcher
  • Fighting for Elite Liberal values since 2009!
    • View Profile
Re: Issues with XML file editing
« Reply #1 on: August 17, 2011, 12:29:55 am »

For starters, Notepad shouldn't screw up with XML files, so I'm fairly sure it wasn't that.

The issue - your <name> tag is malformed. That's probably it...

(and it's Guy Fawkes ^^)
Logged
Try Liberal Crime Squad, an excellent Liberal Crime adventure game by Toady One and the open source community!
LCS in SourceForge - LCS Wiki - Forum thread for 4.04

Keltiknight

  • Bay Watcher
    • View Profile
Re: Issues with XML file editing
« Reply #2 on: August 17, 2011, 01:13:29 pm »

For starters, Notepad shouldn't screw up with XML files, so I'm fairly sure it wasn't that.

The issue - your <name> tag is malformed. That's probably it...

(and it's Guy Fawkes ^^)

Thanks for the help with that...but its still messed up, heres the new <name> tag...if its not notepad/wordpad, I am clueless on what is causing it...unless I accidentally messed something up with another item, by accident.  Gonna try the other version of LCS that I have (for some reason.) and see if trying it there works.

Spoiler (click to show/hide)

EDIT: tried to do it with the other copy of LCS, and it has the same issues.
« Last Edit: August 17, 2011, 01:25:09 pm by Keltiknight »
Logged
First things first.  You're all soulless husks of what might have once been decent human beings, drafted into a sort of moral apartheid from your better natures in the pursuit of things made out of cute animals.  I love it.-Corvidae

Steele

  • Bay Watcher
    • View Profile
Re: Issues with XML file editing
« Reply #3 on: August 17, 2011, 01:40:59 pm »

This is your problem:
<body_covering>
      <head>true</head>
      <conceals_face>true</conceals_face>
   </bodycovering>

This is your solution:
<body_covering>
      <head>true</head>
      <conceals_face>true</conceals_face>
   </body_covering>
Logged

Keltiknight

  • Bay Watcher
    • View Profile
Re: Issues with XML file editing
« Reply #4 on: August 17, 2011, 02:18:56 pm »

This is your problem:
<body_covering>
      <head>true</head>
      <conceals_face>true</conceals_face>
   </bodycovering>

This is your solution:
<body_covering>
      <head>true</head>
      <conceals_face>true</conceals_face>
   </body_covering>

Turns out I already did that on the first try...man, this is weird, nothing seems to work, and I KNOW its what I added that is messing it up, because if I delete it, it works as normal.
Logged
First things first.  You're all soulless husks of what might have once been decent human beings, drafted into a sort of moral apartheid from your better natures in the pursuit of things made out of cute animals.  I love it.-Corvidae

Kay12

  • Bay Watcher
  • Fighting for Elite Liberal values since 2009!
    • View Profile
Re: Issues with XML file editing
« Reply #5 on: August 17, 2011, 02:25:33 pm »

So, you've got that fixed too? Well, one more for your score: <assaultbonus>, not <assault_bonus>...
Logged
Try Liberal Crime Squad, an excellent Liberal Crime adventure game by Toady One and the open source community!
LCS in SourceForge - LCS Wiki - Forum thread for 4.04

Carlos Gustavos

  • Bay Watcher
    • View Profile
Re: Issues with XML file editing
« Reply #6 on: August 17, 2011, 02:53:19 pm »

Change your ampersands to &amp;
Logged

Keltiknight

  • Bay Watcher
    • View Profile
Re: Issues with XML file editing
« Reply #7 on: August 17, 2011, 03:06:40 pm »

Did all that, just now, still not working.
Logged
First things first.  You're all soulless husks of what might have once been decent human beings, drafted into a sort of moral apartheid from your better natures in the pursuit of things made out of cute animals.  I love it.-Corvidae

Kay12

  • Bay Watcher
  • Fighting for Elite Liberal values since 2009!
    • View Profile
Re: Issues with XML file editing
« Reply #8 on: August 17, 2011, 03:07:41 pm »

I'm losing track of all the changes, could you post the current version of your armor?
Logged
Try Liberal Crime Squad, an excellent Liberal Crime adventure game by Toady One and the open source community!
LCS in SourceForge - LCS Wiki - Forum thread for 4.04

Keltiknight

  • Bay Watcher
    • View Profile
Re: Issues with XML file editing
« Reply #9 on: August 17, 2011, 03:08:30 pm »

Turns out it WAS the body_covering issue, IT WORKS! Now to test it out ingame, thanks everyone for the help!
Logged
First things first.  You're all soulless husks of what might have once been decent human beings, drafted into a sort of moral apartheid from your better natures in the pursuit of things made out of cute animals.  I love it.-Corvidae

Kay12

  • Bay Watcher
  • Fighting for Elite Liberal values since 2009!
    • View Profile
Re: Issues with XML file editing
« Reply #10 on: August 17, 2011, 03:11:24 pm »

Oh, ok.
Logged
Try Liberal Crime Squad, an excellent Liberal Crime adventure game by Toady One and the open source community!
LCS in SourceForge - LCS Wiki - Forum thread for 4.04

Dwarven WMD

  • Bay Watcher
  • Amateur Aspiring Coder
    • View Profile
Re: Issues with XML file editing
« Reply #11 on: August 17, 2011, 03:53:02 pm »

The following is a basic summary of XML, but I do not recommend you read it if you take easy offense and have little knowledge of computer culture.
Spoiler (click to show/hide)
Logged
The Russian throws Steiner into a chair, screaming "I do not care about genetic research!"
The Russian pulls out a M1911!
The Russian screams "I am Viktor Reznov! And I, will, have, my, REVENGE!"
The Russian shoots Steiner between the eyes.
The Russian loses juice.