Still not getting how to override Transcendence content :-(

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
ptbptb
Militia Lieutenant
Militia Lieutenant
Posts: 143
Joined: Mon May 10, 2010 7:34 pm

I thought I knew what I was doing, but I was obviously mistaken.

What I want to do is override the DockScreen &dsBarricade; that is displayed when your ship is docked to a deployed Titanium Barricade. I'd like to add extra actions so you can reposition the barricade after it is deployed.

Code: Select all

<?xml version="1.0" ?>
<!DOCTYPE TranscendenceExtension
[
    <!ENTITY UNIDMovableBarricade   "0xD0030030">
    <!ENTITY dsBarricade            "0xD0030031">
]>
<TranscendenceExtension UNID="&UNIDMovableBarricade;" version="1.0" name="Moveable barricade" credits="ptbptb">

    <!-- Moveable barricade -->

    <DockScreen UNID="&dsBarricade;"
            name= "=(objGetName gSource)"
            >
        <Panes>
Is that not how you do it? :?

Help for the very confused, please.
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

ok, to override the dockscreen barricade, you just need an extension with the dockscreen itself (of it's inside the an object, then you have to override the object too)

normally you don't need to declare and use any new UNID (besides the UNID of the extension itself)

If you create a new object that uses the new dockscreen then you will have normal barricades and new barricades using the old and the new dockscreens, which, unless you are using new graphics, can be a real pain to undestand what's going on. :D


simply, in an extension you can:
create new stuff (need new UNIDs)
override existing stuff (don't need new UNIDs)

If you want, you are welcome to have a chat with us on IRC, usually it's faster than the forums :D
sdw195
Militia Captain
Militia Captain
Posts: 779
Joined: Wed Nov 18, 2009 1:01 am
Location: Still looking for the csc Antarctica
Contact:

what i do to override vanilla Transcendence

Code: Select all

<?xml version="1.0" ?>
<!DOCTYPE TranscendenceExtension
[
    <!ENTITY UNIDMovableBarricade   "myunid1234">
then the unid of the object you are overwriting in the Transcendence.xml file
   <!ENTITY dsBarricade	        "0x0000A01C">
   then you can add anything else to the Extension 
]>
<TranscendenceExtension UNID="&UNIDMovableBarricade;" version="1.0" name="Moveable barricade" credits="ptbptb">

    <!-- Moveable barricade -->

    <DockScreen UNID="&dsBarricade;"
            name= "=(objGetName gSource)"
            >
        <Panes>
works every time :)
Image
Image
Image
Image
"Dash_Merc - George is a genius, in that he created this game engine that is infinitely extendable"
"<@sheepluva>Good night everybody, may the source be with you." <-- FOSG dev
"You only need THREE tools in life - WD-40 to make things go, Duct Tape to make things stop And C-4 to make things go away"
User avatar
ptbptb
Militia Lieutenant
Militia Lieutenant
Posts: 143
Joined: Mon May 10, 2010 7:34 pm

sdw195 wrote:what i do to override vanilla Transcendence

... snip ...

works every time :)
Thanks. I've put that in to be on the safe side. My (very small) mod is now finished if you want to take a look. :D
Post Reply