Here is the shipdata.plist. It sure looks to me like I'm defining the roles correctly. At least it looks like the way it is done in the behemoth shipdata.plist. I was planning on adding several more ships to each class type. I was just trying to work out the kinks before doing so. Looks like it's more than just a few kinks. I'm always trying to bite off more than I can chew......but doggonnit, I can't help myself. I have a million ideas, and I want to materialise them right now, LOL!!
Code: Select all
{
"dreadnaught-andricothere" = {
"like_ship" = "dreadnaught-type1";
"materials" = "dreadnaught_type1.png";
"model" = "dreadnaught_type1.dat";
"name" = "Dreadnaught - Andricothere";
"roles" = "dreadnaught dreadnaught-andricothere";
};
"Dreadaught Type 1" =
{
"ai_type" = "dreadnaughPatrolAI.plist";
"auto_ai" = yes;
"aft_weapon_type" = "NONE";
"bounty" = 0;
"cargo_type" = "CARGO_NOT_CARGO";
"energy_recharge_rate" = 7;
"escort_ship" = "dreadnaught-SunBat-fighter";
"escorts" = 6;
"exhaust" = (
"-217.76 -7.73 -451.67 45.0 45.5 30.5",
"38.0 2.36 -401.7 0.6 67 85.0 45.5 30.5",
"-38.0 2.36 -401.7 -0.6 67 85.0 45.5 30.5",
"217.76 -7.73 -451.67 45.0 45.5 30.5",
);
"frangible" = yes;
"fuel" = 150;
"has_ecm" = "yes";
"has_fuel_injection" = yes;
"has_fuel_scoop" = yes;
"has_heat_shield" = yes;
"has_hyperspace_motor" = yes;
"has_shield_booster" = yes;
"has_shield_enhancer" = yes;
"has_npc_traffic" = no;
"is_carrier" = yes;
"is_template" = yes;
"market" = "dreadnaught";
"max_cargo" = 600;
"max_energy" = 700;
"max_flight_pitch" = 0.2;
"max_flight_roll" = 0.4;
"max_flight_speed" = 400;
"materials" = "dreadnaught_type1.png";
"model" = "dreadnaught_type1.dat";
"name" = "Dreadnaught Type 1";
"roles" = "dreadnaught_type1-carrier";
"scan_class" = "CLASS_POLICE";
"script" = "dreadnaught-carrier.js";
"subentities" = (
{
type = "ball_turret";"is_template" = yes;
subentity_key = "dreadnaught_ball_turret_type1";
position = (0.2, 54.0, 197.0);
orientation = (1, 1, 0, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type1";
position = (0.2, 54.0, 197.0);
orientation = (1, 0, 1, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type1";
position = (0.0, -120.5, 96.5);
orientation = (-1, 1, 0, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type1";
position = (0.0, -120.5, 96.5);
orientation = (1, 0, -1, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type1";
position = (-100.25, 79.0, -72.69);
orientation = (1, 1, 0, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type1";
position = (-100.25, 79.0, -72.69);
orientation = (1, 0, 1, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type1";
position = (100.25, 79.0, -72.0);
orientation = (1, 1, 0, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type1";
position = (100.25, 79.0, -72.0);
orientation = (1, 0, 1, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type1";
position = (0.0, 104.5, -243.5);
orientation = (1, 1, 0, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type1";
position = (0.0, 104.5, -243.5);
orientation = (1, 0, 1, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type1";
position = (0.7, -123.0, -142.0);
orientation = (1, -1, 0, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type1";
position = (0.7, -123.0, -142.0);
orientation = (1, 0, -1, 0);
},
{
is_dock = "true";
subentity_key = "dreadnaught_dock_type1";
position = (0.003347, -1.233, 2.26);
orientation = (0, 0, 0, 1);
}
);
"forward_weapon_type" = "NONE";
"thrust" = 3.5;
};
"Dreadnaught Type 2" =
{
"ai_type" = "dreadnaughtPatrolAI.plist";
"auto_ai" = no;
"aft_weapon_type" = "WEAPON_MILITARY_LASER";
"bounty" = 0;
"cargo_type" = "CARGO_NOT_CARGO";
"defense_ship_role" = "dreadnaught-battleship";
"energy_recharge_rate" = 9;
"equipment_price_factor" = 2.0;
"equivalent_tech_level" = 13;
"escort-role" = "dreadnaught-fighter";
"escort_ship" = "dreadnaught-sunbat-fighter";
"escorts" = 12;
"exhaust" = (
"-385.37 81.5 -824.5 67 85.0 45.5 30.5",
"-361.2 -247 -805.4 67 85.0 45.5 30.5",
"-71.7 71.4 -742.7 67 85.0 45.5 30.5",
"71.7 71.4 -742.7 67 85.0 45.5 30.5",
"361.2 -247 -805.4 67 85.0 45.5 30.5",
"385.37 81.5 -824.5 67 85.0 45.5 30.5",
);
"frangible" = yes;
"fuel" = 500;
"has_ecm" = yes;
"has_heat_shield" = yes;
"has_hyperspace_motor" = yes;
"has_shield_booster" = yes;
"has_shield_enhancer" = yes;
"has_npc_traffic" = no;
"is_carrier" = yes;
"is_template" = yes;
"market" = "dreadnaught";
"max_cargo" = 1500;
"max_energy" = 900;
"max_flight_pitch" = 0.2;
"max_flight_roll" = 0.2;
"max_flight_speed" = 180;
"materials" = "dreadnaught_type2.png";
"model" = "dreadnaught_type2.dat";
"name" = "Dreadnaught Type 2";
"roles" = "dreadnaught_type2-carrier";
"scan_class" = "CLASS_POLICE";
"script" = "dreadnaught-carrier.js";
"weapon_position_aft" = "0.0 157.3 -711.8";
"weapon_position_forward" = "0.0 5.1 1010.0";
"subentities" = (
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type2";
position = (-94.9, 344.3, 487.0);
orientation = (1, 0, 0, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type2";
position = (-53.5, 344.3, 487.0);
orientation = (1, 0, 0, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type2";
position = (0.0, 344.3, 487.0);
orientation = (1, 0, 0, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type2";
position = (53.5, 344.3, 487.0);
orientation = (1, 0, 0, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type2";
position = (94.9, 344.3, 487.0);
orientation = (1, 0, 0, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type2";
position = (-94.9, 303.4, 528.7);
orientation = (1, 0, 0, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type2";
position = (-53.5, 303.4, 528.7);
orientation = (1, 0, 0, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type2";
position = (0.0, 303.4, 528.7);
orientation = (1, 0, 0, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type2";
position = (53.5, 303.4, 528.7);
orientation = (1, 0, 0, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type2";
position = (94.9, 303.4, 528.7);
orientation = (1, 0, 0, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type2";
position = (-94.9, 261.6, 571.2);
orientation = (1, 0, 0, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type2";
position = (-53.5, 261.6, 571.2);
orientation = (1, 0, 0, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type2";
position = (0.0, 261.6, 571.2);
orientation = (1, 0, 0, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type2";
position = (53.5, 261.6, 571.2);
orientation = (1, 0, 0, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type2";
position = (94.9, 261.6, 571.2);
orientation = (1, 0, 0, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type2";
position = (-94.9, 219.2, 612.9);
orientation = (1, 0, 0, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type2";
position = (-53.5, 219.2, 612.9);
orientation = (1, 0, 0, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type2";
position = (0.0, 219.2, 612.9);
orientation = (1, 0, 0, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type2";
position = (53.5, 219.2, 612.9);
orientation = (1, 0, 0, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type2";
position = (94.9, 219.2, 612.9);
orientation = (1, 0, 0, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type1";
position = (-132.1, 102.6, 766.9);
orientation = (1, 1, 0, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type1";
position = (-132.1, 102.6, 766.9);
orientation = (1, 0, 1, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type1";
position = (132.1, 102.6, 766.9);
orientation = (1, 1, 0, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type1";
position = (132.1, 102.6, 766.9);
orientation = (1, 0, 1, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type1";
position = (-149.9, -58.3, 723.9);
orientation = (1, 1, 0, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type1";
position = (-149.9, -58.3, 723.9);
orientation = (1, 0, 1, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type1";
position = (149.9, -58.3, 723.9);
orientation = (1, 1, 0, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type1";
position = (149.9, -58.3, 723.9);
orientation = (1, 0, 1, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type1";
position = (0.0, 58.3, -89.47);
orientation = (1, 1, 0, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type1";
position = (0.0, 58.3, -89.47);
orientation = (1, 0, 1, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type1";
position = (100.25, 79.0, -72.0);
orientation = (1, 1, 0, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type1";
position = (0.0, -152.1, 574.0);
orientation = (1, 0, 1, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type1";
position = (0.0, -152.1, 574.0);
orientation = (1, 1, 0, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type1";
position = (0.0, -152.1, 111.5);
orientation = (1, 0, 1, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type1";
position = (0.0, -152.1, 111.5);
orientation = (1, 1, 0, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type1";
position = (0.0, -152.1, -344.1);
orientation = (1, 1, 0, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type1";
position = (0.0, -100.3, -696.8);
orientation = (1, 1, 0, 0);
},
{
type = "ball_turret";
subentity_key = "dreadnaught_ball_turret_type1";
position = (0.0, -100.3, -696.8);
orientation = (1, 0, 1, 0);
},
{
is_dock = "true";
subentity_key = "dreadnaught_dock_type2";
position = (0.0, -90.4, 672.2);
orientation = (1, 0, 0, 0);
}
);
"forward_weapon_type" = "WEAPON_MILITARY_LASER";
"thrust" = 3.5;
};
"dreadnaught_ball_turret_type1" =
{
"ai_type" = "dreadnaughtBallTurretAI.plist";
"model" = "dreadnaughtballturrettype1.dat";
"smooth" = "yes";
"materials" = "dreadnaughtBallTurretType1.png";
"name" = "Dreadnaught Ball Turret Type 1";
"roles" = "dreadnaught-ball-turret";
"thrust" = 1;
"weapon_energy" = 50;
};
"dreadnaught_ball_turret_type2" =
{
"ai_type" = "dreadnaughtBallTurretAI.plist";
"model" = "dreadnaughtballturrettype2.dat";
"smooth" = "yes";
"materials" = "dreadnaughtBallTurretType2.png";
"name" = "Dreadnaught Ball Turret Type 2";
"roles" = "dreadnaught-ball-turret";
"thrust" = 1;
"weapon_energy" = 50;
};
"dreadnaught_dock_type1" =
{
"ai_type" = "nullAI.plist";
"materials" = "dreadnaughtDockType1.png";
"model" = "dreadnaughtdocktype1.dat";
"name" = "Dreadnaught Dock Type 1";
"roles" = "Dreadnaught-dock-type1";
};
"dreadnaught_dock_type2" =
{
"ai_type" = "nullAI.plist";
"materials" = "dreadnaughtDockType2.png";
"model" = "dreadnaughtdocktype2.dat";
"name" = "dreadnaught-dock-type2)";
"roles" = "dreadnaught-dock-type2";
};
"Dreadnaught SunBat Fighter" =
{
"ai_type" = "dreadnaughtFighterInterceptAI.plist";
"laser_color" = "blueColor";
"like_ship" = "SunBat";
"model" = "sunbat.dat";
"materials" = {
"SunBat.png" = {
"diffuse_map" = "SunBat-fighter.png";
};
};
"name" = "dreadnaught-sunbat-fighter";
"roles" = "dreadnaught-fighter";
"script" = "dreadnaught-fighter.js";
};
"dreadnaught-andricodred" = {
"like_ship" = "dreadnaught-type2";
"materials" = "dreadnaught_type2.png";
"model" = "dreadnaught_type2.dat";
"name" = "Dreadnaught - Andricodred";
"roles" = "dreadnaught dreadnaught-andricodred";
};
}
I do see what you did different in the .js, but am still not quite understanding why it should be that way, especially when it appears to me that I defined the roles correctly in the shipdata.plist. Maybe I didn't though, eh? I thought I at leas had a handle on shipdata.plists.