Page 4 of 13
Re: Email System (Beta)
Posted: Mon Mar 02, 2015 2:15 pm
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.
Re: Email System (Beta)
Posted: Mon Mar 02, 2015 2:27 pm
by phkb
That's fantastic, Disembodied! Just the kind of ideas I was looking for. That should keep me busy for a while!
Re: Email System (Beta)
Posted: Mon Mar 02, 2015 2:55 pm
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.
Re: Email System (Beta)
Posted: Mon Mar 02, 2015 3:11 pm
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?
Re: Email System (Beta)
Posted: Mon Mar 02, 2015 3:32 pm
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.
Re: Email System (Beta)
Posted: Tue Mar 03, 2015 12:03 am
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.
Re: Email System (Beta)
Posted: Tue Mar 03, 2015 9:49 am
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
Re: Email System (Beta)
Posted: Tue Mar 03, 2015 10:16 am
by Wildeblood
Re: Email System (Beta)
Posted: Tue Mar 03, 2015 10:49 am
by phkb
Oops!
Uploaded a version that doesn't.
Re: Email System (Beta)
Posted: Tue Mar 03, 2015 11:39 am
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.
Re: Email System (Beta)
Posted: Tue Mar 03, 2015 12:30 pm
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?
Re: Email System (Beta)
Posted: Tue Mar 03, 2015 2:44 pm
by pagroove
Will do. Downloading now...
Re: Email System (Beta)
Posted: Tue Mar 03, 2015 2:51 pm
by pagroove
It solved the problem. I'm now able to use the email system.
Re: Email System (Beta)
Posted: Thu Mar 05, 2015 5:18 am
by Wildeblood
The fine payment message is erroneous. I paid $700 and got a receipt for $70.
Re: Email System (Beta)
Posted: Thu Mar 05, 2015 6:09 am
by phkb
Thanks for that. I was sure I had it right, but no. Fixed in the next version.