Bug: Crash on load if comment in XML header (v0.97a)

Post ideas & suggestions you have pertaining to the game here.
Post Reply
User avatar
Karl
Militia Lieutenant
Militia Lieutenant
Posts: 219
Joined: Fri Jul 14, 2006 11:47 pm

If there is a comment between the XML tag and the doctype tag, or between the doctype and TranscendenceExtension tags, the game crashes on load with no error message.

Example:

Code: Select all

<?xml version="1.0" ?>

<!-- This comment causes a crash. -->

<!DOCTYPE TranscendenceExtension
[
...
]>

<!-- This comment also causes a crash. -->

<TranscendenceExtension UNID="&unidExtension;" version="0.97">
~
[Grabs a box of batteries.] The power is mine! MINE! Ah hahaha! AHHHH HAHAHA!
User avatar
goat not sheep
Militia Captain
Militia Captain
Posts: 669
Joined: Fri May 19, 2006 8:36 pm
Location: ...
Contact:

Well...I don't know anyone who will put a comment there...
>.<
User avatar
Karl
Militia Lieutenant
Militia Lieutenant
Posts: 219
Joined: Fri Jul 14, 2006 11:47 pm

Well, it seems like a good place to put general comments about a mod.
~
[Grabs a box of batteries.] The power is mine! MINE! Ah hahaha! AHHHH HAHAHA!
Yugi
Fleet Officer
Fleet Officer
Posts: 1027
Joined: Sun Mar 05, 2006 8:21 am

I think this might be why I can't get my KensaiCorp mod to work, thanks! :)
User avatar
FAD
Militia Captain
Militia Captain
Posts: 732
Joined: Thu Aug 10, 2006 5:33 am
Location: Area 51

Code: Select all

<?xml version="1.0" ?> 
<!DOCTYPE TranscendenceExtension 
[ 
... 
]> 

<TranscendenceExtension UNID="&unidExtension;" version="0.97">

<!-- Placing comments here will not cause a crash. --> 
...and is easily seen by anyone viewing the XML.
george moromisato
Developer
Developer
Posts: 2998
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

Thanks for the report. I'll see if it is easy to fix in the next release. Thanks!
User avatar
goat not sheep
Militia Captain
Militia Captain
Posts: 669
Joined: Fri May 19, 2006 8:36 pm
Location: ...
Contact:

It doesn't even have to be fixed... I do want a comment above xmlversion= tag causing crash to be fixed...if possible...as that;'s the obvious place to place commetns
>.<
Post Reply