Disable 'ship outfitting'?

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

Moderators: winston, another_commander

Post Reply
UK_Eliter
---- E L I T E ----
---- E L I T E ----
Posts: 1246
Joined: Sat Sep 12, 2009 11:58 pm
Location: Essex (mainly industrial and occasionally anarchic)

Disable 'ship outfitting'?

Post by UK_Eliter »

I'd like to disable the outfitting screen - where one buys equipment - entirely, or at least to make it empty. Can I do that, for a rock hermit? If so, how? Thanks.
User avatar
Nite Owl
---- E L I T E ----
---- E L I T E ----
Posts: 540
Joined: Sat Jan 20, 2018 4:08 pm
Location: In The Dark

Re: Disable 'ship outfitting'?

Post by Nite Owl »

The following is from phkb's recent update of Generation Ships. This may also answer your question about disabling markets for a Rock Hermit in another thread. Some changes would have to be made to the following JavaScript to adapt it to your needs. My contribution here is to cut and paste. For real insight contact phkb.

Code: Select all

// if the player docks, hide the F3 screen from them.
this.guiScreenChanged = function (to, from) {
	if (player.ship.docked) {
		if (player.ship.dockedStation.hasRole("generationship")) { 
			if (guiScreen === "GUI_SCREEN_EQUIP_SHIP") {
				mission.runScreen({
					title: "Generation Ship",
					message: "There is no equipment available for your vessel on a Generation Ship."
				});
			}
			if (guiScreen === "GUI_SCREEN_MARKET") {
				mission.runScreen({
					title: "Generation Ship",
					message: "There is no market available on a Generation Ship."
				});
			}
		}
	}
}
Humor is the second most subjective thing on the planet

Brevity is the soul of wit and vulgarity is wit's downfall

Good Night and Good Luck - Read You Soon
UK_Eliter
---- E L I T E ----
---- E L I T E ----
Posts: 1246
Joined: Sat Sep 12, 2009 11:58 pm
Location: Essex (mainly industrial and occasionally anarchic)

Re: Disable 'ship outfitting'?

Post by UK_Eliter »

That might help - thanks.

The big news here is phkb seems to have made generation ships - and not just the hijacked type that I designed - dockable! But, hold on, no market? The inhabitants of a generation ship might lack credits, but I imagine they'd be desperate to barter for supplies! Perhaps - ignoring the point about credits - one should be able to sell them luxuries and alloys and radioactives and food and textiles (and perhaps some other things) and receive monstrous amounts of credits in return!
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4814
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Disable 'ship outfitting'?

Post by phkb »

UK_Eliter wrote: Thu Jul 08, 2021 12:19 am
But, hold on, no market?
I couldn't see the logic of how a Generation ship could have a market in anything - even assuming the might want certain products, they wouldn't have any way to pay you. The likelihood of a ship that old having the current universe "credits" is a bit of a stretch. As you say, bartering might work, but again, that's not what the F8 screen does - it's based on credits. So, really, to maintain some semblance of logic, I'd need to rewrite the F8 market screen to be a bartering system.

Anyway, happy to bat this around some more, maybe in the Gen Ships thread.
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4814
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Disable 'ship outfitting'?

Post by phkb »

UK_Eliter wrote: Thu Jul 08, 2021 12:19 am
The big news here is phkb seems to have made generation ships ... dockable!
Well, yes, but...

Don't. Especially if you like your bank balance. And your clean rating.
UK_Eliter
---- E L I T E ----
---- E L I T E ----
Posts: 1246
Joined: Sat Sep 12, 2009 11:58 pm
Location: Essex (mainly industrial and occasionally anarchic)

Re: Disable 'ship outfitting'?

Post by UK_Eliter »

This is what I've decided to go for, when one docks with an abandoned hermit (an abandoned hermit - supplied by the Spicy Hermits OXP - that I've tweaked). I adapted the code from my InterstellarTweaks.

Image

I noticed that when I was docking, a hermit pirate continued to attack me; here is the view from my rear.

Image

It even fired a missile at me!
Post Reply