
I want to start creating my first OXP. I run OSX on my Mac and a competent blender user. I am however completely lost when it comes to encoding.

Thank you.

Moderators: winston, another_commander
Welcome to the BB, Vorm! Have you had a chance to look at the two threads about building ships and using Blender for this yet?Vorm wrote: ↑Wed Mar 17, 2021 6:26 amHello all.![]()
I want to start creating my first OXP. I run OSX on my Mac and a competent blender user. I am however completely lost when it comes to encoding.I am also new to these forums. I wish to create a new ship as my first OXP. I was wondering if you would all be so kind as to point me in the direction of relevant material related to creating ship OXPs from blender models in OSX?
Thank you.![]()
Vorm wrote: ↑Wed Mar 17, 2021 6:26 amHello all.![]()
I want to start creating my first OXP. I run OSX on my Mac and a competent blender user. I am however completely lost when it comes to encoding.I am also new to these forums. I wish to create a new ship as my first OXP. I was wondering if you would all be so kind as to point me in the direction of relevant material related to creating ship OXPs from blender models in OSX?
Thank you.![]()
Code: Select all
python2 ./Obj2DatTexNorm.py ./yourmodelfile.obj
Code: Select all
folder: youroxpname.oxp
folder: Textures
yourtexture.png
folder: Models
yourmodelfile.dat
folder: Config
shipyard.plist
shiplibrary.plist
shipdata.plist
requires.plist
Code: Select all
{ version="1.90"; }
Code: Select all
{
"nameofyourship" =
{
name = "Name Of Your Ship";
ai_type = "route1traderAI.plist";
auto_ai = yes;
auto_weapons = yes;
cargo_type = "CARGO_NOT_CARGO";
frangible = no;
energy_recharge_rate = 4.6;
fuel = 70;
likely_cargo = 5;
max_cargo = 9;
max_energy = 200;
max_flight_pitch = 1.5;
max_flight_yaw = 1.2;
max_flight_roll = 2.0;
max_flight_speed = 330;
thrust = 30;
max_missiles = 4;
roles = "
player
assassin-medium(0.1)
escort-medium(0.08)
hunter-medium(0.2)
hunter-heavy(0.1)
pirate(0.04)
pirate-medium-fighter(0.08)
pirate-heavy-fighter(0.1)
pirate-light-freighter(0.05)
trader(0.1)
trader-courier(0.06)
trader-smuggler(0.15)
";
has_ecm = 0.2;
has_escape_pod = 0.7;
has_scoop = 0.8;
materials =
{
"hull" =
{
gloss = 1.0;
specular_color = (0.2, 0.2, 0.2);
shininess = 42;
emission_map = "youremmisiontexture.png";
normal_map = "yournormaltexture.png";
specular_map = "yourspeculartexture.png";
diffuse_map = "yourdiffusetexture.png";
};
};
model = "yourmodelfile.dat";
exhaust =
(
"0.0 4.04 -25.4 5.5 3.0 1.0",
"9.84 -4.76 -15.0 1.3 1.3 1.0",
"-9.84 -4.76 -15.0 1.3 1.3 1.0"
);
scoop_position = "0.0 24.0 -5.0";
aft_eject_position = "0.0 -5.0 -20";
missile_launch_position = "0.0 -4.0 -18";
view_position_aft = "0.0 11.8 -28.3";
view_position_forward = "0.0 6.0 20.0";
view_position_port = "-7.0 6.0 20.0";
view_position_starboard = "7.0 6.0 20.0";
weapon_facings = 3;
weapon_position_aft = ("0.0 10.52 -28.0");
weapon_position_forward = ("11.4 -8.11 4.0");
};
}
Code: Select all
{
"nameofyourship" =
{
chance = 0.1;
"optional_equipment" =
(
"EQ_ECM",
"EQ_FUEL_SCOOPS",
"EQ_PASSENGER_BERTH",
"EQ_ESCAPE_POD",
"EQ_ENERGY_BOMB",
"EQ_ENERGY_UNIT",
"EQ_NAVAL_ENERGY_UNIT",
"EQ_DOCK_COMP",
"EQ_WEAPON_PULSE_LASER",
"EQ_WEAPON_BEAM_LASER",
"EQ_WEAPON_MINING_LASER",
"EQ_WEAPON_MILITARY_LASER",
"EQ_FUEL_INJECTION",
"EQ_SCANNER_SHOW_MISSILE_TARGET",
"EQ_MULTI_TARGET",
"EQ_GAL_DRIVE",
"EQ_ADVANCED_COMPASS",
"EQ_SHIELD_BOOSTER",
"EQ_NAVAL_SHIELD_BOOSTER",
"EQ_HEAT_SHIELD"
);
price = 226000;
"standard_equipment" =
{
extras = "";
"forward_weapon_type" = "EQ_WEAPON_PULSE_LASER";
missiles = 3;
};
techlevel = 7;
"weapon_facings" = 3;
};
}
Code: Select all
(
{
ship = "nameofyourship";
class = "ship";
ship_data = true;
description = "Name Of Your Ship is a very fast ship that provides luxury to its rich passengers."
}
)
shiplibrary.plist isn't essential for the ship OXP, it just offers additional information to the player.