Hi everyone,
As podcat mentioned in last weeks diary he would attempt to trick into writing a little something about modding. It didn’t work, I wanted to do it all along, hah! This week I will talk a bit about how to get into modding and how we work with requests from modders. Next week I will go into some of the new stuff modders can expect in 1.3.3.
Getting into modding can seem like a pretty daunting task and we’ve received some questions about how to get started. A good first step is going to the User Mods forum and take a look at the Useful threads/information for modders. and the wiki. The Hearts of Iron Modding Discussion subreddit is another good place to find resources.
Ask others in the Modding - Quick Questions thread. It’s a great place to ask specific questions once you’ve gone through some of the tutorials. If no one else can help, I might even show up to answer a few questions.
Starting the game with the -debug enabled gives you access to the console, where you can write trigger_docs. This will print a list of possible trigger and effect with some sparse (programmer made) documentation to the game.log. Sometimes you can find things here that have not yet been documented on the wiki. From there, it all depends on what you want to achieve.
Another useful launch option is start_tag=GER, which loads up the game as the specified tag, skipping launcher and country selector.
Starting in debug mode also enables the glorious error dog, who will show up and bark your mistakes at you, like a mad drill sergeant. The dog is your friend, do as it says and strive to fix all your mistakes before committing your mod to steam. Start from the top and work your way down. Here I’ve done something horribly wrong in the Centre state file, so I CTRL+ALT+Right-Click, open the file and fix my mistake.
Once you’ve gotten into it a bit you will most likely stumble across issues that cannot be solved with the current script features. This is where I come in… maybe! Go to the wishlist thread see if there is already a request for what you are trying to attempt and if there isn’t, make a post describing what you want to achieve. Most of the things in this thread end up in the document below, aptly named by podcat. We then go over the requests with the tech lead and decide what is possible to do. A lot of the requests we have gotten are for new triggers, basic effects, which is great. Other are basically new features, major core system changes or UI rework on a scale that is not modding, but making a new game.
A request could be:
‘I need a trigger for army experience’ (I can’t believe we don’t have this.).
‘I want to set state names with an effect’
‘I want the dynamic script flags EU4 has’
Etc etc.
Some will be implemented. Some will be rejected based on technical limitations. Some may even be planned for a future feature, in which case it really is worth waiting for the proper implementation by a team of programmers instead of just me.
Some of the recent additions include:
-Added console command: set_ruling_party
Exampletime:
You want to make a series of events where the German scientists goes celebrating after the fall of France.
set_country_flag = { flag = GER_drunk_scientists days = 120 value = 1 }
This sets a flag with the value of 1 that disappears after 120 days.
You can then use the flag as a trigger for a national focus that gives you something like the Bob Semple, or what else your drunken scientists would come up with.
modify_country_flag = { flag = GER_drunk_scientists value = 1 }
will change the country flag to 2, which you can then use to trigger something else. You can also see how long a flag has been set for and what date it was last set or modified.
You probably want to make you own tooltip though, since flags don’t generate proper tooltips at the moment. Proper tooltips for them might be a future request =)
custom_trigger_tooltip = {
tooltip = GER_drunk_scientists_tooltip
has_country_flag = GER_drunk_scientists
}
Hope this gives you an idea of how to get started and encourages more people to start modding Hearts of Iron.
Next week I will talk in detail about the new modding features that will be available in 1.3.3.
podcat : Since people are probably curious about a little update from the rest of the team, we have been working on some optimizations to speed up late game a bit. Also don't forget to tune in at 16:00CET on www.twitch.tv/paradoxinteractive today where me and Daniel will be checking out the Kaiserreich mod in our series of mod highlights in World War Wednesday!
Read the original post
[quote]Useful links
Official Website
Hearts of Iron IV Wiki
Hearts of Iron IV Development Diary Archive
[ 2017-01-25 13:03:30 CET ] [ Original post ]
- Hearts of Iron IV Linux [135.44 M]
- Hearts of Iron IV: Sabaton Soundtrack
- Hearts of Iron IV: Together for Victory
- Hearts of Iron IV: Death or Dishonor
- Hearts of Iron IV: Sabaton Soundtrack Vol. 2
- Hearts of Iron IV: Waking the Tiger
- Hearts of Iron IV: Man the Guns
- Unit Pack - Hearts of Iron IV: Axis Armor
- Music - Hearts of Iron IV: Radio Pack
- Hearts of Iron IV: La Résistance
- Unit Pack - Hearts of Iron IV: Allied Armor
- Music - Hearts of Iron IV: Allied Speeches Pack
- Country Pack - Hearts of Iron IV: Battle for the Bosporus
- Unit Pack - Hearts of Iron IV: Eastern Front Planes
- Music - Hearts of Iron IV: Songs of the Eastern Front
- Hearts of Iron IV: No Step Back
- Hearts of Iron IV - DLC Subscription
- Hearts of Iron IV: By Blood Alone
- Hearts of Iron IV: Arms Against Tyranny
- Country Pack - Hearts of Iron IV: Trial of Allegiance
- Hearts of Iron IV: Content Creator Pack - Soviet Union 2D
- Expansion - Hearts of Iron IV: Götterdämmerung
- Hearts of Iron IV: Expansion Pass 1
- Expansion pass 1 Bonus - Hearts of Iron IV: Supporter Pack
- Expansion Pass 1 Bonus - Hearts of Iron IV: Ride of the Valkyries Music
From the heart of the battlefield to the command center, you will guide your nation to glory and wage war, negotiate or invade. You hold the power to tip the very balance of WWII.
It is time to show your ability as the greatest military leader in the world. Will you relive or change history? Will you change the fate of the world by achieving victory at all costs?
Main Features:
- Total strategic war: War is not only won on land, sea and in the air. It’s also achieved in the hearts and minds of men and women.
- Authentic real-time war simulation: Let the greatest commanders of WW2 fight your war with the tools of the time; tanks, planes, ships, guns and newly discovered weapons of mass destruction.
- Assume control of any nation: Choose from the greatest powers striving for victory, or the small nations trying to weather the storm.
- Turn the world into your battlefield: Experience the full WWII timespan in a topographical map complete with seasons, weather and terrain. Snow, mud, storms can be both your strong ally and a ruthless enemy.
- Negotiate or force your will: Experience the advanced politics and diplomacy systems, form factions, engage in trade for resources and appoint ministers to your party.
- Intense Online Combat: Battle in both competitive and cooperative multiplayer for up to 32 players. Featuring cross-platform multiplayer.
- Give your nation a unique edge: Experience the flexible technology system, where all major powers get their own unique identity. Develop detailed historic tanks and planes through research and army experience.
Everyone will receive:
- Poland: United and Ready:
A Free DLC adds a unique focus tree for Poland, new 3d models for tanks and planes, 2d assets, and extra leader portraits for the ultimate in historical accuracy. - Forum Avatar
- Wallpaper
- OS: OS: Ubuntu 20.04
- Processor: Intel Core 2 Quad Q9400 @ 2.66 GHz / AMD Athlon II X4 650 @ 3.20 GHzMemory: 4 GB RAM
- Memory: 4 GB RAM
- Graphics: ATI Radeon HD 5850 or NVIDIA GeForce GTX470 with 1GB VRAM / Latest available proprietary drivers from both manufacturers
- Storage: 2 GB available spaceAdditional Notes: Controller support: 3-button mouse. keyboard. and speakers are required. / Internet Connection or LAN for multiplayer. Up to 32 other players in multiplayer mode.
- OS: OS: Ubuntu 20.04
- Processor: Intel Core i5 750 @ 2.66 GHz / AMD Phenom II X4 955 @ 3.20 GHzMemory: 4 GB RAM
- Memory: 4 GB RAM
- Graphics: ATI Radeon HD 6950 or NVIDIA GeForce GTX570 with 2GB VRAM / Latest available proprietary drivers from both manufacturers
- Storage: 2 GB available spaceAdditional Notes: Controller support: 3-button mouse. keyboard. and speakers are required. / Internet Connection or LAN for multiplayer. Up to 32 other players in multiplayer mode.
[ 6089 ]
[ 3241 ]