F50's Modding tutorial

This is a moderated forum that collects tutorials, guides, and references for creating Transcendence extensions and scripts.
User avatar
Periculi
Fleet Officer
Fleet Officer
Posts: 1259
Joined: Sat Oct 13, 2007 7:48 pm
Location: By the beach

Post by Periculi » Fri Sep 05, 2008 5:57 pm

Ah, yes, well, you see- that's the list in transcendence.xml, which isn't up to date with 099 apparently.

Perhaps you could make a complete list of the missing modifiers and I will edit the list there.

Dennis
Anarchist
Anarchist
Posts: 10
Joined: Sat May 16, 2009 4:13 am
Location: Nepal

Post by Dennis » Tue Nov 17, 2009 1:46 pm

Just to point out you made a small mistake
After explaining the minFireArc
you again moved to minFireArc i think the second one is maxFireArc sorry if I'm wrong

User avatar
ThePrivateer
Militia Captain
Militia Captain
Posts: 943
Joined: Tue Oct 12, 2010 5:12 am
Location: Starton Australia

Post by ThePrivateer » Tue Oct 26, 2010 3:40 am

F50, I usually don't mod, but thanks to this very simple guide, I've started to do make so (silly, but fun) mods of my own!

The initial Charon-ships-get-MakayevLaunchers-thing was hilarious.

Thanks alot! :D

User avatar
RPC
Fleet Admiral
Fleet Admiral
Posts: 2838
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

Re: F50's Modding tutorial

Post by RPC » Tue Apr 05, 2011 11:35 pm

Why is this not stickied? This tutorial would have saved me a whole month of staring at the .tdb!
Tutorial List on the Wiki and Installing Mods
Image<----- click to get to #Transcendence IRC on Freenode
Image
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.

Datal
Militia Commander
Militia Commander
Posts: 308
Joined: Mon Feb 07, 2011 12:54 pm
Location: Hyno Gunship

Re: F50's Modding tutorial

Post by Datal » Wed Apr 06, 2011 10:20 am

Is that tutorial compatible with v.1.01 or v1.05 :?:

User avatar
alterecco
Fleet Officer
Fleet Officer
Posts: 1656
Joined: Wed Jan 14, 2009 3:08 am
Location: Enslaved by the Iocrym

Re: F50's Modding tutorial

Post by alterecco » Wed Apr 06, 2011 1:21 pm

Not 100%, but i would say 99.5%

It is definitely worth a read.

Datal
Militia Commander
Militia Commander
Posts: 308
Joined: Mon Feb 07, 2011 12:54 pm
Location: Hyno Gunship

Re: F50's Modding tutorial

Post by Datal » Wed Apr 06, 2011 3:54 pm

I have an problem. :(
I done everything what is in tutorial and it doesn't works :!:
Here is my code

Code: Select all

<?xml version="1.0"?>

 <!DOCTYPE TranscendenceExtension
 [<!ENTITY extUNID           "0x818DvDr">
 ]>
 
  <TranscendenceExtension UNID="&extUNID;" version="0.98d"
  <!--Corsair-class Gunship-->
  
  <!--Statek na probe.-->
  
  <ShipClass UNID="&scCorsair;"
        manaufacturer=			"Charon Pirates"
        class=			"Corsair12"
        type=			"gunship"
        score=			"250"
        techOrder=			"mech"
        mass=			"120"
        cargoSpace=				"220"
        thrust=			"250"
        maneuver=			"8"
        maxSpeed=			"22"
        
        leavesWreck=			"45"
        
        -->
      <Armor>
           <ArmorSection start="270" span="180" armorID="&itHeavyCeramicPlate;"
    areaSet="0,2,3,7"/>
          <ArmorSection start="90" span="180" armorID="&itHeavyCeramicPlate;"
    areaSet="1,4"/>
       </Armor>
       
<Devices>
     <Device deviceID="&itMakayevLauncher;"/>
     <Device deviceID="&itClass2Deflector;"/>
</Devices>
      
      <Image imageID="&rsMediumShips1;" imageX="288" imageY="0" imageWidth="48"
   imageHeight="48" rotationOffset="-10" imageFrameCount="0" imageTicksPerFrame="0"/>
   
   <AISettings
     fireRateAdj="10"
     fireAccuracy="95"
     perception="6"
     />
     
      <DriveImages>
         <NozzleImage imageID="&rsDriveExhaust;" imageX="48" imageY="0"
    imageWidth="48" imageHeight="48" imageFrameCount="0" imageTicksPerFrame="0"/>
      <NozzlePos x="-30" y="-7"/>
      <NozzlePos x="-30" y="7"/>
    </DriveImages>
    
     </ShipClass>
     
      <Armor>
         <ArmorSection start="270" span="180" armorID="&itHeavyCeramicPlate;"
    areaSet="0,2,3,7" nonCritical="general"/>
         <ArmorSection start="90" span="180" armorID="&itHeavyCeramicPlate;"
    areaSet="1,4" nonCritical="general"/>
        <ArmorSection start="270" span="180" armorID="&itHeavyCeramicPlate;"
    areaSet="0,2,3,7" nonCritical="general"/>
        <ArmorSection start="90" span="180" armorID="&itHeavyCeramicPlate;"
    areaSet="1,4" nonCritical="general"/>
    <ArmorSection start="270" span="180" armorID="&itHeavyCeramicPlate;"
    areaSet="0,2,3,7" nonCritical="general"/>
        <ArmorSection start="90" span="180" armorID="&itHeavyCeramicPlate;"
    areaSet="1,4" nonCritical="general"/>
    
    <Items>
       <Item count="100d100" item="&itStrelkaWhite;"/>
       </Items>
    
    
    
    
  </TranscendenceExtension>
And when I try to run game the system give me this warning:
"Error parsing Extensions\Pirat Charon : Unable to parse Pirat Charon.xml: Line(1):<?XML prologue excepted" (where "Pirat Charon" is the mod name)However I write this mod this error is always, always ALWAYS, even when I modifity yours mods. :roll:
What is it ?

User avatar
alterecco
Fleet Officer
Fleet Officer
Posts: 1656
Joined: Wed Jan 14, 2009 3:08 am
Location: Enslaved by the Iocrym

Re: F50's Modding tutorial

Post by alterecco » Wed Apr 06, 2011 10:03 pm

0x818DvDr is not a legal entity. Look up how hexadecimal numbers work

The current version is 1.0. Change the version="0.98d" to version="1.0"

You are closing </ShipClass> too early. There is content after that that should be inside the <ShipClass></ShipClass>. Transcendence mods is 90% xml. The web is filled with good xml tutorials. I recommend you spend an hour or two studying one.

manaufacturer is spelled wrong.

After fixing that, perhaps it will run... If not, post here again with your new code.

User avatar
RPC
Fleet Admiral
Fleet Admiral
Posts: 2838
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

Re: F50's Modding tutorial

Post by RPC » Wed Apr 06, 2011 10:35 pm

Code: Select all

<TranscendenceExtension UNID="&extUNID;" version="0.98d"
needs the >

Code: Select all

<TranscendenceExtension UNID="&extUNID;" version="0.98d">
and

Code: Select all

<Armor>
         <ArmorSection start="270" span="180" armorID="&itHeavyCeramicPlate;"
    areaSet="0,2,3,7" nonCritical="general"/>
         <ArmorSection start="90" span="180" armorID="&itHeavyCeramicPlate;"
    areaSet="1,4" nonCritical="general"/>
        <ArmorSection start="270" span="180" armorID="&itHeavyCeramicPlate;"
    areaSet="0,2,3,7" nonCritical="general"/>
        <ArmorSection start="90" span="180" armorID="&itHeavyCeramicPlate;"
    areaSet="1,4" nonCritical="general"/>
    <ArmorSection start="270" span="180" armorID="&itHeavyCeramicPlate;"
    areaSet="0,2,3,7" nonCritical="general"/>
        <ArmorSection start="90" span="180" armorID="&itHeavyCeramicPlate;"
    areaSet="1,4" nonCritical="general"/>
needs the </> closing tag.
That becomes:

Code: Select all

<Armor>
         <ArmorSection start="270" span="180" armorID="&itHeavyCeramicPlate;"
    areaSet="0,2,3,7" nonCritical="general"/>
         <ArmorSection start="90" span="180" armorID="&itHeavyCeramicPlate;"
    areaSet="1,4" nonCritical="general"/>
        <ArmorSection start="270" span="180" armorID="&itHeavyCeramicPlate;"
    areaSet="0,2,3,7" nonCritical="general"/>
        <ArmorSection start="90" span="180" armorID="&itHeavyCeramicPlate;"
    areaSet="1,4" nonCritical="general"/>
    <ArmorSection start="270" span="180" armorID="&itHeavyCeramicPlate;"
    areaSet="0,2,3,7" nonCritical="general"/>
        <ArmorSection start="90" span="180" armorID="&itHeavyCeramicPlate;"
    areaSet="1,4" nonCritical="general"/>
   </Armor>
That's all I found.
Tutorial List on the Wiki and Installing Mods
Image<----- click to get to #Transcendence IRC on Freenode
Image
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.

Datal
Militia Commander
Militia Commander
Posts: 308
Joined: Mon Feb 07, 2011 12:54 pm
Location: Hyno Gunship

Re: F50's Modding tutorial

Post by Datal » Thu Apr 07, 2011 10:43 am

I still don't get this legal entity. :?: Here is my code: (and it still doesn't works)

Code: Select all

<?xml version="1.0"?>

<!DOCTYPE TranscendenceExtension
[<!ENTITY extUNID           "0x818000">
]>

  <TranscendenceExtension UNID="&extUNID;" version="1.0">
  <!--Corsair-class Gunship-->
 
  <!--Statek na probe.-->
 
  <ShipClass UNID="&scCorsair;"
        manaufacturer=         "Charon Pirates"
        class=         "Corsair12"
        type=         "gunship"
        score=         "250"
        techOrder=         "mech"
        mass=         "120"
        cargoSpace=            "220"
        thrust=         "250"
        maneuver=         "8"
        maxSpeed=         "22"
       
        leavesWreck=         "45"
       
        -->
      <Armor>
           <ArmorSection start="270" span="180" armorID="&itHeavyCeramicPlate;"
    areaSet="0,2,3,7"/>
          <ArmorSection start="90" span="180" armorID="&itHeavyCeramicPlate;"
    areaSet="1,4"/>
       </Armor>
       
<Devices>
     <Device deviceID="&itMakayevLauncher;"/>
     <Device deviceID="&itClass2Deflector;"/>
</Devices>
     
      <Image imageID="&rsMediumShips1;" imageX="288" imageY="0" imageWidth="48"
   imageHeight="48" rotationOffset="-10" imageFrameCount="0" imageTicksPerFrame="0"/>
   
   <AISettings
     fireRateAdj="10"
     fireAccuracy="95"
     perception="6"
     />
     
      <DriveImages>
         <NozzleImage imageID="&rsDriveExhaust;" imageX="48" imageY="0"
    imageWidth="48" imageHeight="48" imageFrameCount="0" imageTicksPerFrame="0"/>
      <NozzlePos x="-30" y="-7"/>
      <NozzlePos x="-30" y="7"/>
    </DriveImages>
   
     
      <Armor>
         <ArmorSection start="270" span="180" armorID="&itHeavyCeramicPlate;"
    areaSet="0,2,3,7" nonCritical="general"/>
         <ArmorSection start="90" span="180" armorID="&itHeavyCeramicPlate;"
    areaSet="1,4" nonCritical="general"/>
        <ArmorSection start="270" span="180" armorID="&itHeavyCeramicPlate;"
    areaSet="0,2,3,7" nonCritical="general"/>
        <ArmorSection start="90" span="180" armorID="&itHeavyCeramicPlate;"
    areaSet="1,4" nonCritical="general"/>
    <ArmorSection start="270" span="180" armorID="&itHeavyCeramicPlate;"
    areaSet="0,2,3,7" nonCritical="general"/>
        <ArmorSection start="90" span="180" armorID="&itHeavyCeramicPlate;"
    areaSet="1,4" nonCritical="general"/>
   </Armor>
   
    <Items>
       <Item count="100d100" item="&itStrelkaWhite;"/>
       </Items>

   <ShipClass></ShipClass>
   
   
   
   
  </TranscendenceExtension>

Lokasenna
Miner
Miner
Posts: 32
Joined: Sun Mar 06, 2011 6:33 pm

Re: F50's Modding tutorial

Post by Lokasenna » Thu Apr 07, 2011 12:19 pm

1. Your extUNID is still incorrect. Try changing it to "0xABCD1234" and see if that fixes the problem. Then go read a few modding tutorials.

2. At the end of the code, when you have </ShipClass>, delete the <ShipClass> right before it.

Datal
Militia Commander
Militia Commander
Posts: 308
Joined: Mon Feb 07, 2011 12:54 pm
Location: Hyno Gunship

Re: F50's Modding tutorial

Post by Datal » Thu Apr 07, 2011 5:48 pm

And it still not works :? Even when I try to change allready existed mods, I have always the same error.
If I do ANYTHING in XML file then I have this error, maybe I need change my XML editor (I have XML Copy Editor)
Here it's my new code:

Code: Select all

<?xml version="1.0"?>

<!DOCTYPE TranscendenceExtension
[<!ENTITY extUNID           "0xABCD1234">
]>

  <TranscendenceExtension UNID="&extUNID;" version="1.0">
  <!--Corsair-class Gunship-->

  <!--Test ship.-->

  <ShipClass UNID="&scCorsair;"
        manaufacturer=         "Charon Pirates"
        class=         "Corsair12"
        type=         "gunship"
        score=         "250"
        techOrder=         "mech"
        mass=         "120"
        cargoSpace=            "220"
        thrust=         "250"
        maneuver=         "8"
        maxSpeed=         "22"
       
        leavesWreck=         "45"
       
        -->
      <Armor>
           <ArmorSection start="270" span="180" armorID="&itHeavyCeramicPlate;"
    areaSet="0,2,3,7"/>
          <ArmorSection start="90" span="180" armorID="&itHeavyCeramicPlate;"
    areaSet="1,4"/>
       </Armor>
       
<Devices>
     <Device deviceID="&itMakayevLauncher;"/>
     <Device deviceID="&itClass2Deflector;"/>
</Devices>
     
      <Image imageID="&rsMediumShips1;" imageX="288" imageY="0" imageWidth="48"
   imageHeight="48" rotationOffset="-10" imageFrameCount="0" imageTicksPerFrame="0"/>
   
   <AISettings
     fireRateAdj="10"
     fireAccuracy="95"
     perception="6"
     />
     
      <DriveImages>
         <NozzleImage imageID="&rsDriveExhaust;" imageX="48" imageY="0"
    imageWidth="48" imageHeight="48" imageFrameCount="0" imageTicksPerFrame="0"/>
      <NozzlePos x="-30" y="-7"/>
      <NozzlePos x="-30" y="7"/>
    </DriveImages>
   
     
      <Armor>
         <ArmorSection start="270" span="180" armorID="&itHeavyCeramicPlate;"
    areaSet="0,2,3,7" nonCritical="general"/>
         <ArmorSection start="90" span="180" armorID="&itHeavyCeramicPlate;"
    areaSet="1,4" nonCritical="general"/>
        <ArmorSection start="270" span="180" armorID="&itHeavyCeramicPlate;"
    areaSet="0,2,3,7" nonCritical="general"/>
        <ArmorSection start="90" span="180" armorID="&itHeavyCeramicPlate;"
    areaSet="1,4" nonCritical="general"/>
    <ArmorSection start="270" span="180" armorID="&itHeavyCeramicPlate;"
    areaSet="0,2,3,7" nonCritical="general"/>
        <ArmorSection start="90" span="180" armorID="&itHeavyCeramicPlate;"
    areaSet="1,4" nonCritical="general"/>
   </Armor>
   
    <Items>
       <Item count="100d100" item="&itStrelkaWhite;"/>
       </Items>

   </ShipClass>
   
   
   
   
  </TranscendenceExtension>
And error, still the same:
"Error parsing Extensions\Pirat Charon : Unable to parse Pirat Charon.xml: Line(1):<?XML prologue excepted" (where "Pirat Charon" is the mod name)

User avatar
alterecco
Fleet Officer
Fleet Officer
Posts: 1656
Joined: Wed Jan 14, 2009 3:08 am
Location: Enslaved by the Iocrym

Re: F50's Modding tutorial

Post by alterecco » Thu Apr 07, 2011 6:43 pm

Are you sure you don't have another copy in your extension folder?

I just tried the code you pasted, and it runs fine (well, there are other errors, but not the one you posted)

Datal
Militia Commander
Militia Commander
Posts: 308
Joined: Mon Feb 07, 2011 12:54 pm
Location: Hyno Gunship

Re: F50's Modding tutorial

Post by Datal » Thu Apr 07, 2011 8:47 pm

alterecco wrote:Are you sure you don't have another copy in your extension folder?

I just tried the code you pasted, and it runs fine (well, there are other errors, but not the one you posted)

I'm very sure. And at 100% I don't have any other copy. Only one that file.
Really I never had other error than that. Maybe my XMLCopyEditor is wrong. I will try to download notepad++.

Lokasenna
Miner
Miner
Posts: 32
Joined: Sun Mar 06, 2011 6:33 pm

Re: F50's Modding tutorial

Post by Lokasenna » Thu Apr 07, 2011 11:13 pm

Try putting a space between the " and ? in your first line. Yours looks like:

<?xml version="1.0"?>

And every example I can find looks like:

<?xml version="1.0" ?>

It might not be the problem, I'm not sure.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest