Jump to content

Flyable mod not working


Mav

Recommended Posts

I have a flyable F/A-18C mod and in the editor the aircraft comes up highlighted and says I have the option to be the pilot for it. However, when the game loads the aircraft is controlled by AI, no option to fly, no cockpit or anything. Any ideas how this could be fixed? Thanks!

Link to comment
Share on other sites

Since last update most of my were unflyable.

 

The problem comes from "entry.lua".

 

There is two things (in red) to changes : do NOT use a self ID to declare a plane.

 

And i have to change the line "Make flyable"

 

Here is what i have done for L-39 :

 

declare_plugin("L-39_SVS",

{

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

dirName = current_mod_path,

version = "1.2.12",

state = "installed",

info = _("L-39 de la Silverstar par Totoaero."),

 

Skins =

{

{

name = _("L-39_SVS"),

dir = "Theme"

},

},

Missions =

{

{

name = _("L-39_SVS"),

dir = "Missions",

},

},

LogBook =

{

{

name = _("L-39_SVS"),

type = "L-39_SVS",

},

},

InputProfiles =

{

["L-39_SVS"] = current_mod_path .. '/Input/L-39_SVS',

},

})

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

make_flyable('L-39_SVS', current_mod_path..'/Cockpit/',nil, current_mod_path..'/comm.lua')

 

dofile(current_mod_path..'/L-39SVS.lua')

dofile(current_mod_path.."/Views.lua")

make_view_settings('L-39_SVS', ViewSettings, SnapViews)

 

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

plugin_done()


Edited by totoaero
Link to comment
Share on other sites

@john x : all the entry.lua is in my previous message.

 

@urban072 : which planes are concerns ?

 

In the S77th Pack,

 

Eurofighter, F14D, FA-18D (Su27 Pit w/ Su25T avionics), JAS 39, Rafale, F4E, FA18C (Su27 Pit w/ Su33 avionics)

 

Will edit this if there are any more broken ones that I discover.

 

EDIT: It's pretty much all of the flyables I have, including MiG 31 and F-15E outside of the S77th pack.


Edited by Urban072
Link to comment
Share on other sites

If it's the Rafale as i have found : this is the entry. lua (insert all the follwing line in the entry.lua) :

 

declare_plugin("Rafale_M",

{

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

dirName = current_mod_path,

version = "1.2.12",

state = "installed",

info = _("."),

 

--binaries = { 'FC3', },

 

InputProfiles =

{

["Rafale_M"] = current_mod_path .. '/Input',

},

 

 

--Skins =

-- {

-- {

-- name = _("Rafale"),

-- dir = "Theme"

-- },

-- },

 

Missions =

{

{

name = _("Rafale M"),

dir = "Missions",

},

},

 

LogBook =

{

{

name = _("Rafale"),

type = "Rafale",

},

},

}

)

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

make_flyable('Rafale_M', current_mod_path..'/Cockpit/',nil, current_mod_path..'/comm.lua')

 

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

make_view_settings('Rafale_M', ViewSettings, SnapViews)

 

plugin_done()-- finish declaration , clear temporal data

Link to comment
Share on other sites

@limoncino : can you show us the entry.lua of the F-14D ?

 

 

local self_ID = "F-14D VSN Tomcat by "

 

declare_plugin(self_ID,

{

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

dirName = current_mod_path,

version = "1.2.8.08su",

state = "installed",

info = _("Die Grumman F-14 Tomcat ist ein ueberschallschnelles, zweistrahliges, mit Schwenkfluegeln ausgestattetes zweisitziges Kampfflugzeug, das fuer die United States Navy entwickelt und ab 1974 eingesetzt wurde. Ihre primaeren Aufgaben bei der US Navy waren die des Luftueberlegenheitsjaegers, Aufklaerers und der Flottenverteidigung. Spaeter wurden noch rudimentaere Luft-Boden-Faehigkeiten eingeruestet. Die letzte Tomcat wurde von der US Navy am 22. September 2006 ausser Dienst gestellt. Heute fliegt nur noch die iranische Luftwaffe das Flugzeug."),

 

binaries = { 'FC3', },

 

Skins =

{

{

name = _("F-14D VSN"),

dir = "Theme"

},

},

Missions =

{

{

name = _("F-14D VSN"),

dir = "Missions",

},

},

LogBook =

{

{

name = _("F-14D VSN"),

type = "F-14D VSN",

},

},

InputProfiles =

{

["F-14D VSN"] = current_mod_path .. '/Input',

},

})

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

make_flyable('F-14D VSN', nil,{self_ID,'F-14D VSN',old = 4}, current_mod_path..'/comm.lua')

 

dofile(current_mod_path..'/F-14D VSN.lua')

make_view_settings('F-14D VSN', ViewSettings, SnapViews)

--make_flyable('F-14D VSN', current_mod_path..'/Cockpit/KneeboardLeft/',{self_ID,'F-14D VSN',old = 4}, current_mod_path..'/comm.lua')

plugin_done()-- finish declaration , clear temporal data

 

 

 

 

 

I don't know why planes like Rafale or Corsair work and I can't fly F-18 and F-14D.

Link to comment
Share on other sites

I think the entry.lua given by urban072 works for 1.2.12

 

change this line : make_flyable('F-14D VSN', current_mod_path..'/Cockpit/',nil, current_mod_path..'/comm.lua')

 

with

 

make_flyable('F-14D VSN', nil, {self_ID,'FC3',old = 16}, current_mod_path..'/comm.lua')

 

It may work but i'm not sure. I have taken this line from a personal mod that work in 1.2.11 with the same cockpit as F-14D.

Link to comment
Share on other sites

I think the entry.lua given by urban072 works for 1.2.12

 

change this line : make_flyable('F-14D VSN', current_mod_path..'/Cockpit/',nil, current_mod_path..'/comm.lua')

 

with

 

make_flyable('F-14D VSN', nil, {self_ID,'FC3',old = 16}, current_mod_path..'/comm.lua')

 

It may work but i'm not sure. I have taken this line from a personal mod that work in 1.2.11 with the same cockpit as F-14D.

 

It works for me anyways, it's based on the same way you fixed the Rafale. I did this to a few others of the S77th collection :)

Link to comment
Share on other sites

  • 3 weeks later...

I found how to fly the F-14D, change this line in the entry.lua:

make_flyable('F-14D VSN', current_mod_path..'/Cockpit/',nil, current_mod_path..'/comm.lua')

 

with this:

make_flyable('F-14D VSN', current_mod_path..'/Cockpit/KneeboardLeft/', {nil, old = 4}, current_mod_path..'/Comm.lua')


Edited by Kiwiknight
Link to comment
Share on other sites

  • Recently Browsing   0 members

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