How do I make a certain ship appear?

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

Moderators: winston, another_commander

Post Reply
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

How do I make a certain ship appear?

Post by DaddyHoggy »

I want to test a ship I've been playing with - what's the quickest/easiest way to make it appear as I leave the space station so I can fly around it and have a look? Some kind of quick and dirty oxp?

I'm on Windows/PC so no Dry Dock!
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
LittleBear
---- E L I T E ----
---- E L I T E ----
Posts: 2882
Joined: Tue Apr 04, 2006 7:02 pm
Location: On a survey mission for GalCop. Ship: Cobra Corvette: Hidden Dragon Rated: Deadly.

Post by LittleBear »

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict> 
   
<key>testship</key> 
   <array> 
      <dict> 
         <key>conditions</key> 
         <array> 
            <string>status_string equal STATUS_LAUNCHING</string> 
         </array> 
         <key>do</key> 
         <array> 
	   <string>addSystemShips: test 1 1.0</string	
         </array> 
      </dict> 
   </array>


Give your ship the role test and they'll be one by the station everytime you launch. C&P the code and save it as a script.plist
OXPS : The Assassins Guild, Asteroid Storm, The Bank of the Black Monks, Random Hits, The Galactic Almanac, Renegade Pirates can be downloaded from the Elite Wiki here.
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

Cheers LB - that would make a good sticky (any admin lurking?)

Just to double check I put this in a file called script.plist and I put that file in a directory called (for example) test_ship.oxp and put that folder in AddOns just like I would with any other oxp?

Do I put my ship in the same oxp?

Sorry for the nooby-numpty questions - this oxp lark is still a teeny-bit scary :wink:
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

:? LB it's not working - I confess the ship I'm playing with is Doc's OO-Hauler. I've copied his oxp into one of my own naming. changed his script.plist to have yours in it. And changed the role of the ship from "trader oohauler" to "test" in shipdata.plist - but it doesn't appear outside the station. What am I doing wrong?

TIA
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
LittleBear
---- E L I T E ----
---- E L I T E ----
Posts: 2882
Joined: Tue Apr 04, 2006 7:02 pm
Location: On a survey mission for GalCop. Ship: Cobra Corvette: Hidden Dragon Rated: Deadly.

Post by LittleBear »

Odd!

Download the testship.oxp from this link

http://www.box.net/public/5s71vp2d2e

Unzip and put it in AddOns.

You'll then need to change the ship being added in the testship.oxp from monkbranch (the one I've been testing) to your ship's role.

Think the testship.oxp is OK as I've just been using it to test the Monks Station, so if your ship still don't come up, it could be a problem with your ship! :wink:

BTW Black Monks is finished and can be downloaded under the Black Monks thread in Expansion packs.
OXPS : The Assassins Guild, Asteroid Storm, The Bank of the Black Monks, Random Hits, The Galactic Almanac, Renegade Pirates can be downloaded from the Elite Wiki here.
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

Thanks - I'll have a play (but not tonight - it's getting late and I've got a big all day meeting tomorrow and a long drive their and back) :(
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
Dr. Nil
---- E L I T E ----
---- E L I T E ----
Posts: 983
Joined: Thu Sep 28, 2006 5:11 pm
Location: Nearest Hoopy Casino
Contact:

Post by Dr. Nil »

If you're working from another oxp then you can start out by making a copy of that oxp's folder and renaming it to your new name (+.oxp). That way you're sure to have the right files in the right subdirectories. If found this way the easiest for my first work. It should also help limit case sensitivity problems that affects Linux players.

Go through the files in your new folder renaming textures, references to textures (find and replace in the model - .dat - files), references to model, roles, entity names etc.

To test the ship model only. Move all oxps except the one you're working on to the folder AddOns/out/ and test if the model is alright first with demoship.plist If you want to fly around it, use the script LB supplied. But don't put it at the top of your expansion. It needs to go into daddyhoggysnewship.oxp/Config
Image

300 billboards in Your Ad Here!
Astromines and more in Commies.
AVAILABLE HERE along with other Oolite eXpansion Packs.
User avatar
Ramirez
---- E L I T E ----
---- E L I T E ----
Posts: 628
Joined: Mon Nov 07, 2005 9:52 am
Location: London, UK

Post by Ramirez »

Just another tip, for what it's worth: Having put a working OXP together, when it comes to adding in a ship appearance script, you can just drop the script.plist into a separate Config folder within the AddOns folder - the one where an alternative keyconfig might go. This script can call on any OXP that's in the AddOns folder - to turn it off I just drag it out of the folder and leave it on the desktop. Because it's not in an OXP package it's easier to get to quickly, plus it's a little easier to differentiate it from all the other OXP scripts, which obviously have the exact same filename.
Download Resistance Commander plus many other exciting OXPs HERE
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

Thanks for the tips guys - I'll try and give it a whirl tonight (my weekend is now screwed - my "we can't deliver for 35 days" wardrobes are coming on Wednesday (10 days after I ordered them) - so some serious bedroom thrashing will be going on in DaddyHoggy world...

Real life really does get in the way sometimes! :lol:
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

Hmmm, bedroom thrashing? Perhaps I meant trashing... The other implies something completely different... :shock:
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
Post Reply