Subentities and trade_in_factor

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Subentities and trade_in_factor

Post by Thargoid »

Captain Murphy and I have been doing some testing on the Vortex regarding sub-entities, and we think we've either found a bug or an annoying feature. When the player ship has sub-entities and these are removed, the ships trade_in_factor drops (by 3 for example when you remove a turret from a vortex). However when you restore the sub-entities the trade_in_factor does not get restored.

This rather gets in the way of using scripting to remove and restore sub-entities (for example to turn on and off the Vortex turrets) plus this is probably what is triggering the well known problem with rogue maintenance overhauls being offered on such ships.

For me this is a bug, as it's rather crippling doing anything script-wise with sub-entities.
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Re: Subentities and trade_in_factor

Post by Kaks »

Sounds like a bug indeed... will post back when fixed!
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Re: Subentities and trade_in_factor

Post by DaddyHoggy »

Kaks wrote:
Sounds like a bug indeed... will post back when fixed!
I admire the man's confidence. :)
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6683
Joined: Wed Feb 28, 2007 7:54 am

Re: Subentities and trade_in_factor

Post by another_commander »

This bug should be fixed on r4594. Please check tonight's nightly build.
User avatar
Capt. Murphy
Commodore
Commodore
Posts: 1127
Joined: Fri Feb 25, 2011 8:46 am
Location: UK South Coast.

Re: Subentities and trade_in_factor

Post by Capt. Murphy »

That seems to have done the trick my end another_commander. I see that removal still reduces ship_trade_in_factor by 3 for each subent, but that restoration now adds it back in, which is now observed behaviour in game for the Vortex. I've repeated earlier tests with debug console and done a few test flights and no spurious maintenance offers.

Do I get a prize for the quickest download of a new nightly build..... :wink:
Oolite Nightly Build Status (Windows)

Generated on Sun Aug 14 02:51:18 UTC 2011

Map

Last successful build

Oolite-Windows x86 (getafix@dwarf) SVN Revision: 4594
Build date: Sun Aug 14 02:51:17 UTC 2011
[EliteWiki] Capt. Murphy's OXPs
External JavaScript resources - W3Schools & Mozilla Developer Network
Win 7 64bit, Intel Core i5 with HD3000 (driver rev. 8.15.10.2696 - March 2012), Oolite 1.76.1
Post Reply