Total War: WARHAMMER II

Total War: WARHAMMER II

Not enough ratings
Draw Debug Logs (Modding Tool)
   
Award
Favorite
Favorited
Unfavorite
Tags: mod, UI
File Size
Posted
Updated
947.510 KB
Dec 5, 2019 @ 8:14am
Aug 15, 2020 @ 4:06am
9 Change Notes ( view )

Subscribe to download
Draw Debug Logs (Modding Tool)

In 1 collection by prop joe
Prop Joe Mods
58 items
Description
Adds some global functions that aid in dumping Lua data types to either the screen or to a file.
Also adds an ingame button that clears all the lines, the button is hidden when there are no lines.

dout - appends a line to the screen
ddraw - clears any previous lines and shows only this line
ddump - appends to a ddump.txt file that will be created inside steamapps\common\Total War WARHAMMER II

usage:
dout(table)

all the functions accept a variable number of arguments, i.e.
dout(1, 2, 3, table, "abc", 4)

You can also call without any arguments to clear lines, for example before multiple douts:
dout() ---- etc. dout(1) ---- etc. dout(2)

Intended for use with Execute External Lua File, call the functions from there for speedy visual debugging.

Still works and it's not outdated, not gonna bother updating it for no reason every patch.
4 Comments
Tamerlane Jan 6, 2023 @ 3:19am 
Thank you! This is insanely powerful stuff and adds more replay value to the game.
prop joe  [author] Aug 15, 2020 @ 4:07am 
Moved it a little lower on the y axis so it doesn't overlap with the top bar.
prop joe  [author] Mar 23, 2020 @ 12:56pm 
It's something I'd like to do, but there's like a hundred other WH2 modding things I'm more interested in doing right now.
paperpancake Mar 22, 2020 @ 2:25pm 
This is cool. :) Do you have plans to add support for writing logs during battle?