shpRepairItem - should it be deprecated?

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
ptbptb
Militia Lieutenant
Militia Lieutenant
Posts: 143
Joined: Mon May 10, 2010 7:34 pm

Just noticed that this uses itemListCursor which is based on the deprecated function getItemListCursor .

So, should shpRepairItem be deprecated as well?

I presume that itmSetDamaged would be used now.
User avatar
Aury
Fleet Admiral
Fleet Admiral
Posts: 5528
Joined: Tue Feb 05, 2008 1:10 am
Location: At the VSS Shipyards in the frontier, designing new ships.

itmSetDamage can set something to undamaged?
(shpOrder gPlayership 'barrelRoll)

<New tutorials, modding resources, and official extension stuff coming to this space soon!>
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

shpRepairItem accepts itmStruct directly now.

It's one of the functions on xelerus that needs to be updated.

I can extract the notes on xelerus and put them on the pastie we are using, later
User avatar
ptbptb
Militia Lieutenant
Militia Lieutenant
Posts: 143
Joined: Mon May 10, 2010 7:34 pm

Wolfy wrote:itmSetDamage can set something to undamaged?
Yes, yes it can. I just used it in when I removed getItemListCursor and shpRepairItem from The Almighty Wrench.
User avatar
ptbptb
Militia Lieutenant
Militia Lieutenant
Posts: 143
Joined: Mon May 10, 2010 7:34 pm

digdug wrote:shpRepairItem accepts itmStruct directly now.

It's one of the functions on xelerus that needs to be updated.
Is the same true of shpEnhanceItem then?
User avatar
alterecco
Fleet Officer
Fleet Officer
Posts: 1658
Joined: Wed Jan 14, 2009 3:08 am
Location: Previously enslaved by the Iocrym

Yes, it goes for shpEnhanceItem too

The difference between using a 'shp*' function for an 'itm*' function directly is that you don't need to take care of replacing the item on the ship in question. Say you are enhancing an item on a ship. If it is already installed and you want to use (itmSetEnhanced ...) then you have to uninstall, remove, enhance, replace, install... quite a hassle. (shpEnhanceItem ...) takes care of that for you.
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

latest pastie, I added the list of functions that are on Xelerus, but are outdated

http://paste.pocoo.org/show/eayZVSnzna8fB2K73hZz/
Post Reply