This is the code:
<?xml version="1.0" ?>
<!DOCTYPE TranscendenceExtension
[
<!ENTITY scDrake "0xd01F001a">
<!ENTITY itPersox "0xd01f001b">
<!ENTITY itMEGAAAAATROOON "0xd01F001c
<!ENTITY itMegaArmor "0xd01F001d>
<!ENTITY itMEGATRON_Deflector "0xd01F001e">
]>
<TranscendenceExtension UNID="0xd989013a" version="0.99c">
<ShipClass UNID="&scDrake;"
manufacturer= "Persox-Reforce"
class= "Star"
type= "Passanger Liner"
score= "350"
techOrder= "player"
mass= "100"
reactorPower= "1500"
fuelCapacity= "15000000000"
cargoSpace= "100"
thrust= "260"
rotationCount= "20"
maneuver= "10"
maxSpeed= "15"
maxArmor= "4500"
maxCargoSpace= "100"
maxDevices= "10"
leavesWreck= "85"
explosionType= "&vtKineticExplosion3;"
>
<Armor>
<ArmorSection start="315" span="90" armorID="&itMegaArmor;" areaSet="0,2" />
<ArmorSection start="225" span="90" armorID="&itMegaArmor;" areaSet="3,4" />
<ArmorSection start="45" span="90" armorID="&itMegaArmor;" areaSet="7,13" />
<ArmorSection start="135" span="90" armorID="&itMegaArmor;" areaSet="1,6" />
</Armor>
<Devices>
<Device deviceID="&itPersox;"/>
<Device deviceID="&itMEGAAAAATROOON;"/>
<Device deviceID="&itMEGATRON_Deflector;"/>
</Devices>
<Items>
<Item count="6d6" item="&itKM100Missile;"/>
<Item count="4d6" item="&itHelium3FuelRod;"/>
</Items>
<Image imageID="&rsMediumShips3;" imageX="96" imageY="0" imageWidth="96" imageHeight="96" imageFrameCount="0" imageTicksPerFrame="0"/>
<AISettings
combatStyle= "standOff"
fireRateAdj= "30"
fireAccuracy= "90"
perception= "4"
/>
<PlayerSettings
desc= "Drake missileship."
largeImage= "&rsZubrinLarge;"
initialClass= "true"
startingCredits= "10d100+1000"
startingSystem= "SE"
startingPos= "Start"
>
<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="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" />
<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" />
</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>
<ItemType UNID= "&itPersox;"
name= "Persox"
Mass= "2000"
value= "20000"
>
<Image imageID="&rsItems1;" imageX="288" imageY="288" imageWidth="96" imageHeight="96"/>
<ReactorDevice
maxpower= "200000"
fuelefficiency= "35"
maxfuel= "2000000"
fuelCriteria= "f L:1-9"
/>
</itemType>
<ItemType UNID="&itMEGAAAAATROOON;"
name= "MEGATRON Super"
level= "10"
value= "5000"
mass= "15000"
attributes= "MEGATRON; EnergyWeapon; MajorItem; illegal"
frequency= "common"
showReference= "true"
description= "Dieser Reakor ist stark und günstig (und auch illegal)"
sortName= "laser cannon, Megatron"
>
<Image imageID="&rsItemsEI1;" imageX="288" imageY="0" imageWidth="96" imageHeight="96"/>
<Weapon
type= "beam"
configuration= "wall"
damage= "thermo:99d99+2; momentum7; WMD7"
fireRate= "10"
lifetime= "30"
powerUse= "20"
effect= "&efLaserBeamDefault;"
sound= "&snrecoillesscannon;"
>
</Weapon>
</ItemType>
<ItemType UNID="&itMegaArmor;"
name= "MEGATRON smart Armor"
level= "5"
value= "2000"
mass= "2500"
modifiers= "MinorItem; Specialty; Bushido; yPowerShield"
frequency= "uncommon"
numberAppearing= "1d4"
description= "MEGATRON super strong armor"
sortName= "MEGATRON, segment of"
>
<Image imageID="&rsItems1;" imageX="0" imageY="0" imageWidth="96" imageHeight="96"/>
<Armor
hitPoints= "7500"
powerUse= "20"
repairTech= "8"
/>
</ItemType>
<ItemType UNID="&itMEGATRON_Deflector;"
name= "MEGATRON Shield"
level= "5"
value= "8000"
mass= "3000"
frequency= "common"
modifiers= "MajorItem; Specialty; Bushido"
description= "Super Deflector"
sortName= "MEGATRON"
>
<Image imageID="&rsItems1;" imageX="192" imageY="0" imageWidth="96" imageHeight="96"/>
<Shields
hitPoints= "10000"
regen= "2000"
depletionDelay= "360"
powerUse= "200"
/>
</ItemType>
</TranscendenceExtension>
I do not understand the problem.
The game says: Line: 33
Invialed entity: itMegaArmor
What is the problem? How to fix?
Code Problem
- pixelfck
- Militia Captain
- Posts: 571
- Joined: Tue Aug 11, 2009 8:47 pm
- Location: Travelling around in Europe
Your list of entity declarations is somewhat sloppy:
This should work:
Edit:
I'm not sure if you have read it, but maybe the tutorial Getting Started with Modding is helpful.
~Pixelfck
Code: Select all
<!DOCTYPE TranscendenceExtension
[
<!ENTITY scDrake "0xd01F001a">
<!ENTITY itPersox "0xd01f001b">
<!ENTITY itMEGAAAAATROOON "0xd01F001c
<!ENTITY itMegaArmor "0xd01F001d>
<!ENTITY itMEGATRON_Deflector "0xd01F001e">
]>
Code: Select all
<!DOCTYPE TranscendenceExtension
[
<!ENTITY scDrake "0xd01F001a">
<!ENTITY itPersox "0xd01f001b">
<!ENTITY itMEGAAAAATROOON "0xd01F001c">
<!ENTITY itMegaArmor "0xd01F001d">
<!ENTITY itMEGATRON_Deflector "0xd01F001e">
]>
I'm not sure if you have read it, but maybe the tutorial Getting Started with Modding is helpful.
~Pixelfck
- catfighter
- Militia Commander
- Posts: 466
- Joined: Fri Nov 08, 2013 5:17 am
- Location: Laughing manically amidst the wreckage of the Iocrym fleet.
Just in case you were wondering, the error was because you left off the quotes and closing bracket at the end of the itMEGAAAAATROOON line. Good luck in your mods!<!ENTITY itPersox "0xd01f001b">
<!ENTITY itMEGAAAAATROOON "0xd01F001c
<!ENTITY itMegaArmor "0xd01F001d>
Behold my avatar, one of the few ships to be drawn out pixel by pixel in the dreaded... Microsoft Paint!
Day 31: "I have successfully completed my time reversal experiment! Muahahaha!!!"
Day 30: "I might have run into a little problem here."
Day 31: "I have successfully completed my time reversal experiment! Muahahaha!!!"
Day 30: "I might have run into a little problem here."
for the future, if you could post in a color other than blue, that would be great
thanx
thanx
-
- Fleet Officer
- Posts: 1452
- Joined: Tue Aug 19, 2014 10:17 pm
Right. There's actually a code tag for putting up code.KaoS wrote:for the future, if you could post in a color other than blue, that would be great
thanx
Code: Select all
[code]
-
- Commonwealth Pilot
- Posts: 86
- Joined: Wed Dec 07, 2011 6:42 pm
- Location: Katratzi, Scarran base
hey I just wanted to let you know i've been thinking about starting on making mods and i came across this and it is so immensely helpful!pixelfck wrote:I'm not sure if you have read it, but maybe the tutorial Getting Started with Modding is helpful.
Thanks a ton
also if its possible, do you think you could maybe highlight what changes are done through the steps, i find it a bit difficult, but not impossible, to decipher which bits of code have been modified and added to your hammerhead code. I think maybe it might simplify things a bit perhaps.
Its still really helpful though.
Much appreciated
-
- Militia Commander
- Posts: 451
- Joined: Sat Jul 25, 2015 11:41 pm
- Location: repairing armor
I made a mod that has just the three basic playerships plus a PDF file with links to modding information. Xelerus isn't working at the moment, so I can't upload it, but I'll send it to you if you send me a PM.
- pixelfck
- Militia Captain
- Posts: 571
- Joined: Tue Aug 11, 2009 8:47 pm
- Location: Travelling around in Europe
Originally, I wrote it with syntax highlighting, with changes in colour and unchaged code in gray/black. (Try the PDF version, as linked on the right side of the article).durbanator wrote:also if its possible, do you think you could maybe highlight what changes are done through the steps, i find it a bit difficult, but not impossible, to decipher which bits of code have been modified and added to your hammerhead code. I think maybe it might simplify things a bit perhaps.
Right now, Georges page format does not support syntax highlighting or bold inside code blocks. That's why it is somewhat hard to follow now.
Good to read it is useful though!
Regards,
Pixelfck
-
- Militia Commander
- Posts: 451
- Joined: Sat Jul 25, 2015 11:41 pm
- Location: repairing armor
I also found it helpful to download the entire Hammerhead mod from Xelerus so I could see the code as a whole, run searches on it, and look at what's inside the Resources folder.
- pixelfck
- Militia Captain
- Posts: 571
- Joined: Tue Aug 11, 2009 8:47 pm
- Location: Travelling around in Europe
The 'Hammerhead Playership' mod (by Peter) on Xelerus is not the 'Hammerhead II' as described in the tutorial.gunship256 wrote:I also found it helpful to download the entire Hammerhead mod from Xelerus so I could see the code as a whole, run searches on it, and look at what's inside the Resources folder.
The tutorial's Hammerhead II Player Ship Mod can also be downloaded from the list of links on the right hand side of the tutorial.
~Pixelfck
-
- Militia Commander
- Posts: 451
- Joined: Sat Jul 25, 2015 11:41 pm
- Location: repairing armor
My bad. Yours is the one that I meant.pixelfck wrote:The 'Hammerhead Playership' mod (by Peter) on Xelerus is not the 'Hammerhead II' as described in the tutorial.gunship256 wrote:I also found it helpful to download the entire Hammerhead mod from Xelerus so I could see the code as a whole, run searches on it, and look at what's inside the Resources folder.
The tutorial's Hammerhead II Player Ship Mod can also be downloaded from the list of links on the right hand side of the tutorial.
~Pixelfck