Join us at the Oolite Anniversary Party -- London, 7th July 2024, 1pm
More details in this thread.

[Test RELEASE:] Interstellar Tweak OXP

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

Moderators: winston, another_commander

User avatar
Micha
Commodore
Commodore
Posts: 815
Joined: Tue Sep 02, 2008 2:01 pm
Location: London, UK
Contact:

Re: [Test RELEASE:] Interstellar Tweak OXP

Post by Micha »

It occurs to me that simply requesting a way to set a ship to be a hulk via JS would be the way forward, instead of doing all sorts of weird things in JS?

Obviously only after MNSR... :)
The glass is twice as big as it needs to be.
UK_Eliter
---- E L I T E ----
---- E L I T E ----
Posts: 1244
Joined: Sat Sep 12, 2009 11:58 pm
Location: Essex (mainly industrial and occasionally anarchic)

Re: [Test RELEASE:] Interstellar Tweak OXP

Post by UK_Eliter »

Micha wrote:
It occurs to me that simply requesting a way to set a ship to be a hulk via JS would be the way forward, instead of doing all sorts of weird things in JS?

Obviously only after MNSR... :)
Micha: it needn't be that weird, it turns out. For, if you have the right shipdata in your 'plist', then - others have helped me to discover - all you need in JS is something like

Code: Select all

this.derelictShip = system.addShips("IST_derelict", 1, this.position, 4000);
which invokes a ship role defined in the shipdata. Still, it would be nice to be able to do without the shipdata (and thus without defining a whole load of derelict ships).

Also, I thought that the MNSR was, at present, not that 'M' (mythical). But maybe I'm naive!
User avatar
Capt. Murphy
Commodore
Commodore
Posts: 1127
Joined: Fri Feb 25, 2011 8:46 am
Location: UK South Coast.

Re: [Test RELEASE:] Interstellar Tweak OXP

Post by Capt. Murphy »

Micha wrote:
It occurs to me that simply requesting a way to set a ship to be a hulk via JS would be the way forward, instead of doing all sorts of weird things in JS?

Obviously only after MNSR... :)
Would it be worth just slightly expanding the scope of the abandonShip method so that ships both with and without escape pods are made derelict when it is called via JS. It currently does the job for ships with escape pods, but does nothing at all for ships without pods.

Maybe a rename - makeDerelict([abandonShip : Boolean]). If sent with a true flag the ship will be made derelict and if it has pods they will be launched, if false it will just convert the ship to derelict status. Keep the existing abandonShip method for backwards compatibility.
[EliteWiki] Capt. Murphy's OXPs
External JavaScript resources - W3Schools & Mozilla Developer Network
Win 7 64bit, Intel Core i5 with HD3000 (driver rev. 8.15.10.2696 - March 2012), Oolite 1.76.1
User avatar
CommonSenseOTB
---- E L I T E ----
---- E L I T E ----
Posts: 1397
Joined: Wed May 04, 2011 10:42 am
Location: Saskatchewan, Canada

Re: [Test RELEASE:] Interstellar Tweak OXP

Post by CommonSenseOTB »

Capt. Murphy wrote:
Micha wrote:
It occurs to me that simply requesting a way to set a ship to be a hulk via JS would be the way forward, instead of doing all sorts of weird things in JS?

Obviously only after MNSR... :)
Would it be worth just slightly expanding the scope of the abandonShip method so that ships both with and without escape pods are made derelict when it is called via JS. It currently does the job for ships with escape pods, but does nothing at all for ships without pods.

Maybe a rename - makeDerelict([abandonShip : Boolean]). If sent with a true flag the ship will be made derelict and if it has pods they will be launched, if false it will just convert the ship to derelict status. Keep the existing abandonShip method for backwards compatibility.
A derelict ship has no one on board, right? So, if no escape capsules are launched, someone must still be on board. How does it make sense to make a ship derelict that has not fired escape capsules? I must have missed something. :?
Perhaps instead maybe some kind of spawnDerelict command would be better and avoid the possibility of one shot super weapons that disable an npc ship and turn it into a derelict. At the moment one can change the AI of the npc anyway to simulate such a weapon so why the need for a dedicated command?
Take an idea from one person and twist or modify it in a different way as a return suggestion so another person can see a part of it that can apply to the oxp they are working on.


CommonSense 'Outside-the-Box' Design Studios Ltd.
WIKI+OXPs
User avatar
JazHaz
---- E L I T E ----
---- E L I T E ----
Posts: 2991
Joined: Tue Sep 22, 2009 11:07 am
Location: Enfield, Middlesex
Contact:

Re: [Test RELEASE:] Interstellar Tweak OXP

Post by JazHaz »

CommonSenseOTB wrote:
A derelict ship has no one on board, right? So, if no escape capsules are launched, someone must still be on board. How does it make sense to make a ship derelict that has not fired escape capsules? I must have missed something. :?
The ship could be derelict if the crew has been killed? Their bodies might be on board, but the ship would be derelict still.
JazHaz

Gimi wrote:
drew wrote:
£4,500 though! :shock: <Faints>
Cheers,
Drew.
Maybe you could start a Kickstarter Campaign to found your £4500 pledge. 8)
Thanks to Gimi, I got an eBook in my inbox tonight (31st May 2014 - Release of Elite Reclamation)!
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5525
Joined: Thu Jun 12, 2008 6:55 pm

Re: [Test RELEASE:] Interstellar Tweak OXP

Post by Thargoid »

The question would be also can you have ships without a crew aboard which aren't derelicts.

There are certain scenarios where you might want that (for example my Hired Guns escorts, they're actually crewless flying rocks so they don't mass-lock you). If this got handled wrongly then you could end up with an active ship that the game sees as a salvagable hulk.

But equally such a ship could then also never be made into a derelict if you did want to, for the same reason of not being flagged as crewed.
User avatar
Capt. Murphy
Commodore
Commodore
Posts: 1127
Joined: Fri Feb 25, 2011 8:46 am
Location: UK South Coast.

Re: [Test RELEASE:] Interstellar Tweak OXP

Post by Capt. Murphy »

CommonSenseOTB wrote:
A derelict ship has no one on board, right? So, if no escape capsules are launched, someone must still be on board. How does it make sense to make a ship derelict that has not fired escape capsules? I must have missed something. :?
Perhaps instead maybe some kind of spawnDerelict command would be better and avoid the possibility of one shot super weapons that disable an npc ship and turn it into a derelict. At the moment one can change the AI of the npc anyway to simulate such a weapon so why the need for a dedicated command?
It's just really for convenience for OXP makers who want pre-existing derelicts spawned without having to define lots of derelict versions of ship models in shipdata. But maybe system.addShipsAsDerelict with the same parameters as system.addShips would be a better option.

Thargoid - you can giving 'flying rocks' a pilot (the escort contracts mother is a piloted 'flying rock') and keep them non-mass locking. The benefit being that the hired guns will then have some collision avoidance behaviour which they won't have at the minute.
[EliteWiki] Capt. Murphy's OXPs
External JavaScript resources - W3Schools & Mozilla Developer Network
Win 7 64bit, Intel Core i5 with HD3000 (driver rev. 8.15.10.2696 - March 2012), Oolite 1.76.1
UK_Eliter
---- E L I T E ----
---- E L I T E ----
Posts: 1244
Joined: Sat Sep 12, 2009 11:58 pm
Location: Essex (mainly industrial and occasionally anarchic)

Re: [Test RELEASE:] Interstellar Tweak OXP

Post by UK_Eliter »

Capt. Murphy wrote:
CommonSenseOTB wrote:
Thargoid - you can giving 'flying rocks' a pilot (the escort contracts mother is a piloted 'flying rock') and keep them non-mass locking. The benefit being that the hired guns will then have some collision avoidance behaviour which they won't have at the minute.
I have had escorts bump into me quite a bit! Also, 'twould be good were escorts to follow one when one misjumps (- I believe they don't do that at present). Or at least that makes sense - er, I think - if the idea is that they follow through your wormhole.
User avatar
CommonSenseOTB
---- E L I T E ----
---- E L I T E ----
Posts: 1397
Joined: Wed May 04, 2011 10:42 am
Location: Saskatchewan, Canada

Re: [Test RELEASE:] Interstellar Tweak OXP

Post by CommonSenseOTB »

UK_Eliter wrote:
Capt. Murphy wrote:
CommonSenseOTB wrote:
Thargoid - you can giving 'flying rocks' a pilot (the escort contracts mother is a piloted 'flying rock') and keep them non-mass locking. The benefit being that the hired guns will then have some collision avoidance behaviour which they won't have at the minute.
I have had escorts bump into me quite a bit! Also, 'twould be good were escorts to follow one when one misjumps (- I believe they don't do that at present). Or at least that makes sense - er, I think - if the idea is that they follow through your wormhole.
@UK Eliter, umm, I never wrote that. Proofread your quotes please.
@Capt. Murphy, system.addShipsAsDerelict sounds like the way to go.
Take an idea from one person and twist or modify it in a different way as a return suggestion so another person can see a part of it that can apply to the oxp they are working on.


CommonSense 'Outside-the-Box' Design Studios Ltd.
WIKI+OXPs
User avatar
Okti
---- E L I T E ----
---- E L I T E ----
Posts: 700
Joined: Sun Sep 26, 2010 1:51 pm
Location: A GH shop, near witchpoint to Oresrati in Galaxy 8

Re: [Test RELEASE:] Interstellar Tweak OXP

Post by Okti »

Looks like scripting requests thread will be busy after the new year. :D But if there is a way to do it with the current JS implementation I would prefer to do it now.
My OXP's
And Latest Mission Coyote's Run
UK_Eliter
---- E L I T E ----
---- E L I T E ----
Posts: 1244
Joined: Sat Sep 12, 2009 11:58 pm
Location: Essex (mainly industrial and occasionally anarchic)

Re: [Test RELEASE:] Interstellar Tweak OXP

Post by UK_Eliter »

@CommonSenseOTB:
'@UK Eliter, umm, I never wrote that. Proofread your quotes please.'
Ah, yes: you didn't say that. Someone else - namely, Capt. Murphy - did. Sorry. I am still learning how the 'quote' function works, it seems. (I feel that it would help if we explicitly signed our posts. Still, the whole virtual-name-not-being-your-real-name makes things a bit complicated - in that it seems odd signing by my avatar. That in turn raises the question of why I don't sign by my actual name. . Anyway, sorry to have misquoted you.)
Last edited by UK_Eliter on Sat Dec 10, 2011 12:54 am, edited 1 time in total.
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2321
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia

Re: [Test RELEASE:] Interstellar Tweak OXP

Post by Wildeblood »

UK_Eliter wrote:
That in turn raises the question of why I don't sign by my actual name.
Because until the internet came along, we didn't realize how many stalkers and nut-jobs there are in the world.
User avatar
CommonSenseOTB
---- E L I T E ----
---- E L I T E ----
Posts: 1397
Joined: Wed May 04, 2011 10:42 am
Location: Saskatchewan, Canada

Re: [Test RELEASE:] Interstellar Tweak OXP

Post by CommonSenseOTB »

UK_Eliter wrote:
@CommonSenseOTB:
'@UK Eliter, umm, I never wrote that. Proofread your quotes please.'
Ah, yes: you didn't say that. Someone else - namely, Capt. Murphy - did. Sorry. I am still learning how the 'quote' function works, it seems. (I feel that it would help if we explicitly signed our posts. Still, the whole virtual-name-not-being-your-real-name makes things a bit complicated - in that it seems odd signing by my avatar. That in turn raises the question of why I don't sign by my actual name. .) Anyway, sorry to have misquoted you.)
@UK_Eliter: It's allright. Are you using the quote button? I find that it is easier to use the button and then cut away what you don't need, for me it's faster and reduces errors. :wink:
Take an idea from one person and twist or modify it in a different way as a return suggestion so another person can see a part of it that can apply to the oxp they are working on.


CommonSense 'Outside-the-Box' Design Studios Ltd.
WIKI+OXPs
UK_Eliter
---- E L I T E ----
---- E L I T E ----
Posts: 1244
Joined: Sat Sep 12, 2009 11:58 pm
Location: Essex (mainly industrial and occasionally anarchic)

Re: [Test RELEASE:] Interstellar Tweak OXP

Post by UK_Eliter »

Wildeblood wrote:
UK_Eliter wrote:
That in turn raises the question of why I don't sign by my actual name.
Because until the internet came along, we didn't realize how many stalkers and nut-jobs there are in the world.
Ah yes, that will be it - largely, anyway.
UK_Eliter
---- E L I T E ----
---- E L I T E ----
Posts: 1244
Joined: Sat Sep 12, 2009 11:58 pm
Location: Essex (mainly industrial and occasionally anarchic)

Re: [Test RELEASE:] Interstellar Tweak OXP

Post by UK_Eliter »

New version ready for testing! This one does much more (although the chance of anything being triggered is fairly low - you can change that, though).

URL: http://www.box.com/shared/moreq536ht
Post Reply