Tool: XSD (xml schema)

4 posts / 0 new
Last post
#1
Tool: XSD (xml schema)

XSD/Schema for neo scavenger xml files.

When used, this will help you find errors in your xml files that computers don't like. Normally, noobs find mistakes in their mods/xml by eye...which means alot of errors in their code never gets found because something is blending in with all that visual clutter like <column name"conditions"></column>

well this XSD makes spotting those mistakes instant, because a big warning will pop up saying you dun screwed up.

https://hastebin.com/rujejasuno.xml

Using it can be a bit annoying. on notepad++ you need to get the plugin manager working again, and download XML Tools. This plugin will have a "validate now" option, and it'll be happy to tell you all that's wrong. thing is, it kinda sucks because it doesn't take you to the line the problem occurred. i suggest visual studio for this instead, but you might want to look around on the web instead for XML Schema/XSD Validators. Such as the site called Liquid technologies. lemme know if you need help with this.

but to give you a real-world example of why you want this...

see if you can spot the error with this code in 10 seconds, and be honest.
https://i.imgur.com/SoiujiI.png

now with an XSD on visual studio
https://i.imgur.com/ereXKh1.png

"ten seconds? you rigged this test Layarion" no, i actually didn't if anything, an error that can't be spotted in an instant is a problem, and this test gave you more time than is reasonable. Coders make mistakes, often. Not only that, mistakes are hard to spot. Anyone who thinks taking extra steps to prevent, stop, or spot mistakes either has code that isn't meant to ever be used, or hasn't noticed the trouble it's going to cause them...yet.

so back to the second image. That cryptic message, when double clicked on, takes me to that line and let's me see the squiggly line underneath the extra > that doesn't belong.

I've had this mod for years, and i have no idea how long that error has been there. who knows what kind of silent and not obvious havoc it's been causing in my game.

OverHaul Mod
DevKit is an upgraded BBC mod.
Improve your mods.

This XSD sounds like an awesome tool for when I get back into mucking around with this game.

Tiny problem, all the links send me right back to this page.

When one's bedroom door hands one the doorknob, it's a very strange thing indeed.

Got it. Had to highlight the link and rightclick context menu for the "go to [link]" option.

When one's bedroom door hands one the doorknob, it's a very strange thing indeed.

ya i don't know why it's doing that. think i'll just remove the click option and make it plain text.

OverHaul Mod
DevKit is an upgraded BBC mod.
Improve your mods.