Oolite Bulletins

For information and discussion about Oolite.
It is currently Fri Feb 23, 2018 2:55 am

All times are UTC




Post new topic  Reply to topic  [ 10 posts ] 
Author Message
PostPosted: Tue Feb 12, 2013 5:22 am 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Sat Jun 11, 2011 6:07 am
Posts: 2161
Location: Western Australia
Every station has an F3 screen, right? If you want to deter the player from buying equipment, you set the tech level really low and the equipment price factor really high, but you can't actually prevent the player re-fuelling at a station, except by blocking the actual guiScreen change?

Similarly, does every station have an F8 market? If not, how do I test for presence or absence of a market?


Last edited by Wildeblood on Tue Feb 19, 2013 7:38 am, edited 1 time in total.

Top
   
PostPosted: Tue Feb 12, 2013 7:42 am 
Offline
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
User avatar

Joined: Fri Nov 11, 2011 6:19 pm
Posts: 4015
Quote:
but you can't actually prevent the player re-fuelling at a station
You can in 1.77. Give the station the script_info key "oolite-barred-equipment" = ("EQ_FUEL") (Works for other core equipment items too - just add them to the list)

All stations have a market.

_________________
OXPs: [EliteWiki] New Cargoes, [EliteWiki] Skilled NPCs, [EliteWiki] Curse of the Black Sunspot, and more


Top
   
PostPosted: Tue Feb 12, 2013 8:27 am 
Offline
Thargoid
Thargoid
User avatar

Joined: Thu Jun 12, 2008 6:55 pm
Posts: 5510
It is however possible to block access to the market screen via use of a mission screen. See Lave Academy for an example. The market screen is there, but not accessible.

_________________
My OXPs via Boxspace or from my Wiki pages :D.

Thargoid TV
Dropbox Referral Link


Top
   
PostPosted: Tue Feb 12, 2013 11:31 am 
Offline
Intergalactic Spam Assassin
Intergalactic Spam Assassin
User avatar

Joined: Thu Dec 14, 2006 9:08 am
Posts: 9520
Location: a Hacker Outpost in a moderately remote area
Another way of effectively removing the market is to set all prices and quantities to 0. The market screen remains accessible, but the player can't do anything useful (unless you deem selling stuff for nothing to be useful).

_________________
The Story — The Career — The OXPs


Top
   
PostPosted: Wed Feb 13, 2013 11:31 pm 
Offline
---- E L I T E ----
---- E L I T E ----

Joined: Mon May 31, 2010 11:11 pm
Posts: 1963
Storing items at a 0-price station market can be useful if you're cleaning up a huge debris field and you don't want others to get it...


Top
   
PostPosted: Tue Feb 19, 2013 7:47 am 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Sat Jun 11, 2011 6:07 am
Posts: 2161
Location: Western Australia
Thanks for the replies, guys. I have a follow-up question: do, and should, station interfaces persist after you launch from the station?

That is, on shipDockedWithStation I set up an interface screen, but only if it's a new station I haven't already docked with, then I launch and re-dock. On re-docking my set-up code doesn't run, but the interface screen is still available. My observation is that this works, but is it the intended behaviour, or is it likely to be "fixed" in future Oolite versions?

(Also, is it possible to set interfaces before docking with a station?) (I've no reason for asking that one, it's just idle curiosity.)


Top
   
PostPosted: Tue Feb 19, 2013 8:01 am 
Offline
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
User avatar

Joined: Fri Nov 11, 2011 6:19 pm
Posts: 4015
Yes, that's intended behaviour, and no, you don't have to be docked with the station to set up the interface - all the core interfaces are set up on witchspace exit. If you do run the set up code on every docking it's harmless, though, as it will just overwrite the previous one (also intentional: interfaces thematically bound to the ship should probably be present at every station, and the easiest way to do this is just to unconditionally set it up on docking)

_________________
OXPs: [EliteWiki] New Cargoes, [EliteWiki] Skilled NPCs, [EliteWiki] Curse of the Black Sunspot, and more


Top
   
PostPosted: Tue Feb 19, 2013 10:21 am 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Sun Aug 05, 2012 11:46 pm
Posts: 273
Quote:
Storing items at a 0-price station market can be useful if you're cleaning up a huge debris field and you don't want others to get it...
Hmmm. Is it possible to make prices negative, so you would have to pay to sell? 8)


Top
   
PostPosted: Tue Feb 19, 2013 11:32 am 
Offline
Intergalactic Spam Assassin
Intergalactic Spam Assassin
User avatar

Joined: Thu Dec 14, 2006 9:08 am
Posts: 9520
Location: a Hacker Outpost in a moderately remote area
Quote:
Quote:
Storing items at a 0-price station market can be useful if you're cleaning up a huge debris field and you don't want others to get it...
Hmmm. Is it possible to make prices negative, so you would have to pay to sell? 8)
No.

_________________
The Story — The Career — The OXPs


Top
   
PostPosted: Tue Feb 19, 2013 12:00 pm 
Offline
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
User avatar

Joined: Sat Jun 16, 2007 3:48 pm
Posts: 5536
Location: Netherlands
Quote:
Thanks for the replies, guys. I have a follow-up question: do, and should, station interfaces persist after you launch from the station?)
As Cim also wrote: it is a station feature, not a docking feature. e.g. for random hits, I only define the interface once on spawning the spacebar. Because the interface does not change in time, there no need to set it on every docking.

_________________
UPS-Courier & DeepSpacePirates & others at the box and some older versions


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 10 posts ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 16 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited