Total War: WARHAMMER II

Total War: WARHAMMER II

Modding Devtool Console
55 Comments
KalmarZ 24 Apr @ 3:51am 
Crashing when loading the game, I put it as second to SFO Grimhammer and nothing else.. Any suggestion on load order..?
John 11 27 Jul, 2023 @ 5:43am 
i am very happy this mod exists.
LordOmlette 22 Feb, 2022 @ 10:13am 
This mod will be invaluable whenever modding support is enabled in TW:WH3. Thank you for your hard work!
mklabs  [author] 22 Feb, 2022 @ 9:17am 
Should be fixed now. Sorry for taking so long.
Ares106 21 Oct, 2021 @ 7:27pm 
same here :(
FiftyTifty 9 Aug, 2021 @ 5:38pm 
Yep, same here
Jenglot 2 Aug, 2021 @ 9:28pm 
Crash when clicking the menu bar button on latest patch
kishkuma 28 Jan, 2021 @ 9:48pm 
... it was the quotes. -.- i used the generic quotes and it worked. that is what I get for writing the console strings out in a word doc instead of notepad. thanks very much for your help!
mklabs  [author] 28 Jan, 2021 @ 8:08am 
kishkuma, if you're unsure about LUA syntax, I would advise you to get VSCode text editor, and use it with the automatic execution of console_input.lua feature of the devtool. You can click the link below the command prompt to open the file in your text editor. A text editor with good LUA support (like VSCode) will highlight any syntax error you make. Save the file and the devtool should automatically execute its content and display the result of the command.
Groove Wizard  [author] 28 Jan, 2021 @ 5:14am 
You have to use regular quotes "" instead of fancy quotes “”, Lua doesn't like the fancy ones
kishkuma 28 Jan, 2021 @ 3:59am 
Sorry, forgot to subscribe to thread. Thanks for the help! This stopped it from crashing, but now I just get this: Got a compile error: [string “…”]:2: unexpected symbol near ‘[/col]]

Spent awhile googling with no luck :/ I know this isn't directly about your mod, but thanks for trying to help anyways.
Groove Wizard  [author] 17 Jan, 2021 @ 6:04pm 
strings have to be wrapped in quotations, "wh2_main_skv_clan_eshin"
kishkuma 17 Jan, 2021 @ 5:30pm 
so, I am not really sure what I am doing, and this may not be the best place to ask (sorry!), but I really want to force Chaos to be at peace with the Skaven. Eshin confederated all the other skaven, so I tried executing the command cm:force_make_peace(wh2_main_skv_clan_eshin, wh_main_chs_chaos) but it just causes the game to crash as soon as I click anything. If anyone could tell me how to make this work I'd really appreciate it.
mklabs  [author] 15 Oct, 2020 @ 11:54am 
That being said, I'm working on something that acts as a workaround to this particular issue (along with a much better editing experience).

It's not an in-game UI mod though. I'll share it when I feel it is a bit more stable.
CJ3200 15 Oct, 2020 @ 10:43am 
nice to know. I was trying to get fancy with some code, but I was able to get around it.
mklabs  [author] 15 Oct, 2020 @ 8:13am 
@cj3200 Nothing we can do about that, this is a textbox limitation of the in-game UI. You'll notice you can't type this bracket anywhere else in the game (except maybe the chat box)
CJ3200 14 Oct, 2020 @ 6:59pm 
I'm having an issue with the console. The open bracket "[" key does not appear to input anything. The close bracket "]" works just fine.
mklabs  [author] 27 Jun, 2020 @ 6:21am 
Yeah, not up to date on the workshop. That being said, Vandy worked on it and made a functional version that is available to download in C&C modding Den discord. I'll push this update live soon.
28 Woo 27 Jun, 2020 @ 2:36am 
Not working 06/27/20
sheenshongkangkong 24 May, 2020 @ 9:43pm 
its not compatible with latest update
riki_cappelletti 24 May, 2020 @ 8:59am 
Is it normal I cant use it right now ... isnt it ?
Groove Wizard  [author] 15 May, 2020 @ 7:40am 
If you're looking for destroying undercities that you own under your own settlement, you can enable the Community Bug Fix Mod, there's a fix for that in it
YariSlayer 15 May, 2020 @ 7:15am 
I have no modding experience, I just read that you could use this mod to destroy bugged undercities in the game. Would be great if somebody could tell me how to do it.
Groove Wizard  [author] 10 May, 2020 @ 6:08am 
@Taz - not much we can do about it unfortunately, that's a limitation in the CA-defined callbacks attached to this thing that we can't edit.
Taz 10 May, 2020 @ 3:16am 
Very helpful tool, but i'm unable to type [ or paste any text containing a [ - which limits the usefulness a bit when it comes to going through arrays
ambroise 23 Mar, 2020 @ 8:02am 
Hello plz restore instant lvl 40
@nyraan_wh2_instant_max_lvl_player_only.pack
ambroise 23 Mar, 2020 @ 8:00am 
Hello plz restore instant lvl 40
Izakkr 27 Jan, 2020 @ 1:34pm 
Is there a table of applicable commands? Maybe adding gold mid game, reducing my construction time, etc?
paperpancake 9 Jan, 2020 @ 12:08pm 
This looks super helpful! It seems like this version is only available on the campaign map. Are there any plans to add devtool console support during battles in the future?
Fire Destroyer 17 Dec, 2019 @ 4:44pm 
Many thanks for developing this tool, it will help many modders including me to find the behavior of our newest mods :)
Anonymous Gamer 12 Dec, 2019 @ 4:43pm 
@Vandy - Thanks!
For others, the typical path to the file is: C:\Program Files (x86)\Steam\steamapps\common\Total War WARHAMMER II\devtool_options.json
Groove Wizard  [author] 7 Dec, 2019 @ 6:05am 
@Anon - happens when there's a script break, see Known Issues to fix it
Anonymous Gamer 6 Dec, 2019 @ 8:07pm 
Anybody else lose the button to minimize it as well as the settings for logging? I have to cm:quit() to even get out of the program as I can't close it. (besides crashing it).

It ran perfect the first time I used it. Launched it the next day and the crazy started. Tried uninstall reinstall the mod but still same issue.
Anyndel 22 Sep, 2019 @ 1:13pm 
Would be great to get an update!
riki_cappelletti 15 Sep, 2019 @ 1:53pm 
@mklabs: u gonna update it ? :D
Jadawin 15 May, 2019 @ 1:35pm 
Ok, good to know it's not on my end, thanks!
mklabs  [author] 15 May, 2019 @ 1:06pm 
@Jadawin Thanks for the report. Known issue. Vandy was the first one who noticed it, even though we search solutions for this, we haven't found one. There is nothing we can do as it's tied to the game's UI element for the textboxes. I think there's also the "?" character not working properly.

I guess the only way you can input [ character is through a file that you require in the console (by putting it in data/scripts folder)
Jadawin 15 May, 2019 @ 12:07pm 
I am unable to type the [ character into the console, making it impossible to reference any tables/arrays. Everything else works, but if I press this key, even with English keyboard layout, nothing happens. Even copy-pasting it from another window does not work. Any text that contains the character is also not pasted.
riki_cappelletti 26 Jan, 2019 @ 6:55pm 
@Vandy: I use your mod to remove the fog of war with this "cm: show_shroud (false)" but I have to digit it every turn… is there any other code removing the for permanently ?
Groove Wizard  [author] 29 Dec, 2018 @ 10:25am 
Absolutely no control on the mod's end how copy-pasting works, more or less impossible to do anything bigger. You can always use an ingame force_require via the Console to read a file that you already have written
prop joe 29 Dec, 2018 @ 7:11am 
I'd like to see better support for copy pasting blocks of lua code, it already kinda works but it will only accept the first few lines pasted. The probem looks input length related and not due to newlines.

Also would like to see print output when minimized.
~Luna~ 14 Dec, 2018 @ 11:19am 
Would this help in updating a mod that is outdated and the creator has stopped and said people can use his work as long as we give credits? (High Elven Additional Pack)
lbmaian 1 Dec, 2018 @ 9:00pm 
A thousand kudos for this awesome tool!
mklabs  [author] 1 Dec, 2018 @ 5:07am 
@Tswv Heev Ntaj The devtool doesn't have any code listing, apart from the new print and return with inspect.lua. You can use something like `return getmetatable(cm)` or `print(getmetatable(core))` to see all the functions available to you on both of these objects. Other than that, taking a look at the vanilla scripts like "lib_core.lua" or "lib_campaign_manager.lua" can give you good hints.
mklabs  [author] 1 Dec, 2018 @ 5:03am 
Glad that you guys liked it! I hope it'll make your life easier while scripting on mods and testing / debugging out stuff ;)

Just pushed a new update with a print() function you can use to inspect variables and an options tab that lets you persist to disk both executed code and log outputs.
Keyes 30 Nov, 2018 @ 8:40pm 
Is there like a code list?
Hawk 30 Nov, 2018 @ 5:01pm 
Amazing guys, great stuff!
kelstr 30 Nov, 2018 @ 12:36pm 
Jesus Fuck.... I'm a modder and I can't even wrap my head around this. Well fucking done !!!!
Un Poisson Rouge 29 Nov, 2018 @ 1:30pm 
Saved me so much time thank you for this
Nayran 28 Nov, 2018 @ 4:37am 
Woah! Thank you for this :D