Scyth Posted April 16, 2020 Share Posted April 16, 2020 So as part of the great mess, my group of friends has dived into the wonderful world of post-apocalyptic zombie survival. We wanted to make the nights scarier, "What if at night, all zombies are feral." Here's the code as I've written it to change one entity group: <remove xpath="/entitygroups/entitygroup[id=ZombiesNight]/> <append xpath="/entitygroups"> <entitygroup name="ZombiesNight"> <entity name="zombieSpiderFeral" prob=".5"/> <entity name="zombieBoeFeral"/> <entity name="zombieJoeFeral"/> <entity name="zombieSteveFeral"/> <entity name="zombieMoeFeral"/> <entity name="zombieYoFeral"/> <entity name="zombieBusinessManFeral"/> <entity name="zombieArleneFeral"/> <entity name="zombieDarleneFeral"/> <entity name="zombieMarleneFeral"/> <entity name="zombieNurseFeral"/> <entity name="zombieSteveCrawlerFeral"/> <entity name="zombieFatHawaiianFeral"/> </entitygroup> </append> The error code I'm getting thrown is Error : '<', hexadecimal value 0x3C, is an invalid attribute character and it is line 7, position 2, which would be the <append Link to comment Share on other sites More sharing options...
Scyth Posted April 17, 2020 Author Share Posted April 17, 2020 More slamming my head against the wall and calling in a friend who codes who basically laughed at me because my issues were not paying close enough attention to closing tags and punctuation. So is there a better way to compile and test the code versus just simply loading it into mods and booting up? Link to comment Share on other sites More sharing options...
xyth Posted April 17, 2020 Share Posted April 17, 2020 Notepad++ has an xml plugin that helps validate your xml. Most of us use that to catch those kind of errors. Link to comment Share on other sites More sharing options...
StinOfSin Posted April 17, 2020 Share Posted April 17, 2020 There are a bunch online as well that let you just copy/paste in your code. They'll let you test for valid syntax, run commands on XML data sets, and do some other basic stuff. Just search "xpath validator" and the top few options should all work well enough. Good luck modding! Link to comment Share on other sites More sharing options...
Scyth Posted April 17, 2020 Author Share Posted April 17, 2020 Thanks for the advice, slowly beating my head against the problems till they fall down. Link to comment Share on other sites More sharing options...
StinOfSin Posted April 18, 2020 Share Posted April 18, 2020 Thanks for the advice, slowly beating my head against the problems till they fall down. Taking a cue from the zombies, I see… you have to admit, it gets results, eventually! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.