Release: Harder Hermits

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

Moderators: winston, another_commander

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

Re: Release: Harder Hermits

Post by UK_Eliter »

hiran,

There is a thread about the OXP.
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4830
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Release: Harder Hermits

Post by phkb »

UK_Eliter wrote: Tue Jul 06, 2021 1:14 pm
If you could give me a hint or two on how to detect which hermits your OXP will take control over, then I can adjust my OXP to leave those hermits alone.
station.hasRole(“hermitage”)
User avatar
Cholmondely
Archivist
Archivist
Posts: 5368
Joined: Tue Jul 07, 2020 11:00 am
Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
Contact:

Re: Release: Harder Hermits

Post by Cholmondely »

hiran wrote: Tue Jul 06, 2021 6:05 pm
phkb wrote: Tue Jul 06, 2021 12:50 pm
[...] if the RH is a player-owned hermitage, then [...]
Player-owned rock hermitages? That sounds interesting.
Why would a player own a hermitage? So far I thought Oolite is all about flying a ship...
Why fly a ship when you can fly a rock instead?
Comments wanted:
Missing OXPs? What do you think is missing?
Lore: The economics of ship building How many built for Aronar?
Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
UK_Eliter
---- E L I T E ----
---- E L I T E ----
Posts: 1248
Joined: Sat Sep 12, 2009 11:58 pm
Location: Essex (mainly industrial and occasionally anarchic)

Re: Release: Harder Hermits

Post by UK_Eliter »

phkb:

Thanks. But: hmm. Does anything that has the role 'hermitage' ever have a primaryRole that is one of the following?

- rockhermit
- rockhermit-chaotic
- rockhermit-pirate

If not, then I think my OXP will touch no hermitages. For, I use the following functions to determine which hermits I consider modifying. (The comments within these functions are somewhat new. The actual code is in the published version of my OXP.)

Code: Select all

/*
================
ENTITY PICKER(S)
================

The following roles are from Oolite itself:

	rockhermit
	rockhermit-chaotic
	rock-hermit-pirate

The following role is from SpicyHermits:

	spicy_hermits_abandoned
*/


this.$isHermit = function ( e )
{
	return e.isShip && ( e.primaryRole === "rockhermit" || e.primaryRole === "rockhermit-chaotic" || e.primaryRole === "rockhermit-pirate" );
};

this.$isHermit_abandoned = function ( e )
{
	return e.isShip && e.primaryRole === "asteroid" && e.name === "Abandoned Rock Hermit";
	// SpicyHermits makes a hermit abandoned by changing its role to 'asteroid' and its name to 'Abandoned Rock Hermit'.
};

this.$isHermit_abandonedQuasi = function ( e )
{
	return e.isShip && e.primaryRole === "spicy_hermits_abandoned" && e.hasRole ( "harderHermits_abandonedQuasi" );
};
Apologies if I overlook anything or make a mistake.
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4830
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Release: Harder Hermits

Post by phkb »

UK_Eliter wrote: Tue Jul 06, 2021 9:25 pm
Does anything that has the role 'hermitage' ever have a primaryRole that is one of the following?

- rockhermit
- rockhermit-chaotic
- rockhermit-pirate
Yes. A hermitage will still have the same primary role. It will just have this additional role.
User avatar
hiran
Theorethicist
Posts: 2403
Joined: Fri Mar 26, 2021 1:39 pm
Location: a parallel world I created for myself. Some call it a singularity...

Re: Release: Harder Hermits

Post by hiran »

Cholmondely wrote: Tue Jul 06, 2021 8:47 pm
hiran wrote: Tue Jul 06, 2021 6:05 pm
phkb wrote: Tue Jul 06, 2021 12:50 pm
[...] if the RH is a player-owned hermitage, then [...]
Player-owned rock hermitages? That sounds interesting.
Why would a player own a hermitage? So far I thought Oolite is all about flying a ship...
Why fly a ship when you can fly a rock instead?
Does that mean the rock is operated just like a ship?

Hmmm. How do you dock? How do you refuel? Or is the solution just the same as with the Imperial Star Destroyer I started with?
Where, per design a shuttle should take care of station contact but took ages to get in. And finally I just took advantage of the star destroyer's shape and carefully pushed it into the docking bay - it would reach far enough to initiate the docking sequence...

And of course I'd be interested in the planetfall as well. :-D
Sunshine - Moonlight - Good Times - Oolite
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4830
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Release: Harder Hermits

Post by phkb »

hiran wrote: Wed Jul 07, 2021 6:11 am
Does that mean the rock is operated just like a ship?
The Hermitage is stationary. The Hermitage OXP is about managing and running said hermitage.
User avatar
hiran
Theorethicist
Posts: 2403
Joined: Fri Mar 26, 2021 1:39 pm
Location: a parallel world I created for myself. Some call it a singularity...

Re: Release: Harder Hermits

Post by hiran »

UK_Eliter wrote: Tue Jul 06, 2021 7:10 pm
hiran,

There is a thread about the OXP.
Just seeing this post. It answers a lot of questions. Thank you. :-)
Sunshine - Moonlight - Good Times - Oolite
Post Reply