Total War: WARHAMMER III

Total War: WARHAMMER III

Ikke nok vurderinger
VSCode LUA Debugger (ALPHA)
   
Utmerkelse
Favoritt
Favoritter
Fjern som favoritt
graphical
Merkelapper: mod
Filstørrelse
Lagt ut
Oppdatert
55.544 KB
18. sep. 2022 kl. 11.09
16. okt. 2022 kl. 4.44
6 endringslogger ( vis )

Abonner for å laste ned
VSCode LUA Debugger (ALPHA)

Beskrivelse
A Visual Debugger and inspector for LUA

VSCode Extension:
https://marketplace.visualstudio.com/items?itemName=Fietspompje.tw-lua-debug

Instructions are on marketplace

Current Features:
- Breakpoints
- Stepping over, in and out
- Inspect local and global variables
- Print to vscode from lua. debuggee:print("warning", "some warning") (categories are "warning", "error", "log")
- Pausing (see limitations and quirks)
- Break on Error
- Execute lua instructions from vscode
- Virtual source files - when starting the debugger a virtual folder will be added to your vscode project containing lua files formthe active mods in the used_mods.txt file.
- script_error function now prints to vscode debug console

Limitations and Quirks
- Pausing does not work during load screens and loading
- Disconnecting and reconnecting the debugger from vscode is not advised
- Pressing pause in vscode will not stop warhammer3 where it is executing in lua, but inside the real_callback function

Future:
- Rome 2, Three Kingdoms support
- Mod Hot Reloading
- Full Dev environment
- Example video

Changes:
- Debugger can now connect to the game at any time (except during loading)
- Stability fixes
- Reduced the mod to 3 files
- Virtual source files

4 kommentarer
Mortarch Of Blood 12. juli 2023 kl. 5.51 
What sort of things does this let me do? Probably an obvious answer but I have zero knowledge when it comes to LUA
Mr.Soul 19. sep. 2022 kl. 13.38 
Very cool, thank you sharing this, this’ll be a nice sanity check when I’m knee deep in lua and unsure what does what anymore haha
Fietspompje  [skaper] 19. sep. 2022 kl. 13.27 
@Mr.Soul
Similar yes. It inserts itself into the game's lua code via debug hooks, allowing you to debug live lua code while the game is executing it. Allowing you to step through code line by line. Similar to how a C# or C++ debugger can.
Mr.Soul 19. sep. 2022 kl. 11.24 
wait, so is like rextester but essentially tied right into the game's paths?