Email System (Release)

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

Moderators: winston, another_commander

User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: Email System (Release)

Post by cim »

In general, if you're calling a JS method or property which gives you an array, and you need to use it more than once in a function, caching it to a local variable saves both time and - because of the way JS garbage collection works - memory. There's a lot of this in the priority AI code.
User avatar
Norby
---- E L I T E ----
---- E L I T E ----
Posts: 2577
Joined: Mon May 20, 2013 9:53 pm
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Contact:

Re: Email System (Release)

Post by Norby »

phkb wrote:
Thanks for taking the time to find and debug the issue Norby.
Thanks for your time also, now Hyperspace Hangar can store advanced ships without this error in the log. I do this in my spare time and usually I assign higher priority to fixing bugs in my way than other improvements.

Programming is a modern art in my eyes, like an artist start make paintings just for fun and not for the value what his work will earn in auctions several years later.
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: Email System (Release)

Post by Smivs »

Norby wrote:
Programming is a modern art in my eyes, like an artist start make paintings just for fun and not for the value what his work will earn in auctions several years later.
I hope this doesn't mean that I will have to cut my ear off, or die in poverty!
Commander Smivs, the friendliest Gourd this side of Riedquat.
Layne
---- E L I T E ----
---- E L I T E ----
Posts: 355
Joined: Sat Mar 28, 2015 11:14 pm

Re: Email System (Release)

Post by Layne »

Smivs wrote:
I hope this doesn't mean that I will have to cut my ear off, or die in poverty!
Pumpkins have ears?
Reports of my death have been greatly underestimated.
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 »

Version 1.4.13 has been released, which fixes a couple of issues, one with the rescued escape pod email, the other with the maintenance email.
User avatar
Day
---- E L I T E ----
---- E L I T E ----
Posts: 545
Joined: Tue Mar 03, 2015 11:35 am
Location: Paris

Re: Email System (Release)

Post by Day »

phkb wrote:
Version 1.4.13 has been released, which fixes a couple of issues, one with the rescued escape pod email, the other with the maintenance email.
Hi phkb, I'm currently adding passengers berths each time I need one, and I noticed that I received mail for having removed the equipment, rather than for having added it.
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 the heads up! New version on the way.

Edit: And up. Version 1.4.14 now available in download manager or from links in the first post.
User avatar
Day
---- E L I T E ----
---- E L I T E ----
Posts: 545
Joined: Tue Mar 03, 2015 11:35 am
Location: Paris

Re: Email System (Release)

Post by Day »

Thank you :)

But where is this "bowing smiley" when you need it?
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 »

Sorry for the constant updates, but version 1.4.15 is up, which fixes an issue with the accepted contract email.
Layne
---- E L I T E ----
---- E L I T E ----
Posts: 355
Joined: Sat Mar 28, 2015 11:14 pm

Re: Email System (Release)

Post by Layne »

Don't apologize, phkb! Your work ethic is inspiring and mildly terrifying!
Reports of my death have been greatly underestimated.
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 »

Version 1.4.16 has just been released. In this version:
  • Added ellipsis to columns when text is truncated
  • Slight adjustment to column widths to cater for wider fonts
  • Removed seconds component from email items on the inbox display. The full sent date/time, including seconds is still visible when you open an email.
Also, I was thinking about adding a new email. This one would be a "Welcome to the galaxy/sector" email you receive whenever you do a galactic jump. What sort of things could be included in the email, do you think? Notable galactic features (great rift, spaceways/lanes)? Particular systems (eg, GalCop HQ system, TechLevel 15 systems)? Other things?
User avatar
Norby
---- E L I T E ----
---- E L I T E ----
Posts: 2577
Joined: Mon May 20, 2013 9:53 pm
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Contact:

Re: Email System (Release)

Post by Norby »

phkb wrote:
Other things?
Something about what you can do here. Usually OXP specific things, like missions or Superhub positions - I know gathering these is not easy but informative.
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 »

Version 1.4.17 has just been released, which finally fixes the calculation of the fine amount for the offender fine email. Totally for sure this time.
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 »

Version 1.4.18 has just been released
In this version:
  • Checks for the "allow_big_gui" HUD option.
  • Escape pod recovery emails now turn up immediately.
  • Added RRS refueling to list of equipment items excluded from purchase emails.
  • Reworked the procedure for when the player buys equipment, to ensure the email process happens after any other OXP process.
  • Added condition for when the purchase price of an item is 0 (zero) credits (eg removing lasers).
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 »

Version 1.4.19 has just been released. In this version:
  • Added specific docking fine email for Black Monks monastery.
  • Moved list of Federation HQ planet ID's to be accessible to external OXP's (via worldScripts.GalCopAdminServices._fedHQ array), in case it's ever needed.
  • Switched back to "shipKilledOther" so untargeted ships destroyed by the player (eg via missile) are included in the kill count and email.
Post Reply