odds-Ueberblick icon

Ueberblick

Log caller file and line

Last updated 2 weeks ago
Total downloads 9
Total rating 0 
Categories Client-side Mods
Dependency string odds-Ueberblick-1.0.0
Dependants 0 other mods depend on this mod

README

Ueberblick

A simple mod that prefixes printt calls with [file:line]

For example these printt calls

[info] [CLIENT SCRIPT] -485
[info] [CLIENT SCRIPT] entity (-5: class C_DynamicProp [-5])
[info] [CLIENT SCRIPT] 2

will look like this:

[info] [CLIENT SCRIPT] [sh_menu_models.gnut:1419] -485
[info] [CLIENT SCRIPT] [sh_menu_models.gnut:1420] entity (-5: class C_DynamicProp [-5])
[info] [CLIENT SCRIPT] [sh_menu_models.gnut:1421] 2

This only changes how printt and the print reference in the root table behaves! Normal print statements will appear unchanged.

You can call the edited print reference with getroottable().print( "s" ). Note that the script has to be marked as untyped.

You should use printt( "s" ) since it's shorter and works in typed scripts as well.

Available versions

Please note that the install buttons only work if you have compatible client software installed, such as the Thunderstore Mod Manager. Otherwise use the zip download links instead.

Upload date Version number Downloads Download link  
2022-6-9 1.0.0 9 Version 1.0.0 Install