Smugglers OXP.

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

Post Reply
User avatar
Shipbuilder
---- E L I T E ----
---- E L I T E ----
Posts: 877
Joined: Thu May 10, 2012 9:41 pm
Location: Derby

Smugglers OXP.

Post by Shipbuilder »

Ok I have just been reading a post regarding legal status and smuggling contraband and thought that an OXP in which you would have a chance of launching from a station while carrying illegal goods without the authorities detecting what you are carrying could be a good idea.

It wouldn’t want to be guaranteed but maybe allows launches with undetected illegal goods with a success rate of maybe 80% (Or for anyone who is clever enough to script something maybe a reduced chance of success as the Tech level of systems increase).

I would also think that any illegal goods couldn’t be purchased at a station then hidden as there would be a record of which goods had been purchased for each ship.

Where I see this becoming useful would be for instances when you scoop illegal goods, land on a stations for fuel or whatever but the sale price of the illegal goods you are carrying is low so you then have the choice to take the risk of launching and selling elsewhere.

Think along the lines of the smuggling compartments under the floor of the Millennium Falcon in Star Wars - A New Hope.

Unfortunately this is something that I wouldn’t know where to start as I am very limited with regard to my scripting abilities (My area of knowledge relates more to modelling, texturing etc).

If however there is anyone reading this who thinks that it is a good idea and has the ability I would certainly like to see it as an OXP.
The GalTech Industries Corporation - Building ships to populate the galaxies.

Increase the variety of ships within your Ooniverse by downloading my OXPs

Flying the [wiki]Serpent_Class_Cruiser[/wiki] "Thargoid's Bane"
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Re: Smugglers OXP.

Post by Thargoid »

It sounds a little like the hacked version of Hypercargo.

It can be done, perhaps alternatively as a purchasable piece of equipment (retrofit a hidden hold a la the Millenium Falcon already mentioned) or perhaps even a feature of a specific new ship.

The pain is working with all the other OXPs in that area (New Cargoes for example, although it's not the only one). But it can be done. Indeed it tickles my interest, although I'm a bit focussed on prep for 1.77 at the moment so will offer assistance if needed by anyone else (as normal).
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: Smugglers OXP.

Post by cim »

New Cargoes does have a little bit of smuggling in it (you can get permits to carry illegal goods, though the price is not usually worth it; you can get forged permits to carry illegal goods considerably more cheaply)

You could add that sort of smuggling to it by using the permit interface to add one-off invisible permits with a detection chance, when launching from a station. Would only work for specific rather than generic illegal cargoes, though.
User avatar
Rese249er
---- E L I T E ----
---- E L I T E ----
Posts: 647
Joined: Thu Jun 07, 2012 2:19 pm
Location: Well, I WAS in G3...

Re: Smugglers OXP.

Post by Rese249er »

A modification of HyperCargo without the energy drain and holding only a quarter of the main hold, which is then reduced by the size of the 'hidden compartments'; the smaller hidden cargospace is easier to miss by station authorities.

Does this get any ideas rolling?
Got all turned around, lost my nav connection... Where am I now?
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Re: Smugglers OXP.

Post by Commander McLane »

The most simple implementation would be to compare the player's bounty before and after launching, and reset it to the "before"-value with a certain probability. I don't think this would conflict with any other OXP. Also, it would only require very few lines of code.
User avatar
Rese249er
---- E L I T E ----
---- E L I T E ----
Posts: 647
Joined: Thu Jun 07, 2012 2:19 pm
Location: Well, I WAS in G3...

Re: Smugglers OXP.

Post by Rese249er »

If this is modified by tech and gov level, I'd start carrying narcotics!
Got all turned around, lost my nav connection... Where am I now?
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: Smugglers OXP.

Post by Wildeblood »

Commander McLane wrote:
The most simple implementation would be to compare the player's bounty before and after launching, and reset it to the "before"-value with a certain probability. I don't think this would conflict with any other OXP. Also, it would only require very few lines of code.
That's what I thought as soon as I read the OP.

Test this one, based on my Priority Launch OXP.

https://www.box.com/s/ohkbbfql8v1yuu7gcmd5
In your heart, you know it's flat.
User avatar
Rese249er
---- E L I T E ----
---- E L I T E ----
Posts: 647
Joined: Thu Jun 07, 2012 2:19 pm
Location: Well, I WAS in G3...

Re: Smugglers OXP.

Post by Rese249er »

Wildeblood wrote:
Test this one, based on my Priority Launch OXP.
LIKE! Downloaded.
Got all turned around, lost my nav connection... Where am I now?
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: Smugglers OXP.

Post by Wildeblood »

Hmm. shipLauchedFromStation? That "lauching" will do it every time. Sorry to the two people who already downloaded. :oops: It's fixed now.
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Re: Smugglers OXP.

Post by Thargoid »

One slight improvement could be adding a small timered delay to the bounty reset. As Cim already mentioned his New Cargoes does offer permits which parallel this idea, so if you're not careful then you could actually get a lowered bounty for carrying illegal goods (by your OXP resetting the bounty then the permits lowering it further). I haven't tested it to see if that could happen in gameplay (ie which order scripts fire in) but it's a simple bit of compatibility-proofing in any case.

There was another OXP that Cim and I worked with to get Hypercargo and New Cargoes fully cargo mutually compatible which may also come into play. I forget offhand which one that was though, as it's been a while.
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: Smugglers OXP.

Post by cim »

Thargoid wrote:
There was another OXP that Cim and I worked with to get Hypercargo and New Cargoes fully cargo mutually compatible which may also come into play. I forget offhand which one that was though, as it's been a while.
Illegal Goods Tweak.
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: Smugglers OXP.

Post by Smivs »

Wildeblood wrote:
Hmm. shipLauchedFromStation? That "lauching" will do it every time.
Heh, reminds me of a frustrating half hour I once spent because my shipWillLunchFromStation. Although clearly well fed, it didn't work! :roll:
<Notices post count and thinks he talks too much> 8)
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Re: Smugglers OXP.

Post by Commander McLane »

Smivs wrote:
<Notices post count and thinks he talks too much> 8)
Congrats to #5000! :D
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: Smugglers OXP.

Post by Eric Walch »

Commander McLane wrote:
The most simple implementation would be to compare the player's bounty before and after launching, and reset it to the "before"-value with a certain probability. I don't think this would conflict with any other OXP.
This is something that ThargoidWars.oxp already did in the old legacy code. But it certainly runs a big risk of conflicting if more do similar things. ThargoidWars.oxp keeps your legal status the same if you are forced to launch to help the station fighting thargoids. For this it reads the status on launch and sets it back after launch. If another oxp does exactly the same, they are just duplicating things, but, if that other oxp does something different, you are likely to run in conflicts, depending on the order that the oxps execute their eventhandler.
Post Reply