-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any plans on adding a schema for modDesc.xml
?
#12
Comments
It would be great to have one. I don't really have the time to work on it right now, but if you want to get started on documenting the different elements of the XML file, it would greatly help out! |
I migth give it a shot.. But as you know most of it is barely documented - which is the very reason for this repository to exist :D |
Update: I created a
I choose them on purpose because they cover maps, vehicles, placeables and more specialized mod functions ("scripts"). After fetching them with BUT one thing puzzles me: the xsd schema don't seem to replicate the exact xml hierarchy (I also noticed this in other files): when opening the file in VisualStudio2015 (my xsd validator ;) it shows the xsd elements hierachy: Below is my generated xsd file: packed as zip, since direct xsd upload is not allowed on github |
@LukeV1 Cool. Its been a while since I worked on this, so I can't remember how everything works TBH. XSD files are kinda scary. What do you mean about XSD not being uploadable through GitHub? Can you not fork this repo and make your own fork with the changes? I believe the reason that you are seeing multiple top level items is because some elements are used in more than one place, so they are placed in the top level and re-used multiple times. For example, there are two To save space, the I would also recommend you use a couple of different types of mods. Since both mods you used are for maps, the generated XSD will only contain elements necessary to define a map mod. |
I just referred to attaching the file to a comment here. But you are right, I am supposed to fork it. I'll do that in the next days.
I noticed that :D.
Actually I did this as mentioned in my last comment above: I choose them on purpose because they cover maps, vehicles, placeables and more specialized mod functions ("scripts"). These files where the only ones I was 100% sure they were from GIANTS and therefore (hopefully!) follow their xml-guidelindes. Wich was the main reason I didn't run much more mods through trang for xsd generation. |
Hi there,
I'm back again with another question.. But first of all a big thank you for publishing this repo! It has a lot of potential to ease out mod development!
Details
Each mod must contain a
modDesc.xml
file, containing basic information about the mod and itsstoreItems
. It would be great if there is also a validation schema for this file!The text was updated successfully, but these errors were encountered: