Help a semi-experienced modder solve a simple issue

A place to discuss mods in development and concepts for new mods.
Post Reply
User avatar
Song
Fleet Admiral
Fleet Admiral
Posts: 2801
Joined: Mon Aug 17, 2009 4:27 am

Here's a mod. it's a basic test mod for an idea I had.

http://paste.neurohack.com/view/YLTcE/

This mod throws an incredibly unhelpful error message: "Extensions\FastFireTest.xml: Expected <TranscendenceAdventure>, <TranscendenceExtension>, <TranscendenceLibrary> or <TranscendenceModule> instead of <>"

While this tells me it's got something to do with the XML stuff that sets up the extension, me and ~3 other people in IRC haven't been able to spot what's actually causing this.


Anyone able to help out?
Mischievous local moderator. She/Her pronouns.
User avatar
Cygnus.X1
Militia Lieutenant
Militia Lieutenant
Posts: 245
Joined: Sun Feb 24, 2008 6:21 pm
Location: Elysium Fields... I mean System
Contact:

http://paste.neurohack.com/view/YRC6p/

After much tweaking I've managed to reduce the error message to "Invalid UNID" Image

I'll keep poking at this off and on today...

Code: Select all

<TranscendenceExtension UNID="0xDC4E8846" version="1.1">
Can't do UNIDs that way. Declare the UNID's hex-string in the DOCTYPE, then use the UNID text string instead.

Code: Select all

<!ENTITY unidExtension         "0xDC4E0000">

Code: Select all

<TranscendenceExtension UNID="unidExtension;" version="1.1" name="Shrike Cannon" credits="Shrike">
Also, it appears that the name attribute is now required. I believe the credit attribute is optional. Actually, it's not required.

...

So, all that being said, I can't for the life of me figure out why it's complaining about an invalid UNID now, but it's some kind of progress :mrgreen:

[edit]
I'm an idiot :D

Code: Select all

<TranscendenceExtension UNID="&unidExtension;" version="1.1" name="Shrike Cannon" credits="Shrike">
Forgot the "&" :oops:
It loads now, new paste coming up...
http://paste.neurohack.com/view/YSUnx/
User avatar
Song
Fleet Admiral
Fleet Admiral
Posts: 2801
Joined: Mon Aug 17, 2009 4:27 am

Transgeek managed to get it to work, but when he plugged the original XML into his copy of the game, it worked fine anyway. Backwards-compatability with mods has never been a Transcendence strongpoint (the main problem with my code is that I have no idea how mods are supposed to be set up now and I'm copy-pasting from old mods from the 1.04 days), but having differing levels of compatability with different copies of the same software is......new.
Mischievous local moderator. She/Her pronouns.
Post Reply