Email System (Release)

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

Moderators: winston, another_commander

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

Re: Email System (Release)

Post by phkb »

OK, here's a zip of the OXP version: https://app.box.com/s/jb3rzelnmao1xroh9rb2jhjr8esnhk06. Rather than just increment the size of the column, I've included adaptive code that should scale up if the font size is larger than expected. If this works for you, I'll update the OXZ as well.
User avatar
pagroove
---- E L I T E ----
---- E L I T E ----
Posts: 3035
Joined: Wed Feb 21, 2007 11:52 pm
Location: On a famous planet

Re: Email System (Release)

Post by pagroove »

Thank you. Will test later on this day.
For P.A. Groove's music check
https://soundcloud.com/p-a-groove
Famous Planets v 2.7. (for Povray)
Image
https://bb.oolite.space/viewtopic.php?f=4&t=13709
User avatar
pagroove
---- E L I T E ----
---- E L I T E ----
Posts: 3035
Joined: Wed Feb 21, 2007 11:52 pm
Location: On a famous planet

Re: Email System (Release)

Post by pagroove »

phkb wrote:
pagroove, can I get you to test something for me? Rather than keep publishing micro-updates, can you extract the OXZ to an OXP, and open the "scripts\emailsystem_base.js" file, go to line 664 and change it from this:

Code: Select all

		ret += this.$padTextRight("!", 0.4);
to this

Code: Select all

		ret += this.$padTextRight("!", 0.6);
Save the file, restart holding shift down (I know you probably know that, but in case someone else is reading), and see if that fixes the issue. If not, increase "0.6" to "0.8" and try again.
Installed the new oxp version.

Went into the file however the above line is not on line 664. I use Textwrangler for Mac btw. Also did a search on it and it could not find that line.
Then went on and deinstalled Font Dangerous and also Xenon UI recourse to return to the original menu's.

Did start Oolite with SHIFT pressed. Made now difference though. It still won't let me enter the menu. Is this a Mac thing?
For P.A. Groove's music check
https://soundcloud.com/p-a-groove
Famous Planets v 2.7. (for Povray)
Image
https://bb.oolite.space/viewtopic.php?f=4&t=13709
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4830
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Email System (Release)

Post by phkb »

pagroove wrote:
s this a Mac thing?
It does look like it. I've tried every font I have and can't reproduce the issue. 1.82 and 1.83.

I think I caused confusion by doing something slightly different in the download version to what I asked you to do. I tried to be clever with how the OXP calculates column widths, but it appears my cleverness had no impact if you still have the issue. :oops:

OK, if you're still OK with messing with a text editor here's a change to try.

Change lines 666-670 of emailsystem_base.js from this:

Code: Select all

	if (email.Read == false) {
		ret += this.$padTextRight("!", this._readColumn);
	} else {
		ret += this.$padTextRight("", this._readColumn);
	}
to this

Code: Select all

	if (email.Read == false) {
		ret += "!";
	} else {
		ret += " ";
	}
Let me know if that makes a difference.
User avatar
pagroove
---- E L I T E ----
---- E L I T E ----
Posts: 3035
Joined: Wed Feb 21, 2007 11:52 pm
Location: On a famous planet

Re: Email System (Release)

Post by pagroove »

Hello I did replace those lines. Then-SHIFT- started Oolite but still the same. :oops: It won't let me enter the menu when pressing enter on the Interface screen.
For P.A. Groove's music check
https://soundcloud.com/p-a-groove
Famous Planets v 2.7. (for Povray)
Image
https://bb.oolite.space/viewtopic.php?f=4&t=13709
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4830
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Email System (Release)

Post by phkb »

pagroove, would you be able to PM me your save game? I'm wondering if something might be in there to help me track this bug down.
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4830
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Email System (Release)

Post by phkb »

Also, can you try this bug fix:
At line 692 in "emailsystem_base.js", can you change the code from this:

Code: Select all

		do {
			tmp = tmp.substring(0, tmp.length - 2) + ellip;
		} while (defaultFont.measureString(tmp) > desiredLength);
to this:

Code: Select all

		do {
			tmp = tmp.substring(0, tmp.length - 2) + ellip;
			if (tmp == ellip) break;
		} while (defaultFont.measureString(tmp) > desiredLength);
User avatar
pagroove
---- E L I T E ----
---- E L I T E ----
Posts: 3035
Joined: Wed Feb 21, 2007 11:52 pm
Location: On a famous planet

Re: Email System (Release)

Post by pagroove »

Sorry for the ultra late reply :oops: :oops:

This was due to OS upgrade here on and me actually trying out Elite Dangerous :oops:


But I will try out your 2 latest suggestions of code changes. If they don't work I'il put up a link with a download to my save game.

Beware it will probably be a mess inside the save game file. :lol: Playing with this commander since 2006 and the save game was planted over almost every Oolite version in between till now. I also have a mission hanging from G1 Feudal systems that never clears. So there is obviously more wrong. However as it is not game breaking I do not mind. J
For P.A. Groove's music check
https://soundcloud.com/p-a-groove
Famous Planets v 2.7. (for Povray)
Image
https://bb.oolite.space/viewtopic.php?f=4&t=13709
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Email System (Release)

Post by Cody »

pagroove wrote:
Playing with this commander since 2006 and the save game was planted over almost every Oolite version in between till now.
<chortles> Mine dates back to 2009 (first created on Oolite 1.65, I think), and has been used on every version since.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
User avatar
pagroove
---- E L I T E ----
---- E L I T E ----
Posts: 3035
Joined: Wed Feb 21, 2007 11:52 pm
Location: On a famous planet

Re: Email System (Release)

Post by pagroove »

Cody wrote:
pagroove wrote:
Playing with this commander since 2006 and the save game was planted over almost every Oolite version in between till now.
<chortles> Mine dates back to 2009 (first created on Oolite 1.65, I think), and has been used on every version since.

Yes next year I will be playing Oolite for 10 years :shock:
now that I call gameplay value. :D
For P.A. Groove's music check
https://soundcloud.com/p-a-groove
Famous Planets v 2.7. (for Povray)
Image
https://bb.oolite.space/viewtopic.php?f=4&t=13709
Anonymissimus
---- E L I T E ----
---- E L I T E ----
Posts: 299
Joined: Mon Apr 27, 2015 9:03 pm

Re: Email System (Release)

Post by Anonymissimus »

As soon as I enter the email menu over the entry in the station menu, HUD elements also visible while docked disappear, and I need to use key_hud_toggle after undocking.
See also https://bb.oolite.space/viewtopic.php?p=250760#p250760
warning sound if a missile is inbound: Missile warning
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4830
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Email System (Release)

Post by phkb »

Thanks for that. I'll check it out.

Edit: Actually, the Email System deliberately turns off the HUD if the "allow_big_gui" setting is false for a HUD in order to get more screen real estate. However, it should turn it back on again whenever you leave. In my tests this appears to work as designed. Which HUD are you using?
Anonymissimus
---- E L I T E ----
---- E L I T E ----
Posts: 299
Joined: Mon Apr 27, 2015 9:03 pm

Re: Email System (Release)

Post by Anonymissimus »

ExtraLarge HUD with 10 MFDs and custom dials

from HUD selector

Is this "deliberately turns off the HUD" a relatively new thing ? (About as new/old as 1.84 ? I may have updated the game and the email system at the same time.)
warning sound if a missile is inbound: Missile warning
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4830
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Email System (Release)

Post by phkb »

Anonymissimus wrote:
Is this "deliberately turns off the HUD" a relatively new thing ?
No, it's been doing that for a long time.
Anonymissimus
---- E L I T E ----
---- E L I T E ----
Posts: 299
Joined: Mon Apr 27, 2015 9:03 pm

Re: Email System (Release)

Post by Anonymissimus »

Okay, then it cannot be the only reason. I am actually using a customized version of the mentioned HUD and it hasn't been changed since before it started to happen.
I don't recall the exact changes I had made to the HUD, a diff program should be able to show them.
warning sound if a missile is inbound: Missile warning
Post Reply