Q for George, enhanced="??" in Device tag

Freeform discussion about anything related to modding Transcendence.
Post Reply
sdw195
Militia Captain
Militia Captain
Posts: 779
Joined: Wed Nov 18, 2009 1:01 am
Location: Still looking for the csc Antarctica
Contact:

i noticed in BattleArenaGladiators.xml there is

Code: Select all

	
<Devices>
<Table>
<Device chance="30" item="&itLightRecoillessCannon;" enhanced="10"/>
<Device chance="45" item="&itLaserCannon;" enhanced="15"/>
<Device chance="25" item="&itRecoillessCannon;" enhanced="5"/>
</Table>
</Devices>
what does the enhanced bit do and how do we use it
I tried doing

Code: Select all

	<Device deviceID="&itAresPlasmaCannon;" enhanced="100"/>
and get a +10% apc that appears to be disabled in the hud (name in red) but still shoots normally.
what dose enhanced="" accept as a value as i have seen

Code: Select all

enhanced="true"
on shields
and

Code: Select all

enhanced="5" enhanced="10" ... enhanced="100"
on devices
Image
Image
Image
Image
"Dash_Merc - George is a genius, in that he created this game engine that is infinitely extendable"
"<@sheepluva>Good night everybody, may the source be with you." <-- FOSG dev
"You only need THREE tools in life - WD-40 to make things go, Duct Tape to make things stop And C-4 to make things go away"
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

That's something I already asked to George. :)

If you look at this ticket:
http://wiki.neurohack.com/transcendence/trac/ticket/58

you can see that we have 2 attributes
enhanced="..." where you can pass a % of probability of the device to be enhanced.
enhancement="0x0101" where you can choose the actual enhancement for the weapon.

Look at examples in BattleArenaGladiators.xml (as you said) and in SungSlavers.xml (in particular the Dragon Slaver)
sdw195
Militia Captain
Militia Captain
Posts: 779
Joined: Wed Nov 18, 2009 1:01 am
Location: Still looking for the csc Antarctica
Contact:

kwel thanks digdug

now to learn hex enhancement code :|


But that still doesn't explain why the name of the weapon is in red (like its disabled) when i have a 1000gw reactor and fuel for it, and if fires normally (well normally for an enhanced APC :mrgreen: )
Image
Image
Image
Image
"Dash_Merc - George is a genius, in that he created this game engine that is infinitely extendable"
"<@sheepluva>Good night everybody, may the source be with you." <-- FOSG dev
"You only need THREE tools in life - WD-40 to make things go, Duct Tape to make things stop And C-4 to make things go away"
george moromisato
Developer
Developer
Posts: 2998
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

digdug wrote:That's something I already asked to George. :)

If you look at this ticket:
http://wiki.neurohack.com/transcendence/trac/ticket/58

you can see that we have 2 attributes
enhanced="..." where you can pass a % of probability of the device to be enhanced.
enhancement="0x0101" where you can choose the actual enhancement for the weapon.

Look at examples in BattleArenaGladiators.xml (as you said) and in SungSlavers.xml (in particular the Dragon Slaver)
There is also one more option:
enhancement="=(someTransLispExpression)"
You can create an expression that returns an enhancement hex code.
User avatar
Arisaya
Fleet Admiral
Fleet Admiral
Posts: 5535
Joined: Tue Feb 05, 2008 1:10 am
Location: At the VSS Shipyards in the frontier, designing new ships.

oo thats cool

What other fields accept tlisp?
(shpOrder gPlayership 'barrelRoll)

<New tutorials, modding resources, and official extension stuff coming to this space soon!>
sdw195
Militia Captain
Militia Captain
Posts: 779
Joined: Wed Nov 18, 2009 1:01 am
Location: Still looking for the csc Antarctica
Contact:

we know

Code: Select all

<DockScreen UNID="&dsMission;"
name="=(if gMissionTitle gMissionTitle (objGetName gSource))">

<Information
desc=	"=(objGetStaticData gSource "Info")">

<ListOptions
dataFrom=	"player"
list=		"aI"
initialItem="=(eq (itmGetArmorInstalledLocation (scrGetItem gScreen)) gArmorSegment)"
			/>
from the tdb

side note
we can use

Code: Select all

enhanced="20"
enhancement=	"=(intMakayevArmorEnhancement)"
oh the same device to randomize if it gets an Enhancement and what it will be if it gets one :D
Image
Image
Image
Image
"Dash_Merc - George is a genius, in that he created this game engine that is infinitely extendable"
"<@sheepluva>Good night everybody, may the source be with you." <-- FOSG dev
"You only need THREE tools in life - WD-40 to make things go, Duct Tape to make things stop And C-4 to make things go away"
User avatar
alterecco
Fleet Officer
Fleet Officer
Posts: 1658
Joined: Wed Jan 14, 2009 3:08 am
Location: Previously enslaved by the Iocrym

Wolfy wrote:What other fields accept tlisp?
Lots. Do a search through the xml for:

Code: Select all

"=(
and you should come up with quite a lot of interesting things :)
User avatar
Arisaya
Fleet Admiral
Fleet Admiral
Posts: 5535
Joined: Tue Feb 05, 2008 1:10 am
Location: At the VSS Shipyards in the frontier, designing new ships.

So... can I use it anything? :D :D :D
(shpOrder gPlayership 'barrelRoll)

<New tutorials, modding resources, and official extension stuff coming to this space soon!>
User avatar
alterecco
Fleet Officer
Fleet Officer
Posts: 1658
Joined: Wed Jan 14, 2009 3:08 am
Location: Previously enslaved by the Iocrym

You can put any kind of script inside, as long as it returns a useful value (or you will probably get weird errors)

I usually use functions.
Drako Slyith
Fleet Officer
Fleet Officer
Posts: 1036
Joined: Wed Feb 03, 2010 4:28 am
Location: Researching how to make St. Kats star go supernova.
Contact:

FINALLY I HAVE THE FORMAT TO DO THAT!!!

I've been trying some really weird things to get that to work! YAY!!!
Image
Image
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?
sdw195
Militia Captain
Militia Captain
Posts: 779
Joined: Wed Nov 18, 2009 1:01 am
Location: Still looking for the csc Antarctica
Contact:

alterecco wrote:
Wolfy wrote:What other fields accept tlisp?
Lots. Do a search through the xml for:

Code: Select all

"=(
and you should come up with quite a lot of interesting things :)
thats what i did :D
Image
Image
Image
Image
"Dash_Merc - George is a genius, in that he created this game engine that is infinitely extendable"
"<@sheepluva>Good night everybody, may the source be with you." <-- FOSG dev
"You only need THREE tools in life - WD-40 to make things go, Duct Tape to make things stop And C-4 to make things go away"
Drako Slyith
Fleet Officer
Fleet Officer
Posts: 1036
Joined: Wed Feb 03, 2010 4:28 am
Location: Researching how to make St. Kats star go supernova.
Contact:

Unfortunately it doesn't seem to work on nodeIDs. I assume that's because they are set in the beginning of the game so it can't rewrite it. shame. Oh well, still a good tool to have.
Image
Image
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?
Post Reply