Page 1 of 1

Smugglers OXP.

Posted: Sun Nov 11, 2012 9:14 pm
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.

Re: Smugglers OXP.

Posted: Sun Nov 11, 2012 9:20 pm
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).

Re: Smugglers OXP.

Posted: Sun Nov 11, 2012 9:34 pm
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.

Re: Smugglers OXP.

Posted: Sun Nov 11, 2012 9:52 pm
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?

Re: Smugglers OXP.

Posted: Sun Nov 11, 2012 10:08 pm
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.

Re: Smugglers OXP.

Posted: Sun Nov 11, 2012 10:09 pm
by Rese249er
If this is modified by tech and gov level, I'd start carrying narcotics!

Re: Smugglers OXP.

Posted: Mon Nov 12, 2012 6:10 am
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

Re: Smugglers OXP.

Posted: Mon Nov 12, 2012 6:27 am
by Rese249er
Wildeblood wrote:
Test this one, based on my Priority Launch OXP.
LIKE! Downloaded.

Re: Smugglers OXP.

Posted: Mon Nov 12, 2012 7:33 am
by Wildeblood
Hmm. shipLauchedFromStation? That "lauching" will do it every time. Sorry to the two people who already downloaded. :oops: It's fixed now.

Re: Smugglers OXP.

Posted: Mon Nov 12, 2012 7:49 am
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.

Re: Smugglers OXP.

Posted: Mon Nov 12, 2012 9:00 am
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.

Re: Smugglers OXP.

Posted: Mon Nov 12, 2012 9:37 am
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)

Re: Smugglers OXP.

Posted: Mon Nov 12, 2012 10:46 am
by Commander McLane
Smivs wrote:
<Notices post count and thinks he talks too much> 8)
Congrats to #5000! :D

Re: Smugglers OXP.

Posted: Mon Nov 12, 2012 11:01 am
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.