Unable to use Corporate Command UNID strings (solved)

Freeform discussion about anything related to modding Transcendence.
Post Reply
NMS
Militia Captain
Militia Captain
Posts: 569
Joined: Tue Mar 05, 2013 8:26 am

I own Corporate Command and I've tried including

Code: Select all

<Library UNID="&unidCorporateHierarchyVol01;"/>
but it results in an error like:
Error parsing Extensions\Auton Bay Misc Slot.xml: Auton Bay Misc Slot.xml: Line(20): Invalid entity: unidCorporateHierarchyVol01
The extension works if I replace all the UNID strings with their corresponding hex codes. But including the library by hex code doesn't seem to do anything. The other entities still can't be referred to by string and the extension can be selected to include in a game without Corporate Command, resulting in a crash.

EDIT: Through careful error checking, it now just doesn't do anything if the entities don't exist or don't have the expected subelements.
Last edited by NMS on Tue Jun 07, 2016 1:19 am, edited 1 time in total.
User avatar
TheLoneWolf
Militia Captain
Militia Captain
Posts: 802
Joined: Thu Nov 28, 2013 5:03 pm
Location: Aboard the CSS Radiant

Try redeclaring these entities in a separate file :/
User avatar
AssumedPseudonym
Fleet Officer
Fleet Officer
Posts: 1190
Joined: Thu Aug 29, 2013 5:18 am
Location: On the other side of the screen.

TheLoneWolf wrote:Try redeclaring these entities in a separate file :/
 It’s an ugly fix (and one that shouldn’t be necessary, besides), but it would work as a stopgap measure.
Image

Mod prefixes: 0xA010 (registered) and 0xDCC8 (miscellaneous)

My mods on Xelerus: Click here!

Of all the things I’ve lost in life, I miss my mind the least. (I’m having a lot more fun without it!)
User avatar
TheLoneWolf
Militia Captain
Militia Captain
Posts: 802
Joined: Thu Nov 28, 2013 5:03 pm
Location: Aboard the CSS Radiant

Some sorta header-guard-used-on-library type of error.

We gotta go ugly AP :mrgreen:
NMS
Militia Captain
Militia Captain
Posts: 569
Joined: Tue Mar 05, 2013 8:26 am

OK, it works if I include this, even in the same file:

Code: Select all

	<!ENTITY unidCorporateHierarchyVol01    "0x00810000">
	<!ENTITY scConstellationPlayer			"0x00800002">
The second one is needed because it's declared in Corporate Command, not Corporate Hierarchy Vol 01. But maybe it's better practice to declare all the entities I modify anyway?

EDIT: I tried putting

Code: Select all

extends=		"0x00800000"
in the <TranscendenceExtension> to make it extend Corporate Command, but that actually seems to prevent it from showing up on the extensions list at all.
User avatar
AssumedPseudonym
Fleet Officer
Fleet Officer
Posts: 1190
Joined: Thu Aug 29, 2013 5:18 am
Location: On the other side of the screen.

NMS wrote:OK, it works if I include this, even in the same file:

Code: Select all

	<!ENTITY unidCorporateHierarchyVol01    "0x00810000">
	<!ENTITY scConstellationPlayer			"0x00800002">
The second one is needed because it's declared in Corporate Command, not Corporate Hierarchy Vol 01. But maybe it's better practice to declare all the entities I modify anyway?
 …Bluh. Yeah, just declaring the UNID for the library and then calling it would do the trick. I should have known that, I’ve had to do it before, myself. >.<
NMS wrote:EDIT: I tried putting

Code: Select all

extends=		"0x00800000"
in the <TranscendenceExtension> to make it extend Corporate Command, but that actually seems to prevent it from showing up on the extensions list at all.
 You can only extend adventures. Corporate Command is an extension to the “Stars of the Pilgrim” adventure, not an adventure in and of itself.
Image

Mod prefixes: 0xA010 (registered) and 0xDCC8 (miscellaneous)

My mods on Xelerus: Click here!

Of all the things I’ve lost in life, I miss my mind the least. (I’m having a lot more fun without it!)
NMS
Militia Captain
Militia Captain
Posts: 569
Joined: Tue Mar 05, 2013 8:26 am

That makes sense. It turns out it does also work to declare the library by number:

Code: Select all

	<Library UNID="0x00810000"/>
I was getting thrown off by the library not including the Constellation.
Post Reply