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

Comms log in a MFD

General discussion for players of Oolite.

Moderators: winston, another_commander

Post Reply
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4755
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Comms log in a MFD

Post by phkb »

Hopefully this is a quick question. Is it possible to get all in-flight comms listed in a MFD? I find that comms take place too quickly in some circumstances, and repeatedly hitting the "`" key to show recent comm messages is awkward.
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6311
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Comms log in a MFD

Post by Diziet Sma »

Related: The ability to scroll back through comms messages in the log would be nice. Limit it to (say) only messages since launch.
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: Comms log in a MFD

Post by cim »

Use the commsMessageReceived event handler (it says "ship script", which means you can put it in a world script and it'll apply to the player ship). You can then save the messages and put them in an MFD with some primable equipment to scroll it.
Zireael
---- E L I T E ----
---- E L I T E ----
Posts: 1396
Joined: Tue Nov 09, 2010 1:44 pm

Re: Comms log in a MFD

Post by Zireael »

*drool* This would be great, and would showcase how cool MFDs are!
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4755
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Comms log in a MFD

Post by phkb »

Right, commsMessageReceived, primable equipment scroll...
Wait, what?
Are you suggesting I actually (cue dramatic music) write my own customisation?

Gulp.
Err... okay... this may take a while...
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6311
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Comms log in a MFD

Post by Diziet Sma »

Only if you really feel inclined, of course.. :lol:
(after all, most of those who start down the path to the Dark Side of Oolite end up spending very little time actually just playing the game afterwards.. they're generally far too busy improving their OXPs, or coming up with new ones!)

Otherwise, maybe put your head together with whoever decides to run with this, and see what you can cook up together. :wink:
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4755
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Comms log in a MFD

Post by phkb »

I did hear there might be cookies...
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6311
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Comms log in a MFD

Post by Diziet Sma »

phkb wrote:
I did hear there might be cookies...
Only the best, too.. after all, there has to be some upside to never playing your favourite game again!
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4755
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Comms log in a MFD

Post by phkb »

If a moderator would be so kind as to move this thread to the "Expansion pack" section, I'd be most obliged!
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4755
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Comms log in a MFD

Post by phkb »

A question about the "setMultiFunctionText" function. In the docs it states "The limit on space for a multi-function display is ten lines of text, each 15 blocks wide." What is a "block", and how is it measured?
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: Comms log in a MFD

Post by cim »

defaultFont.measureString to measure them. 1 block = 1em.
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4755
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Comms log in a MFD

Post by phkb »

Thanks. Worked perfectly!
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6311
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Comms log in a MFD

Post by Diziet Sma »

cim wrote:
1 block = 1em.
And just in case you're not clear on what an em is, here's everything you need to know about ems, which has the best explanation I've come across.
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
Post Reply