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

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

Moderators: another_commander, winston

User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

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

Post 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.
User avatar
pagroove
---- E L I T E ----
---- E L I T E ----
Posts: 3035
Joined: Wed Feb 21, 2007 11:52 pm
Location: On a famous planet

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

Post 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.
For P.A. Groove's music check
https://soundcloud.com/p-a-groove
Famous Planets v 2.7. (for Povray)
Image
https://bb.oolite.space/viewtopic.php?f=4&t=13709
Switeck
---- E L I T E ----
---- E L I T E ----
Posts: 2412
Joined: Mon May 31, 2010 11:11 pm

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

Post 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?
User avatar
pagroove
---- E L I T E ----
---- E L I T E ----
Posts: 3035
Joined: Wed Feb 21, 2007 11:52 pm
Location: On a famous planet

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

Post by pagroove »

Hi Switeck. No there where no plans for that. So it's an oversight. Thanks for reporting.
For P.A. Groove's music check
https://soundcloud.com/p-a-groove
Famous Planets v 2.7. (for Povray)
Image
https://bb.oolite.space/viewtopic.php?f=4&t=13709
Switeck
---- E L I T E ----
---- E L I T E ----
Posts: 2412
Joined: Mon May 31, 2010 11:11 pm

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

Post 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:
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

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

Post 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:
User avatar
pagroove
---- E L I T E ----
---- E L I T E ----
Posts: 3035
Joined: Wed Feb 21, 2007 11:52 pm
Location: On a famous planet

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

Post 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.
For P.A. Groove's music check
https://soundcloud.com/p-a-groove
Famous Planets v 2.7. (for Povray)
Image
https://bb.oolite.space/viewtopic.php?f=4&t=13709
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16055
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

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

Post 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.
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
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2676
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

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

Post 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.
User avatar
pagroove
---- E L I T E ----
---- E L I T E ----
Posts: 3035
Joined: Wed Feb 21, 2007 11:52 pm
Location: On a famous planet

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

Post by pagroove »

Hi Spara. I appreciate that. Thanks in advance :D.
@ Cody: Thanks for the topic link 8)
For P.A. Groove's music check
https://soundcloud.com/p-a-groove
Famous Planets v 2.7. (for Povray)
Image
https://bb.oolite.space/viewtopic.php?f=4&t=13709
User avatar
pagroove
---- E L I T E ----
---- E L I T E ----
Posts: 3035
Joined: Wed Feb 21, 2007 11:52 pm
Location: On a famous planet

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

Post 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)
For P.A. Groove's music check
https://soundcloud.com/p-a-groove
Famous Planets v 2.7. (for Povray)
Image
https://bb.oolite.space/viewtopic.php?f=4&t=13709
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5525
Joined: Thu Jun 12, 2008 6:55 pm

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

Post 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]
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: [UPDATED RELEASE 03-07-2014] Superhub V1.6 OXZ

Post by Norby »

No problem at my machine. You get the same if you download the oxz from the wiki?
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5525
Joined: Thu Jun 12, 2008 6:55 pm

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

Post 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.
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:

Superhub for Extra Planets OXZ

Post 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.
Post Reply