Announcement

Collapse
No announcement yet.

description.lua for customized cockpit

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • petsild
    replied
    This confirms my findings, so actually nothing has changed.

    Leave a comment:


  • ams999
    replied
    Not the fault of the description.lua, though.

    If I name my custom cockpit 'default' it works (so the description.lua works), if I give it a custom name and select it in the custom cockpit list it gets ignored.

    Leave a comment:


  • petsild
    replied
    Hot new latest beta.

    - P-51D and Spitfire don't have a "Customized Cockpit options" – fixed.

    Although I can see in the list of custom cockpit still uses the default.

    Leave a comment:


  • ams999
    replied
    What do you mean? This one still works

    https://forums.eagle.ru/showpost.php...98&postcount=2

    Leave a comment:


  • petsild
    replied
    Has someone please a Spitfire description.lua last update is 6.6.19 thank you.

    Leave a comment:


  • ams999
    replied
    True, the last two lines in Automan's description.lua are also in the original description.lua (unfortunately, only those two, not the rest), so it's always worth checking there as it might be something important and keep it in.

    Leave a comment:


  • -0303-
    replied
    I changed it to only have the lua and the five modified files (from NAKE350's cockpit mod) in the directory (C:\Users\myusername\Saved Games\DCS\Liveries\Cockpit_Spitfire_LFMkIX\default) and edited Automan's "description.lua" file (by commenting out as you suggested).
    description.lua
    SpitfireIX-CPT_DIF.dds
    SpitfireIX_1_DIF.dds
    SpitfireIX_2_DIF.dds
    SpitfireIX_3_DIF.dds
    SpitfireIX_4_DIF.dds
    Works it seems and pass IC. But I found if I edited out the
    {"mirror_SpitfireIX", 0 ,"mirrors",true}; --mirrors texture replacement with runtime rendered one
    in Automan's "description.lua" the mirrror would show a blue/yellow cross so I didn't comment that line out. I expect the coin will drop eventually to why that is. The mirror is obviously different in that it can be an active surface.

    -Found this nice webpage to easily check Lua syntax (without having to learn Lua):
    https://www.tutorialspoint.com/execute_lua_online.php
    If EXECUTE shows no error syntax is (probably) correct.
    -The ubiquitous NotePad++ editor also color codes Lua syntax.
    -Found this Ed Forum thread: Tutorial: Introduction to Lua scripting.
    Last edited 03-14-2019, 08:05 PM. Reason: improved links

    Leave a comment:


  • ams999
    replied
    I see, so you copied all textures from the \Eagle Dynamics\DCS World\Mods\aircraft\SpitfireLFMkIX\Cockpit\Textures\Cockpit_Spitfire_LFMkIX_Textures.zip to the saved games folder?

    The nice thing with the description.lua is - you don't need to. The only things you need in that folder are
    1. the description.lua
    2. the replacement textures (in your case the five you listed from the Spitfire cockpit refurb)

    You then comment out every line in the description.lua *not* referring to the refurb textures and you should be done. I would only comment out and not delete those lines in case you need them later on should you want to try other mods.

    Leave a comment:


  • -0303-
    replied
    Excluding a detailed description of what I did wrong I got it to work (online/offline, IC pass) by patterning after how the Su-25T cockpit english mod is structured.

    -I used "Spitfire Cockpit Reburb"
    -I copied and then modified (*1) the original DCS "Cockpit_Spitfire_LFMkIX_Textures.zip" zipfile archive located:
    C:\Program Files\Eagle Dynamics\DCS World\Mods\aircraft\SpitfireLFMkIX\Cockpit\Textures
    with the files from "Spitfire Cockpit Reburb" (overwrote the five originals)
    SpitfireIX-CPT_DIF.dds
    SpitfireIX_1_DIF.dds
    SpitfireIX_2_DIF.dds
    SpitfireIX_3_DIF.dds
    SpitfireIX_4_DIF.dds
    -I placed the "description.lua" (automans version) in the
    C:\Users\myusername\Saved Games\DCS\Liveries\Cockpit_Spitfire_LFMkIX\default
    folder together with _all_ the unzipped files (*2) from the modified "Cockpit_Spitfire_LFMkIX_Textures.zip". I also tried unsuccessfully to place only the modified files from "Spitfire Cockpit Reburb" (as it appears how the Su-25T mod is done) into this folder. Didn't work but your question 4) implies the answer to how to make that work.

    Note, the original "Cockpit_Spitfire_LFMkIX_Textures.zip" is untouched. Therefore I can switch between the original Spitfire textures or the modified textures by simply moving the entire "Cockpit_Spitfire_LFMkIX" folder structure in or out of
    C:\Users\myusername\Saved Games\DCS\Liveries
    ~
    4. Have you commented out all the lines in the description.lua for textures you did not replace? Otherwise, also 'missing textures' for those.
    You can do that? Makes sense. Thanks, I will certainly explore this.

    ~

    *1) Modifying a zipfile is very easy with Windows Explorer. No need for command line procedures as I've seen suggested in other ED Forum threads. Just a) doubleclick the zipfile b) copy files to add/replace into the expanded archive. c) done

    *2) Tested to place the zipped (not unzipped) archive here. Didn't work.
    Last edited 03-14-2019, 04:17 PM.

    Leave a comment:


  • ams999
    replied
    Originally posted by -0303- View Post
    I copied description.lua to:
    "\Saved Games\DCS\Liveries\Cockpit_Spitfire_LFMkIX\default"

    Integrity Check (IC) passes but I get the yellow black texture missing online and offline.

    Removing "\Cockpit_Spitfire_LFMkIX\default" folders texture works offline but I can't go Multiplayer because IC fails.
    Not an awful lot of information to go by, so forgive me for asking some questions:

    1. Which textures are you trying to use?
    2. Where do you keep those textures? Easiest way is to keep them in the same Saved Games\DCS\Liveries\Cockpit_Spitfire_LFMkIX\default folder where the description.lua is located.
    3. Are they someplace else? Then you need to tell the description.lua where to find them, if you don't, you get 'missing textures'.
    4. Have you commented out all the lines in the description.lua for textures you did not replace? Otherwise, also 'missing textures' for those.

    Those are some Qs I can think of right now.

    Leave a comment:


  • -0303-
    replied
    I copied description.lua to:
    "\Saved Games\DCS\Liveries\Cockpit_Spitfire_LFMkIX\default"

    Integrity Check (IC) passes but I get the yellow black texture missing online and offline.

    Removing "\Cockpit_Spitfire_LFMkIX\default" folders texture works offline but I can't go Multiplayer because IC fails.
    Last edited 03-14-2019, 10:47 AM.

    Leave a comment:


  • Grajo
    replied
    I am also using NAKE350 cockpit refurb mod which is still in development (I think) but looking already like a great improvement.

    Thanks for listing those mods, I will definitely will give them a try .

    Happy to see you liked my little reticle mod :].

    Leave a comment:


  • ams999
    replied
    But there are some tweaks floating around already which would otherwise trip IC.

    E.g. I'm using

    the Spitfire gauges and cockpit refurb mods by NAKE350
    https://forums.eagle.ru/showthread.php?t=224765
    https://forums.eagle.ru/showthread.php?t=228393

    The reflections mod by Toby23 (tint has been fixed by now)
    https://forums.eagle.ru/showthread.php?t=216210

    and a 'strange sun' workaround that was made by Esac_mirmidon until fixed officially
    https://forums.eagle.ru/showpost.php...6&postcount=13

    All (or at least some) of those used to trip IC, with this they don't.

    I'm also using your very own reticle mod
    https://forums.eagle.ru/showthread.php?t=229184
    which isn't covered by the description.lua but doesn't trip IC in the first place.
    Last edited 03-12-2019, 11:39 AM.

    Leave a comment:


  • Grajo
    replied
    Thanks for this very useful File and Info Automan and ams999.
    Hope some body has the time and will to give a nice tweak to our beloved Spitfire's cockpit !.

    Leave a comment:


  • petsild
    replied
    Thanks for the explanation.

    Leave a comment:


  • Automan
    replied
    Originally posted by petsild View Post
    What utility can be used to description.lua?
    EDM Livery Extractor GUI already on the new modules does not work.
    The new edm format must be analyzed manually, no dedicated utility can help in this actually.
    You can use any editor able to open binary files, for example Hex editors or Notepad++, and search for strings at start of your file: in sequence you should find the material name and textures name.
    Then you must figure out what channels of the materials are used by those textures and compile a description.lua for it.
    Time consuming and only a work for experienced users

    Leave a comment:


  • petsild
    replied
    What utility can be used to description.lua?
    EDM Livery Extractor GUI already on the new modules does not work.

    Leave a comment:


  • ams999
    replied
    Here is a more complete one by Automan

    https://forums.eagle.ru/showpost.php...9&postcount=11

    Leave a comment:


  • ams999
    started a topic description.lua for customized cockpit

    description.lua for customized cockpit

    The Spitfire cockpit seems to have some shortcomings (strange sun, reflections), some of which have been fixed (green tint of the armored windshield) while others haven't yet.
    There are some mods floating around as remedies but so far, I had to install those textures via OvGME which often broke integrity check on MP-servers.

    Finally, after a lot of trial and error, I've managed now to get a working description.lua so that I don't need to use OvGME anymore for the mods I use and it passes IC.
    Feel free to try it out. No warranties/guarantees, though!

    Copy to \Saved Games\DCS\Liveries\Cockpit_Spitfire_LFMkIX\default (create folders as necessary).

    I only provide the description.lua as the mods I use aren't mine in the majority.

    Not sure how to attach one file to two posts, so please look here:

    https://forums.eagle.ru/showpost.php...29&postcount=8
Working...
X