Help please

This is a moderated forum that collects tutorials, guides, and references for creating Transcendence extensions and scripts.
Cpt. Niceguy
Miner
Miner
Posts: 42
Joined: Mon Apr 04, 2011 6:14 pm
Location: Heretic.

Tue Aug 05, 2014 12:57 pm

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?

Code: Select all

<?xml version="1.0" ?>

<!DOCTYPE TranscendenceExtension
[
<!ENTITY unidExtension		"0xEFFB600101">
<!ENTITY itYangHeavy		"0xEFFB600102">
]>

      
	  <TranscendenceExtension UNID="&itYangHeavy;"


	
	 
            <ItemType UNID="&itYangHeavy;"
			name=				"Yang superheavy cannon"
			level=				"11"
This signature is here solely for the purpose of you wasting time to actually read it.

User avatar
AssumedPseudonym
Fleet Officer
Fleet Officer
Posts: 1013
Joined: Thu Aug 29, 2013 5:18 am
Location: On the other side of the screen.

Tue Aug 05, 2014 1:10 pm

 It looks like you’re missing part of a tag. Try:

Code: Select all

<TranscendenceExtension UNID="&itYangHeavy;">
 Also, regarding where to post this, probably the Shipyard would’ve been better.
Image

My mods on Xelerus: Click here!

Of all the things I’ve lost in life, I miss my mind the least. (I’m having a lot more fun without it!)

Cpt. Niceguy
Miner
Miner
Posts: 42
Joined: Mon Apr 04, 2011 6:14 pm
Location: Heretic.

Tue Aug 05, 2014 1:22 pm

AssumedPseudonym wrote: It looks like you’re missing part of a tag. Try:

Code: Select all

<TranscendenceExtension UNID="&itYangHeavy;">
 Also, regarding where to post this, probably the Shipyard would’ve been better.

Thanks,everything is in order now but now its telling me invalid UNID
This signature is here solely for the purpose of you wasting time to actually read it.

User avatar
pixelfck
Militia Captain
Militia Captain
Posts: 571
Joined: Tue Aug 11, 2009 8:47 pm
Location: Travelling around in Europe

Tue Aug 05, 2014 1:53 pm

Cpt. Niceguy wrote:Thanks,everything is in order now but now its telling me invalid UNID
The game engine is correct in telling you that the UNIDs are incorrect.

A UNID has the form of 0x 'four-digit-personal-prefix' 'four-digit-number'
So, for example:

Code: Select all

0xEFFB6001
would be correct.

However, you used a 0x 'four-digit-personal-prefix' 'six-digit-number' instead.

Hope this helps,
Pixelfck
Image
Download the Black Market Expansion from Xelerus.de today!
My other mods at xelerus.de

Cpt. Niceguy
Miner
Miner
Posts: 42
Joined: Mon Apr 04, 2011 6:14 pm
Location: Heretic.

Tue Aug 05, 2014 2:02 pm

pixelfck wrote:
Cpt. Niceguy wrote:Thanks,everything is in order now but now its telling me invalid UNID
The game engine is correct in telling you that the UNIDs are incorrect.

A UNID has the form of 0x 'four-digit-personal-prefix' 'four-digit-number'
So, for example:

Code: Select all

0xEFFB6001
would be correct.

However, you used a 0x 'four-digit-personal-prefix' 'six-digit-number' instead.

Hope this helps,
Pixelfck
oh s***, brainfart, thanks

EDIT: fixed unid but its still giving me invalid UNID error
This signature is here solely for the purpose of you wasting time to actually read it.

User avatar
AssumedPseudonym
Fleet Officer
Fleet Officer
Posts: 1013
Joined: Thu Aug 29, 2013 5:18 am
Location: On the other side of the screen.

Tue Aug 05, 2014 2:13 pm

 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).
Image

My mods on Xelerus: Click here!

Of all the things I’ve lost in life, I miss my mind the least. (I’m having a lot more fun without it!)

Cpt. Niceguy
Miner
Miner
Posts: 42
Joined: Mon Apr 04, 2011 6:14 pm
Location: Heretic.

Tue Aug 05, 2014 2:21 pm

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.

User avatar
AssumedPseudonym
Fleet Officer
Fleet Officer
Posts: 1013
Joined: Thu Aug 29, 2013 5:18 am
Location: On the other side of the screen.

Tue Aug 05, 2014 2:23 pm

 Try something along these lines:

Code: Select all

<?xml version="1.0" ?>

<!DOCTYPE TranscendenceExtension
[
<!ENTITY unidExtension		"0xEFFB6001">
<!ENTITY itYangHeavy		"0xEFFB6002">
]>

      
	  <TranscendenceExtension UNID="0xEFFB6001"


	
	 
            <ItemType UNID="&itYangHeavy;"
			name=				"Yang superheavy cannon"
			level=				"11"
Image

My mods on Xelerus: Click here!

Of all the things I’ve lost in life, I miss my mind the least. (I’m having a lot more fun without it!)

Cpt. Niceguy
Miner
Miner
Posts: 42
Joined: Mon Apr 04, 2011 6:14 pm
Location: Heretic.

Tue Aug 05, 2014 2:35 pm

AssumedPseudonym wrote: Try something along these lines:

Code: Select all

<?xml version="1.0" ?>

<!DOCTYPE TranscendenceExtension
[
<!ENTITY unidExtension		"0xEFFB6001">
<!ENTITY itYangHeavy		"0xEFFB6002">
]>

      
	  <TranscendenceExtension UNID="0xEFFB6001"


	
	 
            <ItemType UNID="&itYangHeavy;"
			name=				"Yang superheavy cannon"
			level=				"11"

that's exactly what it says but still invalid UNID
This signature is here solely for the purpose of you wasting time to actually read it.

User avatar
AssumedPseudonym
Fleet Officer
Fleet Officer
Posts: 1013
Joined: Thu Aug 29, 2013 5:18 am
Location: On the other side of the screen.

Tue Aug 05, 2014 2:37 pm

 …D’oh. My bad. I left the bracket off the end of the <TranscendenceExtension> tag. The joys of quoting. Lemme try that again:

Code: Select all

<?xml version="1.0" ?>

<!DOCTYPE TranscendenceExtension
[
<!ENTITY unidExtension		"0xEFFB6001">
<!ENTITY itYangHeavy		"0xEFFB6002">
]>

      
	  <TranscendenceExtension UNID="0xEFFB6001">


	
	 
            <ItemType UNID="&itYangHeavy;"
			name=				"Yang superheavy cannon"
			level=				"11"
Image

My mods on Xelerus: Click here!

Of all the things I’ve lost in life, I miss my mind the least. (I’m having a lot more fun without it!)

Cpt. Niceguy
Miner
Miner
Posts: 42
Joined: Mon Apr 04, 2011 6:14 pm
Location: Heretic.

Tue Aug 05, 2014 2:47 pm

AssumedPseudonym wrote: …D’oh. My bad. I left the bracket off the end of the <TranscendenceExtension> tag. The joys of quoting.
I DO have the bracket at the end,brackets and quotation marks are things I check first when i go save,it still shows invalid UNID
This signature is here solely for the purpose of you wasting time to actually read it.

User avatar
AssumedPseudonym
Fleet Officer
Fleet Officer
Posts: 1013
Joined: Thu Aug 29, 2013 5:18 am
Location: On the other side of the screen.

Tue Aug 05, 2014 3:02 pm

 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:

Code: Select all

<TranscendenceExtension UNID="0xEFFB6001" apiVersion="22">
Image

My mods on Xelerus: Click here!

Of all the things I’ve lost in life, I miss my mind the least. (I’m having a lot more fun without it!)

Cpt. Niceguy
Miner
Miner
Posts: 42
Joined: Mon Apr 04, 2011 6:14 pm
Location: Heretic.

Tue Aug 05, 2014 3:44 pm

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:

Code: Select all

<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.

User avatar
AssumedPseudonym
Fleet Officer
Fleet Officer
Posts: 1013
Joined: Thu Aug 29, 2013 5:18 am
Location: On the other side of the screen.

Tue Aug 05, 2014 3:56 pm

 This is how I got it working:

Code: Select all

<?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:

Code: Select all

     <TranscendenceExtension UNID="0xEFFB6001" apiVersion="22" name="Yang Heavy" credits="Cpt. Niceguy">
Image

My mods on Xelerus: Click here!

Of all the things I’ve lost in life, I miss my mind the least. (I’m having a lot more fun without it!)

Cpt. Niceguy
Miner
Miner
Posts: 42
Joined: Mon Apr 04, 2011 6:14 pm
Location: Heretic.

Tue Aug 05, 2014 4:02 pm

AssumedPseudonym wrote: This is how I got it working:
Its working now,thank you, THANK YOU!!

now i gotta adapt lvl dmg and price and stuff and effects,could be done today
This signature is here solely for the purpose of you wasting time to actually read it.

Post Reply