I want to make a ship extension "Gungnir" however, whenever I modified the ship extension, I kept getting errors. all I need to know how to change is as follows:
-Ship Name-
-sprites and sprite size-
other stuff I would like to do:
-change starting equipment-
-change thrust and turning ratios-
-change item slots-
-change cargo space-
that's about it. I have all the sprites ready, I just need help with the XML.
the ship "Gungnir" is displayed in my avatar. it's a wolfen/dwarg master/xenophobe fighter mixed together with a few misc edits.
Just a little help...
- Resident-Pyromaniac
- Militia Lieutenant
- Posts: 207
- Joined: Sun Feb 27, 2011 5:11 pm
- Location: Looting the Wreck of the CSC terra.
If Transcendence was made in 3D, I would die of Happiness.
If you are reading this, then I have planted a deadly virus into your CPU. (not really, but you can never be too careful.)
If you are reading this, then I have planted a deadly virus into your CPU. (not really, but you can never be too careful.)
- alterecco
- Fleet Officer
- Posts: 1658
- Joined: Wed Jan 14, 2009 3:08 am
- Location: Previously enslaved by the Iocrym
What kind of errors were you getting?
Can you upload the extension you are working on? The transcendence pastebin is a good place to do that. Just paste the code in there, submit the page and paste the link for the resulting page in this thread.
Can you upload the extension you are working on? The transcendence pastebin is a good place to do that. Just paste the code in there, submit the page and paste the link for the resulting page in this thread.
- ThePrivateer
- Militia Captain
- Posts: 943
- Joined: Tue Oct 12, 2010 5:12 am
- Location: Starton Australia
I don't know what level of skill you have regarding mods, but I have made a helpful "beginner's" tutorial to modding, which can be found here. As I said, I don't know how skilled you are, so please don't take it as an insult if you find my tutorial too basic.
Also of note is Darth Saber's Playership Mod, which I found invaluable in my first attempts at modding.
You may want to browse the Tutorials Index for a list of other tutorials.
Remember you will need to make a UNID to construct a mod, so make sure you have registered your own UNID here on the forums.
All of what you request is very easy to do -- feel welcome to use my guide (which comes with a completed example on Xelerus)
I hope that helps you somehow!
Also of note is Darth Saber's Playership Mod, which I found invaluable in my first attempts at modding.
You may want to browse the Tutorials Index for a list of other tutorials.
Remember you will need to make a UNID to construct a mod, so make sure you have registered your own UNID here on the forums.
All of what you request is very easy to do -- feel welcome to use my guide (which comes with a completed example on Xelerus)
I hope that helps you somehow!
- Resident-Pyromaniac
- Militia Lieutenant
- Posts: 207
- Joined: Sun Feb 27, 2011 5:11 pm
- Location: Looting the Wreck of the CSC terra.
Thank you very much. with this many tutorials, it's hard to go wrong. 

If Transcendence was made in 3D, I would die of Happiness.
If you are reading this, then I have planted a deadly virus into your CPU. (not really, but you can never be too careful.)
If you are reading this, then I have planted a deadly virus into your CPU. (not really, but you can never be too careful.)
- Resident-Pyromaniac
- Militia Lieutenant
- Posts: 207
- Joined: Sun Feb 27, 2011 5:11 pm
- Location: Looting the Wreck of the CSC terra.
No matter what I do, it tells me "can't parse code line "X" because of unidGungnir not accepted", or something. I have the bang-your-head-against-wall-reapetidly-syndrome from this. it is very frustrating. :(
If Transcendence was made in 3D, I would die of Happiness.
If you are reading this, then I have planted a deadly virus into your CPU. (not really, but you can never be too careful.)
If you are reading this, then I have planted a deadly virus into your CPU. (not really, but you can never be too careful.)
-
- Fleet Officer
- Posts: 1036
- Joined: Wed Feb 03, 2010 4:28 am
- Location: Researching how to make St. Kats star go supernova.
- Contact:
Did you check to make sure that
A. the UNID is properly declared:
I don't think you have to use scGungnir, I think you can use unidGungnir
Also, make sure that they have the same unid for all references to it.
Hope that helps
A. the UNID is properly declared:
Code: Select all
<!ENTITY scGungnir "0xXXXXXXXX">
Also, make sure that they have the same unid for all references to it.
Hope that helps

Play in over 100 systems in a network. Play the 2011 Mod Of the Year
and the highest rated mod on Xelerus, The Network.
Play the July Mod of the Month, Fellow Pilgrims!
Play My other mods as well
(Drako Slyith)* I am a person
(Eliza chatbot)> Do you believe it is normal to be a person?
- digdug
- Fleet Admiral
- Posts: 2620
- Joined: Mon Oct 29, 2007 9:23 pm
- Location: Decoding hieroglyphics on Tan-Ru-Dorem
Resident-Pyromaniac,
hi and welcome to Transcendence Forums
Please read F50's modding tutorial, where there is an explanation on how to use UNID numbers and properly setup your extension XML.
http://www.neurohack.com/transcendence/ ... f=8&t=1349
In the future, if you want to submit your mod to our mod repository xelerus.de, please register your personal UNID space by posting in this thread:
http://www.neurohack.com/transcendence/ ... ?f=5&t=959
hi and welcome to Transcendence Forums

Please read F50's modding tutorial, where there is an explanation on how to use UNID numbers and properly setup your extension XML.
http://www.neurohack.com/transcendence/ ... f=8&t=1349
In the future, if you want to submit your mod to our mod repository xelerus.de, please register your personal UNID space by posting in this thread:
http://www.neurohack.com/transcendence/ ... ?f=5&t=959
- ThePrivateer
- Militia Captain
- Posts: 943
- Joined: Tue Oct 12, 2010 5:12 am
- Location: Starton Australia
That's a bit sketchy. I tried to use unid once...it only works for unidExtension for some reason...? Unless I'm just stupid? x_xDrako Slyith wrote:Did you check to make sure that
A. the UNID is properly declared:I don't think you have to use scGungnir, I think you can use unidGungnirCode: Select all
<!ENTITY scGungnir "0xXXXXXXXX">
Also, make sure that they have the same unid for all references to it.
Hope that helps
No problem glad I could help you a bit.Resident-Pyromaniac wrote:Thank you very much. with this many tutorials, it's hard to go wrong.
Huh. Sorry to hear that. Have you tried making just a very, very, very simple mod? Like, uber-simple? I know it sounds dumb, but if you make a mod, copy all the coding of the Sapphire ship (again, use my guide I posted above) and just start slowly replacing some data. If you can post this on Xelerus, or on pastebin, this will really help us all. Pastebin is free and anonymous to use, BTW.Resident-Pyromaniac wrote:No matter what I do, it tells me "can't parse code line "X" because of unidGungnir not accepted", or something. I have the bang-your-head-against-wall-reapetidly-syndrome from this. it is very frustrating.
- Ttech
- Fleet Admiral
- Posts: 2767
- Joined: Tue Nov 06, 2007 12:03 am
- Location: Traveling in the TARDIS
- Contact:
If to clarify, try doing something like a custom ship mod, and seeing how that works out, from there we can see what breaks as we add more xml and tags.
If nothing else, you can hop on the Chat and we can do some debugging tests a bit more live to try to figure it out. Either way works, depends on what you feel like doing.
If nothing else, you can hop on the Chat and we can do some debugging tests a bit more live to try to figure it out. Either way works, depends on what you feel like doing.
- Resident-Pyromaniac
- Militia Lieutenant
- Posts: 207
- Joined: Sun Feb 27, 2011 5:11 pm
- Location: Looting the Wreck of the CSC terra.
OH! OH! OH! I am SOOO close! I am just having bugs with the sprites. they don't show up. I know there is something I'm supposed to do to fix that.
like with the transparency? I dunno.
like with the transparency? I dunno.
If Transcendence was made in 3D, I would die of Happiness.
If you are reading this, then I have planted a deadly virus into your CPU. (not really, but you can never be too careful.)
If you are reading this, then I have planted a deadly virus into your CPU. (not really, but you can never be too careful.)
- Resident-Pyromaniac
- Militia Lieutenant
- Posts: 207
- Joined: Sun Feb 27, 2011 5:11 pm
- Location: Looting the Wreck of the CSC terra.
Kay, now I'm getting errors about "Element tag expected" at line 97.
here's my code:
<?xml version="1.0" ?>
<!DOCTYPE TranscendenceExtension
[
<!ENTITY itRecoillessCannon "0x0000400E">
<!ENTITY itClass1Deflector "0x00004036">
<!ENTITY itHelium3FuelRod "0x0000403C">
<!ENTITY rsZubrinShields "0x0000F004">
<!ENTITY rsZubrinArmor "0x0000F005">
<!ENTITY rsZubrinReactor "0x0000F00C">
<!ENTITY rsDriveExhaust "0x0000F10C">
<!ENTITY rsItems1 "0x0000F11D">
<!ENTITY unidExtension "0xDFAB9000">
<!ENTITY unidMerovianArmor "0xDFAB9001">
<!ENTITY unidGungnirClass "0xDFAB9002">
<!ENTITY unidTestShips1 "0xDFAB9003">
]>
<TranscendenceExtension UNID="&unidExtension;" version="0.99c">
<ItemType UNID="&unidMerovianArmor;"
name= "segment of Merovian armor"
level= "2"
value= "150"
mass= "3000"
frequency= "uncommon"
numberAppearing= "1d4"
modifiers= "MinorItem"
showReference= "true"
description= "Merovian armor is resistant to kinetic and blast weapons."
firstPlural= "true"
sortName= "Merovian armor, segment of"
>
<Image imageID="&rsItems1;" imageX="0" imageY="0" imageWidth="96" imageHeight="96"/>
<Armor
hitPoints= "15"
damageAdj= "100, 33,100, 75, 100,100,100,100, 125,125,200,200, 300,300,500,500"
repairTech= "2"
repairCost= "3"
installCost="30"
composition="metallic"
/>
</ItemType>
<ShipClass UNID="&unidGungnirClass;"
manufacturer= "Resident-Pyromaniac"
class= "Gungnir"
type= "Fighter"
score= "90"
techOrder= "mech"
mass= "40"
maxReactorPower= "250"
maxReactorFuel= "60000"
cargoSpace= "350"
maxCargoSpace= "350"
thrust= "600"
maneuver= "8"
maxSpeed= "30"
leavesWreck= "40"
>
<Armor>
<ArmorSection start="315" span="90" armorID="&unidMerovianArmor;" areaSet="0,2" />
<ArmorSection start="225" span="90" armorID="&unidMerovianArmor;" areaSet="3,4" />
<ArmorSection start="135" span="90" armorID="&unidMerovianArmor;" areaSet="1,6" />
<ArmorSection start="45" span="90" armorID="&unidMerovianArmor;" areaSet="7,13" />
</Armor>
<Devices>
<Device deviceID="&itRecoillessCannon;"/>
<Device deviceID="&itClass1Deflector;"/>
</Devices>
<Items>
<Item count="4d6" item="&itHelium3FuelRod;"/>
</Items>
<AISettings
fireRateAdj= "30"
fireAccuracy= "90"
perception= "4"
/>
<Image imageID="Gungnir;" imageX="0" imageY="0" imageWidth="108" imageHeight="108" imageFrameCount="0" imageTicksPerFrame="0"/>
<DriveImages>
<NozzleImage imageID="&rsDriveExhaust;" imageX="0" imageY="0" imageWidth="48" imageHeight="48" imageFrameCount="0" imageTicksPerFrame="0"/>
<<NozzlePos x="-60" y="0"/>/>
<NozzlePos x="-38" y="7"/>
</DriveImages>
<PlayerSettings
desc= "The much-feared Gungnir fighter is a versatile combination of several starships."
initialClass= "true">
<ArmorDisplay>
<ArmorSection name="forward"
imageID="&rsZubrinArmor;"
imageX="0" imageY="0" imageWidth="52" imageHeight="29"
destX="42" destY="15" hpX="55" hpY="14"
nameY="8" nameBreakWidth="200" nameDestX="0" nameDestY="10" />
<ArmorSection name="starboard"
imageID="&rsZubrinArmor;"
imageX="52" imageY="0" imageWidth="22" imageHeight="59"
destX="92" destY="45" hpX="95" hpY="60"
nameY="30" nameBreakWidth="360" nameDestX="12" nameDestY="0" />
<ArmorSection name="aft"
imageID="&rsZubrinArmor;"
imageX="74" imageY="0" imageWidth="68" imageHeight="14"
destX="34" destY="103" hpX="55" hpY="105"
nameY="74" nameBreakWidth="360" nameDestX="12" nameDestY="0" />
<ArmorSection name="port"
imageID="&rsZubrinArmor;"
imageX="142" imageY="0" imageWidth="22" imageHeight="59"
destX="22" destY="45" hpX="15" hpY="60"
nameY="52" nameBreakWidth="200" nameDestX="0" nameDestY="8" />
</ArmorDisplay>
<ShieldDisplay>
<Image imageID="&rsZubrinShields;" imageX="0" imageY="0" imageWidth="136" imageHeight="136"/>
</ShieldDisplay>
<ReactorDisplay>
<Image imageID="&rsZubrinReactor;"
imageX="0" imageY="0" imageWidth="256" imageHeight="60"/>
<PowerLevelImage imageID="&rsZubrinReactor;"
imageX="0" imageY="60" imageWidth="202" imageHeight="14"
destX="54" destY="9"/>
<FuelLevelImage imageID="&rsZubrinReactor;"
imageX="0" imageY="74" imageWidth="194" imageHeight="14"
destX="54" destY="37"/>
<FuelLowLevelImage imageID="&rsZubrinReactor;"
imageX="0" imageY="88" imageWidth="194" imageHeight="14"/>
<ReactorText x="62" y="22" width="154" height="14"/>
<PowerLevelText x="62" y="0" width="154" height="9"/>
<FuelLevelText x="62" y="51" width="154" height="9"/>
</ReactorDisplay>
</PlayerSettings>
</ShipClass>
<Image UNID="TestGungnir1;" bitmap="Gungnir.jpg" bitmask="GungnirMask.bmp" backColor="0x00000000"/>
</TranscendenceExtension>
here's my code:
<?xml version="1.0" ?>
<!DOCTYPE TranscendenceExtension
[
<!ENTITY itRecoillessCannon "0x0000400E">
<!ENTITY itClass1Deflector "0x00004036">
<!ENTITY itHelium3FuelRod "0x0000403C">
<!ENTITY rsZubrinShields "0x0000F004">
<!ENTITY rsZubrinArmor "0x0000F005">
<!ENTITY rsZubrinReactor "0x0000F00C">
<!ENTITY rsDriveExhaust "0x0000F10C">
<!ENTITY rsItems1 "0x0000F11D">
<!ENTITY unidExtension "0xDFAB9000">
<!ENTITY unidMerovianArmor "0xDFAB9001">
<!ENTITY unidGungnirClass "0xDFAB9002">
<!ENTITY unidTestShips1 "0xDFAB9003">
]>
<TranscendenceExtension UNID="&unidExtension;" version="0.99c">
<ItemType UNID="&unidMerovianArmor;"
name= "segment of Merovian armor"
level= "2"
value= "150"
mass= "3000"
frequency= "uncommon"
numberAppearing= "1d4"
modifiers= "MinorItem"
showReference= "true"
description= "Merovian armor is resistant to kinetic and blast weapons."
firstPlural= "true"
sortName= "Merovian armor, segment of"
>
<Image imageID="&rsItems1;" imageX="0" imageY="0" imageWidth="96" imageHeight="96"/>
<Armor
hitPoints= "15"
damageAdj= "100, 33,100, 75, 100,100,100,100, 125,125,200,200, 300,300,500,500"
repairTech= "2"
repairCost= "3"
installCost="30"
composition="metallic"
/>
</ItemType>
<ShipClass UNID="&unidGungnirClass;"
manufacturer= "Resident-Pyromaniac"
class= "Gungnir"
type= "Fighter"
score= "90"
techOrder= "mech"
mass= "40"
maxReactorPower= "250"
maxReactorFuel= "60000"
cargoSpace= "350"
maxCargoSpace= "350"
thrust= "600"
maneuver= "8"
maxSpeed= "30"
leavesWreck= "40"
>
<Armor>
<ArmorSection start="315" span="90" armorID="&unidMerovianArmor;" areaSet="0,2" />
<ArmorSection start="225" span="90" armorID="&unidMerovianArmor;" areaSet="3,4" />
<ArmorSection start="135" span="90" armorID="&unidMerovianArmor;" areaSet="1,6" />
<ArmorSection start="45" span="90" armorID="&unidMerovianArmor;" areaSet="7,13" />
</Armor>
<Devices>
<Device deviceID="&itRecoillessCannon;"/>
<Device deviceID="&itClass1Deflector;"/>
</Devices>
<Items>
<Item count="4d6" item="&itHelium3FuelRod;"/>
</Items>
<AISettings
fireRateAdj= "30"
fireAccuracy= "90"
perception= "4"
/>
<Image imageID="Gungnir;" imageX="0" imageY="0" imageWidth="108" imageHeight="108" imageFrameCount="0" imageTicksPerFrame="0"/>
<DriveImages>
<NozzleImage imageID="&rsDriveExhaust;" imageX="0" imageY="0" imageWidth="48" imageHeight="48" imageFrameCount="0" imageTicksPerFrame="0"/>
<<NozzlePos x="-60" y="0"/>/>
<NozzlePos x="-38" y="7"/>
</DriveImages>
<PlayerSettings
desc= "The much-feared Gungnir fighter is a versatile combination of several starships."
initialClass= "true">
<ArmorDisplay>
<ArmorSection name="forward"
imageID="&rsZubrinArmor;"
imageX="0" imageY="0" imageWidth="52" imageHeight="29"
destX="42" destY="15" hpX="55" hpY="14"
nameY="8" nameBreakWidth="200" nameDestX="0" nameDestY="10" />
<ArmorSection name="starboard"
imageID="&rsZubrinArmor;"
imageX="52" imageY="0" imageWidth="22" imageHeight="59"
destX="92" destY="45" hpX="95" hpY="60"
nameY="30" nameBreakWidth="360" nameDestX="12" nameDestY="0" />
<ArmorSection name="aft"
imageID="&rsZubrinArmor;"
imageX="74" imageY="0" imageWidth="68" imageHeight="14"
destX="34" destY="103" hpX="55" hpY="105"
nameY="74" nameBreakWidth="360" nameDestX="12" nameDestY="0" />
<ArmorSection name="port"
imageID="&rsZubrinArmor;"
imageX="142" imageY="0" imageWidth="22" imageHeight="59"
destX="22" destY="45" hpX="15" hpY="60"
nameY="52" nameBreakWidth="200" nameDestX="0" nameDestY="8" />
</ArmorDisplay>
<ShieldDisplay>
<Image imageID="&rsZubrinShields;" imageX="0" imageY="0" imageWidth="136" imageHeight="136"/>
</ShieldDisplay>
<ReactorDisplay>
<Image imageID="&rsZubrinReactor;"
imageX="0" imageY="0" imageWidth="256" imageHeight="60"/>
<PowerLevelImage imageID="&rsZubrinReactor;"
imageX="0" imageY="60" imageWidth="202" imageHeight="14"
destX="54" destY="9"/>
<FuelLevelImage imageID="&rsZubrinReactor;"
imageX="0" imageY="74" imageWidth="194" imageHeight="14"
destX="54" destY="37"/>
<FuelLowLevelImage imageID="&rsZubrinReactor;"
imageX="0" imageY="88" imageWidth="194" imageHeight="14"/>
<ReactorText x="62" y="22" width="154" height="14"/>
<PowerLevelText x="62" y="0" width="154" height="9"/>
<FuelLevelText x="62" y="51" width="154" height="9"/>
</ReactorDisplay>
</PlayerSettings>
</ShipClass>
<Image UNID="TestGungnir1;" bitmap="Gungnir.jpg" bitmask="GungnirMask.bmp" backColor="0x00000000"/>
</TranscendenceExtension>
If Transcendence was made in 3D, I would die of Happiness.
If you are reading this, then I have planted a deadly virus into your CPU. (not really, but you can never be too careful.)
If you are reading this, then I have planted a deadly virus into your CPU. (not really, but you can never be too careful.)
-
- Fleet Officer
- Posts: 1036
- Joined: Wed Feb 03, 2010 4:28 am
- Location: Researching how to make St. Kats star go supernova.
- Contact:
What I found was that the image needs a UNID like everything else. Both where you declared you image and where you used the image you should have a UNID for the image. That may be the problem, if not it may be a problem later.
Play in over 100 systems in a network. Play the 2011 Mod Of the Year
and the highest rated mod on Xelerus, The Network.
Play the July Mod of the Month, Fellow Pilgrims!
Play My other mods as well
(Drako Slyith)* I am a person
(Eliza chatbot)> Do you believe it is normal to be a person?
- digdug
- Fleet Admiral
- Posts: 2620
- Joined: Mon Oct 29, 2007 9:23 pm
- Location: Decoding hieroglyphics on Tan-Ru-Dorem
the line 97 is
just fix that and it should work
on a side note, please use /code for your code pasted in the forums, or even better, please use
http://transcendence.pastebin.com/
Code: Select all
<<NozzlePos x="-60" y="0"/>/>
<NozzlePos x="-38" y="7"/>
on a side note, please use /code for your code pasted in the forums, or even better, please use
http://transcendence.pastebin.com/
- Resident-Pyromaniac
- Militia Lieutenant
- Posts: 207
- Joined: Sun Feb 27, 2011 5:11 pm
- Location: Looting the Wreck of the CSC terra.
Yay.. I'm not getting any more errors, but the ship is still invisible. I don't know how to fix that. :|
Edit: thank you, Digdug.
Edit: thank you, Digdug.
If Transcendence was made in 3D, I would die of Happiness.
If you are reading this, then I have planted a deadly virus into your CPU. (not really, but you can never be too careful.)
If you are reading this, then I have planted a deadly virus into your CPU. (not really, but you can never be too careful.)
-
- Fleet Officer
- Posts: 1036
- Joined: Wed Feb 03, 2010 4:28 am
- Location: Researching how to make St. Kats star go supernova.
- Contact:
Make sure your ship size matches what you declared in the code: 108 x 108 (which you declared) for each individual ship rotation. I had a similar issue implementing a station graphic when I first started modding.
Play in over 100 systems in a network. Play the 2011 Mod Of the Year
and the highest rated mod on Xelerus, The Network.
Play the July Mod of the Month, Fellow Pilgrims!
Play My other mods as well
(Drako Slyith)* I am a person
(Eliza chatbot)> Do you believe it is normal to be a person?