

A great text editor wich also is capable of syntax highlightning, great search and replace functions, regular expressions and you can load up 2 different ai files to make a comparison, so you get highlighted the differences in the code. I used notepad+ and did all my modding with it. And people on forums might also already give a helping answer.Īlso, Lua being a well known coding language, you can ask in several coding forusm about your code aswell.įor the coding as such, you can use any text editor you like. They made a more detailed "wrapper" to catch errors for testing.īest things to get started would be to ask what you have in mind to change and then look for yourself in Std-HoI3 or other mods how it looks there. Look at HPP mod to see a good usage of the debugout. You will get an entry of that variables in the file "lua_output.txt" wich you can find in the Main game folder of "Hearts of Iron 3". You can track errors in the "system.log" file the main "Hearts of Iron 3" folder.Ĭ:\Users\"your windows user acc"\Documents\Paradox Interactive\Hearts of Iron III\logsĪlso you will notice lines in the code as such:


That way the best advice is to know how to code Lua and check out the Lua tutorials for that.Īnd to look at other mods wich changed the Lua of HoI3 to get some inspiration or reuse their code if possible.Īt it is obvious that you can change and resue the Std-HoI3 code, I'll point out to info and some other mods that change the Lua code of Hearts of Iron III. But it also has much more potentional and is open to more ways of creating a solution to your problem/idea. It is a little bit different as to mod in events or new decisions. Lua modding HoI3 is about coding and knowing the game. But you can get several Lua-coding tutorials. As I got questions about Lua coding in HoI3 form time to time, I thought it might be good to have a place that shares some basic information about it all.Īfaik there is no real tutorila in HoI3-Lua coding.
