samedi 22 février 2014

[Release] PayDay 2 LUA hook v2.2.0 topic




PayDay 2 LUA Hook DLL v2.2.0

A brand new hook DLL with many new features; arguably a must for any Lua scripter.

This one adds support for the Steam Beta, so have fun with that. All the noteworthy features from 2.0.0/2.1.0 are still mentioned below for completeness, new stuff in 2.2.0 is bold.

Feedback is appreciated as always.

Features:

Interactive Lua Interpreter
Aww YISS! now you can have an interactive Lua interpreter right there on the debug console. See the README for more information, or if you're lazy, set your OutputMode to 7.

YAML based configuration file

The config file format is now YAML, making it even easier to manage your key bindings. Additionally, it supports usage of decimal (123), hex (0x70) and string symbols (VK_F1) for specifying what you want to bind a script to. An example script is included in the archive.

Global Hook Toggle
Defining a key that has an empty string instead of a script name will result in that key being considered a global enable/disable toggler and will prevent injection of any Lua, whether by key presses or a Persistent Script you defined whenever you toggle to disabled mode.

Run Last Script
Defining a key that has * as the script name will create a key binding that will execute whatever script it was that you executed previously - handy if a frequently used script is bound to a far-away key.

Automatic Config reload

The DLL autodetects when you have modified the config file and will instantly reload all keybindings and persistent scripts.

Persistent Scripts

By defining a global Lua variable for the DLL to check for and a script name, you can make any scripts persist through the lifetime of the entire game session.

New Native Lua functions

The pcall() function has been reimplemented, perfect for crashy code. Additionally, dofiles() is also added, enabling you to trivially execute other Lua files from within your Lua script.
Last but not least is PlayMedia() and PlayMediaQueued() which utilises DirectShow and thus should happily play the vast majority of audio or even video file types you throw at it. Playback can be terminated with KillMedia()

Lua functions in 2.1.0 are: BindKey() UnbindKey() and GetBinding() - they permit altering Keybindings from Lua programmatically in a non-persistent manner (i.e. it doesn't overwrite your config file). There is also now a RunThread() function, but I haven't had time to test it, so please provide feedback if you do... I will not be remotely surprised if it just crashes the game.

Require() has been added to 2.2.0 and bugfixes have been applied to the keybinding commands.

Read the README for information on the Lua Functions. No, seriously, READ IT.


Full documentation is available in the download archive. Approval Status: PENDING

Archive SHA1: 38115422ed17ad8f00f150a39fdcffe233640eb7





Aucun commentaire:

Enregistrer un commentaire