Oolite Bulletins

For information and discussion about Oolite.
It is currently Fri Oct 19, 2018 11:25 am

All times are UTC




Post new topic  Reply to topic  [ 140 posts ]  Go to page Previous 16 7 8 9 10 Next
Author Message
PostPosted: Sun Jan 01, 2017 5:39 pm 
Offline
Dangerous
Dangerous
User avatar

Joined: Wed May 18, 2016 8:19 pm
Posts: 65
Quote:
:
Image
Which OXP contains the orange-white-ship and the cobra-like-ones (black and grey)?

_________________
https://github.com/tsoj https://gitlab.com/tsoj
Image


Top
   
PostPosted: Sun Jan 01, 2017 7:16 pm 
Offline
Competent
Competent

Joined: Sat Dec 31, 2016 5:36 pm
Posts: 44
Quote:
Quote:
:
Image
Which OXP contains the orange-white-ship and the cobra-like-ones (black and grey)?
The Grey and Black ships are Cobra MK4, I think.


Top
   
PostPosted: Mon Jan 02, 2017 12:52 am 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Mon May 20, 2013 9:53 pm
Posts: 2525
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Quote:
Which OXP contains the orange-white-ship and the cobra-like-ones (black and grey)?
Tiger Ray and [wiki]King Cobra[/wiki]. The darker one is not a variant but the same ship than the lighter just in this moment shaders decided to show the dark side instead, which is not highlighted by the sun.

Cobra IV is very similar due to the predecessor of King Cobra (which is numbered to mkVI), it really has a playable Black variant also.

_________________
OXPs by Norby


Top
   
PostPosted: Tue Jan 03, 2017 5:53 pm 
Offline
Competent
Competent
User avatar

Joined: Wed Aug 24, 2016 10:30 pm
Posts: 36
Hey Norby,

Is there some way to force escorts to disengage? I just started off a new commander and hacked in two sidewinder escorts. I intended to make a story off of them about a ravaged family trying to make their way in the space system. However on my maiden voyage, I got attacked by a granite cobra and a few Morays, and had to dump cargo. They got off my back, but continued to harass my escorts. As I fled, I tried to call the escorts back however they would refuse to disengage... eventually they were overwhelmed and died.

Oh and on a side note, is there also a way to make the landing pad invisible? Still there and functioning, just not rendered in?

Thanks for all you do :)

_________________
I'm Ravished by the Sheer Implausibility of that Last Statement

It should be a crime for Anacondas to fly without escort. That much temptation is just too much to resist.


Top
   
PostPosted: Tue Jan 03, 2017 9:37 pm 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Mon May 20, 2013 9:53 pm
Posts: 2525
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
If you prime and activate the deck then the status of all escorts in MFD should change to Landing. In this AI state they are programmed to flight straight to you and ignore attacks. If not then I do not know why and I can not do anything to fix it, sorry.

Another way is if an escort are farther from you than 24km (almost max. scanner range) then switch target to the enemy nearest to you, or if nothing hostile is in your scanner then start follow you.

You can hide the deck if you comment out the 1150. line in escortdeck.js, just add // at the start like this:
Code:
//	w.$EscortDeckV.position = dp;

_________________
OXPs by Norby


Top
   
PostPosted: Sun Apr 02, 2017 7:41 pm 
Offline
Dangerous
Dangerous

Joined: Fri Mar 17, 2017 1:49 am
Posts: 83
I'm trying to detect just my own escorts and just when they're attached to the ship. I want to exclude them from Telescope & Fast Target Selector.
I'm currently using:
Code:
		if( entity.dataKey.indexOf( "escortdeck" ) === 0
			&& ( entity.AIState === 'DECK' || entity.AIState === 'LOCKED' )
			&&  entity.collisionExceptions.indexOf( player.ship ) > -1 ) return false;
Is there an easier/better way?

_________________
"Better to be thought a fool, boy, than to open your trap and remove all doubt." - Grandma [over time, just "Shut your trap... fool"]
"The only stupid questions are the ones you fail to ask." - Dad
How do I...? Nevermind.


Top
   
PostPosted: Sun Apr 02, 2017 8:22 pm 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Mon May 20, 2013 9:53 pm
Posts: 2525
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
First this is needed for speed:
Code:
this.startUp = function() {
    this.$ED = worldScripts.escortdeck; //cached pointer
}
Then the official way of your check:
Code:
var ed = this.$ED;
if( ed ) { //escortdeck oxp is present
    var i = ed.$EscortDeckShip.indexOf(entity);
    if( i >= 0 && ed.EscortDeckShipPos[i] ) //entity is on deck
        return false; //so exclude this entity from target list
}
I guess you looked into escordteck.js just a bit hard to find the answer in 3000 lines. ;)

_________________
OXPs by Norby


Top
   
PostPosted: Sun Apr 02, 2017 9:01 pm 
Offline
Dangerous
Dangerous

Joined: Fri Mar 17, 2017 1:49 am
Posts: 83
in equipment.plist, "available_to_all" = yes; that means NPCs can have them too, right?

also, I only want to exclude them when they're attached to the deck, not when they're flying about

I dumped the entity and:
isDock is false
owner is null
hence my awkward checking. I just want to make surethat you're the one setting AIState & collisionExceptions so I can rely on them.

_________________
"Better to be thought a fool, boy, than to open your trap and remove all doubt." - Grandma [over time, just "Shut your trap... fool"]
"The only stupid questions are the ones you fail to ask." - Dad
How do I...? Nevermind.


Top
   
PostPosted: Sun Apr 02, 2017 11:17 pm 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Mon May 20, 2013 9:53 pm
Posts: 2525
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
At the moment no mean to add a deck equipment to an NPC due to the js do nothing with them. It is a player only device until somebody not improve it further.

The dataKey can be anything since derelict ships also usabe sometimes as escorts so better if not checked.

These AI states and collisionException are used by escortdeck only as far as I know so maybe usable but not a sure way. This is why I suggest to check in the arrays where the deck js store escorts. If the EscortDeckShipPos array is set for that escort then surely landed on the deck, this is the internal way what escortdeck.js use all times when needed to know if a ship is on the deck.

_________________
OXPs by Norby


Top
   
PostPosted: Mon Apr 03, 2017 12:07 am 
Offline
Dangerous
Dangerous

Joined: Fri Mar 17, 2017 1:49 am
Posts: 83
thanks, dude - much appreciated!

_________________
"Better to be thought a fool, boy, than to open your trap and remove all doubt." - Grandma [over time, just "Shut your trap... fool"]
"The only stupid questions are the ones you fail to ask." - Dad
How do I...? Nevermind.


Top
   
PostPosted: Fri Apr 20, 2018 8:37 pm 
Offline
Poor
Poor
User avatar

Joined: Sat Mar 28, 2015 6:55 am
Posts: 6
Hi there!
I love this mod very much, and the hyperspace storage system to sort ships is an excellent idea.

However I am sadly having trouble.

I bought a Fer de Lance for the Lira Escort Deck XL (from a space station F3 ship yard) I renamed the ship and assigned it to my escort deck, which all seems successful, until I left the space station, the Fer de Lance was not on deck visibly, of showing on deck in the MFD?

I also use the Tow Bar mod, when I pick up a derelict ship and it is assigned to my Escort Deck, the ship is always salvaged for credits at the next space station I visit? How to I stop those pesky droids scrapping my escorts? lol

Thanks, and great work overall!


Top
   
PostPosted: Fri Apr 20, 2018 8:58 pm 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Mon May 20, 2013 9:53 pm
Posts: 2525
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Quote:
I left the space station, the Fer de Lance was not on deck visibly
Maybe you found a bug. If you could upload your .oolite-save and latest.log files somewhere then I can attempt to reproduce it, then fix it.
Quote:
when I pick up a derelict ship and it is assigned to my Escort Deck, the ship is always salvaged
Derelict ships rarely survive a battle in usable state, others are also transportable in the deck for salvage. The wiki tell more about this.
Quote:
Thanks, and great work overall!
Thank you! :)

_________________
OXPs by Norby


Top
   
PostPosted: Mon May 14, 2018 11:28 am 
Offline
Deadly
Deadly
User avatar

Joined: Thu Mar 30, 2017 9:57 pm
Posts: 164
Can I ask please if the Escort Decks allocated to Python ET, Python ETS, Python Clipper and Python CC are the same as for a regular Python (wide deck)?
Only I recently traded my carrier for a Python ET as I wanted something quicker and with better combat abilities than the carrier but that was able to carry derelicts bigger than my old Boa CC was capable of carrying. The Python ET seemed to fit this as Python ships are claimed to be able to carry Krait.
I found that my Python ET was unable to carry derelict Krait - I got a "ship too wide" mesage :?
Are all Python type ships able to use a wide deck or should there be an option within F3 ship outfitting to change the deck ( I have noted that every time that I have sold my ship that there is not an option to sell the deck off my old ship and buy a new one with my new ship, the deck just transfers to the new ship presumably up or down sizing as appropriate).
I may swap my ship again for a Python Clipper (would I have a similar scenario with regard to picking up Krait derelicts?).

Thanks for any guidance or advice you can offer.

_________________
O.C.T.D (Oolite Crash Test Dummy) Hmm Hmm Hmm Hmm......


Top
   
PostPosted: Mon May 14, 2018 8:13 pm 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Mon May 20, 2013 9:53 pm
Posts: 2525
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Quote:
Can I ask please if the Escort Decks allocated to Python ET, Python ETS, Python Clipper and Python CC are the same as for a regular Python (wide deck)?
Currently not the name of a ship make it capable to hold more mass on the deck but the ship hull must be enough massive. The models of Smivs' Python ET and Python Clipper are somewhat smaller and fall below the 260t mass limit. Python CC and Staer9's Python ETS and Python CC are large enough so already use wide deck.

For ET and Clipper you can set smaller required ship mass in the 18th line in escortdeck.js:
Code:
this.$EscortDeckWMass = 220000;

_________________
OXPs by Norby


Top
   
PostPosted: Tue May 15, 2018 7:48 pm 
Offline
Deadly
Deadly
User avatar

Joined: Thu Mar 30, 2017 9:57 pm
Posts: 164
Many thanks for your explanation Norby :)
I had been working off the name "Python" and also the dimensions listed in wiki pages (which unfortunately do not include mass figures).
For future reference what is the best way to find a ships mass?

Based on your advice I think I may give Python Class Cruiser 2.6 a try so as to also get the option of Military Shields.

My thanks to you again for your advice and help which is much appreciated. 8)

_________________
O.C.T.D (Oolite Crash Test Dummy) Hmm Hmm Hmm Hmm......


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 140 posts ]  Go to page Previous 16 7 8 9 10 Next

All times are UTC


Who is online

Users browsing this forum: Bing [Bot], Svengali and 24 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:
cron
Powered by phpBB® Forum Software © phpBB Limited