how can i make an adventure extension

Freeform discussion about anything related to modding Transcendence.
Post Reply
davidbfgday
Anarchist
Anarchist
Posts: 7
Joined: Sun Mar 24, 2013 5:04 am

i was hoping for some help regarding this subject because i've really wanted to make a trans adventure extension lately and i don't know what to do because i don't know the first thing about scripting adventure extensions

could the trans community give me some help on this subject?
User avatar
Xephyr
Militia Captain
Militia Captain
Posts: 857
Joined: Fri Dec 14, 2007 1:52 am
Location: Orion Arm, Milky Way
Contact:

You probably shouldn't tackle a full length adventure without some pretty serious modding knowledge.

Here's a basic guide to adventure extenstions: http://forums.kronosaur.com/viewtopic.php?t=1750

You might want start out with a single system adventure and try to get a feel for how to code for it.
Project Renegade (Beta) : "The Poor Man's Corporate Command!"
Real programmers count from 0. And sometimes I do, too.
User avatar
pixelfck
Militia Captain
Militia Captain
Posts: 571
Joined: Tue Aug 11, 2009 8:47 pm
Location: Travelling around in Europe

Xephyr wrote:Here's a basic guide to adventure extenstions (...)
While the guide is not wrong and the resulting code would probably work, it is important to note that it is from 14 August 2008. In other words, it is a little over 7 years old.

From the top of my head, at least the star system topology code has been changed in the mean time. Most likely, many other parts described in the OP of the linked tutorial have changed as well. You can safely ignore any posts other than the first as they have an increasing chance of confusing the matter by describing quirks that have long since been resolved.

Creating an Aventure extension is not that different from writing a extension mod. You just need a bit more mandatory code to get the star systems set up.

~Pixelfck
Image
Download the Black Market Expansion from Xelerus.de today!
My other mods at xelerus.de
User avatar
pixelfck
Militia Captain
Militia Captain
Posts: 571
Joined: Tue Aug 11, 2009 8:47 pm
Location: Travelling around in Europe

Ok, a quick and dirty code dump which should (I didn't test it) result in a minimal adventure. If I'm correct, all *required* elements are present here, but nothing more. It was taken from The Solar System to Scale, which was written for Transcendence 1.3, so it is still not up to date*, but a whole lot newer than 2008.

Code: Select all

<?xml version="1.0" ?>
<!DOCTYPE TranscendenceExtension
    [
<!-- MODIFIED CORE ENTITIES -->
    <!-- none -->
    
<!-- SOLAR SYSTEM TO SCALE ENTITIES -->
    
    <!ENTITY unidSolarSystemToScale     "0xDEF0000A">
    <!ENTITY smNihilisticSystemMap      "0xDEF00201">
    <!ENTITY adSolarSystemToScale       "0xDEF09300">   
    <!ENTITY rsSplash                   "0xDEF0F00A">
    
]>

<TranscendenceAdventure
        UNID=           "&unidSolarSystemToScale;"
        apiVersion=     "22"
        name=           "The Solar System to Scale, butchered"
        release=        "1"
        version=        "v0.01"
        credits=        "Pixelfck"
        >
    
    <AdventureDesc
            UNID=                   "&adSolarSystemToScale;"
            backgroundID=           "&rsSplash;"
            
            startingShipCriteria=   "* +00200000_PlayerShip;"
            startingSystem=         "SE"
            startingPos=            "Start"
            >
        <Language>
            <Text id="description">
                (cat
                    "{/rtf The solar system to scale. Both dimensions of the sun, the planets and their moons as well as the distances between the orbital bodies are all proportional: 1 pixel = 434.275 km.
                    
                    Unfortunately, the light-second readout provided by your targeting scanner is off by a factor of ~28.8.}"
                    )
            </Text>
        </Language>
        
    </AdventureDesc>
    
    <SystemMap UNID="&smNihilisticSystemMap;"
            name=               "Space" 
            backgroundImage=    "&rsHumanSpace;"
            initialScale=       "100"
            minScale=           "50"
            maxScale=           "100"
            >
        
        <TopologyCreator>
            <Stargate from="SE:Outbound" to="EndGame"/>
        </TopologyCreator>
        
        <Node ID="SE" x="0" y="0">
            <System UNID=       "&ssStartonEridani;"
                    name=       "Our Solar System"
                    level=      "1"
                    attributes= "humanSpace; newBeyond; mainline;"
                    />
        </Node>
                    
        <Node ID="EndGame"
                endGame="true"
                endGameReason="leftHumanSpace"
                epitaph="left Human Space, never to be seen again."
                />
    </SystemMap>
    
    <Image UNID="&rsSplash;"    bitmap="Resources\Splash.jpg"   loadOnUse="true" />

</TranscendenceAdventure>
*)the api number is out of date.

~Pixelfck
Image
Download the Black Market Expansion from Xelerus.de today!
My other mods at xelerus.de
gunship256
Militia Commander
Militia Commander
Posts: 451
Joined: Sat Jul 25, 2015 11:41 pm
Location: repairing armor

pixelfck wrote:*)the api number is out of date.
I had some issues trying to fix the API number on a mod until I got enough help to do it right.

Here's a link to the post in case it saves anyone the frustration I went through:

https://forums.kronosaur.com/viewtopic. ... 9&start=18
User avatar
Xephyr
Militia Captain
Militia Captain
Posts: 857
Joined: Fri Dec 14, 2007 1:52 am
Location: Orion Arm, Milky Way
Contact:

I guess that would explain a few of the issues I'm having myself, since most of the easy to find reference on adventure extensions is so out of date...
Project Renegade (Beta) : "The Poor Man's Corporate Command!"
Real programmers count from 0. And sometimes I do, too.
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

this mod: http://xelerus.de/index.php?s=mod&id=1199
is also, basically, a barebone adventure that will run a game in vanilla topology.

(remove the <Constants> part, though)
davidbfgday
Anarchist
Anarchist
Posts: 7
Joined: Sun Mar 24, 2013 5:04 am

pixelfck wrote:
Xephyr wrote:Here's a basic guide to adventure extenstions (...)
While the guide is not wrong and the resulting code would probably work, it is important to note that it is from 14 August 2008. In other words, it is a little over 7 years old.

From the top of my head, at least the star system topology code has been changed in the mean time. Most likely, many other parts described in the OP of the linked tutorial have changed as well. You can safely ignore any posts other than the first as they have an increasing chance of confusing the matter by describing quirks that have long since been resolved.

Creating an Aventure extension is not that different from writing a extension mod. You just need a bit more mandatory code to get the star systems set up.

~Pixelfck
actually the adventure has been working fine

its just the real thing i want to know right now is how to make another solar system could you help me with that?
JohnBWatson
Fleet Officer
Fleet Officer
Posts: 1452
Joined: Tue Aug 19, 2014 10:17 pm

My "pale blue light" is mostly complete, and is fairly simple. You're welcome to use it as a base.
Post Reply