Trunk nightly

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

Post Reply
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: Trunk nightly

Post by Cody »

cim wrote:
I wonder if this is because of the equipment.plist you had...
Yep, that was it... again! Saves are now working fine, it seems. Guess I'll have to remove that plist in future.
Shame though, as I like my kit in a certain order. Oh yeah... I don't much like damaged kit jumping to the top of the list.
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
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: Trunk nightly 1.81.0.6155-141004-5d07437

Post by Cody »

Another aegis oddity - a Python (appropriately named Goodnight) launched from the Torus at Quandixe and headed more or less straight for the planet.
I followed it down 'til my altitude was in the red - then it blew!
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
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6312
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Trunk nightly

Post by Diziet Sma »

I've noticed today that the Expansion Manager doesn't handle internet dropouts during a download very gracefully..

My internet (ADSL2+) is generally pretty good, but when the weather is bad, it gets lots of dropouts.. takes the modem anywhere from a few seconds to 2 minutes (or more) to re-establish a connection to the ISP. And dropouts can happen every 10-20 seconds if things are bad.. which can be absolute hell when downloading from sites that don't support resumable downloads. :evil:

(My best guess is that moisture is getting into the lines/equipment somewhere between me and the exchange.. after a couple of dry days, things improve.. although sometimes it can happen even after weeks of good weather.)

I've noticed that Oolite seems to be pretty good about small disconnects, but if the connection doesn't get re-established within 15-20 seconds, the download just hangs. If there's no progress for 1-2 minutes, I have to cancel and restart the download again to get things going again, even though the modem has already re-established the connection.

If Oolite and the wiki repository don't/can't be made to support resumable downloads, then it may be necessary to have some kind of time-out instituted, so that Oolite doesn't just hang, waiting forever for the download to complete.
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: Trunk nightly

Post by cim »

There's an "on error" handler in the URL downloading library, which we're using. If that's not picking up disconnects properly there's probably nothing we can do about it. (If it does actually pick up the disconnect - have you tried waiting 5-10 minutes to see what it does? - then it should be possible to resume the download from that point.)

You might be best downloading the larger OXZs directly.
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6312
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Trunk nightly

Post by Diziet Sma »

Fair enough...
cim wrote:
have you tried waiting 5-10 minutes to see what it does? - then it should be possible to resume the download from that point
I'll keep that in mind to test..
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6312
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Trunk nightly

Post by Diziet Sma »

cim wrote:
have you tried waiting 5-10 minutes to see what it does? - then it should be possible to resume the download from that point
No joy.. it still just hangs forever. Even though, going by my phone's connection, the internet had dropped out and reconnected a couple of times in the 10 minutes I waited.. (tested twice)

There's nothing in the API of the downloading library for checking/monitoring connectivity?
cim wrote:
You might be best downloading the larger OXZs directly.
Well, that pretty much leaves me with the same problem.. :mrgreen:

But mostly, I was hoping there'd be some way for Oolite to recognise there was a problem, and abort, if resuming wasn't possible.
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
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: Trunk nightly

Post by spara »

I spotted a small error in roles in shipdata.plist. Cobramk1 has a role "escort-light". Should be just "escort".
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: Trunk nightly

Post by spara »

I'm testing the new extra column in the market screen with this script:

Code: Select all

this.name = "market_test";

this.startUp = function() {
	for (var i in system.mainStation.market) {
		manifest.setShortComment(i, "foo");
	}
}
As a result the Kiota stations that I have installed get their markets nullified with 0.0 prices and "-" units. Is this because they use the old commodities.plist definitions or is it a bug?
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: Trunk nightly

Post by Norby »

If I have an error in my js then the current trunk print a line into the log:

Code: Select all

11:27:13.667 [script.javaScript.exception.undeclaredVar] ReportJSError (OOJavaScriptEngine.m:203): ***** JavaScript exception (numerichudv3 3.27): ReferenceError: assignment to undeclared variable a
But 1.80 print two lines and the second tell the exact line number:

Code: Select all

11:25:55.103 [script.javaScript.exception.undeclaredVar] ReportJSError (OOJavaScriptEngine.m:203): ***** JavaScript exception (numerichudv3 3.27): ReferenceError: assignment to undeclared variable a
11:25:55.103 [script.javaScript.exception.undeclaredVar] ReportJSError (OOJavaScriptEngine.m:214):       /home/norbi/.Oolite/AddOns/NumericHUD_3.27.oxz/Scripts/numerichudv3.js, line 10.
Please put back this useful feature.
User avatar
Tricky
---- E L I T E ----
---- E L I T E ----
Posts: 821
Joined: Sun May 13, 2012 11:12 pm
Location: Bradford, UK. (Anarchic)

Re: Trunk nightly

Post by Tricky »

Use jslint and jshint to help validate you JS code.
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: Trunk nightly

Post by Wildeblood »

spara wrote:
Is this because they use the old commodities.plist definitions or is it a bug?
You discount the possibility of a mistake on your part? :)
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: Trunk nightly

Post by spara »

Wildeblood wrote:
spara wrote:
Is this because they use the old commodities.plist definitions or is it a bug?
You discount the possibility of a mistake on your part? :)
:lol: That's always possible and I might have understood something totally wrong, although I doubt it this time. Kiotas and and the script above are all I have in my test setting.
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: Trunk nightly

Post by Wildeblood »

I think you were thinking of a prop in object loop?

Code: Select all

this.name = "market_test";

this.startUp = function() {
	for (var i in system.mainStation.market) {
		manifest.setShortComment(i, "foo");
	}
}

Code: Select all

this.name = "market_test";

this.startUp = function() {
	for (prop in system.mainStation.market) {
            if (prop != "list") {
		manifest.setShortComment(prop, "foo");
            }
	}
}
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: Trunk nightly

Post by spara »

Yes, I was thinking about properties in the loop but is there really any difference here? The result seems to be same in both cases. Including nulled Kiota market.
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: Trunk nightly

Post by cim »

spara wrote:
Is this because they use the old commodities.plist definitions
Specifically, because they only use the old definitions. The old and new definitions use completely different shipdata keys so you can safely put both in the same file and have it work in 1.80 and 1.81 - for now, though, 1.81 makes no attempt to parse the old format and set prices and quantities from it.

(If we get near to 1.82 release and take up of the new definitions remains minimal, then that might need rethinking, but there aren't that many station-adding OXPs out there, so I'm hoping the community will update them before then)

I'll sort out the escort role and investigate the JS error messages later - at the moment I've got a giant mess which doesn't even compile in my Oolite folder, as I try to make planetinfo.plist static, so it's not a good time to be working on other stuff and forgetting where I've got up to with that.
Post Reply