Ok guys, the very basic and first version of the Logitech G15 Applet is here. This doesn’t interface with Garry’s Mod by any means. All it does is read a textfile that is updated by a Lua script. If you don’t have a Logitech G15 you can stop reading.
For the moment it has like zero features. Screenshot of zero features and Lua not liking Unicode:
It has problems with Unicode names at the moment, or maybe Lua has since it doesn’t support Unicode, either way, things like “åäö” looks a bit weird.
I will add more features tomorrow like an undo-list and similiar stuff, this is just here to show people that I’m actually doing anything.
Here’s the README:
Garry's Mod G15 Applet v0.2 by Skurmedel http://simon.otter.se Welcome. The installation of this applet is dead easy! Just unzip the contents into "Steam/steamapps/username/ garrysmod". Then run the gmg15.js file to start both Garry's Mod and my applet. If you don't want to use the script you'll have to start "GarrysModG15Applet.exe" manually. If you want to change what it displays, you can just edit the Lua script, or make your own, just make sure to remove the existing one, "lua/autorun/client/G15InfoDump.lua". Also be aware that the program has no clue whether Garry's Mod is running or not, so it will display whatever is in "data/G15InfoDump.txt" regardless of GMods state. Usage: Button 1 and 2 on the G15 navigates through the pages. The fourth button shuts down the applet.. it's the recommended way of turning it off. Changelog: 0.2: Added Undo-list at page 2, Nick-row now shows health. 0.1: Initial release. Note to customizers: To display stuff, just write to "G15InfoDump.txt" in the data directory. It supports 4 pages, so to write to the 4 lines at page 1, you write 4 lines. The following 4 lines will be page 2 etc. The program reads a total of 16 lines, 4 lines per page.
Please post any problems you have here. But make sure you’ve read the README extensively first!
Fix for the Windows Scripting Host error:
For some the default script work, for others not so here’s a fix for the unfortunate ones. If you open the .js file with Notepad you can fix it quite easily yourself. You’ll need to add the Shell.CurrentDirectory property and change “C” to whatever the drive letter of the harddrive which Steam is installed on (If Steam is installed on X:, this becomes “X:\”. You’ll need to convert all the backslashes to “/” or escape them, “” becomes “\”. Example:
Shell.CurrentDirectory = "C:\\" Shell.Run("C:\\Spel\\Steam\\Steam.exe -applaunch 4000 -console")
Note that the .js script is not needed to use the applet, it’s just there as an convienience.