Re: Oolite Unable To Identify A Property List
Posted: Tue Oct 04, 2011 12:30 am
Now I'm bummed. I got tired of the "sub-entities", and just removed them. Now the SunBat won't load. I keep getting an error that doesn't make sense to me at all. Here is the error message:
19:04:10.342 [plist.parse.failed]: Failed to parse /home/mandoman/.Oolite/AddOns/SunBat.oxp/Config/shipdata.plist as a property list.
Parse failed at line 41 (char 1262) - unexpected character (wanted '=')]
Here is my shipdata.plist:
{
"SunBat" = {
"aft_eject_position" = "2.3 -1.8 0.1";
"aft_weapon_type" = "WEAPON_BEAM_LASER";
"ai_type" = "SunBatAI.plist";
"bounty" = "20";
"cargo_type" = "CARGO_NOT_CARGO";
"death_actions" = (
"commsMessage: [SunBat-plea]",
);
"energy_recharge_rate" = 8.5;
"exhaust" = (
" 23.5 -1.4 10.8 1.2 1.2 2.0",
"12.4 -0.8 -0.2 1.0 1.2 1.2 2.0",
"30.0 -1.4 -10.8 1.2 1.2 2.0"
);
"forward_weapon_type" = "WEAPON_BEAM_LASER";
"has_ecm" = yes;
"has_energy_bomb" = yes;
"has_fuel_injection" = 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" = "2.4 -3.8 0.0";
"missiles" = 2;
"model" = "sunbat.dat";
"name" = "SunBat";
"roles" = "hunter pirate escort";
"smooth" = yes;
"thrust" = 55.0;
"weapon_position_aft" = "0.1 22.8 15.6";
"weapon_position_forward" = "1.0 -11.6 -2.7";
);
};
"SunBat-player" = {
"aft_eject_position" = "2.3 -1.8 0.1";
"aft_weapon_type" = "WEAPON_BEAM_LASER";
"cargo_type" = "CARGO_NOT_CARGO";
"energy_recharge_rate" = 8.5;
"exhaust" = (
" 23.5 -1.4 10.8 1.2 1.2 2.0",
"12.4 -0.8 -0.2 1.0 1.2 1.2 2.0",
"30.0 -1.4 -10.8 1.2 1.2 2.0"
);
"forward_weapon_type" = "WEAPON_BEAM_LASER";
"has_ecm" = yes;
"has_energy_bomb" = yes;
"has_fuel_injection" = yes;
"has_fuel_scoop" = yes;
"has_heat_shield" = yes;
"has_hyperspace_motor" = yes;
"hud" = "hud.plist";
"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" = "2.4 -3.8 0.0";
"model" = "sunbat.dat";
"name" = "SunBat";
"roles" = "player";
"smooth" = yes;
"thrust" = 55.0;
"view_position_aft" = "0.0 2.4 0.2";
"view_position_forward" = "-9.5 0.6 0.1";
"view_position_port" = "-3.7 1.2 2.4";
"view_position_starboard" = "-3.7 1.3 -2.2";
"weapon_position_aft" = "0.1 22.8 15.6";
"weapon_position_forward" = "-10.9 -1.4 1.0";
);
};
}
Would someone please help me figure out what went wrong? How could removing all sub-entities cause the error message above, and not load my ship oxp anymore? Shoot, I hadn't even got the exhaust problem fixed yet.
19:04:10.342 [plist.parse.failed]: Failed to parse /home/mandoman/.Oolite/AddOns/SunBat.oxp/Config/shipdata.plist as a property list.
Parse failed at line 41 (char 1262) - unexpected character (wanted '=')]
Here is my shipdata.plist:
{
"SunBat" = {
"aft_eject_position" = "2.3 -1.8 0.1";
"aft_weapon_type" = "WEAPON_BEAM_LASER";
"ai_type" = "SunBatAI.plist";
"bounty" = "20";
"cargo_type" = "CARGO_NOT_CARGO";
"death_actions" = (
"commsMessage: [SunBat-plea]",
);
"energy_recharge_rate" = 8.5;
"exhaust" = (
" 23.5 -1.4 10.8 1.2 1.2 2.0",
"12.4 -0.8 -0.2 1.0 1.2 1.2 2.0",
"30.0 -1.4 -10.8 1.2 1.2 2.0"
);
"forward_weapon_type" = "WEAPON_BEAM_LASER";
"has_ecm" = yes;
"has_energy_bomb" = yes;
"has_fuel_injection" = 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" = "2.4 -3.8 0.0";
"missiles" = 2;
"model" = "sunbat.dat";
"name" = "SunBat";
"roles" = "hunter pirate escort";
"smooth" = yes;
"thrust" = 55.0;
"weapon_position_aft" = "0.1 22.8 15.6";
"weapon_position_forward" = "1.0 -11.6 -2.7";
);
};
"SunBat-player" = {
"aft_eject_position" = "2.3 -1.8 0.1";
"aft_weapon_type" = "WEAPON_BEAM_LASER";
"cargo_type" = "CARGO_NOT_CARGO";
"energy_recharge_rate" = 8.5;
"exhaust" = (
" 23.5 -1.4 10.8 1.2 1.2 2.0",
"12.4 -0.8 -0.2 1.0 1.2 1.2 2.0",
"30.0 -1.4 -10.8 1.2 1.2 2.0"
);
"forward_weapon_type" = "WEAPON_BEAM_LASER";
"has_ecm" = yes;
"has_energy_bomb" = yes;
"has_fuel_injection" = yes;
"has_fuel_scoop" = yes;
"has_heat_shield" = yes;
"has_hyperspace_motor" = yes;
"hud" = "hud.plist";
"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" = "2.4 -3.8 0.0";
"model" = "sunbat.dat";
"name" = "SunBat";
"roles" = "player";
"smooth" = yes;
"thrust" = 55.0;
"view_position_aft" = "0.0 2.4 0.2";
"view_position_forward" = "-9.5 0.6 0.1";
"view_position_port" = "-3.7 1.2 2.4";
"view_position_starboard" = "-3.7 1.3 -2.2";
"weapon_position_aft" = "0.1 22.8 15.6";
"weapon_position_forward" = "-10.9 -1.4 1.0";
);
};
}
Would someone please help me figure out what went wrong? How could removing all sub-entities cause the error message above, and not load my ship oxp anymore? Shoot, I hadn't even got the exhaust problem fixed yet.