need some help with codes

Freeform discussion about anything related to modding Transcendence.
Post Reply
Dalva
Militia Lieutenant
Militia Lieutenant
Posts: 158
Joined: Sun Nov 23, 2008 2:36 pm
Location: RXDV Labs orbiting Mars

i want to make a ship armor mod, but i dont know some codes which is:

firstPlural=
sortName=
hpBonus=
numberAppearing=

then if

Code: Select all

		repairRate=	"80"
		photoRepair="true"
is it means that it will repair the armor 80hp/second?

and what is

Code: Select all

	<SolarDevice
		refuel=			"60"
		/>
is it also means that it will recharge the ship 60 mw/second?
User avatar
dvlenk6
Militia Captain
Militia Captain
Posts: 519
Joined: Sun Mar 05, 2006 6:56 am
Location: Sanctuary and beyond
Contact:

firstPlural makes the first word in the name= field plural in lists
ex. segments of titanium armor
instead of segment of titanium armors.

sortName is where the item appears on lists
ex. sortName="XMH armor, segment of"
So it would be listed in the Xs of the list, instead of in S(egment)

hpBonus is a damage adjustment against various damage types. I think it is a percentage figure.
The damage types, in order, are:
laser, kinetic, particle, blast, ion, thermo, positron, plasma, antimatter, nano, graviton, singularity, dark acid, dark steel, dark lightning, dark fire
So 0,0,+50,-25 would be no adjustment against laser or kinetic, +50% against particle, -25% against blast.
Higher number takes more damage.

numberAppearing is how many of the items are found.
You can use the xdy formula for random numbers. x is number of 'rolls' and y is the number of sides on the die. 4d4 is 4 to 16, and so on.

I think repairRate="80" would actually be 8hp/second. Photorepair makes armor repair in sunlight.

Not sure how the solar refueling works, as far as numbers go.
"War is hell."
-William Tecumseh Sherman
http://dvlenk6.blackraven3d.com/transgals.html
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2616
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

MOVED.
This is a help request for an Itemtype mod. It should be placed in Shipyard.
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2616
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

I think that repairRate is a value in ticks.
so repairRate of 80 means 1hp/80ticks.

If it's not been changed in 0.99, photorepair has a hardcoded repairRate.
However I'm not 100% sure. :roll:
User avatar
dvlenk6
Militia Captain
Militia Captain
Posts: 519
Joined: Sun Mar 05, 2006 6:56 am
Location: Sanctuary and beyond
Contact:

digdug wrote:I think that repairRate is a value in ticks.
so repairRate of 80 means 1hp/80ticks.
Now that you mention it, I think that is right.
"War is hell."
-William Tecumseh Sherman
http://dvlenk6.blackraven3d.com/transgals.html
Bobby
Militia Captain
Militia Captain
Posts: 675
Joined: Wed Jul 25, 2007 7:39 pm

as for refuel="60", i think it is 6mw. in reactors "100"="10mw"

how often it refuels, i don't know.
Dalva
Militia Lieutenant
Militia Lieutenant
Posts: 158
Joined: Sun Nov 23, 2008 2:36 pm
Location: RXDV Labs orbiting Mars

digdug wrote:I think that repairRate is a value in ticks.
so repairRate of 80 means 1hp/80ticks.
is ticks means frame?
so if i'm running transcendence in 50 fps it will repair

50fps divided by 80hp/f equals 0.625hp/second?

and is it true that photorepair have fixed repair rate?
and, still, what is the meaning of

Code: Select all

   <SolarDevice
      refuel=         "60"
      />
thanks for answering :D
User avatar
alterecco
Fleet Officer
Fleet Officer
Posts: 1658
Joined: Wed Jan 14, 2009 3:08 am
Location: Previously enslaved by the Iocrym

Dalva wrote: is ticks means frame?
Ticks are an internal timekeeper. According to the test's i have run, 1 tick == 1/30 sec at 30FPS. That would translate to 30 ticks per second at 30 FPS. As far as i know, Transcendence always runs at 30FPS if it can. You can try and run the game with the /debugVideo switch, and it will show your FPS. I would be interrested to hear if you get more than 30FPS.

Dalva wrote: and is it true that photorepair have fixed repair rate?
As far as i can see from the xml, photorepair rate can be set through the repairRate attribute.
Dalva wrote: refuel= "60"
refuel is part of the Solar Panel Array.
Here is the description taken from the xml:
"A solar panel array converts sunlight into energy usable by a ship's reactor."
the refuel attribute would be the energy refuel rate.

As always, when it comes to specific values and effects, the best answer is given by Transcendence itself. Create a modded version, change some values, run the game and monitor the effects closely. Use the console to run some commands that give you exact value feedback. You will find alot of interesting information this way. And please share what you find :)


Have fun .]
Dalva
Militia Lieutenant
Militia Lieutenant
Posts: 158
Joined: Sun Nov 23, 2008 2:36 pm
Location: RXDV Labs orbiting Mars

so it is, ticks means frame.
and how to open the console and use /debugVideo ?
User avatar
dvlenk6
Militia Captain
Militia Captain
Posts: 519
Joined: Sun Mar 05, 2006 6:56 am
Location: Sanctuary and beyond
Contact:

Dalva wrote:...how to open the console and use /debugVideo ?
You have to run transcendence from the command line:

Trans099cdir\transendence.exe /debugVideo
"War is hell."
-William Tecumseh Sherman
http://dvlenk6.blackraven3d.com/transgals.html
Post Reply