Escape Pod Slave Fix

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

Post Reply
User avatar
phkb
Commodore
Commodore
Posts: 2415
Joined: Tue Jan 21, 2014 10:37 pm
Location: [p]laying [h]ard and [k]icking [b]utt somewhere in G7...

Escape Pod Slave Fix

Post by phkb » Tue Aug 28, 2018 5:27 am

I've put together a solution to the issue where escape pods are created without a bounty or insurance value, resulting in them remaining behind as "slaves" after you dock at a station. The solution will only apply to escape pods launched from a ship, not escape pods generated by a script, which should prevent this from interfering with most mission-based or special case escape pods, but I can't guarantee that, so I'd appreciate any testing that can be performed by anyone. I've included debug messages in the log file so you can see when the script is in action.

As I said, this will only kick in when the escape pod occupant has no bounty or insurance value set. In most cases the occupant will have those values, so this OXP will do nothing. The instances of there being no values should be rare, but hopefully this will pick them up and correct them. As a test, I started an Oolite session and just let the simulation run. After 3.5 hours, there had been 2 instances of needing to add insurance to an escape pod occupant (one to a standard Python, one to a gsagostinho Cobra Mark IV).

Download v1.0 EscapePodSlaveFix.zip (unzip the ".oxp" folder to your AddOns folder)

If this proves to be effective and non-conflicting, I'll add it as a download manager item.

User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 13652
Joined: Sat Jul 04, 2009 9:31 pm
Location: Corke's Drift
Contact:

Re: Escape Pod Slave Fix

Post by Cody » Tue Aug 28, 2018 5:39 am

Damn slaves, stealing their owners' escape pods, and escaping!

User avatar
phkb
Commodore
Commodore
Posts: 2415
Joined: Tue Jan 21, 2014 10:37 pm
Location: [p]laying [h]ard and [k]icking [b]utt somewhere in G7...

Re: Escape Pod Slave Fix

Post by phkb » Tue Aug 28, 2018 6:24 am

<chuckles>

User avatar
NorthenderPNE
Dangerous
Dangerous
Posts: 114
Joined: Tue Jul 25, 2006 2:32 pm
Location: England

Re: Escape Pod Slave Fix

Post by NorthenderPNE » Sat Jun 01, 2019 3:48 pm

Hi phkb

I know this is a few months old but i was going through your addon list adding any i don't have, yeah i'm a phkb addon addict. Is this still relevant as in has it been fixed in later Oolite versions? If not i'll add it to my list. :wink:
Death to all humans!

** Oolite rating - COMPETENT **

User avatar
phkb
Commodore
Commodore
Posts: 2415
Joined: Tue Jan 21, 2014 10:37 pm
Location: [p]laying [h]ard and [k]icking [b]utt somewhere in G7...

Re: Escape Pod Slave Fix

Post by phkb » Sat Jun 01, 2019 10:08 pm

There hasn’t been any fix to core code for this issue. I had a quick look but couldn’t spot an obvious problem. It’s on my todo list to add it to the manager though.

User avatar
phkb
Commodore
Commodore
Posts: 2415
Joined: Tue Jan 21, 2014 10:37 pm
Location: [p]laying [h]ard and [k]icking [b]utt somewhere in G7...

Re: Escape Pod Slave Fix

Post by phkb » Sun Jun 02, 2019 7:15 am

phkb wrote:
Sat Jun 01, 2019 10:08 pm
It’s on my todo list to add it to the manager though.
The OXP, I mean, not core code. Core doesn't need to be added to the manager. And adding it to the manager would likely cause the Internet to fold in on itself the first time someone tried to download something, initiating an infinite recursion loop, and people wouldn't be able to view any more cute cat videos. Which would be sad. So, it's just the OXP. This time.

User avatar
NorthenderPNE
Dangerous
Dangerous
Posts: 114
Joined: Tue Jul 25, 2006 2:32 pm
Location: England

Re: Escape Pod Slave Fix

Post by NorthenderPNE » Sun Jun 02, 2019 7:30 am

phkb wrote:
Sun Jun 02, 2019 7:15 am
phkb wrote:
Sat Jun 01, 2019 10:08 pm
It’s on my todo list to add it to the manager though.
The OXP, I mean, not core code. Core doesn't need to be added to the manager. And adding it to the manager would likely cause the Internet to fold in on itself the first time someone tried to download something, initiating an infinite recursion loop, and people wouldn't be able to view any more cute cat videos. Which would be sad. So, it's just the OXP. This time.
An incursion loop is so dangerous that time and space could fold in on itself, i might leave it then. :D
Death to all humans!

** Oolite rating - COMPETENT **

Post Reply