Free Trade Zone OXP

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

Moderators: winston, another_commander

User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Post by Eric Walch »

Only formerly clean visitors will be "marked for attention" by your script, putting a bounty of 5 Cr on their head.
Not very nice to punish a innocent trader with illegal points. Better give him a warning first. I noticed that your station has his own AI script. You could replace the current IDLE state with next two states. Both are altered copies of your current IDLE state. The first just waits till it sees the player and than gives a warning and jumps to the second state. The jump is made to make sure the welcome message is only given once.
IDLE = {
ATTACKED = (setTargetToPrimaryAggressor, increaseAlertLevel, launchPirateShip, "setStateTo: DEFENSE_MODE");
ENTER = ();
EXIT = ();
"TARGET_FOUND" = ("commsMessage: You are welcome any time. But by %I law we must warn you that docking is seen as an illegal action!", "setStateTo: WARNED_PLAYER");
"INCOMING_MISSILE" = (fireECM, increaseAlertLevel);
UPDATE = (decreaseAlertLevel, "scanForNearestShipWithRole: player");
};
WARNED_PLAYER = {
ATTACKED = (setTargetToPrimaryAggressor, increaseAlertLevel, launchPirateShip, "setStateTo: DEFENSE_MODE");
ENTER = ();
EXIT = ();
"INCOMING_MISSILE" = (fireECM, increaseAlertLevel);
UPDATE = (decreaseAlertLevel);
};
User avatar
Cmdr Wyvern
---- E L I T E ----
---- E L I T E ----
Posts: 1649
Joined: Tue Apr 11, 2006 1:47 am
Location: Somewhere in the great starry void

Post by Cmdr Wyvern »

Captain Hesperus wrote:
Cmdr Wyvern wrote:
uumm... Considering that Lady Tiomat bears no distinguishing marks on her hull, just the standard factory paint, how can you tell her from any stock Dragon?
I'm a feline.
We have a tendency to scent-mark things we may feel will be important at a later date.
Your landing gear was the most easily accessable place to.......mark.

Captain Hesperus
Ahh, I see. I've forgotten about that.
Well, do knock on the hatch. She'll inform you if I'm aboard or not. But drop thoughts of grand theft starship out of your mind, she can defend herself from forced entry with some antipersonnel defenses I've installed.

Meanwhile, I noticed the pirate ships loitering about the FTZ don't release cargo when destroyed.
Running Oolite buttery smooth & rock stable w/ tons of eyecandy oxps on:
ASUS Prime X370-A
Ryzen 5 1500X
16GB DDR4 3200MHZ
128GB NVMe M.2 SSD (Boot drive)
1TB Hybrid HDD (For software and games)
EVGA GTX-1070 SC
1080P Samsung large screen monitor
User avatar
Disembodied
Jedi Spam Assassin
Jedi Spam Assassin
Posts: 6885
Joined: Thu Jul 12, 2007 10:54 pm
Location: Carter's Snort

Post by Disembodied »

Eric Walch wrote:
Only formerly clean visitors will be "marked for attention" by your script, putting a bounty of 5 Cr on their head.
Not very nice to punish a innocent trader with illegal points. Better give him a warning first. I noticed that your station has his own AI script. You could replace the current IDLE state with next two states. Both are altered copies of your current IDLE state. The first just waits till it sees the player and than gives a warning and jumps to the second state. The jump is made to make sure the welcome message is only given once.
IDLE = {
ATTACKED = (setTargetToPrimaryAggressor, increaseAlertLevel, launchPirateShip, "setStateTo: DEFENSE_MODE");
ENTER = ();
EXIT = ();
"TARGET_FOUND" = ("commsMessage: You are welcome any time. But by %I law we must warn you that docking is seen as an illegal action!", "setStateTo: WARNED_PLAYER");
"INCOMING_MISSILE" = (fireECM, increaseAlertLevel);
UPDATE = (decreaseAlertLevel, "scanForNearestShipWithRole: player");
};
WARNED_PLAYER = {
ATTACKED = (setTargetToPrimaryAggressor, increaseAlertLevel, launchPirateShip, "setStateTo: DEFENSE_MODE");
ENTER = ();
EXIT = ();
"INCOMING_MISSILE" = (fireECM, increaseAlertLevel);
UPDATE = (decreaseAlertLevel);
};
Thanks for the script. It's always interesting to see what can be done! I'll think about it, although to be honest I do feel that anyone even entering an FTZ should be given something to worry about. The FTZs themselves prefer to maintain the fiction that they're all legal and above board, whereas in reality they owe their existence to ongoing disputes between the various self-interested nations of multi-government worlds and the centralising tendencies of GalCop. GalCop tolerate FTZs, barely: they're not so tolerant about those who choose to avail themselves of the opportunities offered there. And the "Offender" tag wears off after a couple of jumps, assuming no other (visible) transgressions are made.

It's true that it is unfair to put a black mark on a Clean trader, just for docking, whether or not any purchase is made: but then it's unfair for GalCop to brand an otherwise Clean trader who's scooped a couple of tons of Narcotics from the wreckage of some clown who's collided with a Torus station, and who sees another accident happening just as he's docking, and who then immediately launches again in a purely philanthropic attempt to clear the resulting debris from the main lane, without first having divested himself of the aforesaid Narcotics... to pick a purely hypothetical example. :wink: They're a suspicious bunch, GalCop, and seem to prefer lasers to reasonable, plausible excuses about honest mistakes.
User avatar
Disembodied
Jedi Spam Assassin
Jedi Spam Assassin
Posts: 6885
Joined: Thu Jul 12, 2007 10:54 pm
Location: Carter's Snort

Post by Disembodied »

Cmdr Wyvern wrote:
I noticed the pirate ships loitering about the FTZ don't release cargo when destroyed.
Hmm... you're right. I had to make a special "ftzpirate" role, and clone pirates using like-ship, because just adding ships with the role "pirate" in the area tended to produce people who acted like pirates (i.e. they attacked you) but who often registered as "Clean" on the targeting enhancement -- something which I think also happened in the Sunskimmers OXP? Although I admit I did like this effect, and added a couple of such "Clean" brigands to the mix anyway: you can't trust anyone round an FTZ.

I'll have a look at the special "ftzpirate"-role ships, and make sure at least some of them are carrying some loot. Maybe an occasional convoy, carrying a new batch of goodies in to the station?
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: Free Trade Zone OXP

Post by Commander McLane »

Commander McLane wrote:
In order to make the whole thing work you need one more change: When you leave the Free Trade Zone the marker has to be reset, so that on your next visit you can be fined again. You can do this by adding a "reset: local_freetradezone_marked", in front of the "checkForShips: " in the first STATUS_LAUNCHING-condition, then you don't need another condition-clause. But of course also that would be possible.
BTW: Yesterday I forgot that you also could want to fine the player only once per FTZ, so even when you launch and redock you wouldn't be fined again. You can achieve this by putting the "reset: local_freetradezone_marked" in the first STATUS_EXITING_WITCHSPACE-condition instead of the STATUS_LAUNCHING. Then you will only be fined again if you enter a FTZ in another system.
User avatar
Disembodied
Jedi Spam Assassin
Jedi Spam Assassin
Posts: 6885
Joined: Thu Jul 12, 2007 10:54 pm
Location: Carter's Snort

Re: Free Trade Zone OXP

Post by Disembodied »

Commander McLane wrote:
Commander McLane wrote:
In order to make the whole thing work you need one more change: When you leave the Free Trade Zone the marker has to be reset, so that on your next visit you can be fined again. You can do this by adding a "reset: local_freetradezone_marked", in front of the "checkForShips: " in the first STATUS_LAUNCHING-condition, then you don't need another condition-clause. But of course also that would be possible.
BTW: Yesterday I forgot that you also could want to fine the player only once per FTZ, so even when you launch and redock you wouldn't be fined again. You can achieve this by putting the "reset: local_freetradezone_marked" in the first STATUS_EXITING_WITCHSPACE-condition instead of the STATUS_LAUNCHING. Then you will only be fined again if you enter a FTZ in another system.
OK, thanks... I'll revise as suggested.

Edit: Done that, much more satisfying! I'll have a go at making a few more FTZ customer types, including some with cargo (maybe even an occasional GalCop raid?) and reissue the OXP shortly.
User avatar
Disembodied
Jedi Spam Assassin
Jedi Spam Assassin
Posts: 6885
Joined: Thu Jul 12, 2007 10:54 pm
Location: Carter's Snort

Post by Disembodied »

New version v0.13 available here. The pirates around the FTZ can now carry cargo, and there is the occasional chance of a GalCop raid on the surrounding space...

Edit: link updated after original went bad...
Last edited by Disembodied on Sun Sep 23, 2007 5:32 pm, edited 1 time in total.
User avatar
Helvellyn
Dangerous
Dangerous
Posts: 118
Joined: Wed Jul 11, 2007 11:59 pm
Location: Qudira
Contact:

Post by Helvellyn »

Disembodied wrote:
It's true that it is unfair to put a black mark on a Clean trader, just for docking, whether or not any purchase is made: but then it's unfair for GalCop to brand an otherwise Clean trader who's scooped a couple of tons of Narcotics from the wreckage of some clown who's collided with a Torus station, and who sees another accident happening just as he's docking, and who then immediately launches again in a purely philanthropic attempt to clear the resulting debris from the main lane, without first having divested himself of the aforesaid Narcotics... to pick a purely hypothetical example. :wink: They're a suspicious bunch, GalCop, and seem to prefer lasers to reasonable, plausible excuses about honest mistakes.
Good job you're not running the police IRL, otherwise you'd have people arrested simply for walking through a market containing a stall selling counterfeit goods!
User avatar
Disembodied
Jedi Spam Assassin
Jedi Spam Assassin
Posts: 6885
Joined: Thu Jul 12, 2007 10:54 pm
Location: Carter's Snort

Post by Disembodied »

Helvellyn wrote:
Good job you're not running the police IRL, otherwise you'd have people arrested simply for walking through a market containing a stall selling counterfeit goods!
It's all part and parcel of GalCop's attempt to stamp out these dens of iniquity. As the unofficial GalCop motto says, you can't make an omelette without lasering some innocents... :)
User avatar
julyy
Dangerous
Dangerous
Posts: 84
Joined: Mon May 16, 2005 9:51 am

Post by julyy »

Downloadlink please!!!!!!
User avatar
elite
Deadly
Deadly
Posts: 128
Joined: Thu Jun 21, 2007 9:26 am

Post by elite »

julyy wrote:
Downloadlink please!!!!!!

Yeah the links don't work for me either.
User avatar
Disembodied
Jedi Spam Assassin
Jedi Spam Assassin
Posts: 6885
Joined: Thu Jul 12, 2007 10:54 pm
Location: Carter's Snort

Post by Disembodied »

Sorry, folks... the upload went AWOL but I don't know why! I've put it back up again here. I'd put it on the Wiki but I'm not sure of the procedure...
User avatar
elite
Deadly
Deadly
Posts: 128
Joined: Thu Jun 21, 2007 9:26 am

Post by elite »

Disembodied wrote:
Sorry, folks... the upload went AWOL but I don't know why! I've put it back up again here. I'd put it on the Wiki but I'm not sure of the procedure...
Got it now. Thanks.
Chrisfs
---- E L I T E ----
---- E L I T E ----
Posts: 433
Joined: Sun Sep 20, 2009 10:24 am
Location: California

Post by Chrisfs »

I noticed something quite surprising. Maybe it's true of all rock hermits, but they don't mass lock you out of jump drive. It is, I assure you, quite possible to be approaching a FTZ at jump speeds and crash right into it, Giving you a space bar moment. luckily, I saved not too far back. Though my passenger in his berth is going to be having an awfully strong feeling of deja vu for the next few planets. :)
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6312
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Post by Diziet Sma »

Technically speaking, it's just another asteroid, albeit hollow.. asteroids don't mass-lock ships.
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
Post Reply