Total War: WARHAMMER III

Total War: WARHAMMER III

126 voti
Modding Development Tools: Lua Console!
2
3
   
Premio
Aggiungi ai preferiti
Preferito
Rimuovi dai preferiti
ui
Mostra gli oggetti etichettati con tutti i termini selezionati: mod
Dimensioni del file
Pubblicato in data
Aggiornato in data
381.010 KB
9 apr 2022, ore 11:02
7 set 2022, ore 16:57
8 note di rilascio ( visualizza )

Sottoscrivi per scaricare
Modding Development Tools: Lua Console!

Descrizione
Happy Warhammer III! This one is a relatively simple mod, used for running Lua code within the game. Built heavily off of existing Creative Assembly scripts and UI files, which have been changed pretty majorly for further functionality.

How To Use
In-game, press "Shift+F3". This will open up the Lua Console window. From there, you can move the window around, type in your code into it, and execute it using the "Run" button. You can also use the "Clear" button to empty out the console completely.

You can run `console_print()` to print things out to the console (either from within the console, or within your external Lua files), or you can `return` things to get them printed out to the console. The console will also print out an error if any is found in your code.

Right now, there is support for only 8 lines of code, but each line can go as long as you would like. Next patch will include a vertical scroll so there can be a much higher limit of lines.

Any Lua variable that exists within the global scope (ie. it isn't defined as "local") can be accessed within the Lua Console - it can trigger listeners, print out info, call "cm" if it's available, and so on.

If you aren't planning on using Lua, this mod probably isn't necessary for you.

If you'd like easier-to-use commands, a la older Age of Empires games, use
https://steamcommunity.com/sharedfiles/filedetails/?id=2791241084.

API
The following global functions are added by this mod:

console_print(text) -- prints out the text provided to the Console itself. console_printf(text, ...) -- prints out the text provided to the Console itself, after using string.format() on the text provided. You can use, for instance, `console_printf("My name is %s", "Charles")` to print "My name is Charles". More info at http://www.cplusplus.com/reference/cstdio/printf/ t_get(table, index) -- returns the value found in the table at index. Long-hand workaround for `value = table[index]`. t_set(table, index, value) -- sets the value to the table at index. Long-hand workaround for `table[index] = value`
Roadmap
Future updates will include Quality of Life improvements, as well as introductions of other forms of modding development tools - more ways to access game information, quick-use buttons to interact with the world similar to RimWorld's development tools, etc.

Check out the planned updates, the progress, and download the updated packs at https://github.com/chadvandy/devtools


[discord.gg]
Discussioni più popolari Visualizza tutte (1)
0
7 set 2022, ore 20:49
Help
Zacarriss
34 commenti
matheusgames 5 feb, ore 12:26 
Hello, is there any command to restart or force completion of the Malakai adventure missions?
Xeonzs 5 lug 2024, ore 17:57 
This remains to be a life saver when it comes to joy.
Drycha remains suicidal, refusing to confed even when she's down to her last army, but I want coeddil to be with his fellow first ancient treeman durthu, brothers in arms.
I just spawn my own coeddil with this mod.
zerkeron 22 mag 2024, ore 14:15 
Hi, thanks for the mod.
Thanks to you I could create a workaround for a bug regarding the "Nurgle Plagues Locked".
The Plagues button was not unlocking, even after acquiring 6000+ infections.
So I wrote a LUA-Script that just manually unlocks the button, and ran it with your mod.
Klissan 23 mar 2024, ore 23:46 
Thank you for the mod - saved me a lot of time especially to test things in multiplayer
MobǂActarion 4 nov 2023, ore 7:16 
No worries :) thanks for the head up!
Groove Wizard  [autore] 30 ott 2023, ore 13:41 
No news yet. Haven't had much time or energy to do any modding. This and MCT are probably going to get an update maybe this or next quarter, they need a big facelift and they both have big in-progress rewrites. Sorry I don't have better info, modding has been a drag lately.
MobǂActarion 28 ott 2023, ore 20:08 
Hello, Not wanting to be a pain but, any news about update ? :) thanks
Not effective
kyokamaru 17 lug 2023, ore 9:25 
shift F3 does nothing.
Mortarch Of Blood 13 lug 2023, ore 11:38 
Nice one, I look forward to seeing what you do with it! GL