全面战争:战锤2

全面战争:战锤2

Modding Devtool Console
55 条留言
KalmarZ 4 月 24 日 上午 3:51 
Crashing when loading the game, I put it as second to SFO Grimhammer and nothing else.. Any suggestion on load order..?
John 11 2023 年 7 月 27 日 上午 5:43 
i am very happy this mod exists.
LordOmlette 2022 年 2 月 22 日 上午 10:13 
This mod will be invaluable whenever modding support is enabled in TW:WH3. Thank you for your hard work!
mklabs  [作者] 2022 年 2 月 22 日 上午 9:17 
Should be fixed now. Sorry for taking so long.
Ares106 2021 年 10 月 21 日 下午 7:27 
same here :(
FiftyTifty 2021 年 8 月 9 日 下午 5:38 
Yep, same here
Jenglot 2021 年 8 月 2 日 下午 9:28 
Crash when clicking the menu bar button on latest patch
kishkuma 2021 年 1 月 28 日 下午 9:48 
... 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  [作者] 2021 年 1 月 28 日 上午 8:08 
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  [作者] 2021 年 1 月 28 日 上午 5:14 
You have to use regular quotes "" instead of fancy quotes “”, Lua doesn't like the fancy ones
kishkuma 2021 年 1 月 28 日 上午 3:59 
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  [作者] 2021 年 1 月 17 日 下午 6:04 
strings have to be wrapped in quotations, "wh2_main_skv_clan_eshin"
kishkuma 2021 年 1 月 17 日 下午 5:30 
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  [作者] 2020 年 10 月 15 日 上午 11:54 
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 2020 年 10 月 15 日 上午 10:43 
nice to know. I was trying to get fancy with some code, but I was able to get around it.
mklabs  [作者] 2020 年 10 月 15 日 上午 8:13 
@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 2020 年 10 月 14 日 下午 6:59 
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  [作者] 2020 年 6 月 27 日 上午 6:21 
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 2020 年 6 月 27 日 上午 2:36 
Not working 06/27/20
sheenshongkangkong 2020 年 5 月 24 日 下午 9:43 
its not compatible with latest update
riki_cappelletti 2020 年 5 月 24 日 上午 8:59 
Is it normal I cant use it right now ... isnt it ?
Groove Wizard  [作者] 2020 年 5 月 15 日 上午 7:40 
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 2020 年 5 月 15 日 上午 7:15 
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  [作者] 2020 年 5 月 10 日 上午 6:08 
@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 2020 年 5 月 10 日 上午 3:16 
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 2020 年 3 月 23 日 上午 8:02 
Hello plz restore instant lvl 40
@nyraan_wh2_instant_max_lvl_player_only.pack
ambroise 2020 年 3 月 23 日 上午 8:00 
Hello plz restore instant lvl 40
Izakkr 2020 年 1 月 27 日 下午 1:34 
Is there a table of applicable commands? Maybe adding gold mid game, reducing my construction time, etc?
paperpancake 2020 年 1 月 9 日 下午 12:08 
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 2019 年 12 月 17 日 下午 4:44 
Many thanks for developing this tool, it will help many modders including me to find the behavior of our newest mods :)
Anonymous Gamer 2019 年 12 月 12 日 下午 4:43 
@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  [作者] 2019 年 12 月 7 日 上午 6:05 
@Anon - happens when there's a script break, see Known Issues to fix it
Anonymous Gamer 2019 年 12 月 6 日 下午 8:07 
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 2019 年 9 月 22 日 下午 1:13 
Would be great to get an update!
riki_cappelletti 2019 年 9 月 15 日 下午 1:53 
@mklabs: u gonna update it ? :D
Jadawin 2019 年 5 月 15 日 下午 1:35 
Ok, good to know it's not on my end, thanks!
mklabs  [作者] 2019 年 5 月 15 日 下午 1:06 
@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 2019 年 5 月 15 日 下午 12:07 
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 2019 年 1 月 26 日 下午 6:55 
@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  [作者] 2018 年 12 月 29 日 上午 10:25 
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 2018 年 12 月 29 日 上午 7:11 
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~ 2018 年 12 月 14 日 上午 11:19 
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 2018 年 12 月 1 日 下午 9:00 
A thousand kudos for this awesome tool!
mklabs  [作者] 2018 年 12 月 1 日 上午 5:07 
@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  [作者] 2018 年 12 月 1 日 上午 5:03 
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 2018 年 11 月 30 日 下午 8:40 
Is there like a code list?
Hawk 2018 年 11 月 30 日 下午 5:01 
Amazing guys, great stuff!
kelstr 2018 年 11 月 30 日 下午 12:36 
Jesus Fuck.... I'm a modder and I can't even wrap my head around this. Well fucking done !!!!
Un Poisson Rouge 2018 年 11 月 29 日 下午 1:30 
Saved me so much time thank you for this
Nayran 2018 年 11 月 28 日 上午 4:37 
Woah! Thank you for this :D