Total War: WARHAMMER II

Total War: WARHAMMER II

Modding Devtool Console
Showing 1-7 of 7 entries
Update: 22 Feb, 2022 @ 8:54am

#### 2.0.1 (2022-02-22)

##### Bug Fixes

* use built-in round_small_button for toolbar btn as well (03753ddb[github.com])
* uses built-in uic for technology_panel / round_small_button instead of own version (93af044b[github.com])

Update: 22 Feb, 2022 @ 8:26am

Update: 21 Nov, 2020 @ 12:07pm

Major rewrite along the release of the mod for Troy

- Added feature: console_input.lua file can now be used to input commands in the devtool (located at data/text/console_input.lua). The file is watched and the the content of the file is executed on each saves, as if you were using the textbox (handy to workaround the limitations of the in-game textbox component)

- Removed json configuration file and related options. The log and code output can now be found in data/text/console_output.txt and data/text/console_error.txt

- Implicit return statement: The mod now automatically prepend your last line with a "return" statement. It doesn't under certain conditions (like the presence of some LUA keyword, if the line begins with a local assigment, etc.)

- Removed the option tab and replaced with an help one. Check it out to see a description of the environment available to you. The only option you can change is whether or not you want the file watch for "console_input.lua". You can access the option window with the button next to the mini UI button.

- Changed the environment commands and scripts are executed in to provide additional helper functions and variable, namely for UI modding (_() /__() functions, _0 and _1 variables)

- Slightly changed the welcome message with better colouring, and adjusted the text with new features.

Update: 25 Jul, 2020 @ 8:53am

Many thanks to Vandy for this update, works with latest patch.

Update: 12 Oct, 2019 @ 9:04am

Updated by Vandy for latest patch

Update: 1 Dec, 2018 @ 4:44am

v2 - print with inspect.lua, options to write file to disks

In this version, the devtool is enhanced with a print() and devtool_log() function that lets you inspect variable in the console.

An options tab has been added that lets you customize two values:


- Path to code output: A filepath that when set will make the console write a file to disk. It will contain the code you execute in the console, and is updated each time you hit the "Execute" button.

- Path to logs output: Similar to the above options, this filepath will make the console write another file to disk. This one will contain the logs output you can see printed below the textbox each time you hit the "Execute" button.

These options were added to let you copy and paste content from them, and let you load them in your prefered text editor.

Both of these options can be disabled if left blank.

Update: 25 Nov, 2018 @ 9:11am