Flight Log OXP

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

Moderators: winston, another_commander

User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: [New Features] Flight Log OXP v1.02

Post by JensAyton » Fri Feb 11, 2011 8:21 pm

DaddyHoggy wrote:You're asking this question a lot, and nobody has answered, so let me try - a lot of OXP writers don't want issues with the Trunk to reported to them as errors in their OXP, so when the Devs say version X.YY.Z is the latest stable test version then the oxp writers set the max_version to be X.YY.ZZ
…thereby sabotaging the testing process and increasing the number of bugs in the next version of Oolite, including bugs they themselves will need to work around.

max_version exists because using the wrong version of Debug.oxp with a Mac version of Oolite can cause a crash. After MNSR, I intend to merge the Mac-specific parts of Debug.oxp into Oolite proper, then remove max_version.
DaddyHoggy wrote: (for example - current stable test is 1.73.4, so max_version is often set to 1.73.99, thus allowing for incremental tweaks - but as the trunk is currently has the working title 1.74.xx
Er… have you fallen into a TARDIS? :-)

User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8501
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Re: [New Features] Flight Log OXP v1.02

Post by DaddyHoggy » Fri Feb 11, 2011 8:32 pm

I knew I'd erred a moment after hitting submit and foolishly hoped that a) nobody would notice b) it would be allowed to slide as I was trying to indicate why...

However, given your need to test the trunk I can see why max_version is a bit of a headache for the devs...
Selezen wrote:Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here

Zireael
---- E L I T E ----
---- E L I T E ----
Posts: 1396
Joined: Tue Nov 09, 2010 1:44 pm

Re: [New Features] Flight Log OXP v1.02

Post by Zireael » Sat Feb 12, 2011 10:52 am

Flight Log is excellent - allows me to keep an eye on my money and kills in an easier way. Works with the latest nightly after editing the requires.plist - no bugs.

User avatar
Thargoid
Thargoid
Thargoid
Posts: 5510
Joined: Thu Jun 12, 2008 6:55 pm

Re: Flight Log OXP

Post by Thargoid » Sat Sep 15, 2012 8:38 pm

This OXP is now up to v1.04, ready for Oolite 1.77.

Under 1.76.1 it will work exactly the same as v1.03, but on trunk from version 5328 onward it will also appear under the new F4 ship and system interfaces menu when docked.

User avatar
Ironfist
Commander
Commander
Posts: 218
Joined: Tue Jun 28, 2011 2:16 pm
Location: London

Re: Flight Log OXP

Post by Ironfist » Mon Sep 17, 2012 11:13 am

Downloaded and installed version 1.04.
It works fine whilst docked - appearing nicely under the F4 screens.
However, when you launch I am now getting a series of error messages

Code: Select all

12:01:08.421 [script.javaScript.exception.unexpectedType]: ***** JavaScript exception (FlightLog 1.10): TypeError: player.ship.dockedStation is null
12:01:39.500 [script.javaScript.exception.unexpectedType]: ***** JavaScript exception (FlightLog 1.10): TypeError: player.ship.dockedStation is null
12:01:42.750 [script.javaScript.exception.unexpectedType]: ***** JavaScript exception (FlightLog 1.10): TypeError: player.ship.dockedStation is null
12:01:49.000 [script.javaScript.exception.unexpectedType]: ***** JavaScript exception (FlightLog 1.10): TypeError: player.ship.dockedStation is null
12:01:50.687 [script.javaScript.exception.unexpectedType]: ***** JavaScript exception (FlightLog 1.10): TypeError: player.ship.dockedStation is null
12:01:53.015 [script.javaScript.exception.unexpectedType]: ***** JavaScript exception (FlightLog 1.10): TypeError: player.ship.dockedStation is null
12:01:56.000 [script.javaScript.exception.unexpectedType]: ***** JavaScript exception (FlightLog 1.10): TypeError: player.ship.dockedStation is null
Having checked the script.js file it would seem that the check for version 1.77 is continually called and of course will fail since the ship is in flight. Think this needs a check to see if the ship is docked or not before the rest of the function is called.

Ironfist
64bit Mint 10 and Win 8 64bit on E8400 at 3.6GHz - ATI HD5750 graphics.
Concentration is the ability to think of absolutely nothing when it is absolutely necessary.

User avatar
Thargoid
Thargoid
Thargoid
Posts: 5510
Joined: Thu Jun 12, 2008 6:55 pm

Re: Flight Log OXP

Post by Thargoid » Mon Sep 17, 2012 4:41 pm

Oops, thought I'd put that check in, but on examination I see I haven't.

Anyway v1.05 now uploaded with the fix - thanks.

User avatar
Ironfist
Commander
Commander
Posts: 218
Joined: Tue Jun 28, 2011 2:16 pm
Location: London

Re: Flight Log OXP

Post by Ironfist » Mon Sep 17, 2012 8:14 pm

Happy to report that version 1.05 does not produce the errors.

Irtonfist
64bit Mint 10 and Win 8 64bit on E8400 at 3.6GHz - ATI HD5750 graphics.
Concentration is the ability to think of absolutely nothing when it is absolutely necessary.

Switeck
---- E L I T E ----
---- E L I T E ----
Posts: 1998
Joined: Mon May 31, 2010 11:11 pm

Re: Flight Log OXP

Post by Switeck » Mon Oct 01, 2012 9:11 pm

Since I spend a lot of my time in interstellar space, particularly multiple misjumps in a row...I hacked Flight Log OXP so the list wasn't cluttered with multiple interstellar space entries in a row.

In the
this.startUp = function()
section, almost at its very end, I added:

Code: Select all

this.oldloc = system.ID;
And at the start of the
this.shipWillEnterWitchspace = function(cause)
section, I added:

Code: Select all

log(this.name,"Current Location: "+system.ID+" previous Location: "+this.oldloc);
if(this.oldloc < 0 && system.isInterstellarSpace) return;
this.oldloc = system.ID;
Seems to work pretty well.

User avatar
Thargoid
Thargoid
Thargoid
Posts: 5510
Joined: Thu Jun 12, 2008 6:55 pm

Re: Flight Log OXP

Post by Thargoid » Thu Jan 24, 2013 10:28 pm

Now that 1.77 is fully out, I've up'd this to v1.06 to remove the F5-F6 route to the log when docked (it's still F5-F5-F6 when in flight). Access when docked is now fully via the interface (F4) screen.

Minimum Oolite version is now 1.77, with download via the links below as normal.

User avatar
AnnuverScotinExile
Above Average
Above Average
Posts: 17
Joined: Thu Jan 10, 2013 9:37 pm

Re: Flight Log OXP

Post by AnnuverScotinExile » Thu Jan 31, 2013 9:09 pm

Can you put a total (and an average per system) on the page? Individual credit changes by system are fairly useless, since they vary depending on what you bought and sold. So it could report a loss at a system when there was a virtual profit. But a 10 system total and average would shoe the trend.

User avatar
Thargoid
Thargoid
Thargoid
Posts: 5510
Joined: Thu Jun 12, 2008 6:55 pm

Re: Flight Log OXP

Post by Thargoid » Fri Feb 01, 2013 6:52 am

I'm a touch busy at the moment, but I'll have a look at it and see.

Walbrigg
Competent
Competent
Posts: 37
Joined: Sun Dec 30, 2012 1:58 pm
Location: Beds, England

Re: Flight Log OXP

Post by Walbrigg » Fri Feb 01, 2013 9:47 pm

AnnuverScotinExile wrote:Can you put a total (and an average per system) on the page? Individual credit changes by system are fairly useless, since they vary depending on what you bought and sold. So it could report a loss at a system when there was a virtual profit. But a 10 system total and average would shoe the trend.
Sounds like you're looking for my Ship's Accountant oxp - it tracks profit and loss based on mark-to-market accounting, not just cash balance.

It's just about usable now - I'll probably make the first "WIP" release this weekend.

User avatar
Thargoid
Thargoid
Thargoid
Posts: 5510
Joined: Thu Jun 12, 2008 6:55 pm

Re: Flight Log OXP

Post by Thargoid » Tue Feb 11, 2014 10:45 pm

This OXP has been upgraded to version 1.07.

It now logs the last 100 systems visited, with the most recent 10 available in-game. The full log can be dumped out to latest.log as before. Functionality and operations are exactly the same, just the memory has been expanded.

Download via the links below as normal.

Diogenese Senna
Dangerous
Dangerous
Posts: 106
Joined: Fri Jan 31, 2014 1:08 am

Re: Flight Log OXP

Post by Diogenese Senna » Tue Feb 11, 2014 10:50 pm

Gratatudes
Location - Galaxy 5 : Python Explorer : Elite
'Death by Wife is fast becoming a real world OXP mission'

Diogenese Senna
Dangerous
Dangerous
Posts: 106
Joined: Fri Jan 31, 2014 1:08 am

Re: Flight Log OXP

Post by Diogenese Senna » Sat Feb 15, 2014 1:19 am

Suggestion for 1.08

Add date. (2087452:05 - REA, (6 kills, 47.7 cr).

p.s. - sorry about that Carrier I took out earlier today. I hope none of your brood-batch were aboard.
Location - Galaxy 5 : Python Explorer : Elite
'Death by Wife is fast becoming a real world OXP mission'

Post Reply