Trunk nightly
Moderators: winston, another_commander, Getafix
- Norby
- ---- 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
The ship.checkScanner(true) return the same list as with false: all objects, not just the powered ships. Moreover wormholes are not listed at all.
Re: Trunk nightly
Thanks - fixed the true/false issue.Norby wrote:The ship.checkScanner(true) return the same list as with false: all objects, not just the powered ships. Moreover wormholes are not listed at all.
Wormholes not being listed is intentional - it's a convenience function to avoid inefficient iteration over
system.allShips
at the potential cost of accuracy in extremely busy environments. You can iterate over system.wormholes
quickly enough anyway, in any vaguely normal situation.(Also included NSDate.h - we'll see if this helps)
- Getafix
- Quite Grand Sub-Admiral
- Posts: 979
- Joined: Tue Apr 01, 2008 12:55 pm
- Location: A small ice asteroid, orbiting Oresrati in Galaxy 8 (a.k.a. northwest Armorica).
- Contact:
Re: Trunk nightly
...then again...maybe not...another_commander wrote:...The solution should be simply including NSDate.h in the manager class...
Managed to meet with a_c and investigated the case.
The issue is that gnustep-base 1.20.1, used in both Windows and Linux builds, supports neither
setDateFormat
nor stringFromDate
.Temporarily patching the code as follows (this is how you catch-up with "long time no see" friends?!?... with ad-hoc dev-parties?!? )
Code: Select all
NSString *updatedDesc = nil;
NSUInteger timestamp = [manifest oo_unsignedIntegerForKey:kOOManifestUploadDate defaultValue:0];
if (timestamp > 0)
{
// list of installable OXZs
NSDate *updated = [NSDate dateWithTimeIntervalSince1970:timestamp];
// NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
// [dateFormatter setDateFormat:@"yyyy-MM-dd"];
// updatedDesc = [dateFormatter stringFromDate:updated];
updatedDesc = [updated description];
// [dateFormatter release];
[gui setArray:[NSArray arrayWithObjects:DESC(@"oolite-oxzmanager-infoline-size"),[self humanSize:size],DESC(@"oolite-oxzmanager-infoline-date"),updatedDesc,nil] forRow:OXZ_GUI_ROW_LISTINFO2];
}
For both Windows and Linux, the "Last update: " value follows the user's O/S timezone setting.
As soon as we saw this, the following question popped-up: What was the behavior that cim was looking in the first place; use the user's timezone or not?
...and this is where we said goodbye to each other... our spare time was up!
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]
Re: Trunk nightly
Pity. That would have been quite useful.Getafix wrote:The issue is that gnustep-base 1.20.1, used in both Windows and Linux builds, supports neithersetDateFormat
norstringFromDate
.
When it works ... date only, no time or timezone at all. Having the date be localised is fine, but printing the time/TZ isn't ideal.Getafix wrote:As soon as we saw this, the following question popped-up: What was the behavior that cim was looking in the first place; use the user's timezone or not?
- Getafix
- Quite Grand Sub-Admiral
- Posts: 979
- Joined: Tue Apr 01, 2008 12:55 pm
- Location: A small ice asteroid, orbiting Oresrati in Galaxy 8 (a.k.a. northwest Armorica).
- Contact:
Re: Trunk nightly
It was clear from your code that the final format needed was yyyy-mm-dd.cim wrote:When it works ... date only, no time or timezone at all. Having the date be localised is fine, but printing the time/TZ isn't ideal.
This was just a quick and dirty hack to have a proof of concept that the issue is only in this small chunk of code.
The question was actually for the localized date and you already answered. Cheers!
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]
- Cody
- 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.6452-150405-324fefb
Another one of these:
Code: Select all
01:07:49.930 [script.javaScript.exception.ooliteDefined]: ***** JavaScript exception (Oolite Escort AI 1.81): Error: Ship.removeDefenseTarget: Invalid arguments ([Wormhole destination: Qudior ttl: 48.47s arrival: 2089849:12:05:33]) -- expected target.
01:07:49.930 [script.javaScript.exception.ooliteDefined]: Resources/Scripts/oolite-priorityai.js, line 4017.
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!
And any survivors, their debts I will certainly pay. There's always a way!
Re: Trunk nightly
Thanks. That (and several similar ones) should now be fixed.Cody wrote:Another one of these:
- Cody
- 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.6473-150419-ba9fb32
Just seen a Viper warning an Icosahedron station that it was breaking GalCop law.
It was chaotic though - seemed to be two groups of escorts tangling with each other.Icosahedron Station, you are in breach of Cooperative law. Leave the system or be destroyed.
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!
And any survivors, their debts I will certainly pay. There's always a way!
Re: Trunk nightly
There does seem to be a mechanism where a station could get given a bounty in particular circumstances, which would then cause the Vipers to attack it. I'll see what I can do to fix it.
Re: Trunk nightly
Sorry if this has been posted before, but I get a CTD when changing filter settings for commodities during flight.
"There is a single light of science, and to brighten it anywhere is to brighten it everywhere." - Isaac Asimov
- Cody
- 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.6482-150421-85334f4
Confirmed (and nothing in the log).
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!
And any survivors, their debts I will certainly pay. There's always a way!
Re: Trunk nightly
Thanks. Should be fixed in tonight's build.
- Norby
- ---- 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
When I updated the expansion list and pressed "f" then "u" to see the packages need update then I have not get the newest one (Random Player/Ship Name) just the older updates. But when I pressed the second menu item then the newest appeared. A repeated update hide it again then the list menu show it again.
Maybe related that this OXP is listed in gray color in the full list and tell "Status: incompatible with this version of Oolite", which is not true, nor in the case of other gray ones in the list.
Maybe related that this OXP is listed in gray color in the full list and tell "Status: incompatible with this version of Oolite", which is not true, nor in the case of other gray ones in the list.
Re: Trunk nightly
Here's the currently recorded manifest for that OXP in the AddOns manager.
Required to install is >= 1.80 and <= 1.79, which probably explains the odd behaviour.
Code: Select all
{
"identifier" = "oolite.oxp.spara.random_player-ship_name";
"required_oolite_version" = "1.80";
"title" = "Random Player/Ship Name";
"version" = "1.0.1";
"category" = "Ambience";
"description" = "Add random pilot and random ship names to the ship registration interface. More variation to random ship names can be added with Random Ship Names OXP.";
"download_url" = "http://wiki.alioth.net/img_auth.php/2/2f/Random_player_1.0.1.oxz";
"author" = "spara";
"file_size" = "98710";
"information_url" = "http://wiki.alioth.net/index.php/Random_Player/Ship_Name";
"license" = "CC-BY-NC-SA 4.0";
"maximum_oolite_version" = "1.79";
"upload_date" = "1430038853";
}
- Norby
- ---- 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
Which is probably caused by the admin page where max. 1.79 is the default setting, so I suggest to change the default to unlimited.cim wrote:Required to install is >= 1.80 and <= 1.79, which probably explains the odd behaviour.