Jump to content

Recommended Posts

Posted

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!

Posted (edited)

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
Posted (edited)
@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
Posted

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

Posted

Managed to fix the F14D, FA18D, FA18C, Gripen and F4E.

 

When I try to fly the Eurofighter as well as others the game just crashes out, tried fixing these with no success :(

Posted
Does the Rafale work ?

Yeah :) Thanks to the lua that you posted before, I also went through and fixed a few others :) However, other flyables will just CTD.

Posted

Thank you, figured that out like an hour after I posted this, should have let everyone know. Thank you again!

Posted
@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.

Posted
I've already sorted the entry.lua for the Super Tomcat, I will attach it in this post.

 

 

It doesn't work, I don't know why.

I use 1.2.11 version, maybe this?

Posted

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.

Posted
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 :)

Posted

@totoaero,I use harrier mod,make_flyable use self_ID,aircraft is controlled by AI,but use nil then error:can't open debriefing.please help!

sry,my English bad

  • 3 weeks later...
Posted (edited)

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
  • Recently Browsing   0 members

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