Page 1 of 1

How do I make a dockable station that stays in one place?

Posted: Mon Jun 06, 2011 9:06 pm
by RyanHoots
I would like to make a station that stays in one system and, if possible, is always there like Lave's moon in the Lave OXP. I have never made or attempted a dockable OXP. I plan to use the Dodecahedron design. Thanks.

Re: How do I make a dockable station that stays in one place

Posted: Mon Jun 06, 2011 9:25 pm
by Eric Walch
RyanHoots wrote:
I would like to make a station that stays in one system and, if possible, is always there like Lave's moon in the Lave OXP. I have never made or attempted a dockable OXP. I plan to use the Dodecahedron design. Thanks.
You might look inside asteroidStorm.oxp. And more specific in the file: planetinfo.plist. There a specific station is defined for a specific system. You could do something similar to create your station.

Re: How do I make a dockable station that stays in one place

Posted: Mon Jun 06, 2011 9:30 pm
by DaddyHoggy
The Tionisla Graveyard always spawns a station amongst the tombs.

Re: How do I make a dockable station that stays in one place

Posted: Mon Jun 06, 2011 9:38 pm
by RyanHoots
Thanks, I'll look at those. :)

Re: How do I make a dockable station that stays in one place

Posted: Mon Jun 06, 2011 10:07 pm
by RyanHoots
I'm going to make a company like Griff Industries that will "build" my OXP ships and station in a shipyard. FIrst project is a station to act as HQ for the company.

Re: How do I make a dockable station that stays in one place

Posted: Tue Jun 07, 2011 8:25 am
by Killer Wolf
The Sothis OXP (and Wasps.OXP) has a pseudorandom seed that places a station in certain systems - it means they don't appear in every system but they will appear consistently in the ones they're selected to

Re: How do I make a dockable station that stays in one place

Posted: Tue Jun 07, 2011 2:31 pm
by RyanHoots
Killer Wolf wrote:
The Sothis OXP (and Wasps.OXP) has a pseudorandom seed that places a station in certain systems - it means they don't appear in every system but they will appear consistently in the ones they're selected to
Thanks for the tip, I'll look at those.

Re: How do I make a dockable station that stays in one place

Posted: Tue Jun 07, 2011 2:44 pm
by Eric Walch
RyanHoots wrote:
Killer Wolf wrote:
The Sothis OXP (and Wasps.OXP) has a pseudorandom seed that places a station in certain systems - it means they don't appear in every system but they will appear consistently in the ones they're selected to
Thanks for the tip, I'll look at those.
And since 1.75 is scrambledPseudoRandomNumber part of oolite code and you don't need to write it yourself like Killer Wolf had to do.

Re: How do I make a dockable station that stays in one place

Posted: Tue Jun 07, 2011 5:06 pm
by RyanHoots
How would I edit the model to use my textures?

Re: How do I make a dockable station that stays in one place

Posted: Tue Jun 07, 2011 6:05 pm
by Zieman
RyanHoots wrote:
How would I edit the model to use my textures?
I presume you plan to retexture a copy of new-dodo.dat (found in ...\Oolite\oolite.app\Resources\Models) with your own texture(s)?

If you open the yourstation.dat (copy of new-dodo.dat) in a decent text editor (like Notepad++, WordPad will also do, if you're a Win user), you see lots of lines like:

Code: Select all

TEXTURES
bottom_metal.png	256 256	49.152000 0.000000	256.000000 157.696000	128.000000 256.000000	# rear ring top 3 pentagons
bottom_metal.png	256 256	49.152000 0.000000	206.848000 0.000000	256.000000 157.696000
etc.

These are quite sel-explanatory, just change all bottom_metal.png 's to yournewfancydodecbottom.png (or whatever you have named the texture), and the same for all others.

Re: How do I make a dockable station that stays in one place

Posted: Tue Jun 07, 2011 6:47 pm
by JensAyton
Zieman wrote:
These are quite sel-explanatory, just change all bottom_metal.png 's to yournewfancydodecbottom.png (or whatever you have named the texture), and the same for all others.
Don’t do this. If all you want to do is change the texture, use a material entry in the shipdata.plist entry:

Code: Select all

model = "new-dodo.dat";
materials =
{
    "bottom_metal.png" = "yournewfancydodecbottom.png";
};

Re: How do I make a dockable station that stays in one place

Posted: Tue Jun 07, 2011 8:36 pm
by RyanHoots
Ahruman wrote:
Zieman wrote:
These are quite sel-explanatory, just change all bottom_metal.png 's to yournewfancydodecbottom.png (or whatever you have named the texture), and the same for all others.
Don’t do this. If all you want to do is change the texture, use a material entry in the shipdata.plist entry:

Code: Select all

model = "new-dodo.dat";
materials =
{
    "bottom_metal.png" = "yournewfancydodecbottom.png";
};
Thanks