Gentlemen, We Have Weapon errors.
- Resident-Pyromaniac
- Militia Lieutenant
- Posts: 207
- Joined: Sun Feb 27, 2011 5:11 pm
- Location: Looting the Wreck of the CSC terra.
Well, once again, I am requesting the help of the Transcendence Community to assist me in my Mods. I currently am trying to make a custom weapon, and I want to declare it in the same file as my ship on which it is mounted. and I have no Idea what the Grammar for that would be. My question is, Where do I declare it in the file?
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:
Declare the <!ENTITY UNID="0xXXXXXXXX"> beneath where you declared the other UNIDs. Then, right above where you end the extension (</TranscendenceExtension>) put your weapon data. Basic weapon code is this:
It's the code for a standard laser cannon.
Code: Select all
<ItemType UNID="&itLaserCannon;"
name= "laser cannon"
level= "1"
value= "250"
mass= "1000"
frequency= "common"
attributes= "EI; EnergyWeapon; MajorItem"
showReference= "true"
description= "A popular weapon for light freighters and fast gunships. This weapon is manufactured by the Earth Industries Conglomerate."
>
<Image imageID="&rsItemsEI1;" imageX="96" imageY="0" imageWidth="96" imageHeight="96"/>
<Weapon
type= "beam"
damage= "laser:1d4"
fireRate= "10"
lifetime= "30"
powerUse= "10"
beamType= "laser"
primaryColor= "0xf1, 0x5f, 0x2a"
secondaryColor= "0xff, 0x00, 0x00"
sound= "&snLaserCannon;"
>
</Weapon>
</ItemType>
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?
- Resident-Pyromaniac
- Militia Lieutenant
- Posts: 207
- Joined: Sun Feb 27, 2011 5:11 pm
- Location: Looting the Wreck of the CSC terra.
Ok, new prob.
"Invalid weapon fire type"
?!
"Invalid weapon fire type"
?!
Code: Select all
<ItemType UNID="&itAdvancedPlasmaCannon;"
name= "Advanced Plasma Cannon"
level= "11"
value= "100000"
mass= "6000"
frequency= "veryrare"
modifiers= "EI; Military; MajorItem; "
description= "an advanced plasma Cannon is the most powerful weapon. unquestionably."
>
<Image imageID="&rsItems1;" imageX="96" imageY="0" imageWidth="96" imageHeight="96"/>
<Weapon
type= "beamweapon"
repeating= "6"
damage= "plasma:8d12;WMD4"
fireRate= "3"
lifetime= "32"
hitPoints= "50"
powerUse= "4000"
counter= "capacitor"
counterActivate= "-5"
counterUpdate= "2"
counterUpdateRate= "5"
>
<Effect>
<MoltenBolt
width= "16"
growth= "30"
primaryColor= "0xfe, 0xff, 0xce"
secondaryColor= "0xff, 0xeb, 0x26"
/>
</Effect>
</Weapon>
</ItemType>
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:
I think it's the "beamWeapon". I think you want either "beam" or "missile"
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?
- Resident-Pyromaniac
- Militia Lieutenant
- Posts: 207
- Joined: Sun Feb 27, 2011 5:11 pm
- Location: Looting the Wreck of the CSC terra.
Hmm.. now it's saying "invalid beam weapon type"
Btw, thanks for all the help, Drako Slyith.
Code: Select all
<ItemType UNID="&unidAdvancedPlasmaCannon;"
name= "Advanced Plasma Cannon"
level= "11"
value= "100000"
mass= "6000"
frequency= "veryrare"
modifiers= "EI; Military; MajorItem; "
description= "an advanced plasma Cannon is the most powerful weapon. unquestionably."
>
<Image imageID="&rsItems1;" imageX="96" imageY="0" imageWidth="96" imageHeight="96"/>
<Weapon
type= "beam"
repeating= "6"
damage= "plasma:8d12;WMD4"
fireRate= "3"
lifetime= "32"
powerUse= "4000"
counter= "capacitor"
counterActivate= "-5"
counterUpdate= "2"
counterUpdateRate= "5"
>
<Effect>
<MoltenBolt
width= "16"
growth= "30"
primaryColor= "0xfe, 0xff, 0xce"
secondaryColor= "0xff, 0xeb, 0x26"
/>
</Effect>
</Weapon>
</ItemType>
</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:
try putting type as particles. It may be that plasma doesn't work with beam.
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?
- Resident-Pyromaniac
- Militia Lieutenant
- Posts: 207
- Joined: Sun Feb 27, 2011 5:11 pm
- Location: Looting the Wreck of the CSC terra.
I'm stumped. still getting errors. invalid weapon, Blah Blah.
I'll turn in for the night; maybe you could figure this out?
I'll turn in for the night; maybe you could figure this out?
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.)
- ThePrivateer
- Militia Captain
- Posts: 943
- Joined: Tue Oct 12, 2010 5:12 am
- Location: Starton Australia
This here is the coding for a Plasma gun like the Ferrian plasma cannon. It shoots out the weird little glowing particles that look like fire.Drako Slyith wrote:try putting type as particles. It may be that plasma doesn't work with beam.
But this is for a standard, tear-drop shaped plasma weapon. Both examples taken from StdWeapons.xml, by the way.
Try modding off of those ones.
![Very Happy :D](./images/smilies/icon_biggrin.gif)
-
- Fleet Admiral
- Posts: 2876
- Joined: Thu Feb 03, 2011 5:21 am
- Location: Hmm... I'm confused. Anybody have a starmap to the Core?
I think I can handle this one:
The effect <MoltenBolt> can only be used by missile types, such as
A quick fix would be to just change the weapon to missile.
Explanation:
I find missile to be versatile in that you could insert in your own images using
I learned the hard way that certain weapontypes only take certain effects:
Scanning the Transcendence.tdb, I found that "beam" takes these configurations:
"starblaster"-> Used on the katana.
can specify colors using hexadecimal.
"lightning"-> Used on the Ares lightning turret
can specify colors using hexadecimal as well as intensity (I think Wolfy knows what intensity is- I personally have no clue)
"blaster"-> used on the bolide
"heavyblaser"-> used on the TeV9
"laser"-> used on the mining laser
"greenparticle"-> cool looking one. Used on the lancer cannon
The effect <MoltenBolt> can only be used by missile types, such as
Code: Select all
weapon= "missile"
Explanation:
I find missile to be versatile in that you could insert in your own images using
Code: Select all
<Effect>
<Image imageID="&rsParticles;" imageX="0" imageY="0" imageWidth="16" imageHeight="16" imageFrameCount="12" imageTicksPerFrame="2" randomStartFrame="true"/>
</Effect>
Scanning the Transcendence.tdb, I found that "beam" takes these configurations:
"starblaster"-> Used on the katana.
can specify colors using hexadecimal.
Code: Select all
beamType= "starblaster"
primaryColor= "0x00, 0x80, 0xff"
secondaryColor= "0x80, 0xc0, 0xff"
can specify colors using hexadecimal as well as intensity (I think Wolfy knows what intensity is- I personally have no clue)
Code: Select all
beamType= "lightning"
primaryColor= "0xf0, 0xff, 0xa0"
secondaryColor= "0xa9, 0xff, 0x00"
intensity= "5"
Code: Select all
beamType= "blaster"
Code: Select all
beamType= "heavyblaster"
primaryColor= "0x33, 0xff, 0x33"
secondaryColor= "0x00, 0x99, 0x00"
intensity= "5"
Code: Select all
beamType= "laser"
primaryColor= "0xf1, 0x5f, 0x2a"
secondaryColor= "0xff, 0x00, 0x00"
sound= "&snLaserCannon;"
Code: Select all
beamType= "greenparticle"
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
![Image](http://res.mostlynothing.info/ircs.png)
![Image](https://dl.dropbox.com/u/23352181/MoTM%20current.gif)
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.
Get on Discord for mod help and general chat
![Image](http://res.mostlynothing.info/ircs.png)
![Image](https://dl.dropbox.com/u/23352181/MoTM%20current.gif)
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.
- digdug
- Fleet Admiral
- Posts: 2620
- Joined: Mon Oct 29, 2007 9:23 pm
- Location: Decoding hieroglyphics on Tan-Ru-Dorem
Very nice tutorial rpc !
Don't forget blueparticle, which works like greenparticle and currently it's not used in vanilla.
And yes, afaik <effect> is not accepted in beam weapons, only missile and particles type weapons.
Don't forget blueparticle, which works like greenparticle and currently it's not used in vanilla.
And yes, afaik <effect> is not accepted in beam weapons, only missile and particles type weapons.
- Resident-Pyromaniac
- Militia Lieutenant
- Posts: 207
- Joined: Sun Feb 27, 2011 5:11 pm
- Location: Looting the Wreck of the CSC terra.
Okay, Thank you all for the help! turns out I had just misspelled "Missile"... Bummer, Huh? fixed now.
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 Admiral
- Posts: 2876
- Joined: Thu Feb 03, 2011 5:21 am
- Location: Hmm... I'm confused. Anybody have a starmap to the Core?
Digdug: there's blueparticle? Cool! How did you know that? Gonna check it out today.
Resident Pyromaniac: interesting. The latest weapon on the forums had Weapon="beam". Way off from "missile", huh?
I don't like how these random spelling errors break the game, like forgetting a /, ) or a </>. I guess it helps to do things slowly.
Resident Pyromaniac: interesting. The latest weapon on the forums had Weapon="beam". Way off from "missile", huh?
![Cool 8-)](./images/smilies/icon_cool.gif)
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
![Image](http://res.mostlynothing.info/ircs.png)
![Image](https://dl.dropbox.com/u/23352181/MoTM%20current.gif)
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.
Get on Discord for mod help and general chat
![Image](http://res.mostlynothing.info/ircs.png)
![Image](https://dl.dropbox.com/u/23352181/MoTM%20current.gif)
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.
-
- Fleet Officer
- Posts: 1036
- Joined: Wed Feb 03, 2010 4:28 am
- Location: Researching how to make St. Kats star go supernova.
- Contact:
It really stinks to misplace a ")" while scripting... Especially because the game won't catch it in most situations.RPC wrote:
Resident Pyromaniac: interesting. The latest weapon on the forums had Weapon="beam". Way off from "missile", huh?I don't like how these random spelling errors break the game, like forgetting a /, ) or a </>. I guess it helps to do things slowly.
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?