*
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
   News: Check out the latest Mods on the mods board!
 
  Home Search Login Register  
Pages: [1]
  Print  
Author Topic: particle xml isn't validated  (Read 916 times)
ZaRo
Swordman
*
Posts: 17

127.0.0.1 Come get some


View Profile
« on: November 03, 2009, 05:17:33 AM »

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
Logged

IsThisSiteSafe?
-Archmage-
Moderator
Airship
********
Posts: 4669


GC - Special Forces


View Profile Email
« Reply #1 on: November 03, 2009, 07:57:47 AM »

Well there is no such thing as "spiral2", why did you put it in there?
Logged

Hey there bot! Got my crosshairs on your head, step away slowly and say your prayers....... Mad Scientist
ZaRo
Swordman
*
Posts: 17

127.0.0.1 Come get some


View Profile
« Reply #2 on: November 03, 2009, 08:09:40 AM »

Well there is no such thing as "spiral2", why did you put it in there?

I know Smile 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
Logged

IsThisSiteSafe?
silnarm
GAE Team
Golem
********
Posts: 826



View Profile
« Reply #3 on: November 03, 2009, 02:49:14 PM »

I know Smile 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?)

http://glest.wikia.com/wiki/XML_Definitions

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

Logged
ZaRo
Swordman
*
Posts: 17

127.0.0.1 Come get some


View Profile
« Reply #4 on: November 09, 2009, 04:48:41 AM »

I know Smile 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
Logged

IsThisSiteSafe?
hailstone
GAE Team
Battle Machine
********
Posts: 1249


View Profile WWW
« Reply #5 on: November 09, 2009, 06:43:45 AM »

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?
Logged

Glest Advanced Engine - Project Coordinator
http://sourceforge.net/apps/trac/glestae/
ZaRo
Swordman
*
Posts: 17

127.0.0.1 Come get some


View Profile
« Reply #6 on: November 09, 2009, 07:50:32 AM »

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 Cheesy

Best regards
ZaRo
Logged

IsThisSiteSafe?
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Glest theme by Omega. Based on Diablos3 theme by Vaun using media by Josepzin.
Valid XHTML 1.0! Valid CSS!