OXP Newbie - my Puff Adder flys but the display is messed up
Posted: Thu May 13, 2010 3:44 pm
OK, I knew it would happen one day - I'd decide to dip my toes into OXPs.
I decided I'd try to start by adapting an existing ship - the Adder.
Step 1 is to try and just check I can create something just like an Adder and then modify it.
So I created the directory tree C:\Oolite\AddOns\PuffAdder.oxp\Config
And in this directory created a shipdata.plist...
<?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>puff_adder-player</key>
<dict>
<key>like_ship</key>
<string>adder-player</string>
<key>name</key>
<string>Puff Adder</string>
<key>roles</key>
<string>player</string>
</dict>
</dict>
</plist>
...and a shipyard.plist...
<?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>puff_adder-player</key>
<dict>
<key>chance</key>
<real>1.0</real>
</dict>
</dict>
</plist>
So the aim is that at the moment a Puff Adder should be exactly the same as an Adder but with a different name.
The good news is that I can buy a Puff Adder (price zero), and fly it but the bad news is I'm not seeing what I see if I'm flying an Adder.
The aft view is messed up. From the Adder I see flames, but from the Puff Adder I just see two big blue blobs in the middle of screen.
Also when I fire I don't get a laser beam, although I get sounds and can register hits.
Any advice?
Cheers,
Crush
I decided I'd try to start by adapting an existing ship - the Adder.
Step 1 is to try and just check I can create something just like an Adder and then modify it.
So I created the directory tree C:\Oolite\AddOns\PuffAdder.oxp\Config
And in this directory created a shipdata.plist...
<?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>puff_adder-player</key>
<dict>
<key>like_ship</key>
<string>adder-player</string>
<key>name</key>
<string>Puff Adder</string>
<key>roles</key>
<string>player</string>
</dict>
</dict>
</plist>
...and a shipyard.plist...
<?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>puff_adder-player</key>
<dict>
<key>chance</key>
<real>1.0</real>
</dict>
</dict>
</plist>
So the aim is that at the moment a Puff Adder should be exactly the same as an Adder but with a different name.
The good news is that I can buy a Puff Adder (price zero), and fly it but the bad news is I'm not seeing what I see if I'm flying an Adder.
The aft view is messed up. From the Adder I see flames, but from the Puff Adder I just see two big blue blobs in the middle of screen.
Also when I fire I don't get a laser beam, although I get sounds and can register hits.
Any advice?
Cheers,
Crush