Custom Station test, not dockable.

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

Moderators: winston, another_commander

User avatar
RyanHoots
---- E L I T E ----
---- E L I T E ----
Posts: 958
Joined: Fri May 20, 2011 8:10 pm
Location: Nowhere
Contact:

Custom Station test, not dockable.

Post by RyanHoots »

I've had some progress with my custom station, everything is working except one little (but important) problem- it's not dockable. Flying into the station destroys my ship, and brings up the ever-annoying "Press Space Commander" screen. Anyone know how to make it dockable? I used the like_ship option to make it as similar to the Dodec station as possible, but it's not working.
Image
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: Custom Station test, not dockable.

Post by Smivs »

Can you post your shipdata.plist?
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
RyanHoots
---- E L I T E ----
---- E L I T E ----
Posts: 958
Joined: Fri May 20, 2011 8:10 pm
Location: Nowhere
Contact:

Re: Custom Station test, not dockable.

Post by RyanHoots »

Here it is:

Code: Select all

{

"ryan_villa" = {

	like_ship = "dodecahedron-station";

	name = "Ryan's Villa";

	auto_ai = yes;

	model = "ryan_villa.dat"; 

	roles = "ryan_villa";	

	scanClass = "CLASS_STATION";

	subentities = ("capt_kev_dodo_station_dockingbay  0 0 283.399 1 0 0 0");

	shaders = 

		{ 

            "capt_kev_dodo_plain.png" = 

			{ 

                vertex_shader = "capt_kev_dodo.vertex"; 

                fragment_shader = "capt_kev_dodo.fragment"; 

                textures = (

							"capt_kev_dodo_plain.png"

							);

				uniforms =

						{

						uColorMap = { type = texture; value = 0; };

						}; 	

			}; 

		}; 

};	



}
I think I have to tell it somewhere to be dockable, but I have no clue where.
Image
User avatar
RyanHoots
---- E L I T E ----
---- E L I T E ----
Posts: 958
Joined: Fri May 20, 2011 8:10 pm
Location: Nowhere
Contact:

Re: Custom Station test, not dockable.

Post by RyanHoots »

Here's what it looks like:
Image
Image
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: Custom Station test, not dockable.

Post by Smivs »

I presume you have the capn kev dodo OXP installed?
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
RyanHoots
---- E L I T E ----
---- E L I T E ----
Posts: 958
Joined: Fri May 20, 2011 8:10 pm
Location: Nowhere
Contact:

Re: Custom Station test, not dockable.

Post by RyanHoots »

Yes, installed and working.
Image
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2407
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia

Re: Custom Station test, not dockable.

Post by Wildeblood »

You have to include station among the roles.
"Would somebody stop that bloody music!"
User avatar
RyanHoots
---- E L I T E ----
---- E L I T E ----
Posts: 958
Joined: Fri May 20, 2011 8:10 pm
Location: Nowhere
Contact:

Re: Custom Station test, not dockable.

Post by RyanHoots »

Wildeblood wrote:
You have to include station among the roles.
I'll try that and report after a test dock...
Image
User avatar
RyanHoots
---- E L I T E ----
---- E L I T E ----
Posts: 958
Joined: Fri May 20, 2011 8:10 pm
Location: Nowhere
Contact:

Re: Custom Station test, not dockable.

Post by RyanHoots »

Thanks, it worked! Just a few more tweaks and the station will be done. Now the trick part, getting it to be in permanent orbit around Cesousla...
Image
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: Custom Station test, not dockable.

Post by Smivs »

The picture doesn't show much detail.....is the dock visible and looking as though it's working OK?
Also (and I don't think this is related) you don't seem to have an AI specified. AutoAI just switches from one to another under certain circumstances, and you don't have one to switch from. Unless there's a good reason not to go for stationAI.plist although like_shipping to the standard Dodo should give you this AI anyway.
Have you tried like_shipping the dock rather than including some of the details in this plist?
And it should also have a 'roles' of station, I think.

edit:- Ninja'd on what looks like the key bit!
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
RyanHoots
---- E L I T E ----
---- E L I T E ----
Posts: 958
Joined: Fri May 20, 2011 8:10 pm
Location: Nowhere
Contact:

Re: Custom Station test, not dockable.

Post by RyanHoots »

Smivs wrote:
The picture doesn't show much detail.....is the dock visible and looking as though it's working OK?
Also (and I don't think this is related) you don't seem to have an AI specified. AutoAI just switches from one to another under certain circumstances, and you don't have one to switch from. Unless there's a good reason not to go for stationAI.plist although like_shipping to the standard Dodo should give you this AI anyway.
Have you tried like_shipping the dock rather than including some of the details in this plist?
And it should also have a 'roles' of station, I think.

edit:- Ninja'd on what looks like the key bit!
I'll find a more detailed image...
Image
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: Custom Station test, not dockable.

Post by Smivs »

RyanHoots wrote:
I'll find a more detailed image...
No need, unless you want to show it off :D . I was hoping to see if it showed anything significant. Glad you've got it working.
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
RyanHoots
---- E L I T E ----
---- E L I T E ----
Posts: 958
Joined: Fri May 20, 2011 8:10 pm
Location: Nowhere
Contact:

Re: Custom Station test, not dockable.

Post by RyanHoots »

Image
Image
User avatar
RyanHoots
---- E L I T E ----
---- E L I T E ----
Posts: 958
Joined: Fri May 20, 2011 8:10 pm
Location: Nowhere
Contact:

Re: Custom Station test, not dockable.

Post by RyanHoots »

Now that I have a Dodec as my house, I'll never have to complain about having not enough room to live in! But cleaning the house will be a real problem. I need housekeeping robots. :)
Image
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2407
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia

Re: Custom Station test, not dockable.

Post by Wildeblood »

Now you need a planetinfo.plist. I copy/pasted this from Tianve.oxp, so 0 246 is not the right planet number for Cesousla. But find the correct number and insert there.

Code: Select all

{
    "0 246" = {
        description = "Cesousla is the location of Ryan Hoot's secret hide-out."; 
        "script_actions" = (

		// At the main station...

            "addShipsAtPrecisely: ryan_villa 1 pwm 16000 87500 29500", 
  
      ); 
    }; 
   
}
"Would somebody stop that bloody music!"
Post Reply