Email System (Release)

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

Moderators: winston, another_commander

User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2691
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: Email System (Beta)

Post by spara »

Diziet Sma wrote:
There should probably be some generic combat-damage related items to be repaired...
That naturally triggers only after player has suffered some damage to the hull.
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 (Beta)

Post by phkb »

Disembodied wrote:
..lots of ideas...
That's fantastic, Disembodied! Just the kind of ideas I was looking for. That should keep me busy for a while!
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 (Beta)

Post by Smivs »

spara wrote:
Diziet Sma wrote:
There should probably be some generic combat-damage related items to be repaired...
That naturally triggers only after player has suffered some damage to the hull.
Which prompts me to suggest that ideally this needs to play nicely with Realistic Damage and Battle Damage OXPs. Just to avoid any conflicting messages or duplication.
I like this idea - it will be good for immersion.
Commander Smivs, the friendliest Gourd this side of Riedquat.
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 (Beta)

Post by phkb »

I'm curious - does a "Maintenance Overhaul" do any repairs normally? I mean, if my Advanced Space Compass is damaged, will a "Maintenance Overhaul" repair it?
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 (Beta)

Post by Smivs »

No. Equipment repairs (to non-oxp gear) is not included normally. It's down to the oxp author to decide if his/her equipment is covered, but I suspect most are not.
Commander Smivs, the friendliest Gourd this side of Riedquat.
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 (Beta)

Post by phkb »

Here's what I've got so far. Logic is:
- for every maintenance overhaul, run a series of basic diagnostics on core ship systems
- add a series of other functions, the number of which is controlled by the tech level of the planet (ie. for tech level 8, add 8 random maintenance tasks)
- for each piece of installed equipment, run some diagnostics (only where techLevel of system is capable of repairing equipment)
- for each piece of installed equipment, add one random, equipment specific maintenance task (only where techLevel of system is capable of repairing equipment)
- parts and labour item.

Here's a sample of what it looks like:
Sender: GalCop Servicing Dept
Subject: Ship Servicing Invoice

Summary of maintenance tasks performed on Cobra Mark III:
- Perform comm system diagnostics
- Perform witchspace drive diagnostics
- Perform life support system diagnostics
- Perform torus drive system diagnostics
- Perform HUD diagnostics
- Perform artificial gravity system diagnostics
- Perform shield system diagnostics
- Perform power grid diagnostics
- Perform air filtration system diagnostics
- Flush comms buffers
- Flush air vents
- Adjust life support systems
- Reapply viewing port ray shielding
- Check shield matrix
- Adjust engine nacelles
- Perform BroadcastComms MFD diagnostics
- Perform Glare Filter diagnostics
- Perform Large Cargo Bay diagnostics
- Flush cargo bay
- Perform CommsLog MFD diagnostics
- Perform E.C.M. System diagnostics
- Recharge E.C.M. power circuits
- Perform Target Selector diagnostics
- Perform IronHide Armour diagnostics
- Perform Combat MFD diagnostics
- Perform External Heat Shielding diagnostics
- Verify heat shield for damage
- Perform Multi-Targeting System diagnostics
- Perform Fuel Scoops diagnostics
- Regulate magnetic scoop components
- Perform Navigation MFD diagnostics
- Perform Escape Pod diagnostics
- Check escape pod engine systems
- Perform Advanced Navigational Array diagnostics
- Perform Advanced Space Compass diagnostics
- Recalibrate navigational components of ASC
- Perform Target System Memory Expansion diagnostics
- Purge Target System Memory matrix
- Perform passenger berth diagnostics
- Check passenger berth life support
- Perform port Beam Laser diagnostics
- Balance port beam laser
- Perform starboard Beam Laser diagnostics
- Reseat starboard beam laser in mount
- Parts and labour

Servicing fee: 2800 credits.

Thank you for your patronage.

Ques Starbairn
Servicing Manager
If any OXP equipment authors want to include some specific maintenance tasks for their equipment, all they need do is add lines like this to their descriptions.plist file:

Code: Select all

   "maint_EQ_MY_OXP_EQUIP" = ("Do special maintenance task on my equipment",
      "Do another special maintenance task",
      "Perform a third maintenance task"); 
The maintenance program will pick one of those items to include in the statement of work.

What do you think?

[EDIT] Version 1.1.4 now available. This version contains new emails for purchasing equipment, ships, repairs, and maintenance overhauls.
User avatar
Disembodied
Jedi Spam Assassin
Jedi Spam Assassin
Posts: 6885
Joined: Thu Jul 12, 2007 10:54 pm
Location: Carter's Snort

Re: Email System (Beta)

Post by Disembodied »

Looks good! Should there be a short list of maintenance tasks that always happen, e.g. "Sanitise crew spaces", "Replace atmosphere scrubbers", etc.?

And it might be good to personalise the bill a little more by saying
Summary of maintenance tasks performed on Cobra Mark III [Player Ship Name], Commander [Player]:
and finish it with
Ques Starbairn
Servicing Manager, [Current System] main station
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: Email System (Beta)

Post by Wildeblood »

V 1.1.4 Zip has an .oxz file inside the .oxp folder. :!: :?: :roll: :shock: :| :cry: :mrgreen:
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 (Beta)

Post by phkb »

Oops! :oops:

Uploaded a version that doesn't.
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 (Beta)

Post by pagroove »

Hi.

I really would like to use this oxz/oxp but it isn't working on my computer (Mac). When I press enter on the F4 screen to enter the email system it won't enter the interface.

I get this in the latest.log:

Code: Select all

    ~/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.phkb.EmailSystem.oxz
    ~/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.phkb.EmailSystem.oxz
    EmailSystem 1.1.4
12:31:01.870 [script.javaScript.exception.overRecursed]: ***** JavaScript exception (EmailSystem 1.1.4): InternalError: too much recursion
12:31:01.870 [script.javaScript.exception.overRecursed]:       /Users/pagroove/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.phkb.EmailSystem.oxz/Scripts/emailsystem_base.js, line 575.
12:31:03.011 [script.javaScript.exception.overRecursed]: ***** JavaScript exception (EmailSystem 1.1.4): InternalError: too much recursion
12:31:03.011 [script.javaScript.exception.overRecursed]:       /Users/pagroove/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.phkb.EmailSystem.oxz/Scripts/emailsystem_base.js, line 575.
12:31:05.244 [script.javaScript.exception.overRecursed]: ***** JavaScript exception (EmailSystem 1.1.4): InternalError: too much recursion
12:31:05.244 [script.javaScript.exception.overRecursed]:       /Users/pagroove/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.phkb.EmailSystem.oxz/Scripts/emailsystem_base.js, line 575.
12:31:07.137 [script.javaScript.exception.overRecursed]: ***** JavaScript exception (EmailSystem 1.1.4): InternalError: too much recursion
12:31:07.137 [script.javaScript.exception.overRecursed]:       /Users/pagroove/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.phkb.EmailSystem.oxz/Scripts/emailsystem_base.js, line 575.
12:31:17.351 [script.javaScript.exception.overRecursed]: ***** JavaScript exception (EmailSystem 1.1.4): InternalError: too much recursion
12:31:17.351 [script.javaScript.exception.overRecursed]:       /Users/pagroove/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.phkb.EmailSystem.oxz/Scripts/emailsystem_base.js, line 575.
 
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 (Beta)

Post by phkb »

Oh! Right... Quick one, are you using a specific font file, or just the default font?

[Edit] I decided to just take the recursive function out. Version 1.1.5 has been uploaded to all the relevant locations (download manager, box links in first post). Can you let me know if this fixes the problem for you?
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 (Beta)

Post by pagroove »

Will do. Downloading now...
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 (Beta)

Post by pagroove »

It solved the problem. I'm now able to use the email system.
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
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: Email System (Beta)

Post by Wildeblood »

The fine payment message is erroneous. I paid $700 and got a receipt for $70.
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 (Beta)

Post by phkb »

Thanks for that. I was sure I had it right, but no. Fixed in the next version.
Post Reply