Previous Thread
Next Thread
Print Thread
Rate This Thread
Hop To
#3947419 - 05/01/14 02:05 AM 1.2.8 lua script change  
Joined: Oct 2013
Posts: 18
Nomad76 Offline
Junior Member
Nomad76  Offline
Junior Member

Joined: Oct 2013
Posts: 18
So apparently 1.2.8 came with an unannounced change in input lua scripting. The files it uses now have a different name format (.diff.lua instead of just .lua) and seem to be completely incompatible with old profile export files.

Is there any information available on this? I've looked and I can't find it mentioned anywhere, but I can't believe I'm the only person to have noticed. The new file structure looks considerably more cryptic than the old one with bizarre entries like "d109pnilunilcdnilvdnilvpnilvunil". It also looks like the new files are missing a lot of the commands. The A10C in particular shows this, the new file is tiny with only a handful of commands shown, the old one has every single one including the unbound ones.

I'm more than a bit puzzled and frustrated here. It seems that DCS can still read the old lua config files since it kept my old configurations which were stored in the old format, but now it refuses to read from the files that I imported them from in the first place. It auto converts as soon as you select the key config in game of a platform, but it refuses to convert from a saved configuration file of the kind used to share key binds.

I've figured out a way to maintain compatibility with the old export file type though. What you do is take the file, copy it to the game's config directory for the platform of choice (you know, inside config/input/platformname/joystick), and rename it as the name that game uses to identify the control. So my Warthog joystick uses a file named like "HOTAS Warthog" which then has a ton of numbers after it. It used to use a .lua extention, now it uses .diff.lua, but the first part of the name is the same. I take the config file I downloaded from wherever, I rename it with that HOTAS Warthog plus a bunch of numbers name, with the normal .lua extention. First deleting the file of the same name, if it's there, and delete the diff.lua file before loading up the game just to be sure. I'm not sure what happens if you don't.

If you do that it seems that DCS will go through the autoconvert process and create a useable diff.lua file out of the original lua file. I just tested it with a friend's system and it seems to have worked.

Now why ED couldn't build that functionality into the load command I'll never know.

I'm still left wondering if this is the end of manual key binding. Which is a concern since there were some things that could only be done through manual file editing. It almost looks like you'd need to get ahold of an old lua file, make the changes to it, and then let DCS autoconvert it.

Inline advert (2nd and 3rd post)

#3947462 - 05/01/14 03:30 AM Re: 1.2.8 lua script change [Re: Nomad76]  
Joined: Jan 2001
Posts: 2,477
HomeFries Offline
Air Dominance Project
HomeFries  Offline
Air Dominance Project
Member

Joined: Jan 2001
Posts: 2,477
The diff.lua is long overdue, and is the answer to not having to redo all of your controller profiles every time something is updated.

Instead of a lua file containing an entire profile, the diff lua only tracks deviations from the default luas. This means that if/when ED changes their default lua files, the diff.luas will still be valid.

Also, FWIW, as long as you keep your old lua files in place when updating to 1.2.8, DCS World will use those lua files to create the diff.luas in your DCS\Config\Input\<aircraft> folders.


-Home Fries

"Pacifism is a shifty doctrine under which a man accepts the benefits of the social group without being willing to pay - and claims a halo for his dishonesty."
- Robert A. Heinlein

The average naval aviator, despite the sometimes swaggering exterior, is very much capable of such feelings as love, affection, intimacy, and caring. These feelings just don't involve anyone else.

#3948461 - 05/03/14 06:09 AM Re: 1.2.8 lua script change [Re: Nomad76]  
Joined: Oct 2013
Posts: 18
Nomad76 Offline
Junior Member
Nomad76  Offline
Junior Member

Joined: Oct 2013
Posts: 18
Yes, I know it can upgrade older lua files, I thought I made that clear based on my description of how you can exploit that to force it to upgrade a saved config file and my frustration that they couldn't give the load command the ability to do the same thing.

My concern was that manual editing had just been made impossible, or at least more difficult and possibly significantly more clunky.

But further testing seems to suggest that the only reason to manually edit the input files has been removed. The "up" key command seems to have stopped working. The ability to set a different command for when you push a button down (or turn a toggle switch on) and when you release it was the main reason to manually edit the input files. But it looks like it doesn't work any more. It's still in the original lua files, but if I mess with any assigned up commands nothing happens. That was the one thing that wasn't accessible from the in game configuration screen.

I'm not sure, but it looks like the A10C, the only platform where that function ever really worked, has been reconfigured so that it's no longer needed.

So... maybe they managed to make manual editing unnecessary. But I'm wondering if any home cockpit users have been unable to get the game set up right for their setup. Every theoretical config I've looked at would seem to still work, but I can't help but feel that some flexibility has been lost. There have to be some things that used to be possible that can't be done anymore.

#3948490 - 05/03/14 08:20 AM Re: 1.2.8 lua script change [Re: Nomad76]  
Joined: Dec 2010
Posts: 161
OlafM Offline
Member
OlafM  Offline
Member

Joined: Dec 2010
Posts: 161
Using the instructions from

http://forums.eagle.ru/showpost.php?p=2036361&postcount=40

I am able to continue using my 1.2.7 configuration file for the Black Shark, which makes use of the "up" functionality. Also, the default profile for the A-10C for the HOTAS Warthog still makes use of the "up" functionality.

As you pointed out, it is the main motivation for manually editing the input config files (at least for me), and I fail to understand why ED did not update the input configuration system properly, and started supporting "up" both in their new .diff.lua format and, more importantly, in the configuration interface.

Let's hope that one day ED will improve their input configuration interface -- which is already rather good compared to what other games and sims offer -- in that way.

#3948630 - 05/03/14 06:07 PM Re: 1.2.8 lua script change [Re: Nomad76]  
Joined: Jan 2001
Posts: 2,477
HomeFries Offline
Air Dominance Project
HomeFries  Offline
Air Dominance Project
Member

Joined: Jan 2001
Posts: 2,477
You can still do manual configurations, but any additions need to be in the controller LUA files in the DCS World\Mods\aircrafts\<module> folder. I have done this to add NVGs to the A-10A and Su-25A/T, as well as add the UH-1 XM60 sight elevation to an analog axis.


-Home Fries

"Pacifism is a shifty doctrine under which a man accepts the benefits of the social group without being willing to pay - and claims a halo for his dishonesty."
- Robert A. Heinlein

The average naval aviator, despite the sometimes swaggering exterior, is very much capable of such feelings as love, affection, intimacy, and caring. These feelings just don't involve anyone else.

#3949067 - 05/05/14 12:03 AM Re: 1.2.8 lua script change [Re: Nomad76]  
Joined: Sep 2007
Posts: 8
ANGST Offline
Junior Member
ANGST  Offline
Junior Member

Joined: Sep 2007
Posts: 8
Virginia, USA
My files got all messed up when upgrading, I ended up erasing the saved game dcs folder. I was still having CTD . I downgraded to 1.2.7 for now, which sucks because I was having fun with the TF51D , I will probably upgrade again without the input files and rebuild them banghead

#3950158 - 05/07/14 08:02 AM Re: 1.2.8 lua script change [Re: Nomad76]  
Joined: Sep 2007
Posts: 951
NamelessPFG Offline
Member
NamelessPFG  Offline
Member

Joined: Sep 2007
Posts: 951
This change really screwed up the Lua profiles I was working on for the Warthog, and if you edit the default Lua bindings, those will just get erased with the next update, completely defeating the purpose of the diff.lua system.

The F-15C in particular has a few new bindings and a completely overhauled autopilot interface, so I'm not sure I should just carry over the old 1.2.7 profile.

Unfortunately, the diff.lua files are so different in format and syntax that they're much harder to read and edit, and the reason I dove into Lua editing in the first place was, as mentioned, to add proper bindings to the release states of the DirectInput buttons. Getting the autopilot and flaps switches on the Warthog throttle to work as intended absolutely relies on this, among other things like cannon mode.

Of course, this wouldn't be a problem if Eagle Dynamics just had good controller profiles in place to begin with. The fact that they have a near-perfect, plug-and-play A-10C profile for the Warthog and yet don't even bother with all the other aircraft, even the A-10A of all things, is quite baffling. Then there's that Saitek X-52 profile that changes little more than mapping both trigger stages...

#3951164 - 05/09/14 02:25 AM Re: 1.2.8 lua script change [Re: Nomad76]  
Joined: Jan 2001
Posts: 2,477
HomeFries Offline
Air Dominance Project
HomeFries  Offline
Air Dominance Project
Member

Joined: Jan 2001
Posts: 2,477
The nice thing about "converting" a lua to a diff.lua is that you can have a different command structure, but you won't carry over the obsolete baggage that you would with the old lua system. For example, you mention the autopilot (which is now two commands instead of 8 or 9). You will likely have to remap these, but that's because they have a new name and the diff.lua won't bring over anything that is obsolete.

In other words (providing everything works as it should), the most you lose bringing a lua to a diff.lua is anything that has changed in the most recent update. Anything that remains the same as far as structure in the default luas should carry over.


-Home Fries

"Pacifism is a shifty doctrine under which a man accepts the benefits of the social group without being willing to pay - and claims a halo for his dishonesty."
- Robert A. Heinlein

The average naval aviator, despite the sometimes swaggering exterior, is very much capable of such feelings as love, affection, intimacy, and caring. These feelings just don't involve anyone else.

#4129486 - 06/05/15 05:41 AM Re: 1.2.8 lua script change [Re: Nomad76]  
Joined: Jun 2005
Posts: 2,132
Reticuli Offline
Member
Reticuli  Offline
Member

Joined: Jun 2005
Posts: 2,132
Dayton, OH, USA
What a load of [edited] again from ED.





Last edited by Force10; 06/06/15 04:54 AM. Reason: Language

The term "necroposting" was invented by a person with no social memory beyond a year. People with a similar hangup are those o.k. with the internet being transient vapor.

http://www.openfuelstandard.org/2011/12/methanol-wins-open-wager.html

Saitek X65 and X52, Glide, Winx3D, and GlovePIE Profiles http://library.avsim.net/search.php?SearchTerm=reticuli&CatID=miscmisc

http://library.avsim.net/register.php

X52 + Silicone Grease = JOY stick
#4129491 - 06/05/15 06:53 AM Re: 1.2.8 lua script change [Re: Reticuli]  
Joined: Oct 2009
Posts: 1,342
Remon Offline
Member
Remon  Offline
Member

Joined: Oct 2009
Posts: 1,342
Greece
Originally Posted By: Reticuli
What a load of [edited] again from ED.


Forgot to change accounts?

#4129731 - 06/05/15 03:40 PM Re: 1.2.8 lua script change [Re: Reticuli]  
Joined: Mar 2011
Posts: 2,042
cichlidfan Offline
Member
cichlidfan  Offline
Member

Joined: Mar 2011
Posts: 2,042
Woodbridge, VA, USA
Originally Posted By: Reticuli
What a load of [edited] again from ED.


The OP is a year old. It's a bit late to fuss about it.

#4130120 - 06/06/15 04:46 AM Re: 1.2.8 lua script change [Re: Nomad76]  
Joined: Nov 2004
Posts: 17,632
SkateZilla Offline
Skate Zilla Graphics
SkateZilla  Offline
Skate Zilla Graphics
Veteran

Joined: Nov 2004
Posts: 17,632
Virginia Beach, VA


HAF922, Corsair RM850, ASRock Fata1ity 990FX Pro,
Modified Corsair H100, AMD FX8350 @ 5.31GHz, 16GB G.SKILL@DDR2133,
2x R7970 Lightnings, +1 HD7950 @ 1.1/6.0GHz, Creative XFi Fata1ity Platinum Champ.,
3x ASUS VS248HP + Hanns�G HZ201HPB + Acer AL2002 (5760x1080+1600x900+1680x1050), Oculus Rift CV
CH Fighterstick, Pro Throt., Pro Pedals, TM Warthog & MFDs, Fanatec CSR Wheel/Shifter, Elite Pedals
Intensity Pro 10-Bit, TrackIR 4 Pro, WD Black 1.5TB, WD Black 640GB, Samsung 850 500GB, My Book 4TB

Moderated by  Force10, RacerGT 

Quick Search
Recent Articles
Support SimHQ

If you shop on Amazon use this Amazon link to support SimHQ
.
Social


Recent Topics
Grumman Wildcat unique landing gear
by Coot. 04/17/24 03:54 PM
Peter Higgs was 94
by Rick_Rawlings. 04/17/24 12:28 AM
Whitey Herzog was 92
by F4UDash4. 04/16/24 04:41 PM
Anyone can tell me what this is?
by NoFlyBoy. 04/16/24 04:10 PM
10 Years ago MV Sewol
by wormfood. 04/15/24 08:25 PM
Pride Of Jenni race win
by NoFlyBoy. 04/15/24 12:22 AM
It's Friday: grown up humor for the weekend.
by NoFlyBoy. 04/12/24 01:41 PM
OJ Simpson Dead at 76
by bones. 04/11/24 03:02 PM
They wokefied tomb raider !!
by Blade_RJ. 04/10/24 03:09 PM
Copyright 1997-2016, SimHQ Inc. All Rights Reserved.

Powered by UBB.threads™ PHP Forum Software 7.6.0