Page 9 of 14

Re: [UPDATED RELEASE 16-01-2014] Superhub V1.5.oxp

Posted: Thu Jan 16, 2014 10:41 pm
by Commander McLane
One issue remains: the position of the Superhub is still random, which means that it will be in a different direction and distance from the main station each time you return to the system. Do you want to keep this behaviour?

If not, you could replace all the Math.random() inside the this.spawnHub-function with system.scrambledPseudoRandomNumber(salt), using different integers for 'salt' each time.

Re: [UPDATED RELEASE 16-01-2014] Superhub V1.5.oxp

Posted: Fri Jan 17, 2014 3:15 pm
by pagroove
Commander McLane wrote:
One issue remains: the position of the Superhub is still random, which means that it will be in a different direction and distance from the main station each time you return to the system. Do you want to keep this behaviour?

If not, you could replace all the Math.random() inside the this.spawnHub-function with system.scrambledPseudoRandomNumber(salt), using different integers for 'salt' each time.
Hi Commander McLane. I think I wanna keep that but thanks for the code. If the Stations are spawned ad weird places then I change that.

Re: [UPDATED RELEASE 16-01-2014] Superhub V1.5.oxp

Posted: Fri Jan 31, 2014 11:17 pm
by Switeck
Superhub v1.5 lacks a station script referenced by its shipdata.plist:
11:19:21.609 [script.load.notFound]: ***** ERROR: Could not find script file superhub.js.

Are there plans to add a special script for the station (such as blinking lights, red alert lights, etc) or is this just a minor oversight?

Re: [UPDATED RELEASE 16-01-2014] Superhub V1.5.oxp

Posted: Sat Feb 01, 2014 9:46 am
by pagroove
Hi Switeck. No there where no plans for that. So it's an oversight. Thanks for reporting.

Re: [UPDATED RELEASE 16-01-2014] Superhub V1.5.oxp

Posted: Sat Feb 01, 2014 4:12 pm
by Switeck
Well if you do decide to add one, it'd be cool to have the station launch a bunch of ships really rapidly if it's throwing sparks and presumably about to explode. :twisted:

Re: [UPDATED RELEASE 16-01-2014] Superhub V1.5.oxp

Posted: Fri Feb 21, 2014 2:27 pm
by Commander McLane
Switeck wrote:
Well if you do decide to add one, it'd be cool to have the station launch a bunch of ships really rapidly if it's throwing sparks and presumably about to explode. :twisted:
If the sparks are coming from an attack by a Thargoid Carrier, you'll see exactly that. :twisted:

Re: [UPDATED RELEASE 16-01-2014] Superhub V1.5.oxp

Posted: Thu Jun 12, 2014 10:39 pm
by pagroove
I noticed under the latest trunk--> Oolite development version 1.79-140612 that ships won't dock anymore at the SuperHub. It doesn't clear its docking corridors.

This was in the latest log:

Code: Select all

    PAGroove_superhubPopulator 1.1
23:13:59.019 [script.load.notFound]: ***** ERROR: Could not find script file superhub.js.
23:14:47.628 [script.load.notFound]: ***** ERROR: Could not find script file superhub.js.
23:46:25.995 [script.load.notFound]: ***** ERROR: Could not find script file superhub.js.
 
Now if I open the contents of my oxp there is a script.js. Will renaming this to superhub.js solve the docking problem or is it something else?

Also I want do enable saving on this station. Can anybody help me with adapting the code?

I can then update the package to 1.6.

Many Thanks in advance.

Re: [UPDATED RELEASE 16-01-2014] Superhub V1.5.oxp

Posted: Fri Jun 13, 2014 12:12 am
by Cody
pagroove wrote:
I want do enable saving on this station. Can anybody help me with adapting the code?
If you haven't seen it already, this thread may be of help - but I'm only guessing.

Re: [UPDATED RELEASE 16-01-2014] Superhub V1.5.oxp

Posted: Fri Jun 13, 2014 7:31 am
by spara
I can sort it out for you. I'll make the changes required and pm them you. Assuming no one else has done it already.

Re: [UPDATED RELEASE 16-01-2014] Superhub V1.5.oxp

Posted: Fri Jun 13, 2014 7:41 am
by pagroove
Hi Spara. I appreciate that. Thanks in advance :D.
@ Cody: Thanks for the topic link 8)

Re: [UPDATED RELEASE 03-07-2014] Superhub V1.6.oxz

Posted: Thu Jul 03, 2014 9:22 pm
by pagroove
See first post.

Thanks to Norby the Superhub. oxp is converted to oxz format so it should be available through the Oolite 1.80 download manager. Thanks to Spara saving is now possible in the hub and some code was cleaned up. For details see first post of this topic or the wiki page. http://wiki.alioth.net/index.php/Superhub.

8)

Re: [UPDATED RELEASE 03-07-2014] Superhub V1.6 OXZ

Posted: Sun Jul 06, 2014 6:08 pm
by Thargoid
I think there may be a problem with the compression in this OXZ. Looking in the log I have the following:

Code: Select all

18:58:45.043 [files.notFound]: Could not read Models/pagroove_superhub_mainhull.dat within OXZ at C:/Oolite/Trunk/oolite.app/GNUstep/Library/ApplicationSupport/Oolite/ManagedAddOns/oolite.oxp.Pagroove.Superhub.oxz
18:58:45.043 [mesh.load.failed.fileNotFound]: ***** ERROR: could not find pagroove_superhub_mainhull.dat
18:58:45.043 [script.addShips.failed]: ***** SCRIPT ERROR: in <anonymous actions>, addShipsAtPrecisely: could not add 1 ships with role 'pagroove_superhub'
.

The .dat file is in the OXZ, but if I try and manually unzip it I get a whole load of errors - looks like the file itself is corrupt? Now trying to download it again, but the OXZ manager is giving me problems too :([/color]

Re: [UPDATED RELEASE 03-07-2014] Superhub V1.6 OXZ

Posted: Sun Jul 06, 2014 7:03 pm
by Norby
No problem at my machine. You get the same if you download the oxz from the wiki?

Re: [UPDATED RELEASE 03-07-2014] Superhub V1.6 OXZ

Posted: Sun Jul 06, 2014 7:32 pm
by Thargoid
A direct download from the wiki works, but going via the OXZ manager or via a direct download from addons.oolite.org (the right hand column of the OXZ table) gives a file which won't unzip properly?

But I seem to be having issues with the OXZ manager anyway (see the bug report threads) so it may be linked to that perhaps.

Superhub for Extra Planets OXZ

Posted: Sat Jun 13, 2015 11:23 am
by Norby
I made a Superhub for Extra Planets OXZ which simply use the features of [wiki]Stations for Extra Planets[/wiki] to place some Superhubs over [wiki]Additional Planets[/wiki].

Ideal for [wiki]Bigships[/wiki] larger than standard docks (like [wiki]Andromeda[/wiki]) and for traders due to there is a rumor about the market capacity of Superhubs will be extended soon.