

Gmod lua wiki how to#
How to use this script: Once the script is loaded, it creates a new protocol named "MyDNS" (or "MYDNS" in some places). We also have other example Lua scripts, but the nice thing about this one is getting capture files to run it against is trivial. The goal isn't to fully dissect DNS properly - Wireshark already has a good DNS dissector built-in. It's neither comprehensive nor error-free with regards to the DNS protocol. This script creates an elementary dissector for DNS.

If you wonder why some functions are called some way, or differently than previous invocations of the same function: the reason is its trying to to show both that it can be done numerous ways, but also trying to test those numerous ways. To test various functions being called in various ways, so this script can be used in the test-suites.To provide a reference tutorial for others writing Wireshark dissectors in Lua.The script is too long to embed in this page, and it's much better to view it in a text editor that supports Lua syntax highlighting, because there are a lot of comments in the script explaining things. Using Lua to register protocols to more portsĭownload this a file for an example Lua script for a protocol dissector.A custom file reader & writer tutorial script.A dissector tutorial with TCP-reassembly.
Gmod lua wiki mod#
debug.getinfo data for the "View Source" buttons) from Garry's Mod and may need to periodically be updated as new features and libraries are added to Garry's Mod. This extension uses the gluadump addon to extract some information (e.g. Recommended Companion Extensions glualintĪ GLua linter, powered by FPtje's glualint. Please open an issue to report bugs and suggest features. You may have the editor.quickSuggestions setting set to false. Press CTRL + Space I'm not seeing globals or local variables Auto completion documentation isn't showing up!
Gmod lua wiki code#
Generates a (very, VERY approximate) "heatmap" of how heavy some parts of your code are, and allows you to inspect what bytecode is being generated and where.Ĭredits: Spar Common Issues Where are the file icons?!Ĭlick the Gear icon in the bottom left of VSCode, click "File Icon Theme" and then select GLua.
