Oolite Unable To Identify A Property List
Moderators: winston, another_commander
Oolite Unable To Identify A Property List
I have just tried to do a test run with my first oxp, the SunBat ship. It didn't load. It was listed in the listed oxps in Latest Log, but here is what the Latest Log had to say about the SunBat.oxp:
00:30:24.530 [plist.parse.failed]: Failed to parse /home/mandoman/.Oolite/AddOns/SunBat.oxp/Config/shipdata.plist as a property list.
failed to parse as XML property list
I have been trying to figure this little Error out for some time, now. When I compare my shipyard.plist with other oxps shipyard.plist, I don't see any problem, but it is obviously not right. What am I doing wrong. Here is what is in the shipyard.plist for the SunBat:
<?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>SunBat-player</key>
<dict>
<key>chance</key>
<real>1.0</real>
<key>optional_equipment</key>
<array>
<string>EQ_ECM</string>
<string>EQ_FUEL_SCOOPS</string>
<string>EQ_ENERGY_BOMB</string>
<string>EQ_ENERGY_UNIT</string>
<string>EQ_NAVAL_ENERGY_UNIT</string>
<string>EQ_DOCK_COMP</string>
<string>EQ_WEAPON_BEAM_LASER</string>
<string>EQ_WEAPON_MILITARY_LASER</string>
<string>EQ_WEAPON_TWIN_PLASMA_CANNON</string>
<string>EQ_FUEL_INJECTION</string>
<string>EQ_SCANNER_SHOW_MISSILE_TARGET</string>
<string>EQ_MULTI_TARGET</string>
<string>EQ_GAL_DRIVE</string>
<string>EQ_ADVANCED_COMPASS</string>
<string>EQ_SHIELD_BOOSTER</string>
<string>EQ_NAVAL_SHIELD_BOOSTER</string>
<string>EQ_ESCAPE_POD</STRING>
</array>
<key>price</key>
<integer>815000</integer>
<key>standard_equipment</key>
<dict>
<key>extras</key>
<array>
<string>EQ_FUEL_SCOOPS</string>
</array>
<key>right_forward_weapon_type</key>
<string>EQ_WEAPON_BEAM_LASER</string>
<key>left_forward_weapon_type</key>
<string>EQ_WEAPON_BEAM_LASER</string>
<key>right_aft_weapon_type</key>
<string>EQ_WEAPON_BEAM_LASER</string>
<key>left_aft_weapon_type</key>
<string>EQ_WEAPON_BEAM_LASER</string>
<key>missiles</key>
<integer>2</integer>
</dict>
<key>techlevel</key>
<integer>9</integer>
<key>weapon_facings</key>
<integer>3</integer>
</dict>
</dict>
</plist>
Any help would be appreciated.
00:30:24.530 [plist.parse.failed]: Failed to parse /home/mandoman/.Oolite/AddOns/SunBat.oxp/Config/shipdata.plist as a property list.
failed to parse as XML property list
I have been trying to figure this little Error out for some time, now. When I compare my shipyard.plist with other oxps shipyard.plist, I don't see any problem, but it is obviously not right. What am I doing wrong. Here is what is in the shipyard.plist for the SunBat:
<?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>SunBat-player</key>
<dict>
<key>chance</key>
<real>1.0</real>
<key>optional_equipment</key>
<array>
<string>EQ_ECM</string>
<string>EQ_FUEL_SCOOPS</string>
<string>EQ_ENERGY_BOMB</string>
<string>EQ_ENERGY_UNIT</string>
<string>EQ_NAVAL_ENERGY_UNIT</string>
<string>EQ_DOCK_COMP</string>
<string>EQ_WEAPON_BEAM_LASER</string>
<string>EQ_WEAPON_MILITARY_LASER</string>
<string>EQ_WEAPON_TWIN_PLASMA_CANNON</string>
<string>EQ_FUEL_INJECTION</string>
<string>EQ_SCANNER_SHOW_MISSILE_TARGET</string>
<string>EQ_MULTI_TARGET</string>
<string>EQ_GAL_DRIVE</string>
<string>EQ_ADVANCED_COMPASS</string>
<string>EQ_SHIELD_BOOSTER</string>
<string>EQ_NAVAL_SHIELD_BOOSTER</string>
<string>EQ_ESCAPE_POD</STRING>
</array>
<key>price</key>
<integer>815000</integer>
<key>standard_equipment</key>
<dict>
<key>extras</key>
<array>
<string>EQ_FUEL_SCOOPS</string>
</array>
<key>right_forward_weapon_type</key>
<string>EQ_WEAPON_BEAM_LASER</string>
<key>left_forward_weapon_type</key>
<string>EQ_WEAPON_BEAM_LASER</string>
<key>right_aft_weapon_type</key>
<string>EQ_WEAPON_BEAM_LASER</string>
<key>left_aft_weapon_type</key>
<string>EQ_WEAPON_BEAM_LASER</string>
<key>missiles</key>
<integer>2</integer>
</dict>
<key>techlevel</key>
<integer>9</integer>
<key>weapon_facings</key>
<integer>3</integer>
</dict>
</dict>
</plist>
Any help would be appreciated.
Re: Oolite Unable To Identify A Property List
Mandoman,
Don't think there is much wrong with that.
The error message says shipdata.plist not shipyard.plist can you post that one so we can have a look?
Ironfist
Don't think there is much wrong with that.
The error message says shipdata.plist not shipyard.plist can you post that one so we can have a look?
Ironfist
64bit Mint 10 and Win 8 64bit on E8400 at 3.6GHz - ATI HD5750 graphics.
Concentration is the ability to think of absolutely nothing when it is absolutely necessary.
Concentration is the ability to think of absolutely nothing when it is absolutely necessary.
- CommonSenseOTB
- ---- E L I T E ----
- Posts: 1397
- Joined: Wed May 04, 2011 10:42 am
- Location: Saskatchewan, Canada
Re: Oolite Unable To Identify A Property List
Perhaps you meant to post the shipdata.plist that wouldn't parse? No worries mandoman. Get a good night's sleep and take the occasional break from oxp'ing. Works for me to regain a fresh perspective on things and let my mind absorb and reflect on things I was puzzling over the previous day.
Take an idea from one person and twist or modify it in a different way as a return suggestion so another person can see a part of it that can apply to the oxp they are working on.
CommonSense 'Outside-the-Box' Design Studios Ltd.
WIKI+OXPs
CommonSense 'Outside-the-Box' Design Studios Ltd.
WIKI+OXPs
- Killer Wolf
- ---- E L I T E ----
- Posts: 2279
- Joined: Tue Jan 02, 2007 12:38 pm
Re: Oolite Unable To Identify A Property List
top of my head, i'd say it doesn't like the "right_forward_weapon_type" etc bits. as far as i know it will only accept standard notations, ie front, rear, left, right : the reason being, of course, is that you can't have multiple guns per facing on a player ship.
- CommonSenseOTB
- ---- E L I T E ----
- Posts: 1397
- Joined: Wed May 04, 2011 10:42 am
- Location: Saskatchewan, Canada
Re: Oolite Unable To Identify A Property List
Yep, there are a few errors in the shipyard.plist for sure. Player versions of ships cannot have more than one laser per each view. NPC versions can add extra lasers by adding a subent that has a weapon defined in its' shipdata.plist. The best way to see how this is done is look at some basic ships from years ago like the iguana and cougar and wolfmk2. They might even be listed in XML format. If it works for those ships then doing it the same way will work for your ship.Killer Wolf wrote:top of my head, i'd say it doesn't like the "right_forward_weapon_type" etc bits. as far as i know it will only accept standard notations, ie front, rear, left, right : the reasing being, of course, is that you can't have multiple guns per facing on a player ship.
Take an idea from one person and twist or modify it in a different way as a return suggestion so another person can see a part of it that can apply to the oxp they are working on.
CommonSense 'Outside-the-Box' Design Studios Ltd.
WIKI+OXPs
CommonSense 'Outside-the-Box' Design Studios Ltd.
WIKI+OXPs
Re: Oolite Unable To Identify A Property List
OK, I was a bit fuzzy last night (this morning?) when I posted this thread. I didn't notice that the Latest Log had also mentioned the shipdata.plist, which is evidently what I posted. It actually didn't like either plist, as this shows from the same log:
00:30:26.294 [plist.parse.failed]: Failed to parse /home/mandoman/.Oolite/AddOns/SunBat.oxp/Config/shipyard.plist as a property list.
failed to parse as XML property list
I was afraid that little problem with the double front, and rear lasers would pop up, but thought I would try it anyway. Here is a copy of the 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>SunBat</key>
<dict>
<key>ai_type</key>
<string>SunBatAI.plist</string>
<key>view_position_forward</key>
<string>0.0 2 9</string>
<key>view_position_aft</key>
<string>0.0 1 -4</string>
<key>view_position_port</key>
<string>-1 2 9</string>
<key>view_position_starboard</key>
<string>1 2 9</string>
<key>weapon_position_forward</key>
<string>0.0 0.0 22</string>
<key>weapon_position_aft</key>
<string>0.0 0.0 -5.0</string>
<key>exhaust</key>
<array>
<string>-16.0 -11.1 -0.9 1.2 1.2 2.0</string>
<string>-16.0 10.6 -0.9 1.2 1.2 2.0</string>
<string>-4.6 -0.3 -1.1 1.2 1.2 2.0</string>
</array>
<key>aft_eject_position</key>
<string>7.8 -0.3 -1.7</string>
<key>bounty</key>
<string>100</string>
<key>cargo_type</key>
<string>CARGO_NOT_CARGO</string>
<key>energy_recharge_rate</key>
<real>8.5</real>
<key>right_forward_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>left_forward_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>right_aft_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>left_aft_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>has_ecm</key>
<real>1.0</real>
<key>has_energy_bomb</key>
<real>true</real>
<key>has_fuel_injector</key>
<real>.99</real>
<key>has_scoop</key>
<real>yes</key>
<key>has_hyperspace_motor</key>
<real>yes</real>
<key>laser_color</key>
<string>whitecolor</string>
<key>likely_cargo</key>
<integer>0</integer>
<key>max_cargo</key>
<string>1</string>
<key>max_energy</key>
<real>550</real>
<key>max_flight_pitch</key>
<real>1.4</real>
<key>max_flight_roll</key>
<real>1.6</real>
<key>max_flight_speed</key>
<real>500</real>
<key>max_missiles</key>
<integer>6</integer>
<key>missile_launch_position</key>
<string>-1.1 15.1 -1.7</string>
<string>-1.1 -15.6 -1.7</string>
<key>missiles</key>
<integer>2</integer>
<key>model</key>
<string>sunbat.dat</string>
<key>name</key>
<string>SunBat</string>
<key>roles</key>
<string>hunter pirate escort wingman</string>
<key>thrust</key>
<real>55</real>
<key>death_actions</key>
<array>
<string>commsMessage: [SunBat-plea]</string>
<string>spawn: explosive_shrapnel 4</string>
</array>
<key>smooth</key>
<true/>
</dict>
<key>SunBat-player</key>
<dict>
<key>view_position_forward</key>
<string>0.0 2 9</string>
<key>view_position_aft</key>
<string>0.0 1 -4</string>
<key>view_position_port</key>
<string>-1 2 9</string>
<key>view_position_starboard</key>
<string>1 2 9</string>
<key>weapon_position_forward_right</key>
<string>18.062 -3.041 -1.501</string>
<key>weapon_position_forward_left</key>
<string>18.056 2.432 -1.501</string>
<key>weapon_position_aft_right</key>
<string>-16.343 -15.406 -1.371</string>
<key>weapon_position_aft_left</key>
<string>-16.454 15.068 -1.468</key>
<key>exhaust</key>
<array>
<string>-16.0 -11.1 -0.9 1.2 1.2 2.0</string>
<string>-16.0 10.6 -0.9 1.2 1.2 2.0</string>
<string>-4.6 -0.3 -1.1 1.2 1.2 2.0</string>
</array>
<key>subentities</key>
<array>
<string>*FLASHER* -18.4 17.4 -1.6 0 1 0.0 0.2</string>
<string>*FLASHER* -18.4 -17.9 -1.6 0 1 0.0 0.2</string>
<string>*FLASHER* 4.6 20.3 -1.6 60 1 2.0 0.1</string>
<string>*FLASHER* -4.6 -20.8 -1.6 60 1 0.0 0.1</string>
<string>*FLASHER* 30.7 21.5 -1.6 120 1 0.0 0.5</string>
<string>*FLASHER* 30.7 -22.0 -1.6 120 1 0.0 0.5</string>
</array>
<key>aft_eject_position</key>
<string>7.8 -0.3 -1.7</string>
<key>cargo_type</key>
<string>CARGO_NOT_CARGO</string>
<key>right_forward_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>left_forward_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>right_aft_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>left_aft_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>energy_recharge_rate</key>
<real>8.5</real>
<key>has_ecm</key>
<real>1.0</real>
<key>has_energy_bomb</key>
<real>true</real>
<key>has_fuel_injector</key>
<real>.99</real>
<key>has_scoop</key>
<real>yes</key>
<key>has_hyperspace_motor</key>
<real>yes</real>
<key>laser_color</key>
<string>whitecolor</string>
<key>max_cargo</key>
<string>1</string>
<key>max_energy</key>
<real>550</real>
<key>max_flight_pitch</key>
<real>1.4</real>
<key>max_flight_roll</key>
<real>1.6</real>
<key>max_flight_speed</key>
<real>500</real>
00:30:26.294 [plist.parse.failed]: Failed to parse /home/mandoman/.Oolite/AddOns/SunBat.oxp/Config/shipyard.plist as a property list.
failed to parse as XML property list
<key>max_missiles</key>
<integer>6</integer>
<key>missile_launch_position</key>
<string>-1.1 15.1 -1.7</string>
<string>-1.1 -15.6 -1.7</string>
<key>model</key>
<string>sunbat.dat</string>
<key>name</key>
<string>SunBat</string>
<key>roles</key>
<string>player</string>
<key>thrust</key>
<real>55</real>
<key>smooth</key>
<true/>
<key>hud</key>
<string>default</string>
<key>custom_views</key>
<array>
<dict>
<key>view_description</key>
<string>External View 1</string>
<key>view_position</key>
<string>0.0 10.0 -100.0</string>
<key>view_orientation</key>
<string>1.0 0.0 0.0 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 2</string>
<key>view_position</key>
<string>75 10.0 -75</string>
<key>view_orientation</key>
<string>0.9239 0.0 0.3827 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 3</string>
<key>view_position</key>
<string>100.0 10.0 0.0</string>
<key>view_orientation</key>
<string>0.7071 0.0 0.7071 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 4</string>
<key>view_position</key>
<string>75 10.0 75</string>
<key>view_orientation</key>
<string>0.3827 0.0 0.9239 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 5</string>
<key>view_position</key>
<string>0.0 10.0 100.0</string>
<key>view_orientation</key>
<string>0.0 0.0 1.0 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 6</string>
<key>view_position</key>
<string>-75 10.0 75</string>
<key>view_orientation</key>
<string>0.3827 0.0 -0.9239 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 7</string>
<key>view_position</key>
<string>-100.0 10.0 0.0</string>
<key>view_orientation</key>
<string>0.7071 0.0 -0.7071 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 8</string>
<key>view_position</key>
<string>-75 10.0 -75</string>
<key>view_orientation</key>
<string>0.9239 0.0 -0.3827 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
</array>
</dict>
</dict>
</plist>
I'll check out the ships to which you referred, CommonSenseOTB. I suppose I could change the ship itself, but when I attempted putting a laser in the nose before, it caused chaos in the mesh, and I couldn't even get a decent unwrap. I had to find the original Blender model of the SunBat to try something else, and that is when I noticed that two lasers up front, and in back would fit beautifully. There really isn't any side locations. I remember Killer Wolf suggesting I put lasers in the wing tips, but the problem with that is the wings are basically just flat foils, with no space for a laser. I suppose there's a remedy for that, like creating a face on the edges, but after the nose fiasco, I didn't feel like chancing it. Oh well, keep on keeping on, eh?
00:30:26.294 [plist.parse.failed]: Failed to parse /home/mandoman/.Oolite/AddOns/SunBat.oxp/Config/shipyard.plist as a property list.
failed to parse as XML property list
I was afraid that little problem with the double front, and rear lasers would pop up, but thought I would try it anyway. Here is a copy of the 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>SunBat</key>
<dict>
<key>ai_type</key>
<string>SunBatAI.plist</string>
<key>view_position_forward</key>
<string>0.0 2 9</string>
<key>view_position_aft</key>
<string>0.0 1 -4</string>
<key>view_position_port</key>
<string>-1 2 9</string>
<key>view_position_starboard</key>
<string>1 2 9</string>
<key>weapon_position_forward</key>
<string>0.0 0.0 22</string>
<key>weapon_position_aft</key>
<string>0.0 0.0 -5.0</string>
<key>exhaust</key>
<array>
<string>-16.0 -11.1 -0.9 1.2 1.2 2.0</string>
<string>-16.0 10.6 -0.9 1.2 1.2 2.0</string>
<string>-4.6 -0.3 -1.1 1.2 1.2 2.0</string>
</array>
<key>aft_eject_position</key>
<string>7.8 -0.3 -1.7</string>
<key>bounty</key>
<string>100</string>
<key>cargo_type</key>
<string>CARGO_NOT_CARGO</string>
<key>energy_recharge_rate</key>
<real>8.5</real>
<key>right_forward_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>left_forward_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>right_aft_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>left_aft_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>has_ecm</key>
<real>1.0</real>
<key>has_energy_bomb</key>
<real>true</real>
<key>has_fuel_injector</key>
<real>.99</real>
<key>has_scoop</key>
<real>yes</key>
<key>has_hyperspace_motor</key>
<real>yes</real>
<key>laser_color</key>
<string>whitecolor</string>
<key>likely_cargo</key>
<integer>0</integer>
<key>max_cargo</key>
<string>1</string>
<key>max_energy</key>
<real>550</real>
<key>max_flight_pitch</key>
<real>1.4</real>
<key>max_flight_roll</key>
<real>1.6</real>
<key>max_flight_speed</key>
<real>500</real>
<key>max_missiles</key>
<integer>6</integer>
<key>missile_launch_position</key>
<string>-1.1 15.1 -1.7</string>
<string>-1.1 -15.6 -1.7</string>
<key>missiles</key>
<integer>2</integer>
<key>model</key>
<string>sunbat.dat</string>
<key>name</key>
<string>SunBat</string>
<key>roles</key>
<string>hunter pirate escort wingman</string>
<key>thrust</key>
<real>55</real>
<key>death_actions</key>
<array>
<string>commsMessage: [SunBat-plea]</string>
<string>spawn: explosive_shrapnel 4</string>
</array>
<key>smooth</key>
<true/>
</dict>
<key>SunBat-player</key>
<dict>
<key>view_position_forward</key>
<string>0.0 2 9</string>
<key>view_position_aft</key>
<string>0.0 1 -4</string>
<key>view_position_port</key>
<string>-1 2 9</string>
<key>view_position_starboard</key>
<string>1 2 9</string>
<key>weapon_position_forward_right</key>
<string>18.062 -3.041 -1.501</string>
<key>weapon_position_forward_left</key>
<string>18.056 2.432 -1.501</string>
<key>weapon_position_aft_right</key>
<string>-16.343 -15.406 -1.371</string>
<key>weapon_position_aft_left</key>
<string>-16.454 15.068 -1.468</key>
<key>exhaust</key>
<array>
<string>-16.0 -11.1 -0.9 1.2 1.2 2.0</string>
<string>-16.0 10.6 -0.9 1.2 1.2 2.0</string>
<string>-4.6 -0.3 -1.1 1.2 1.2 2.0</string>
</array>
<key>subentities</key>
<array>
<string>*FLASHER* -18.4 17.4 -1.6 0 1 0.0 0.2</string>
<string>*FLASHER* -18.4 -17.9 -1.6 0 1 0.0 0.2</string>
<string>*FLASHER* 4.6 20.3 -1.6 60 1 2.0 0.1</string>
<string>*FLASHER* -4.6 -20.8 -1.6 60 1 0.0 0.1</string>
<string>*FLASHER* 30.7 21.5 -1.6 120 1 0.0 0.5</string>
<string>*FLASHER* 30.7 -22.0 -1.6 120 1 0.0 0.5</string>
</array>
<key>aft_eject_position</key>
<string>7.8 -0.3 -1.7</string>
<key>cargo_type</key>
<string>CARGO_NOT_CARGO</string>
<key>right_forward_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>left_forward_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>right_aft_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>left_aft_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>energy_recharge_rate</key>
<real>8.5</real>
<key>has_ecm</key>
<real>1.0</real>
<key>has_energy_bomb</key>
<real>true</real>
<key>has_fuel_injector</key>
<real>.99</real>
<key>has_scoop</key>
<real>yes</key>
<key>has_hyperspace_motor</key>
<real>yes</real>
<key>laser_color</key>
<string>whitecolor</string>
<key>max_cargo</key>
<string>1</string>
<key>max_energy</key>
<real>550</real>
<key>max_flight_pitch</key>
<real>1.4</real>
<key>max_flight_roll</key>
<real>1.6</real>
<key>max_flight_speed</key>
<real>500</real>
00:30:26.294 [plist.parse.failed]: Failed to parse /home/mandoman/.Oolite/AddOns/SunBat.oxp/Config/shipyard.plist as a property list.
failed to parse as XML property list
<key>max_missiles</key>
<integer>6</integer>
<key>missile_launch_position</key>
<string>-1.1 15.1 -1.7</string>
<string>-1.1 -15.6 -1.7</string>
<key>model</key>
<string>sunbat.dat</string>
<key>name</key>
<string>SunBat</string>
<key>roles</key>
<string>player</string>
<key>thrust</key>
<real>55</real>
<key>smooth</key>
<true/>
<key>hud</key>
<string>default</string>
<key>custom_views</key>
<array>
<dict>
<key>view_description</key>
<string>External View 1</string>
<key>view_position</key>
<string>0.0 10.0 -100.0</string>
<key>view_orientation</key>
<string>1.0 0.0 0.0 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 2</string>
<key>view_position</key>
<string>75 10.0 -75</string>
<key>view_orientation</key>
<string>0.9239 0.0 0.3827 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 3</string>
<key>view_position</key>
<string>100.0 10.0 0.0</string>
<key>view_orientation</key>
<string>0.7071 0.0 0.7071 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 4</string>
<key>view_position</key>
<string>75 10.0 75</string>
<key>view_orientation</key>
<string>0.3827 0.0 0.9239 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 5</string>
<key>view_position</key>
<string>0.0 10.0 100.0</string>
<key>view_orientation</key>
<string>0.0 0.0 1.0 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 6</string>
<key>view_position</key>
<string>-75 10.0 75</string>
<key>view_orientation</key>
<string>0.3827 0.0 -0.9239 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 7</string>
<key>view_position</key>
<string>-100.0 10.0 0.0</string>
<key>view_orientation</key>
<string>0.7071 0.0 -0.7071 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 8</string>
<key>view_position</key>
<string>-75 10.0 -75</string>
<key>view_orientation</key>
<string>0.9239 0.0 -0.3827 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
</array>
</dict>
</dict>
</plist>
I'll check out the ships to which you referred, CommonSenseOTB. I suppose I could change the ship itself, but when I attempted putting a laser in the nose before, it caused chaos in the mesh, and I couldn't even get a decent unwrap. I had to find the original Blender model of the SunBat to try something else, and that is when I noticed that two lasers up front, and in back would fit beautifully. There really isn't any side locations. I remember Killer Wolf suggesting I put lasers in the wing tips, but the problem with that is the wings are basically just flat foils, with no space for a laser. I suppose there's a remedy for that, like creating a face on the edges, but after the nose fiasco, I didn't feel like chancing it. Oh well, keep on keeping on, eh?
Re: Oolite Unable To Identify A Property List
Mandoman,
A few comments on the shipdata.plist.
<key>has_ecm</key>
<real>1.0</real> ----- probably better as <true/>
<key>has_energy_bomb</key>
<real>true</real> ----- dont think yes can be a real probably better as <true/>
<key>has_scoop</key>
<real>yes</key> - <real>***</key> ---- real start and key end change to <true/>
<key>has_hyperspace_motor</key>
<real>yes</real> ----- see previous <true/>
<key>missile_launch_position</key>
<string>-1.1 15.1 -1.7</string>
<string>-1.1 -15.6 -1.7</string> ---- don't think ships can have more than 1 position and not sure what would happen without surrounding with <array> </array>
player ships cannot have more than 1 laser in each direction
<key>right_forward_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>left_forward_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>right_aft_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>left_aft_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
Hope this helps
Ironfist
A few comments on the shipdata.plist.
<key>has_ecm</key>
<real>1.0</real> ----- probably better as <true/>
<key>has_energy_bomb</key>
<real>true</real> ----- dont think yes can be a real probably better as <true/>
<key>has_scoop</key>
<real>yes</key> - <real>***</key> ---- real start and key end change to <true/>
<key>has_hyperspace_motor</key>
<real>yes</real> ----- see previous <true/>
<key>missile_launch_position</key>
<string>-1.1 15.1 -1.7</string>
<string>-1.1 -15.6 -1.7</string> ---- don't think ships can have more than 1 position and not sure what would happen without surrounding with <array> </array>
player ships cannot have more than 1 laser in each direction
<key>right_forward_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>left_forward_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>right_aft_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>left_aft_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
Hope this helps
Ironfist
64bit Mint 10 and Win 8 64bit on E8400 at 3.6GHz - ATI HD5750 graphics.
Concentration is the ability to think of absolutely nothing when it is absolutely necessary.
Concentration is the ability to think of absolutely nothing when it is absolutely necessary.
Re: Oolite Unable To Identify A Property List
Thanks, Ironfist. I changed those settings as you suggested. I don't know, but I may have messed with the two plists too much. First, I noticed that I was listing certain properties as Standard in shipdata.plist, while NOT reflecting that in shipyard.plist, so I added those attributes to the shipyard.plist. I also removed the reference to the front port laser, and the rear starboard laser, and re-listed the X, Y, Zs in the subentities. Still not parsing either plist as property, though. Here are the updated plists:
<?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>SunBat</key>
<dict>
<key>ai_type</key>
<string>SunBatAI.plist</string>
<key>view_position_forward</key>
<string>0.0 2 9</string>
<key>view_position_aft</key>
<string>0.0 1 -4</string>
<key>view_position_port</key>
<string>-1 2 9</string>
<key>view_position_starboard</key>
<string>1 2 9</string>
<key>weapon_position_forward</key>
<string>-18.1 -3.0 -1.5</string>
<key>weapon_position_aft</key>
<string>-16.4 15.1 -1.5</string>
<key>exhaust</key>
<array>
<string>-16.0 -11.1 -0.9 1.2 1.2 2.0</string>
<string>-16.0 10.6 -0.9 1.2 1.2 2.0</string>
<string>-4.6 -0.3 -1.1 1.2 1.2 2.0</string>
</array>
<key>subentities</key>
<array>
<string>*FLASHER* -18.4 17.4 -1.6 0 1 0.0 0.2</string>
<string>*FLASHER* -18.4 -17.9 -1.6 0 1 0.0 0.2</string>
<string>*FLASHER* 4.6 20.3 -1.6 60 1 2.0 0.1</string>
<string>*FLASHER* -4.6 -20.8 -1.6 60 1 0.0 0.1</string>
<string>*FLASHER* 30.7 21.5 -1.6 120 1 0.0 0.5</string>
<string>*FLASHER* 30.7 -22.0 -1.6 120 1 0.0 0.5</string>
<string>*STANDARD* 18.1 2.4 -1.5</string>
<string>*STANDARD* -16.3 15.4 -1.4</string>
</array>
<key>aft_eject_position</key>
<string>7.8 -0.3 -1.7</string>
<key>bounty</key>
<string>100</string>
<key>cargo_type</key>
<string>CARGO_NOT_CARGO</string>
<key>energy_recharge_rate</key>
<real>8.5</real>
<key>forward_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>port_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>has_ecm</key>
<real>true</real>
<key>has_energy_bomb</key>
<real>true</real>
<key>has_fuel_injector</key>
<real>true</real>
<key>has_fuel_scoop</key>
<real>true</key>
<key>has_hyperspace_motor</key>
<real>true</real>
<key>has_heat_shield</key>
<real>true</real>
<key>laser_color</key>
<string>whitecolor</string>
<key>likely_cargo</key>
<integer>0</integer>
<key>max_cargo</key>
<string>1</string>
<key>max_energy</key>
<real>550</real>
<key>max_flight_pitch</key>
<real>1.4</real>
<key>max_flight_roll</key>
<real>1.6</real>
<key>max_flight_speed</key>
<real>500</real>
<key>max_missiles</key>
<integer>6</integer>
<key>missile_launch_position</key>
<string>-1.1 15.1 -1.7</string>
<string>-1.1 -15.6 -1.7</string>
<key>missiles</key>
<integer>2</integer>
<key>model</key>
<string>sunbat.dat</string>
<key>name</key>
<string>SunBat</string>
<key>roles</key>
<string>hunter pirate escort wingman</string>
<key>thrust</key>
<real>55</real>
<key>death_actions</key>
<array>
<string>commsMessage: [SunBat-plea]</string>
<string>spawn: explosive_shrapnel 4</string>
</array>
<key>smooth</key>
<true/>
</dict>
<key>SunBat-player</key>
<dict>
<key>view_position_forward</key>
<string>0.0 2 9</string>
<key>view_position_aft</key>
<string>0.0 1 -4</string>
<key>view_position_port</key>
<string>-1 2 9</string>
<key>view_position_starboard</key>
<string>1 2 9</string>
<key>weapon_position_forward</key>
<string>18.062 -3.041 -1.501</string>
<key>weapon_position_aft</key>
<string>-16.343 -15.406 -1.371</string>
<key>exhaust</key>
<array>
<string>-16.0 -11.1 -0.9 1.2 1.2 2.0</string>
<string>-16.0 10.6 -0.9 1.2 1.2 2.0</string>
<string>-4.6 -0.3 -1.1 1.2 1.2 2.0</string>
</array>
<key>subentities</key>
<array>
<string>*FLASHER* -18.4 17.4 -1.6 0 1 0.0 0.2</string>
<string>*FLASHER* -18.4 -17.9 -1.6 0 1 0.0 0.2</string>
<string>*FLASHER* 4.6 20.3 -1.6 60 1 2.0 0.1</string>
<string>*FLASHER* -4.6 -20.8 -1.6 60 1 0.0 0.1</string>
<string>*FLASHER* 30.7 21.5 -1.6 120 1 0.0 0.5</string>
<string>*FLASHER* 30.7 -22.0 -1.6 120 1 0.0 0.5</string>
<string>*STANDARD* 18.1 2.4 -1.5</string>
<string>*STANDARD* -16.3 15.4 -1.4</string>
</array>
<key>aft_eject_position</key>
<string>7.8 -0.3 -1.7</string>
<key>cargo_type</key>
<string>CARGO_NOT_CARGO</string>
<key>forward_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>aft_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>energy_recharge_rate</key>
<real>8.5</real>
<key>has_ecm</key>
<real>true</real>
<key>has_energy_bomb</key>
<real>true</real>
<key>has_fuel_injector</key>
<real>true</real>
<key>has_fuel_scoop</key>
<real>true</key>
<key>has_hyperspace_motor</key>
<real>true</real>
<key>has_heat_shield</key>
<real>true</real>
<key>laser_color</key>
<string>whitecolor</string>
<key>max_cargo</key>
<string>1</string>
<key>max_energy</key>
<real>550</real>
<key>max_flight_pitch</key>
<real>1.4</real>
<key>max_flight_roll</key>
<real>1.6</real>
<key>max_flight_speed</key>
<real>500</real>
<key>max_missiles</key>
<integer>6</integer>
<key>missile_launch_position</key>
<string>-1.1 15.1 -1.7</string>
<string>-1.1 -15.6 -1.7</string>
<key>model</key>
<string>sunbat.dat</string>
<key>name</key>
<string>SunBat</string>
<key>roles</key>
<string>player</string>
<key>thrust</key>
<real>55</real>
<key>smooth</key>
<true/>
<key>hud</key>
<string>default</string>
<key>custom_views</key>
<array>
<dict>
<key>view_description</key>
<string>External View 1</string>
<key>view_position</key>
<string>0.0 10.0 -100.0</string>
<key>view_orientation</key>
<string>1.0 0.0 0.0 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 2</string>
<key>view_position</key>
<string>75 10.0 -75</string>
<key>view_orientation</key>
<string>0.9239 0.0 0.3827 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 3</string>
<key>view_position</key>
<string>100.0 10.0 0.0</string>
<key>view_orientation</key>
<string>0.7071 0.0 0.7071 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 4</string>
<key>view_position</key>
<string>75 10.0 75</string>
<key>view_orientation</key>
<string>0.3827 0.0 0.9239 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 5</string>
<key>view_position</key>
<string>0.0 10.0 100.0</string>
<key>view_orientation</key>
<string>0.0 0.0 1.0 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 6</string>
<key>view_position</key>
<string>-75 10.0 75</string>
<key>view_orientation</key>
<string>0.3827 0.0 -0.9239 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 7</string>
<key>view_position</key>
<string>-100.0 10.0 0.0</string>
<key>view_orientation</key>
<string>0.7071 0.0 -0.7071 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 8</string>
<key>view_position</key>
<string>-75 10.0 -75</string>
<key>view_orientation</key>
<string>0.9239 0.0 -0.3827 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
</array>
</dict>
</dict>
</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>SunBat-player</key>
<dict>
<key>chance</key>
<real>1.0</real>
<key>optional_equipment</key>
<array>
<string>EQ_ENERGY_UNIT</string>
<string>EQ_NAVAL_ENERGY_UNIT</string>
<string>EQ_DOCK_COMP</string>
<string>EQ_WEAPON_MILITARY_LASER</string>
<string>EQ_WEAPON_TWIN_PLASMA_CANNON</string>
<string>EQ_SCANNER_SHOW_MISSILE_TARGET</string>
<string>EQ_MULTI_TARGET</string>
<string>EQ_GAL_DRIVE</string>
<string>EQ_ADVANCED_COMPASS</string>
<string>EQ_SHIELD_BOOSTER</string>
<string>EQ_NAVAL_SHIELD_BOOSTER</string>
<string>EQ_ESCAPE_POD</STRING>
</array>
<key>price</key>
<integer>815000</integer>
<key>standard_equipment</key>
<dict>
<key>extras</key>
<array>
<string>EQ_FUEL_SCOOPS</string>
<string>EQ_ECM</STRING>
<string>EQ_ENERGY_BOMB</string>
<string>EQ_FUEL_INJECTOR</string>
<string>EQ_HYPERSPACE_MOTOR</string>
<string>EQ_HEAT_SHIELD</string>
</array>
<key>forward_weapon_type</key>
<string>EQ_WEAPON_BEAM_LASER</string>
<key>aft_weapon_type</key>
<string>EQ_WEAPON_BEAM_LASER</string>
<key>missiles</key>
<integer>2</integer>
</dict>
<key>techlevel</key>
<integer>9</integer>
<key>weapon_facings</key>
<integer>3</integer>
</dict>
</dict>
</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>SunBat</key>
<dict>
<key>ai_type</key>
<string>SunBatAI.plist</string>
<key>view_position_forward</key>
<string>0.0 2 9</string>
<key>view_position_aft</key>
<string>0.0 1 -4</string>
<key>view_position_port</key>
<string>-1 2 9</string>
<key>view_position_starboard</key>
<string>1 2 9</string>
<key>weapon_position_forward</key>
<string>-18.1 -3.0 -1.5</string>
<key>weapon_position_aft</key>
<string>-16.4 15.1 -1.5</string>
<key>exhaust</key>
<array>
<string>-16.0 -11.1 -0.9 1.2 1.2 2.0</string>
<string>-16.0 10.6 -0.9 1.2 1.2 2.0</string>
<string>-4.6 -0.3 -1.1 1.2 1.2 2.0</string>
</array>
<key>subentities</key>
<array>
<string>*FLASHER* -18.4 17.4 -1.6 0 1 0.0 0.2</string>
<string>*FLASHER* -18.4 -17.9 -1.6 0 1 0.0 0.2</string>
<string>*FLASHER* 4.6 20.3 -1.6 60 1 2.0 0.1</string>
<string>*FLASHER* -4.6 -20.8 -1.6 60 1 0.0 0.1</string>
<string>*FLASHER* 30.7 21.5 -1.6 120 1 0.0 0.5</string>
<string>*FLASHER* 30.7 -22.0 -1.6 120 1 0.0 0.5</string>
<string>*STANDARD* 18.1 2.4 -1.5</string>
<string>*STANDARD* -16.3 15.4 -1.4</string>
</array>
<key>aft_eject_position</key>
<string>7.8 -0.3 -1.7</string>
<key>bounty</key>
<string>100</string>
<key>cargo_type</key>
<string>CARGO_NOT_CARGO</string>
<key>energy_recharge_rate</key>
<real>8.5</real>
<key>forward_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>port_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>has_ecm</key>
<real>true</real>
<key>has_energy_bomb</key>
<real>true</real>
<key>has_fuel_injector</key>
<real>true</real>
<key>has_fuel_scoop</key>
<real>true</key>
<key>has_hyperspace_motor</key>
<real>true</real>
<key>has_heat_shield</key>
<real>true</real>
<key>laser_color</key>
<string>whitecolor</string>
<key>likely_cargo</key>
<integer>0</integer>
<key>max_cargo</key>
<string>1</string>
<key>max_energy</key>
<real>550</real>
<key>max_flight_pitch</key>
<real>1.4</real>
<key>max_flight_roll</key>
<real>1.6</real>
<key>max_flight_speed</key>
<real>500</real>
<key>max_missiles</key>
<integer>6</integer>
<key>missile_launch_position</key>
<string>-1.1 15.1 -1.7</string>
<string>-1.1 -15.6 -1.7</string>
<key>missiles</key>
<integer>2</integer>
<key>model</key>
<string>sunbat.dat</string>
<key>name</key>
<string>SunBat</string>
<key>roles</key>
<string>hunter pirate escort wingman</string>
<key>thrust</key>
<real>55</real>
<key>death_actions</key>
<array>
<string>commsMessage: [SunBat-plea]</string>
<string>spawn: explosive_shrapnel 4</string>
</array>
<key>smooth</key>
<true/>
</dict>
<key>SunBat-player</key>
<dict>
<key>view_position_forward</key>
<string>0.0 2 9</string>
<key>view_position_aft</key>
<string>0.0 1 -4</string>
<key>view_position_port</key>
<string>-1 2 9</string>
<key>view_position_starboard</key>
<string>1 2 9</string>
<key>weapon_position_forward</key>
<string>18.062 -3.041 -1.501</string>
<key>weapon_position_aft</key>
<string>-16.343 -15.406 -1.371</string>
<key>exhaust</key>
<array>
<string>-16.0 -11.1 -0.9 1.2 1.2 2.0</string>
<string>-16.0 10.6 -0.9 1.2 1.2 2.0</string>
<string>-4.6 -0.3 -1.1 1.2 1.2 2.0</string>
</array>
<key>subentities</key>
<array>
<string>*FLASHER* -18.4 17.4 -1.6 0 1 0.0 0.2</string>
<string>*FLASHER* -18.4 -17.9 -1.6 0 1 0.0 0.2</string>
<string>*FLASHER* 4.6 20.3 -1.6 60 1 2.0 0.1</string>
<string>*FLASHER* -4.6 -20.8 -1.6 60 1 0.0 0.1</string>
<string>*FLASHER* 30.7 21.5 -1.6 120 1 0.0 0.5</string>
<string>*FLASHER* 30.7 -22.0 -1.6 120 1 0.0 0.5</string>
<string>*STANDARD* 18.1 2.4 -1.5</string>
<string>*STANDARD* -16.3 15.4 -1.4</string>
</array>
<key>aft_eject_position</key>
<string>7.8 -0.3 -1.7</string>
<key>cargo_type</key>
<string>CARGO_NOT_CARGO</string>
<key>forward_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>aft_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>energy_recharge_rate</key>
<real>8.5</real>
<key>has_ecm</key>
<real>true</real>
<key>has_energy_bomb</key>
<real>true</real>
<key>has_fuel_injector</key>
<real>true</real>
<key>has_fuel_scoop</key>
<real>true</key>
<key>has_hyperspace_motor</key>
<real>true</real>
<key>has_heat_shield</key>
<real>true</real>
<key>laser_color</key>
<string>whitecolor</string>
<key>max_cargo</key>
<string>1</string>
<key>max_energy</key>
<real>550</real>
<key>max_flight_pitch</key>
<real>1.4</real>
<key>max_flight_roll</key>
<real>1.6</real>
<key>max_flight_speed</key>
<real>500</real>
<key>max_missiles</key>
<integer>6</integer>
<key>missile_launch_position</key>
<string>-1.1 15.1 -1.7</string>
<string>-1.1 -15.6 -1.7</string>
<key>model</key>
<string>sunbat.dat</string>
<key>name</key>
<string>SunBat</string>
<key>roles</key>
<string>player</string>
<key>thrust</key>
<real>55</real>
<key>smooth</key>
<true/>
<key>hud</key>
<string>default</string>
<key>custom_views</key>
<array>
<dict>
<key>view_description</key>
<string>External View 1</string>
<key>view_position</key>
<string>0.0 10.0 -100.0</string>
<key>view_orientation</key>
<string>1.0 0.0 0.0 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 2</string>
<key>view_position</key>
<string>75 10.0 -75</string>
<key>view_orientation</key>
<string>0.9239 0.0 0.3827 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 3</string>
<key>view_position</key>
<string>100.0 10.0 0.0</string>
<key>view_orientation</key>
<string>0.7071 0.0 0.7071 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 4</string>
<key>view_position</key>
<string>75 10.0 75</string>
<key>view_orientation</key>
<string>0.3827 0.0 0.9239 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 5</string>
<key>view_position</key>
<string>0.0 10.0 100.0</string>
<key>view_orientation</key>
<string>0.0 0.0 1.0 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 6</string>
<key>view_position</key>
<string>-75 10.0 75</string>
<key>view_orientation</key>
<string>0.3827 0.0 -0.9239 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 7</string>
<key>view_position</key>
<string>-100.0 10.0 0.0</string>
<key>view_orientation</key>
<string>0.7071 0.0 -0.7071 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 8</string>
<key>view_position</key>
<string>-75 10.0 -75</string>
<key>view_orientation</key>
<string>0.9239 0.0 -0.3827 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
</array>
</dict>
</dict>
</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>SunBat-player</key>
<dict>
<key>chance</key>
<real>1.0</real>
<key>optional_equipment</key>
<array>
<string>EQ_ENERGY_UNIT</string>
<string>EQ_NAVAL_ENERGY_UNIT</string>
<string>EQ_DOCK_COMP</string>
<string>EQ_WEAPON_MILITARY_LASER</string>
<string>EQ_WEAPON_TWIN_PLASMA_CANNON</string>
<string>EQ_SCANNER_SHOW_MISSILE_TARGET</string>
<string>EQ_MULTI_TARGET</string>
<string>EQ_GAL_DRIVE</string>
<string>EQ_ADVANCED_COMPASS</string>
<string>EQ_SHIELD_BOOSTER</string>
<string>EQ_NAVAL_SHIELD_BOOSTER</string>
<string>EQ_ESCAPE_POD</STRING>
</array>
<key>price</key>
<integer>815000</integer>
<key>standard_equipment</key>
<dict>
<key>extras</key>
<array>
<string>EQ_FUEL_SCOOPS</string>
<string>EQ_ECM</STRING>
<string>EQ_ENERGY_BOMB</string>
<string>EQ_FUEL_INJECTOR</string>
<string>EQ_HYPERSPACE_MOTOR</string>
<string>EQ_HEAT_SHIELD</string>
</array>
<key>forward_weapon_type</key>
<string>EQ_WEAPON_BEAM_LASER</string>
<key>aft_weapon_type</key>
<string>EQ_WEAPON_BEAM_LASER</string>
<key>missiles</key>
<integer>2</integer>
</dict>
<key>techlevel</key>
<integer>9</integer>
<key>weapon_facings</key>
<integer>3</integer>
</dict>
</dict>
</plist>
- Mauiby de Fug
- ---- E L I T E ----
- Posts: 847
- Joined: Tue Sep 07, 2010 2:23 pm
Re: Oolite Unable To Identify A Property List
With regards to the shipyard.plist, I ran it through the excellent xml to ascii python script, both to see it I could use it and reasoning that it might be for me to debug if it's in an easier format. The script threw a few errors on lines 26 and 37, claiming that there were mismatched tags. So I had a look, and you've ended those lines with </STRING> It may well be a case sensitivity thing. So I changed those to string and re-ran again, and it converted nicely into this:
I tried running the shipdata.plist through the same converter to see what happened and it said that it couldn't convert a string to float: true. So I searched the shipdata, and found, on lines 141 and 258, that you've put true on it's own underneath the smooth key. I don't know what tags you need to put around it, but that may well be where your problem is! That or it may be objecting to <real>true</real>
Edit: yes, it is objecting to <real>true</real> I changed the true to something arbitrary and that is what came up. So I changed true to 1 and now the script continued and it found a new error: on line 83 you have <real>1</key> and the key should be </real> Unfortunately, it then threw a different error, which I don't know how to debug.
Code: Select all
{
"SunBat-player" = {
"chance" = 1.0;
"optional_equipment" = (
"EQ_ENERGY_UNIT",
"EQ_NAVAL_ENERGY_UNIT",
"EQ_DOCK_COMP",
"EQ_WEAPON_MILITARY_LASER",
"EQ_WEAPON_TWIN_PLASMA_CANNON",
"EQ_SCANNER_SHOW_MISSILE_TARGET",
"EQ_MULTI_TARGET",
"EQ_GAL_DRIVE",
"EQ_ADVANCED_COMPASS",
"EQ_SHIELD_BOOSTER",
"EQ_NAVAL_SHIELD_BOOSTER",
"EQ_ESCAPE_POD"
);
"price" = 815000;
"standard_equipment" = {
"aft_weapon_type" = "EQ_WEAPON_BEAM_LASER";
"extras" = (
"EQ_FUEL_SCOOPS",
"EQ_ECM",
"EQ_ENERGY_BOMB",
"EQ_FUEL_INJECTOR",
"EQ_HYPERSPACE_MOTOR",
"EQ_HEAT_SHIELD"
);
"forward_weapon_type" = "EQ_WEAPON_BEAM_LASER";
"missiles" = 2;
};
"techlevel" = 9;
"weapon_facings" = 3;
};
}
Edit: yes, it is objecting to <real>true</real> I changed the true to something arbitrary and that is what came up. So I changed true to 1 and now the script continued and it found a new error: on line 83 you have <real>1</key> and the key should be </real> Unfortunately, it then threw a different error, which I don't know how to debug.
Last edited by Mauiby de Fug on Sun Oct 02, 2011 6:06 pm, edited 1 time in total.
Re: Oolite Unable To Identify A Property List
Mandoman,
I have made some changes to the shipdata.plist
I corrected the <real>true</real> to <true/> and removed the 2 lines in the subentities that had *STANDARD* in the listing this is supposed to be a string to identify an object.
I then set up a test OXP using a model and texture I has used previously, I added the edited shipdata.plist and used my own version of shipyard.plist. This seems to load OK. I do not have time today to look at your shipyard.plist sorry.
I post the listing for your consideration
<?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>SunBat</key>
<dict>
<key>ai_type</key>
<string>SunBatAI.plist</string>
<key>view_position_forward</key>
<string>0.0 2 9</string>
<key>view_position_aft</key>
<string>0.0 1 -4</string>
<key>view_position_port</key>
<string>-1 2 9</string>
<key>view_position_starboard</key>
<string>1 2 9</string>
<key>weapon_position_forward</key>
<string>-18.1 -3.0 -1.5</string>
<key>weapon_position_aft</key>
<string>-16.4 15.1 -1.5</string>
<key>exhaust</key>
<array>
<string>-16.0 -11.1 -0.9 1.2 1.2 2.0</string>
<string>-16.0 10.6 -0.9 1.2 1.2 2.0</string>
<string>-4.6 -0.3 -1.1 1.2 1.2 2.0</string>
</array>
<key>subentities</key>
<array>
<string>*FLASHER* -18.4 17.4 -1.6 0 1 0.0 0.2</string>
<string>*FLASHER* -18.4 -17.9 -1.6 0 1 0.0 0.2</string>
<string>*FLASHER* 4.6 20.3 -1.6 60 1 2.0 0.1</string>
<string>*FLASHER* -4.6 -20.8 -1.6 60 1 0.0 0.1</string>
<string>*FLASHER* 30.7 21.5 -1.6 120 1 0.0 0.5</string>
<string>*FLASHER* 30.7 -22.0 -1.6 120 1 0.0 0.5</string>
</array>
<key>aft_eject_position</key>
<string>7.8 -0.3 -1.7</string>
<key>bounty</key>
<string>100</string>
<key>cargo_type</key>
<string>CARGO_NOT_CARGO</string>
<key>energy_recharge_rate</key>
<real>8.5</real>
<key>forward_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>port_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>has_ecm</key>
<true/>
<key>has_energy_bomb</key>
<true/>
<key>has_fuel_injector</key>
<true/>
<key>has_fuel_scoop</key>
<true/>
<key>has_hyperspace_motor</key>
<true/>
<key>has_heat_shield</key>
<true/>
<key>laser_color</key>
<string>whitecolor</string>
<key>likely_cargo</key>
<integer>0</integer>
<key>max_cargo</key>
<string>1</string>
<key>max_energy</key>
<real>550</real>
<key>max_flight_pitch</key>
<real>1.4</real>
<key>max_flight_roll</key>
<real>1.6</real>
<key>max_flight_speed</key>
<real>500</real>
<key>max_missiles</key>
<integer>6</integer>
<key>missile_launch_position</key>
<string>-1.1 15.1 -1.7</string>
<key>missiles</key>
<integer>2</integer>
<key>model</key>
<string>draven_1.dat</string>
<key>name</key>
<string>SunBat</string>
<key>roles</key>
<string>hunter pirate escort wingman</string>
<key>thrust</key>
<real>55</real>
<key>death_actions</key>
<array>
<string>commsMessage: [SunBat-plea]</string>
<string>spawn: explosive_shrapnel 4</string>
</array>
<key>smooth</key>
<true/>
</dict>
<key>SunBat-player</key>
<dict>
<key>view_position_forward</key>
<string>0.0 2 9</string>
<key>view_position_aft</key>
<string>0.0 1 -4</string>
<key>view_position_port</key>
<string>-1 2 9</string>
<key>view_position_starboard</key>
<string>1 2 9</string>
<key>weapon_position_forward</key>
<string>18.062 -3.041 -1.501</string>
<key>weapon_position_aft</key>
<string>-16.343 -15.406 -1.371</string>
<key>exhaust</key>
<array>
<string>-16.0 -11.1 -0.9 1.2 1.2 2.0</string>
<string>-16.0 10.6 -0.9 1.2 1.2 2.0</string>
<string>-4.6 -0.3 -1.1 1.2 1.2 2.0</string>
</array>
<key>subentities</key>
<array>
<string>*FLASHER* -18.4 17.4 -1.6 0 1 0.0 0.2</string>
<string>*FLASHER* -18.4 -17.9 -1.6 0 1 0.0 0.2</string>
<string>*FLASHER* 4.6 20.3 -1.6 60 1 2.0 0.1</string>
<string>*FLASHER* -4.6 -20.8 -1.6 60 1 0.0 0.1</string>
<string>*FLASHER* 30.7 21.5 -1.6 120 1 0.0 0.5</string>
<string>*FLASHER* 30.7 -22.0 -1.6 120 1 0.0 0.5</string>
</array>
<key>aft_eject_position</key>
<string>7.8 -0.3 -1.7</string>
<key>cargo_type</key>
<string>CARGO_NOT_CARGO</string>
<key>forward_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>aft_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>energy_recharge_rate</key>
<real>8.5</real>
<key>has_ecm</key>
<true/>
<key>has_energy_bomb</key>
<true/>
<key>has_fuel_injector</key>
<true/>
<key>has_fuel_scoop</key>
<true/>
<key>has_hyperspace_motor</key>
<true/>
<key>has_heat_shield</key>
<true/>
<key>laser_color</key>
<string>whitecolor</string>
<key>max_cargo</key>
<string>1</string>
<key>max_energy</key>
<real>550</real>
<key>max_flight_pitch</key>
<real>1.4</real>
<key>max_flight_roll</key>
<real>1.6</real>
<key>max_flight_speed</key>
<real>500</real>
<key>max_missiles</key>
<integer>6</integer>
<key>missile_launch_position</key>
<string>-1.1 15.1 -1.7</string>
<key>model</key>
<string>draven_1.dat</string>
<key>name</key>
<string>SunBat</string>
<key>roles</key>
<string>player</string>
<key>thrust</key>
<real>55</real>
<key>smooth</key>
<true/>
<key>hud</key>
<string>default</string>
<key>custom_views</key>
<array>
<dict>
<key>view_description</key>
<string>External View 1</string>
<key>view_position</key>
<string>0.0 10.0 -100.0</string>
<key>view_orientation</key>
<string>1.0 0.0 0.0 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 2</string>
<key>view_position</key>
<string>75 10.0 -75</string>
<key>view_orientation</key>
<string>0.9239 0.0 0.3827 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 3</string>
<key>view_position</key>
<string>100.0 10.0 0.0</string>
<key>view_orientation</key>
<string>0.7071 0.0 0.7071 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 4</string>
<key>view_position</key>
<string>75 10.0 75</string>
<key>view_orientation</key>
<string>0.3827 0.0 0.9239 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 5</string>
<key>view_position</key>
<string>0.0 10.0 100.0</string>
<key>view_orientation</key>
<string>0.0 0.0 1.0 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 6</string>
<key>view_position</key>
<string>-75 10.0 75</string>
<key>view_orientation</key>
<string>0.3827 0.0 -0.9239 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 7</string>
<key>view_position</key>
<string>-100.0 10.0 0.0</string>
<key>view_orientation</key>
<string>0.7071 0.0 -0.7071 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 8</string>
<key>view_position</key>
<string>-75 10.0 -75</string>
<key>view_orientation</key>
<string>0.9239 0.0 -0.3827 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
</array>
</dict>
</dict>
</plist>
hope this helps
Ironfist
I have made some changes to the shipdata.plist
I corrected the <real>true</real> to <true/> and removed the 2 lines in the subentities that had *STANDARD* in the listing this is supposed to be a string to identify an object.
I then set up a test OXP using a model and texture I has used previously, I added the edited shipdata.plist and used my own version of shipyard.plist. This seems to load OK. I do not have time today to look at your shipyard.plist sorry.
I post the listing for your consideration
<?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>SunBat</key>
<dict>
<key>ai_type</key>
<string>SunBatAI.plist</string>
<key>view_position_forward</key>
<string>0.0 2 9</string>
<key>view_position_aft</key>
<string>0.0 1 -4</string>
<key>view_position_port</key>
<string>-1 2 9</string>
<key>view_position_starboard</key>
<string>1 2 9</string>
<key>weapon_position_forward</key>
<string>-18.1 -3.0 -1.5</string>
<key>weapon_position_aft</key>
<string>-16.4 15.1 -1.5</string>
<key>exhaust</key>
<array>
<string>-16.0 -11.1 -0.9 1.2 1.2 2.0</string>
<string>-16.0 10.6 -0.9 1.2 1.2 2.0</string>
<string>-4.6 -0.3 -1.1 1.2 1.2 2.0</string>
</array>
<key>subentities</key>
<array>
<string>*FLASHER* -18.4 17.4 -1.6 0 1 0.0 0.2</string>
<string>*FLASHER* -18.4 -17.9 -1.6 0 1 0.0 0.2</string>
<string>*FLASHER* 4.6 20.3 -1.6 60 1 2.0 0.1</string>
<string>*FLASHER* -4.6 -20.8 -1.6 60 1 0.0 0.1</string>
<string>*FLASHER* 30.7 21.5 -1.6 120 1 0.0 0.5</string>
<string>*FLASHER* 30.7 -22.0 -1.6 120 1 0.0 0.5</string>
</array>
<key>aft_eject_position</key>
<string>7.8 -0.3 -1.7</string>
<key>bounty</key>
<string>100</string>
<key>cargo_type</key>
<string>CARGO_NOT_CARGO</string>
<key>energy_recharge_rate</key>
<real>8.5</real>
<key>forward_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>port_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>has_ecm</key>
<true/>
<key>has_energy_bomb</key>
<true/>
<key>has_fuel_injector</key>
<true/>
<key>has_fuel_scoop</key>
<true/>
<key>has_hyperspace_motor</key>
<true/>
<key>has_heat_shield</key>
<true/>
<key>laser_color</key>
<string>whitecolor</string>
<key>likely_cargo</key>
<integer>0</integer>
<key>max_cargo</key>
<string>1</string>
<key>max_energy</key>
<real>550</real>
<key>max_flight_pitch</key>
<real>1.4</real>
<key>max_flight_roll</key>
<real>1.6</real>
<key>max_flight_speed</key>
<real>500</real>
<key>max_missiles</key>
<integer>6</integer>
<key>missile_launch_position</key>
<string>-1.1 15.1 -1.7</string>
<key>missiles</key>
<integer>2</integer>
<key>model</key>
<string>draven_1.dat</string>
<key>name</key>
<string>SunBat</string>
<key>roles</key>
<string>hunter pirate escort wingman</string>
<key>thrust</key>
<real>55</real>
<key>death_actions</key>
<array>
<string>commsMessage: [SunBat-plea]</string>
<string>spawn: explosive_shrapnel 4</string>
</array>
<key>smooth</key>
<true/>
</dict>
<key>SunBat-player</key>
<dict>
<key>view_position_forward</key>
<string>0.0 2 9</string>
<key>view_position_aft</key>
<string>0.0 1 -4</string>
<key>view_position_port</key>
<string>-1 2 9</string>
<key>view_position_starboard</key>
<string>1 2 9</string>
<key>weapon_position_forward</key>
<string>18.062 -3.041 -1.501</string>
<key>weapon_position_aft</key>
<string>-16.343 -15.406 -1.371</string>
<key>exhaust</key>
<array>
<string>-16.0 -11.1 -0.9 1.2 1.2 2.0</string>
<string>-16.0 10.6 -0.9 1.2 1.2 2.0</string>
<string>-4.6 -0.3 -1.1 1.2 1.2 2.0</string>
</array>
<key>subentities</key>
<array>
<string>*FLASHER* -18.4 17.4 -1.6 0 1 0.0 0.2</string>
<string>*FLASHER* -18.4 -17.9 -1.6 0 1 0.0 0.2</string>
<string>*FLASHER* 4.6 20.3 -1.6 60 1 2.0 0.1</string>
<string>*FLASHER* -4.6 -20.8 -1.6 60 1 0.0 0.1</string>
<string>*FLASHER* 30.7 21.5 -1.6 120 1 0.0 0.5</string>
<string>*FLASHER* 30.7 -22.0 -1.6 120 1 0.0 0.5</string>
</array>
<key>aft_eject_position</key>
<string>7.8 -0.3 -1.7</string>
<key>cargo_type</key>
<string>CARGO_NOT_CARGO</string>
<key>forward_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>aft_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>energy_recharge_rate</key>
<real>8.5</real>
<key>has_ecm</key>
<true/>
<key>has_energy_bomb</key>
<true/>
<key>has_fuel_injector</key>
<true/>
<key>has_fuel_scoop</key>
<true/>
<key>has_hyperspace_motor</key>
<true/>
<key>has_heat_shield</key>
<true/>
<key>laser_color</key>
<string>whitecolor</string>
<key>max_cargo</key>
<string>1</string>
<key>max_energy</key>
<real>550</real>
<key>max_flight_pitch</key>
<real>1.4</real>
<key>max_flight_roll</key>
<real>1.6</real>
<key>max_flight_speed</key>
<real>500</real>
<key>max_missiles</key>
<integer>6</integer>
<key>missile_launch_position</key>
<string>-1.1 15.1 -1.7</string>
<key>model</key>
<string>draven_1.dat</string>
<key>name</key>
<string>SunBat</string>
<key>roles</key>
<string>player</string>
<key>thrust</key>
<real>55</real>
<key>smooth</key>
<true/>
<key>hud</key>
<string>default</string>
<key>custom_views</key>
<array>
<dict>
<key>view_description</key>
<string>External View 1</string>
<key>view_position</key>
<string>0.0 10.0 -100.0</string>
<key>view_orientation</key>
<string>1.0 0.0 0.0 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 2</string>
<key>view_position</key>
<string>75 10.0 -75</string>
<key>view_orientation</key>
<string>0.9239 0.0 0.3827 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 3</string>
<key>view_position</key>
<string>100.0 10.0 0.0</string>
<key>view_orientation</key>
<string>0.7071 0.0 0.7071 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 4</string>
<key>view_position</key>
<string>75 10.0 75</string>
<key>view_orientation</key>
<string>0.3827 0.0 0.9239 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 5</string>
<key>view_position</key>
<string>0.0 10.0 100.0</string>
<key>view_orientation</key>
<string>0.0 0.0 1.0 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 6</string>
<key>view_position</key>
<string>-75 10.0 75</string>
<key>view_orientation</key>
<string>0.3827 0.0 -0.9239 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 7</string>
<key>view_position</key>
<string>-100.0 10.0 0.0</string>
<key>view_orientation</key>
<string>0.7071 0.0 -0.7071 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>External View 8</string>
<key>view_position</key>
<string>-75 10.0 -75</string>
<key>view_orientation</key>
<string>0.9239 0.0 -0.3827 0.0</string>
<key>weapons_facing</key>
<string>FORWARD</string>
</dict>
</array>
</dict>
</dict>
</plist>
hope this helps
Ironfist
64bit Mint 10 and Win 8 64bit on E8400 at 3.6GHz - ATI HD5750 graphics.
Concentration is the ability to think of absolutely nothing when it is absolutely necessary.
Concentration is the ability to think of absolutely nothing when it is absolutely necessary.
- Mauiby de Fug
- ---- E L I T E ----
- Posts: 847
- Joined: Tue Sep 07, 2010 2:23 pm
Re: Oolite Unable To Identify A Property List
Ironfist has done it, it seems! I ran his version through the converter, and I can't see any obvious errors. It converts nicely to
Code: Select all
{
"SunBat" = {
"aft_eject_position" = "7.8 -0.3 -1.7";
"ai_type" = "SunBatAI.plist";
"bounty" = "100";
"cargo_type" = "CARGO_NOT_CARGO";
"death_actions" = (
"commsMessage: [SunBat-plea]",
"spawn: explosive_shrapnel 4"
);
"energy_recharge_rate" = 8.5;
"exhaust" = (
"-16.0 -11.1 -0.9 1.2 1.2 2.0",
"-16.0 10.6 -0.9 1.2 1.2 2.0",
"-4.6 -0.3 -1.1 1.2 1.2 2.0"
);
"forward_weapon_type" = "WEAPON_BEAM_LASER";
"has_ecm" = yes;
"has_energy_bomb" = yes;
"has_fuel_injector" = yes;
"has_fuel_scoop" = yes;
"has_heat_shield" = yes;
"has_hyperspace_motor" = yes;
"laser_color" = "whitecolor";
"likely_cargo" = 0;
"max_cargo" = "1";
"max_energy" = 550.0;
"max_flight_pitch" = 1.4;
"max_flight_roll" = 1.6;
"max_flight_speed" = 500.0;
"max_missiles" = 6;
"missile_launch_position" = "-1.1 15.1 -1.7";
"missiles" = 2;
"model" = "draven_1.dat";
"name" = "SunBat";
"port_weapon_type" = "WEAPON_BEAM_LASER";
"roles" = "hunter pirate escort wingman";
"smooth" = yes;
"subentities" = (
"*FLASHER* -18.4 17.4 -1.6 0 1 0.0 0.2",
"*FLASHER* -18.4 -17.9 -1.6 0 1 0.0 0.2",
"*FLASHER* 4.6 20.3 -1.6 60 1 2.0 0.1",
"*FLASHER* -4.6 -20.8 -1.6 60 1 0.0 0.1",
"*FLASHER* 30.7 21.5 -1.6 120 1 0.0 0.5",
"*FLASHER* 30.7 -22.0 -1.6 120 1 0.0 0.5"
);
"thrust" = 55.0;
"view_position_aft" = "0.0 1 -4";
"view_position_forward" = "0.0 2 9";
"view_position_port" = "-1 2 9";
"view_position_starboard" = "1 2 9";
"weapon_position_aft" = "-16.4 15.1 -1.5";
"weapon_position_forward" = "-18.1 -3.0 -1.5";
};
"SunBat-player" = {
"aft_eject_position" = "7.8 -0.3 -1.7";
"aft_weapon_type" = "WEAPON_BEAM_LASER";
"cargo_type" = "CARGO_NOT_CARGO";
"custom_views" = (
{
"view_description" = "External View 1";
"view_orientation" = "1.0 0.0 0.0 0.0";
"view_position" = "0.0 10.0 -100.0";
"weapons_facing" = "FORWARD";
},
{
"view_description" = "External View 2";
"view_orientation" = "0.9239 0.0 0.3827 0.0";
"view_position" = "75 10.0 -75";
"weapons_facing" = "FORWARD";
},
{
"view_description" = "External View 3";
"view_orientation" = "0.7071 0.0 0.7071 0.0";
"view_position" = "100.0 10.0 0.0";
"weapons_facing" = "FORWARD";
},
{
"view_description" = "External View 4";
"view_orientation" = "0.3827 0.0 0.9239 0.0";
"view_position" = "75 10.0 75";
"weapons_facing" = "FORWARD";
},
{
"view_description" = "External View 5";
"view_orientation" = "0.0 0.0 1.0 0.0";
"view_position" = "0.0 10.0 100.0";
"weapons_facing" = "FORWARD";
},
{
"view_description" = "External View 6";
"view_orientation" = "0.3827 0.0 -0.9239 0.0";
"view_position" = "-75 10.0 75";
"weapons_facing" = "FORWARD";
},
{
"view_description" = "External View 7";
"view_orientation" = "0.7071 0.0 -0.7071 0.0";
"view_position" = "-100.0 10.0 0.0";
"weapons_facing" = "FORWARD";
},
{
"view_description" = "External View 8";
"view_orientation" = "0.9239 0.0 -0.3827 0.0";
"view_position" = "-75 10.0 -75";
"weapons_facing" = "FORWARD";
}
);
"energy_recharge_rate" = 8.5;
"exhaust" = (
"-16.0 -11.1 -0.9 1.2 1.2 2.0",
"-16.0 10.6 -0.9 1.2 1.2 2.0",
"-4.6 -0.3 -1.1 1.2 1.2 2.0"
);
"forward_weapon_type" = "WEAPON_BEAM_LASER";
"has_ecm" = yes;
"has_energy_bomb" = yes;
"has_fuel_injector" = yes;
"has_fuel_scoop" = yes;
"has_heat_shield" = yes;
"has_hyperspace_motor" = yes;
"hud" = "default";
"laser_color" = "whitecolor";
"max_cargo" = "1";
"max_energy" = 550.0;
"max_flight_pitch" = 1.4;
"max_flight_roll" = 1.6;
"max_flight_speed" = 500.0;
"max_missiles" = 6;
"missile_launch_position" = "-1.1 15.1 -1.7";
"model" = "draven_1.dat";
"name" = "SunBat";
"roles" = "player";
"smooth" = yes;
"subentities" = (
"*FLASHER* -18.4 17.4 -1.6 0 1 0.0 0.2",
"*FLASHER* -18.4 -17.9 -1.6 0 1 0.0 0.2",
"*FLASHER* 4.6 20.3 -1.6 60 1 2.0 0.1",
"*FLASHER* -4.6 -20.8 -1.6 60 1 0.0 0.1",
"*FLASHER* 30.7 21.5 -1.6 120 1 0.0 0.5",
"*FLASHER* 30.7 -22.0 -1.6 120 1 0.0 0.5"
);
"thrust" = 55.0;
"view_position_aft" = "0.0 1 -4";
"view_position_forward" = "0.0 2 9";
"view_position_port" = "-1 2 9";
"view_position_starboard" = "1 2 9";
"weapon_position_aft" = "-16.343 -15.406 -1.371";
"weapon_position_forward" = "18.062 -3.041 -1.501";
};
}
Re: Oolite Unable To Identify A Property List
How do you use that xml to ascii python script? I tried it several times yesterday, and all I got was Syntax Errors, so I'm obviously not doing it right.Mauiby de Fug wrote:With regards to the shipyard.plist, I ran it through the excellent xml to ascii python script, both to see it I could use it and reasoning that it might be for me to debug if it's in an easier format.
Man, thanks a lot. I can't believe I missed that "<true/>" on it's own. Shows you how many of these I've done. Shoot, <real>1</key>? What a stupid mistype. Thanks for spotting that too. Don't worry about not knowing what to do with the next bug. You've helped me a lot, and I owe you big time for it.The script threw a few errors on lines 26 and 37, claiming that there were mismatched tags. So I had a look, and you've ended those lines with </STRING> It may well be a case sensitivity thing. So I changed those to string and re-ran again, and it converted nicely into this:I tried running the shipdata.plist through the same converter to see what happened and it said that it couldn't convert a string to float: true. So I searched the shipdata, and found, on lines 141 and 258, that you've put true on it's own underneath the smooth key. I don't know what tags you need to put around it, but that may well be where your problem is! That or it may be objecting to <real>true</real>Code: Select all
{ "SunBat-player" = { "chance" = 1.0; "optional_equipment" = ( "EQ_ENERGY_UNIT", "EQ_NAVAL_ENERGY_UNIT", "EQ_DOCK_COMP", "EQ_WEAPON_MILITARY_LASER", "EQ_WEAPON_TWIN_PLASMA_CANNON", "EQ_SCANNER_SHOW_MISSILE_TARGET", "EQ_MULTI_TARGET", "EQ_GAL_DRIVE", "EQ_ADVANCED_COMPASS", "EQ_SHIELD_BOOSTER", "EQ_NAVAL_SHIELD_BOOSTER", "EQ_ESCAPE_POD" ); "price" = 815000; "standard_equipment" = { "aft_weapon_type" = "EQ_WEAPON_BEAM_LASER"; "extras" = ( "EQ_FUEL_SCOOPS", "EQ_ECM", "EQ_ENERGY_BOMB", "EQ_FUEL_INJECTOR", "EQ_HYPERSPACE_MOTOR", "EQ_HEAT_SHIELD" ); "forward_weapon_type" = "EQ_WEAPON_BEAM_LASER"; "missiles" = 2; }; "techlevel" = 9; "weapon_facings" = 3; }; }
Edit: yes, it is objecting to <real>true</real> I changed the true to something arbitrary and that is what came up. So I changed true to 1 and now the script continued and it found a new error: on line 83 you have <real>1</key> and the key should be </real> Unfortunately, it then threw a different error, which I don't know how to debug
Do you mean that "<true/>" is SUPPOSE to stand alone? Learned a new one there. Thanks. I misunderstood Mauiby de Fug.Ironfist wrote:Mandoman,
I have made some changes to the shipdata.plist
I corrected the <real>true</real> to <true/>
I put those strings under "subenties" because they represent an extra front laser, and an extra aft laser. I thought that was what the Wiki was telling me was necessary. How do I deal with the two extra lasers, fore and aft, if not like that?"Ironfist" wrote:and removed the 2 lines in the subentities that had *STANDARD* in the listing this is supposed to be a string to identify an object.
I'm beginning to get the idea that the xml format isn't what I should be using. I will use ascii from now on. Thanks for the help, any time you have time is appreciated."Ironfist" wrote:I then set up a test OXP using a model and texture I has used previously, I added the edited shipdata.plist and used my own version of shipyard.plist. This seems to load OK. I do not have time today to look at your shipyard.plist sorry.
I post the listing for your consideration
Re: Oolite Unable To Identify A Property List
Guys,
Forgot to reset the model name back to the original.
Ironfist
Forgot to reset the model name back to the original.
Ironfist
64bit Mint 10 and Win 8 64bit on E8400 at 3.6GHz - ATI HD5750 graphics.
Concentration is the ability to think of absolutely nothing when it is absolutely necessary.
Concentration is the ability to think of absolutely nothing when it is absolutely necessary.
Re: Oolite Unable To Identify A Property List
What about the left forward laser, and the right aft laser? Isn't it possible for those to exist at all?Mauiby de Fug wrote:Ironfist has done it, it seems! I ran his version through the converter, and I can't see any obvious errors.
Re: Oolite Unable To Identify A Property List
Good job Ironfist and Mauiby. Some finetuning...
shipyard.plist:
- "EQ_HYPERSPACE_MOTOR" is no Oolite EQ. It may be used in an OXP though.
shipdata.plist:
- has_fuel_injector should be has_fuel_injection.
- The color values in laser_color. Use "whiteColor" instead (upperCase C).
- Delete the hud = default or set a valid value like hud.plist.
- NPCs don't need view_position_x.
- max_cargo is a integer. It's not a bug, but makes things more clear.
- If SunBat-plea is not defined in descriptions.plist remove it from death_actions.
- Spawning explosive_shrapnel via death_actions may fail as it is a external dependency.
Last but not least please take a look at the used roles. wingman needs scan_class = "CLASS_POLICE", so use a extra entry for it. And a hunter with bounty = 100 is probably not such a good idea.
shipyard.plist:
- "EQ_HYPERSPACE_MOTOR" is no Oolite EQ. It may be used in an OXP though.
shipdata.plist:
- has_fuel_injector should be has_fuel_injection.
- The color values in laser_color. Use "whiteColor" instead (upperCase C).
- Delete the hud = default or set a valid value like hud.plist.
- NPCs don't need view_position_x.
- max_cargo is a integer. It's not a bug, but makes things more clear.
- If SunBat-plea is not defined in descriptions.plist remove it from death_actions.
- Spawning explosive_shrapnel via death_actions may fail as it is a external dependency.
Yes, it's the execption of the rule (and the equivalent <false/>).mandoman wrote:Do you mean that "<true/>" is SUPPOSE to stand alone?
You could use subentities for the left/right lasers, but I'd think before going this way it's better to fix the mentioned problems to avoid trouble .-)mandoman wrote:What about the left forward laser, and the right aft laser? Isn't it possible for those to exist at all?
Last but not least please take a look at the used roles. wingman needs scan_class = "CLASS_POLICE", so use a extra entry for it. And a hunter with bounty = 100 is probably not such a good idea.