Erm, i didn't know where to post this so ill post here,im making a weapon and I keep getting attribute expected error in line 15 even though i haven't missed any " signs?
You’re using “&itYangHeavy” as the extension UNID and the item UNID. The extension UNID should be “0xEFFB600101” (or the eight digit correction thereof, as pointed out by Pixelfck).
Mod prefixes: 0xA010 (registered) and 0xDCC8 (miscellaneous)
AssumedPseudonym wrote: You’re using “&itYangHeavy” as the extension UNID and the item UNID. The extension UNID should be “0xEFFB600101” (or the eight digit correction thereof, as pointed out by Pixelfck).
I fail to understand, if it's not a problem could you show me an example?
[spoiler=]maybe I should have found a mod to edit instead of writing from nothing[/spoiler]
This signature is here solely for the purpose of you wasting time to actually read it.
Hm. I just tried filling in the rest of the code with a random weapon, just to see what would happen. I got an “incompatible version” error, not an “invalid UNID” error. See if this has any effect:
AssumedPseudonym wrote: Hm. I just tried filling in the rest of the code with a random weapon, just to see what would happen. I got an “incompatible version” error, not an “invalid UNID” error.
the version is set to 1.3, it doesn't show any other error except UNID
heres the full code:
<TranscendenceExtension>
<?xml version="1.3" ?>
<!DOCTYPE TranscendenceExtension
[
<!ENTITY unidExtension "0xEFFB0001">
<!ENTITY itYangHeavy "0xEFFB0002">
]>
<TranscendenceExtension UNID="0xEFFB0001">
<ItemType UNID="&itYangHeavy;"
name= "Yang superheavy cannon"
level= "11"
value= "201600"
mass= "14000"
frequency= "veryrare"
attributes= "MajorItem; Bushido; Military; Illegal"
description= "The Yang is Bushido's first try at a blast weapon whose production was cut early because of high manufacturing price, it fires extremely powerful high-explosive shells, it is reserved only for military capital ships and as such,it is illegal to have."
>
<Image imageID="&rsItemsMakayev1;" imageX="96" imageY="0" imageWidth="96" imageHeight="96"/>
<Weapon
type= "missile"
omnidirectional= "true"
damage= "blast:6d12x3; momentum1; WMD5"
fireRate= "10"
missileSpeed= "40"
interaction= "80"
lifetime= "50"
powerUse= "1500"
recoil= "4"
effect= "&efBlastShellDefault;"
fireEffect= "&efBlastFireDefault;"
sound= "&snRecoillessCannon;"
>
</Weapon>
</ItemType
This signature is here solely for the purpose of you wasting time to actually read it.
<?xml version="1.0" ?>
<!DOCTYPE TranscendenceExtension
[
<!ENTITY unidExtension "0xEFFB0001">
<!ENTITY itYangHeavy "0xEFFB0002">
]>
<TranscendenceExtension UNID="0xEFFB6001" apiVersion="22">
<ItemType UNID="&itYangHeavy;"
name= "Yang superheavy cannon"
level= "11"
value= "201600"
mass= "14000"
frequency= "veryrare"
attributes= "MajorItem; Bushido; Military; Illegal"
description= "The Yang is Bushido's first try at a blast weapon whose production was cut early because of high manufacturing price, it fires extremely powerful high-explosive shells, it is reserved only for military capital ships and as such,it is illegal to have."
>
<Image imageID="&rsItemsMakayev1;" imageX="96" imageY="0" imageWidth="96" imageHeight="96"/>
<Weapon
type= "missile"
omnidirectional= "true"
damage= "blast:6d12x3; momentum1; WMD5"
fireRate= "10"
missileSpeed= "40"
interaction= "80"
lifetime= "50"
powerUse= "1500"
recoil= "4"
effect= "&efBlastShellDefault;"
fireEffect= "&efBlastFireDefault;"
sound= "&snRecoillessCannon;"
>
</Weapon>
</ItemType>
</TranscendenceExtension>
I would suggest the following change, though, just so it’s easier to tell what it is on the mod list when you start a game: