Jump to content

how add an aircraft for future 3dr party


peyvolt
 Share

Recommended Posts

Hi all:

I have almost finiseh my two models,http://www.facebook.com/pages/Ejercito-Del-Aire-Dcs-World/169405133119683, I start to use notepad++ with entry and mymodels.lua, and I have copied al folders to mod folde in dcsworld.

 

I´m learning about lua,I only changed the name wunderfulf folder and the names inside of entry and .lua, Some parts works, like loogbook, icon(not work PNG and I dónt know why),options, but the aircfrat not workin, any body knows or can explain what I have to do?,add, something to lua, add new things , ect

 

thanks alot

 

peyvolt

Link to comment
Share on other sites

The reason can be anything, wrong symbol, missing comma.

Check everything in lua very carefully.

Also attach your entry.lua and %your plane%.lua and error log file.

Link to comment
Share on other sites

if you need help, i can help as I've sucessfully imported a few separate airframes fully.

 

you can PM me or Package everything up and send it to me and I'll go through the LUAs.

 

I've dealt with nearly every possible LUA Mismatch problem in the last week.

Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill,

X470 Taichi Ultimate, R7970 Lightning @ 1.2 / 6 GHz Memory

3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs

Link to comment
Share on other sites

declare_plugin("Mirage-F1M by Someone",

{

installed = true, -- if false that will be place holder , or advertising

dirName = current_mod_path,

version = "1.2.1",

state = "installed",

info = _("Mirage F1M is Fighter Aircraft from Spanish Air Force"),

 

binaries =

{

'A10',

"Cockpit_A10Common",

"Cockpit_A10C",

},

 

Skins =

{

{

name = _("Mirage-F1M"),

dir = "Skins/1"

},

},

Missions =

{

{

name = _("Mirage-F1M"),

dir = "Missions",

CLSID = "{8D065E75-30E2-4875-B95E-B65937864C67}",

},

},

LogBook =

{

{

name = _("Mirage-F1M"),

type = "Mirage-F1M",

},

},

--[[

Options =

{

{

name = _("Mirage-F1M"),

nameId = "mirage-f1m",

dir = "Options",

CLSID = "{MIRAGEF1-1A7B-46e4-8267-AE493975EE30}"

},

},]]

InputProfiles =

{

["Mirage-F1M"] = current_mod_path .. '/Input/Mirage-F1M',

["Mirage-F1M_easy"] = current_mod_path .. '/Input/Mirage-F1M_easy',

},

})

mount_vfs_liveries_path(current_mod_path .. "/Liveries")

----------------------------------------------------------------------------------------

 

make_flyable('Mirage-F1M',current_mod_path..'/Cockpit/Scripts/',{self_ID,'A-10'})--make_flyable(obj_name,optional_cockpit path,optional_fm = {mod_of_fm_origin,dll_with_fm})

 

---------------------------------------------------------------------------------------

dofile(current_mod_path..'/Mirage_F1M.lua')

 

plugin_done()-- finish declaration , clear temporal data

Link to comment
Share on other sites

--mounting 3d model paths and texture paths

 

mount_vfs_model_path (current_mod_path.."/Shapes")

mount_vfs_liveries_path (current_mod_path.."/Liveries")

mount_vfs_texture_path (current_mod_path.."/Textures/Avionics")

 

 

Mirage-F1M = {

 

Name = 'Mirage-F1M',

DisplayName = _('Mirage-F1M'),

 

HumanCockpit = true,

HumanCockpitPath = current_mod_path..'/Cockpit/',

 

Picture = "Mirage-F1M.png",

Rate = 50, -- RewardPoint in Multiplayer

Shape = "Mirage-F1M",

 

shape_table_data =

{

{

file = 'Mirage-F1M';

life = 18; -- lifebar

vis = 3; -- visibility gain.

desrt = 'Mirage-F1M_destr'; -- Name of destroyed object file name

fire = { 300, 2}; -- Fire on the ground after destoyed: 300sec 2m

username = 'Mirage-F1M';

index = WSTYPE_PLACEHOLDER;

},

{

name = "Mirage-F1M_destr";

file = "Mirage-F1M-destr";

fire = { 240, 2};

},

 

},

mapclasskey = "P0091000024",

attribute = {wsType_Air, wsType_Airplane, wsType_Fighter, Mirage,

"Multirole fighters", "Refuelable"

},

Categories = {"{78EFB7A2-FD52-4b57-A6A6-3BF0E1D6555F}", "Interceptor",},

-------------------------

M_empty = 7400, -- kg

M_nominal = 10000, -- kg

M_max = 16200, -- kg

M_fuel_max = 4100, -- kg --2225

H_max = 20000, -- m

average_fuel_consumption = 0.07, -- this is highly relative, but good estimates are 36-40l/min = 28-31kg/min = 0.47-0.52kg/s -- 45l/min = 35kg/min = 0.583kg/s

CAS_min = 52, -- if this is not OVERAL FLIGHT TIME, but jus LOITER TIME, than it sholud be 10-15 minutes.....CAS capability in minute (for AI)

V_opt = 170,-- Cruise speed (for AI)

V_take_off = 64, -- Take off speed in m/s (for AI)

V_land = 64, -- Land speed in m/s (for AI)

V_max_sea_level = 403, -- Max speed at sea level in m/s (for AI)

V_max_h = 660, -- Max speed at max altitude in m/s (for AI)

Vy_max = 200, -- Max climb speed in m/s (for AI)

Mach_max = 2.35, -- Max speed in Mach (for AI)

Ny_min = -2, -- Min G (for AI)

Ny_max = 315.3, -- Max G (for AI)

Ny_max_e = 8, -- Max G (for AI)

AOA_take_off = 0.12, -- AoA in take off (for AI)

bank_angle_max = 60, -- Max bank angle (for AI)

Link to comment
Share on other sites

has_afteburner = true, -- AFB yes/no

has_speedbrake = true, -- Speedbrake yes/no

nose_gear_pos = { 2.843, -1.72, 0}, -- nosegear coord

main_gear_pos = { -1.578, -1.585, -1.585}, -- main gear coords

tand_gear_max = 0.577,

tanker_type = 2, -- Tanker type if the plane is airrefuel capable

wing_area = 40, -- wing area in m2

wing_span = 14, -- wing spain in m

wing_type = 0,

thrust_sum_max = 8000, -- thrust in kg (44kN)

thrust_sum_ab = 10000, -- thrust inkg (71kN)

length = 14.447, -- full lenght in m

height = 4.882, -- height in m

flaps_maneuver = 0.5, -- Max flaps in take-off and maneuver (0.5 = 1st stage; 1.0 = 2nd stage) (for AI)

range = 2000, -- Max range in km (for AI)

RCS = 5, -- Radar Cross Section m2

IR_emission_coeff = 0.62, -- Normal engine -- IR_emission_coeff = 1 is Su-27 without afterburner. It is reference.

IR_emission_coeff_ab = 1.02, -- With afterburner

wing_tip_pos = {-2, 2, 7}, -- wingtip coords for visual effects

nose_gear_wheel_diameter = 0.311, -- in m

main_gear_wheel_diameter = 0.57, -- in m

brakeshute_name = 3, -- Landing - brake chute visual shape after separation

is_tanker = false, -- Tanker yes/no

air_refuel_receptacle_pos = {5.583, 0.51, -0.311}, -- refuel coords

engines_count = 1, -- Engines count

engines_nozzles = {

[1] =

{

pos = {-6.634, 0, -0.07}, -- nozzle coords

elevation = 0, -- AFB cone elevation

diameter = 0.834, -- AFB cone diameter

exhaust_length_ab = 7, -- lenght in m

exhaust_length_ab_K = 0.76, -- AB animation

}, -- end of [1]

}, -- end of engines_nozzles

crew_size = 1,

crew_members =

{

[1] =

{

ejection_seat_name = "pilotmirage+ejectionseat",

drop_canopy_name = "Mirage-F1M_canopy",

pos = {3.143,0.468,0},

canopy_pos = {3.143,0.468,0},

}, -- end of [1]

}, -- end of crew_members

Link to comment
Share on other sites

change the /Skins/1/ to /Themes

 

 

This is my LUA Header for my test bed Airframe, which was built around the Wunderlust "template" then changed.

 

I foudn that Using the MilitaryDesignation causes issues with the -, so i just used it's "Name".

 

 

--mounting 3d model paths and texture paths

 

mount_vfs_model_path (current_mod_path.."/Shapes")

mount_vfs_liveries_path (current_mod_path.."/Liveries")

mount_vfs_texture_path (current_mod_path.."/Textures/Avionics")

 

SuperHornet = {

 

Name = 'SuperHornet',

DisplayName = _('EA-18G'),

 

HumanCockpit = true,

HumanCockpitPath = current_mod_path..'/Cockpit/',

 

Picture = "SuperHornet.png",

Rate = 40, -- RewardPoint in Multiplayer

Shape = "SuperHornet",

 

shape_table_data =

{

{

file = 'SuperHornet';

life = 18; -- lifebar

vis = 3; -- visibility gain.

desrt = 'SuperHornet_destr'; -- Name of destroyed object file name

fire = { 300, 2}; -- Fire on the ground after destoyed: 300sec 2m

username = 'SuperHornet';

index = WSTYPE_PLACEHOLDER;

},

{

name = "SuperHornet_destr";

file = "SuperHornet-destr";

fire = { 240, 2};

},

 

},

 

mapclasskey = "P0091000024",

attribute = {wsType_Air, wsType_Airplane, wsType_Fighter, WSTYPE_PLACEHOLDER , FA_18C, "Multirole fighters",},

Categories = {"{78EFB7A2-FD52-4b57-A6A6-3BF0E1D6555F}", "Interceptor",},

 

LandRWCategories =

{

[1] =

{

Name = "AircraftCarrier",

}, -- end of [1]

}, -- end of LandRWCategories

MaxFuelWeight = "6531",

MaxHeight = "18200",

MaxSpeed = "1920",

MaxTakeOffWeight = "25401",

Picture = "FA-18A.png",

Rate = "50",

Shape = "f-18c",

TakeOffRWCategories =

{

[1] =

{

Name = "AircraftCarrier With Catapult",

}, -- end of [1]

}, -- end of TakeOffRWCategoriesF}"

Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill,

X470 Taichi Ultimate, R7970 Lightning @ 1.2 / 6 GHz Memory

3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs

Link to comment
Share on other sites

oks, all works perfectly, only about human cockpit, When I start and select my aircraft to fly, dcs world crash!!!what I have to do??some example please, and anothers question abuot sound of my own aircraft, how can add new sounds for my aircraft?I have to diferents version of mirage f1, with refuel and no refual, How can ADD two models in only one mod?, thanks


Edited by peyvolt
Link to comment
Share on other sites

It starts with the Mainpanel_unit.lua, strip it of the systems and gauges for testing purposes, once you get it in game no problems, then put the systems back.

 

 

Start with this block in the mainpanel_init.lua

 

 

shape_name = "<cockpit.edm>" (edm file should be in Your Modules /Shapes/ Folder)

is_EDM = true

new_model_format = true

Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill,

X470 Taichi Ultimate, R7970 Lightning @ 1.2 / 6 GHz Memory

3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs

Link to comment
Share on other sites

I think its better if you have 2 mods...I use 2 folder for my SMT and UBT version.....its better if you create lua file and search bad code.....

and how?deleting all?and writing that?I try to do many thinks but The aircraft no work with player, write here or send a example please

Link to comment
Share on other sites

should be /Aircrafts/<Module name>/Sounds/

 

then you add the call line to the LUA:

 

mount_vfs_sound_path (current_mod_path.."/Sounds")

 

 

or something along those lines.

Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill,

X470 Taichi Ultimate, R7970 Lightning @ 1.2 / 6 GHz Memory

3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs

Link to comment
Share on other sites

tand_gear is the distance between the left gear tire and the right gear tire.

 

Compression AFAIK is automatically set, you just have to Animate it in Arg 1 slot.

Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill,

X470 Taichi Ultimate, R7970 Lightning @ 1.2 / 6 GHz Memory

3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs

Link to comment
Share on other sites

I try to create skin for my mirage f1m proyect, but two question, What is perfect bmp or dds?I´m working with bmp and tga?is better dds and tng?about description.lua of each skin, I do´ntk about numbers and empty like this

 

livery = {

{"A-10C_PAINT_1-a", 0 ,"a-10C_SPN_AGA_1-a",false};

{"A-10C_PAINT_1-b", 0 ,"a-10C_SPN_AGA_1-b",false};--comun a todos

{"A-10C_PAINT_1-c", 0 ,"a-10C_SPN_AGA_1-c",false};

{"A-10C_PAINT_1-d", 0 ,"a-10C_SPN_AGA_1-d",false};

{"A-10C_PAINT_1-e", 0 ,"a-10C_SPN_AGA_1-e",false};--comun a todos

{"A-10C_PAINT_1-f", 0 ,"a-10C_SPN_AGA_1-f",false};--comun a todos

{"A-10C_PAINT_1-g", 0 ,"a-10C_SPN_AGA_1-g",false};--comun a todos

{"A-10C_PAINT_1-h", 0 ,"a-10C_SPN_AGA_1-h",false};

{"A-10C_PAINT_1-i", 0 ,"a-10C_SPN_AGA_1-i",false};--comun a todos

{"A-10C_PAINT_1-j", 0 ,"A-10C_SPN_Tritonal_1-j",false};--comun a todos

{"A-10C_PAINT_1-k", 0 ,"a-10C_SPN_AGA_1-k",false};--comun a todos

{"A-10C_PAINT_1-L", 0 ,"a-10C_SPN_AGA_1-L",false};

{"A-10_Number", 0 ,"empty",true};

{"A-10_Number_Noze_F", 0 ,"empty",true};

{"A-10_Number_Noze_T", 0 ,"empty",true};

{"A-10_Number_Wheel", 0 ,"empty",true};

 

}

countries = {"SPN"}

 

help

Link to comment
Share on other sites

tand_gear is the distance between the left gear tire and the right gear tire.

 

 

Hey Skate ^ that tand_gear description is also wrong :D

 

"atand" means: inverse tangent

, so tand_gear_max = 1.0, means: 45 degrees max nose wheel rotation aside

... tand_gear_max = 3.0 means: ~ 71,56 degrees ;)

 

if you wanna check my "description" then do not see how the nose wheel is rotating under fusalage: that's the animation

see how the aircraft starts to turn left/right by rudder (with slow rolling speed)


Edited by HungaroJET

Atop the midnight tarmac,

a metal beast awaits.

To be flown below the radar,

to bring the enemy his fate.

 

HAVE A BANDIT DAY !

 

[sIGPIC][/sIGPIC]

"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." - R. Buckminster Fuller (1895 - 1983), American Architect, Author, Designer, Inventor, and Futurist

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...