Oolite Bulletins

For information and discussion about Oolite.
It is currently Fri Jun 23, 2017 3:29 am

All times are UTC




Post new topic  Reply to topic  [ 1371 posts ]  Go to page Previous 188 89 90 91 92
Author Message
 Post subject: Re: Scripters cove
PostPosted: Wed Apr 26, 2017 2:51 pm 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Tue Mar 03, 2015 11:35 am
Posts: 436
Location: Paris
I am currently thinking about the map visualization of the diverse alliances / antagonisms in my Diplomacy OXP.

To begin, I thought about drawing a line in red between two opposed systems, and a line in green between two allied systems; depending on the player knowledge, of course.

First, I would take any proposition of graphical improvement, over using lines, to represent alliances and oppositions.

Foremost (why should it always be the same thing?), is it possible to draw lines between systems on the full map? I only found the markSystem() functionality.

Barring that, I'll have to use system marks to signal alliances.


Top
   
 Post subject: Re: Scripters cove
PostPosted: Fri Apr 28, 2017 9:24 pm 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Tue Mar 03, 2015 11:35 am
Posts: 436
Location: Paris
I've found it!
Code:
SystemInfo.setInterstellarProperty(galaxyNumber, dta[j], dta[k], 2, "link_color", this._regionColor);
Thanks to phkb and his galactic registry :p


Top
   
 Post subject: Re: Scripters cove
PostPosted: Wed May 31, 2017 1:08 am 
Offline
Commodore
Commodore
User avatar

Joined: Tue Jan 21, 2014 10:37 pm
Posts: 1513
Location: [p]laying [h]ard and [k]icking [b]utt somewhere in G7...
How does one work out the dimensions of a docking port? That is, the max width and height of the docking slit? Is the "boundingBox" property sufficient for this?

_________________
My OXP's


Top
   
 Post subject: Re: Scripters cove
PostPosted: Wed May 31, 2017 6:57 am 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Mon May 20, 2013 9:53 pm
Posts: 2272
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Quote:
the max width and height of the docking slit? Is the "boundingBox" property sufficient for this?
In the case of the old dock model with brick shape, yes. I use only this in ILS because this is the only way that I found in js.

A more complex way would be if you open every dock models in wings3d to measure the inner sizes of the gates and make an array of dimensions based on the datakey of stations. Note there are non-rectangular inlets in Rock Hermits and Superhubs.

Somewhere we discussed that there is a validator in the core which put a message into the log when a too big NPC made an unsuccessful attempt to launch through a small dock. This part probably use a more accurate code for the size check.

_________________
OXPs by Norby


Top
   
 Post subject: Re: Scripters cove
PostPosted: Wed May 31, 2017 7:34 am 
Offline
Commodore
Commodore
User avatar

Joined: Tue Jan 21, 2014 10:37 pm
Posts: 1513
Location: [p]laying [h]ard and [k]icking [b]utt somewhere in G7...
Ah, I thought that might have been the answer. I was just planning on updating some stats on the wiki and was hoping for an easy option.

Might be time for a quick hack'n'slash of the source code...

_________________
My OXP's


Top
   
 Post subject: Re: Scripters cove
PostPosted: Wed May 31, 2017 8:04 am 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Mon May 20, 2013 9:53 pm
Posts: 2272
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Here is my data table:

Dock sizes (W x H x L) in Oolite 1.77:
Main stations: 192.000 x 64.000 x 250.000
Rock-hermit: 138.001 x 138.001 x 250.120

From 1.79:
cori: 241.888 x 103.412 x 250.000
dodo: 210.362 x 81.027 x 250.000
ico: 238.546 x 82.108 x 273.278
rock: 194.688 x 108.567 x 253.500 (but only 64.8m height at full width)

_________________
OXPs by Norby


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1371 posts ]  Go to page Previous 188 89 90 91 92

All times are UTC


Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 15 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