Author Topic: particle xml isn't validated  (Read 2157 times)

ZaRo

  • Guest
particle xml isn't validated
« on: 3 November 2009, 10:17:33 »
If you type "<trajectory type="spiral2">" in the particle_proj2.xml (from archmage) the game crashes the first time you fire off the spell.

Best regards
ZaRo

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Re: particle xml isn't validated
« Reply #1 on: 3 November 2009, 12:57:47 »
Well there is no such thing as "spiral2", why did you put it in there?
Egypt Remastered!

Proof: Owner of glest@mail.com

ZaRo

  • Guest
Re: particle xml isn't validated
« Reply #2 on: 3 November 2009, 13:09:40 »
Well there is no such thing as "spiral2", why did you put it in there?

I know :) That's the whole point of my post, that I should get an error when I type junk into the xml files (it's called fuzzy testing, and yes, it should not be done by hand, but I'm bored).

The general idea is to have a list of things that I can put in the xml files without glest crapping out on me. (Documentation, anyone?)

Best regards
ZaRo

silnarm

  • GAE Team
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: particle xml isn't validated
« Reply #3 on: 3 November 2009, 19:49:14 »
I know :) That's the whole point of my post, that I should get an error when I type junk into the xml files (it's called fuzzy testing, and yes, it should not be done by hand, but I'm bored).

The general idea is to have a list of things that I can put in the xml files without glest crapping out on me. (Documentation, anyone?)

https://docs.megaglest.org/XML_Definitions

Interesting crash though, it must be testing the string only when used, dodgy.

« Last Edit: 18 June 2016, 19:09:17 by filux »
Glest Advanced Engine - Code Monkey

Timeline | Downloads

ZaRo

  • Guest
Re: particle xml isn't validated
« Reply #4 on: 9 November 2009, 09:48:41 »
I know :) That's the whole point of my post, that I should get an error when I type junk into the xml files (it's called fuzzy testing, and yes, it should not be done by hand, but I'm bored).

The general idea is to have a list of things that I can put in the xml files without glest crapping out on me. (Documentation, anyone?)

...

Interesting crash though, it must be testing the string only when used, dodgy.

Thank you. Any idea when it will be fixed?

Best Regards
ZaRo

hailstone

  • GAE Team
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Re: particle xml isn't validated
« Reply #5 on: 9 November 2009, 11:43:45 »
In GAE trunk r306 it will say "Exception: Unknown particle system trajectory: spriral2". We have replaced xerces with TinyXML which doesn't have any schema validation but we should have schema files so that it can be validated externally.

Is this the kind of error you are after?
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

ZaRo

  • Guest
Re: particle xml isn't validated
« Reply #6 on: 9 November 2009, 12:50:32 »
In GAE trunk r306 it will say "Exception: Unknown particle system trajectory: spriral2". We have replaced xerces with TinyXML which doesn't have any schema validation but we should have schema files so that it can be validated externally.

Is this the kind of error you are after?

If it's done when loading a map, yes, then it's exactly what I'm after.

Eternal validation? So you run 'validate' on your xml files and it tells "File abc.xml contains error "blah" at line Bleh"? That would be soooooo awsome! Keep that going :D

Best regards
ZaRo

 

anything