Dockabe OXP not working

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

Moderators: winston, another_commander

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

Dockabe OXP not working

Post by RyanHoots »

shipdata.plist in the folder Config

Code: Select all

{
	"ryanhootsdodec" = {
		ai_type = "stationAI.plist"
		like_ship = "dodecahedron-station"
		rotating = no;
		missiles = 5;
		model = "new-dodo.dat";
		forward_weapon_type = "WEAPON_MILITARY_LASER";
		roles = "ryanhootsdodec";
		materials =
		{
			"ryanhootsdodec.png" = { diffuse_map = "ryanhootsdodec.png"; };
		};
	};
}
The OXP is not working so far. If you would like, you can download it here: http://www.box.net/shared/xgbg7robj6. I am new to OXPing, and I have never written a dockable OXP.
Image
User avatar
Killer Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 2272
Joined: Tue Jan 02, 2007 12:38 pm

Re: Dockabe OXP not working

Post by Killer Wolf »

well if that's the entirity of it, you've not got a dock.
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: Dockabe OXP not working

Post by Eric Walch »

Killer Wolf wrote:
well if that's the entirity of it, you've not got a dock.
It has a dock because it uses a like_ship to a known working station.

I think it are missing semicolons in the plist that prevents it from working. I see at least two missing...
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: Dockabe OXP not working

Post by Smivs »

Also the texturing won't work.
The model used (new_dodo.dat) has three diffuse_maps specified, for the various faces of the station.
You will either need to replace the textures in the .dat file or replace them using 'materials' like this.

Code: Select all

materials =
      {
         "left_metal.png" = 
                                { 
diffuse_map = "ryanhootsdodec.png"; 
                                 };
          "back_metal.png" = 
                                { 
diffuse_map = "ryanhootsdodec.png"; 
                                 };
           "bottom_metal.png" = 
                                { 
diffuse_map = "ryanhootsdodec.png"; 
                                 };
        };
which also gives the option of having different textures for the various faces, as well as applying an emission_map (lighting effects) to the station.
Have a look at the stations in Accessories OXP to see how this is done.
Also, I see you've given your station both missiles and lasers, but have specified no position for these.
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
Killer Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 2272
Joined: Tue Jan 02, 2007 12:38 pm

Re: Dockabe OXP not working

Post by Killer Wolf »

but it's redefined w/ a new dat model and no subents - wouldn't that dat entry negate/compromise the likeshipping?
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: Dockabe OXP not working

Post by Smivs »

'new_dodo.dat' is the standard model. It doesn't need to be specified in shipdata, but shouldn't do any harm.
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
Killer Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 2272
Joined: Tue Jan 02, 2007 12:38 pm

Re: Dockabe OXP not working

Post by Killer Wolf »

oh, lol. i'll shut up then! i thought the "new" specified one he'd tweaked :-D

edite - out of interest i'd like to know what a station does w/ missiles!
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: Dockabe OXP not working

Post by Commander McLane »

Killer Wolf wrote:
oh, lol. i'll shut up then! i thought the "new" specified one he'd tweaked :-D

edite - out of interest i'd like to know what a station does w/ missiles!
Probably nothing. I don't know whether the station self-defense code contains any missile firing, but I'd rather guess not.
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Re: Dockabe OXP not working

Post by DaddyHoggy »

Commander McLane wrote:
Killer Wolf wrote:
oh, lol. i'll shut up then! i thought the "new" specified one he'd tweaked :-D

edite - out of interest i'd like to know what a station does w/ missiles!
Probably nothing. I don't know whether the station self-defense code contains any missile firing, but I'd rather guess not.
Would be pretty cool if they did though - a few portals open up round the docking port and a stream of missiles pour out to track down the annoying offender - when you factor in the cost of Viper maintenance, injector refuelling, crew wages, damage repair, etc. a missile or two is probably a cost effective alternative...
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
Switeck
---- E L I T E ----
---- E L I T E ----
Posts: 2411
Joined: Mon May 31, 2010 11:11 pm

Re: Dockabe OXP not working

Post by Switeck »

A station probably needs an external missile firing point to fire missiles. Then it will probably do so even if not explicitly scripted to in its AI.plist file if/when it gets hit or at low energy. Main stations can almost never get into a low energy state or even take damage from regular lasers, so they may not...but an OXP station might.
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: Dockabe OXP not working

Post by RyanHoots »

Thanks for all your help, I'll work on it a bit more.
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: Dockabe OXP not working

Post by RyanHoots »

DaddyHoggy wrote:
Commander McLane wrote:
Killer Wolf wrote:
oh, lol. i'll shut up then! i thought the "new" specified one he'd tweaked :-D

edite - out of interest i'd like to know what a station does w/ missiles!
Probably nothing. I don't know whether the station self-defense code contains any missile firing, but I'd rather guess not.
Would be pretty cool if they did though - a few portals open up round the docking port and a stream of missiles pour out to track down the annoying offender - when you factor in the cost of Viper maintenance, injector refuelling, crew wages, damage repair, etc. a missile or two is probably a cost effective alternative...
I think missiles would be cool also. Offender-proof station! :-)
Image
Switeck
---- E L I T E ----
---- E L I T E ----
Posts: 2411
Joined: Mon May 31, 2010 11:11 pm

Re: Dockabe OXP not working

Post by Switeck »

The offender/s could just ECM standard missiles and even ECM resistant hardhead missiles have a fair chance of being destroyed by an ECM at short range.
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Re: Dockabe OXP not working

Post by DaddyHoggy »

Switeck wrote:
The offender/s could just ECM standard missiles and even ECM resistant hardhead missiles have a fair chance of being destroyed by an ECM at short range.
Photon Torpedoes then... :roll:
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
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: Dockabe OXP not working

Post by RyanHoots »

DaddyHoggy wrote:
Switeck wrote:
The offender/s could just ECM standard missiles and even ECM resistant hardhead missiles have a fair chance of being destroyed by an ECM at short range.
Photon Torpedoes then... :roll:
Plasma cannon! :lol:
Image
Post Reply