UNID Clash detection change in 1.04

Post ideas & suggestions you have pertaining to the game here.
Post Reply
User avatar
Star Weaver
Militia Commander
Militia Commander
Posts: 311
Joined: Sun Nov 07, 2010 10:20 pm
Location: . . . between the stars and the warm black sky . . .

Hi! We've found a mod that causes a unid clash in 1.04 but not in 1.03, here: http://xelerus.de/index.php?s=mod&id=305

Here's a copy of the XML from the mod here: http://transcendence.pastebin.com/Frahs6fG

Yeah, the code is old and not very well made, but...

The issue seems to be that it uses the same unid for an <Image> root level tag and a <ShipClass>.

Note that using the same unid for the Extension and the Anything Else doesn't cause an error.

From what I've read on the forums, some modders discovered that the game keeps several different unid spaces (for extensions, design types, images, and sounds, I belive), and started using this as a way to conserve their unid ranges. Apparently it's not been much of an issue as this is the first mod that's caused an error, but...

I'd like a clarification for what we SHOULD be doing with unids and consideration on weather overlapping ranges of incompatible UNID uses is a good idea, discussion, debate, an opera, whatever. :)

I think this change didn't make it into a tracker item, either?
User avatar
alterecco
Fleet Officer
Fleet Officer
Posts: 1658
Joined: Wed Jan 14, 2009 3:08 am
Location: Previously enslaved by the Iocrym

Personally I like the new behaviour. It is not as ambiguous as the old one.

Since it is breaking mods though, it might be worth only toggling this behaviour on for mods with a version="1.04" or higher attribute.
User avatar
PKodon
Militia Lieutenant
Militia Lieutenant
Posts: 127
Joined: Sat Apr 18, 2009 6:03 pm
Location: "Minocs. I've got a baaad feeling about this.... This is no cave!"

Okay, I don't know who first discovered it, but I'm the first that I know of.

Now that you've mentioned this overlapping UNID space issue, I'd like some sort of explanation of just what that is, and what it means to us now. How many UNID spaces does Transcendence have and what kinds of things does this affect (that is, what categories of things does each UNID space cover?
"Don't ask ..., I don't wanna know, and I don't wanna care!" - PK
Meet us on IRC --> Image
"... the hornet battlepod is the closest we have ingame to flying into battle in a wheelbarrow
with a bathtub nailed upside down to the top of it to provide armor."
- The Shrike
User avatar
Ttech
Fleet Admiral
Fleet Admiral
Posts: 2767
Joined: Tue Nov 06, 2007 12:03 am
Location: Traveling in the TARDIS
Contact:

I probably will have to update my unid database thingy.
Image
Image
george moromisato
Developer
Developer
Posts: 2998
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

I would like to move to a system where UNIDs are truly unique for all types. It was a bug (or rather, inconsistent design) that allowed bitmaps to have a separate UNID space.

Once I moved bitmaps to use the design type system, I broke that "feature".
User avatar
PKodon
Militia Lieutenant
Militia Lieutenant
Posts: 127
Joined: Sat Apr 18, 2009 6:03 pm
Location: "Minocs. I've got a baaad feeling about this.... This is no cave!"

Well, it's probably not a problem for most modders, but I could see it as a problem for a few of the more prolific modders.

Again, how many UNID spaces are/were there in Transcendence? Are graphics the only things affected if you move to a single UNID space?
"Don't ask ..., I don't wanna know, and I don't wanna care!" - PK
Meet us on IRC --> Image
"... the hornet battlepod is the closest we have ingame to flying into battle in a wheelbarrow
with a bathtub nailed upside down to the top of it to provide armor."
- The Shrike
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

The issue seems to be that it uses the same unid for an <Image> root level tag and a <ShipClass>.

Note that using the same unid for the Extension and the Anything Else doesn't cause an error.
yeah, this is a good direction to real uniqueness of UNIDs.

What about sounds ? Can we still use the "feature"?
http://wiki.neurohack.com/transcendence/trac/ticket/241
Post Reply