Page 1 of 1

Comms log in a MFD

Posted: Tue Jul 08, 2014 2:49 am
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.

Re: Comms log in a MFD

Posted: Tue Jul 08, 2014 2:58 am
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.

Re: Comms log in a MFD

Posted: Tue Jul 08, 2014 3:48 pm
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.

Re: Comms log in a MFD

Posted: Tue Jul 08, 2014 5:57 pm
by Zireael
*drool* This would be great, and would showcase how cool MFDs are!

Re: Comms log in a MFD

Posted: Wed Jul 09, 2014 2:04 am
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...

Re: Comms log in a MFD

Posted: Wed Jul 09, 2014 5:04 am
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:

Re: Comms log in a MFD

Posted: Wed Jul 09, 2014 5:34 am
by phkb
I did hear there might be cookies...

Re: Comms log in a MFD

Posted: Wed Jul 09, 2014 6:57 am
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!

Re: Comms log in a MFD

Posted: Wed Jul 09, 2014 11:15 pm
by phkb
If a moderator would be so kind as to move this thread to the "Expansion pack" section, I'd be most obliged!

Re: Comms log in a MFD

Posted: Thu Jul 10, 2014 4:30 am
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?

Re: Comms log in a MFD

Posted: Thu Jul 10, 2014 5:58 am
by cim
defaultFont.measureString to measure them. 1 block = 1em.

Re: Comms log in a MFD

Posted: Thu Jul 10, 2014 7:27 am
by phkb
Thanks. Worked perfectly!

Re: Comms log in a MFD

Posted: Thu Jul 10, 2014 7:32 am
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.