Тёмный

[HOI4 Modding] - Creating new events 

The Iron Workshop
Подписаться 19 тыс.
Просмотров 61 тыс.
50% 1

This Hearts of Iron IV modding lesson you will learn how to create the two main types of events in Hearts of Iron 4... Country events and News events, along with their graphics and localization.
If you found this video helpful and want to help the channel grow you can use the super thanks button above, any amount helps the Iron Workshop improve and continue to make more videos like this one.
Timestamps for this tutorial/lesson:
00:00 - Lesson beginning
00:30 - Creating a mod file
01:19 - Creating folder/file structure
05:11 - Creating country event
28:14 - Creating news event
37:09 - Additional syntax
Useful links:
Iron Workshop Discord server: / discord
My twitch channel: / playerhoi
Hearts of Iron IV wiki modding page: hoi4.paradoxwikis.com/Modding
If you would like to contribute to make the Iron Workshop better you can do so on Patreon: / playerhoi
Here are the download links to the various tools used during The Iron Workshop lessons/tutorials.
Notepad++ Download: notepad-plus-plus.org/downloads/
Paint.net Download: www.dotpdn.com/files/paint.ne...
Please consider disabling your AdBlocker on RU-vid to support this channel and any other channel that creates content you enjoy and makes revenue from ads.

Игры

Опубликовано:

 

27 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 147   
@TheIronWorkshop
@TheIronWorkshop 2 года назад
----- IMPORTANT! ----- An important note due to changes to localization in version 1.11+, for the localization to work properly please move all the files inside the localisation folder into a folder called 'english' for the localization to appear properly. ----- IMPORTANT! -----
@sovietberd2233
@sovietberd2233 2 года назад
Could u make a video for explanation please?
@imtoolazytomakeaname4415
@imtoolazytomakeaname4415 2 года назад
@@sovietberd2233 Just make a folder in localisation called "english" and move all the files in there
@ureo_umbreon8601
@ureo_umbreon8601 Год назад
@@sovietberd2233 Just put in a folder called "english" or any other languaguge you are using, and drag all of the files in there!
@yeety.51
@yeety.51 4 года назад
you are literally the most helpful and easy to understand RU-vider i've ever seen.
@AndrewBunch1
@AndrewBunch1 Год назад
That is free
@thezombiecreeper
@thezombiecreeper 3 года назад
Thank you for remaking this! The one thing I have always avoided making for mods was events, primarily for the fact that they never worked.
@Ghost23712
@Ghost23712 4 года назад
I am a literal pleb when it comes to modding, and having just discovered this channel helped a lot. Do you plan on making a video about how to make a "radio station" or just how to add songs you'd want to the game ? Thanks a bunch for your hard work !
@TheIronWorkshop
@TheIronWorkshop 4 года назад
I will have another poll soon with various options, adding music will be one of them so be sure to vote for that, with enough votes we can have a video on that soon :)
@Liquid_Architecture
@Liquid_Architecture 4 года назад
This is video, that anyone was waiting for it but everyone wanted it
@eidamvolf5672
@eidamvolf5672 6 месяцев назад
Hi, I recently discovered your channel to learn some modding and I never thought that I will make it go this far, but also with that I relaised how much time does that requie, so I will end my modding myself here. I reached some of my goals in this case (to create my own country with a leader picture of my budgie and also some small focus tree), and I just wanted to say that you're absoluetly great in creating these modding videos and you deserve a lot more subscribers :)
@claytongarrette6557
@claytongarrette6557 4 года назад
you're honestly the most helpful youtuber that can clearly help people understand simple code, but maybe a video on how to preset factorys? instead of having countries having to use what they already have in those states, like off-map and on-map factories?
@vaiirecti7873
@vaiirecti7873 4 года назад
extremely helpful! tysmmmmm
@nikolayvalchanov3426
@nikolayvalchanov3426 4 года назад
Thanks for your work!
@redbox1976
@redbox1976 3 года назад
I really enjoyed this tutorial and i hope to see more about it, i have an unique suggestion for you, it's hard as hell i know, but at least no one made it and it's really wanted, try to make a tutorial on how to make custom 3D unit models.
@hitori3667
@hitori3667 4 года назад
thanks for the well organised vids
@TheIronWorkshop
@TheIronWorkshop 4 года назад
My pleasure!
@johnkelleher4120
@johnkelleher4120 2 года назад
the china.1.d event was useful and easy to remember so i used it in localisation for names
@lacklandstudios
@lacklandstudios 4 года назад
Thank you brother.
@kennertgarcia3486
@kennertgarcia3486 4 года назад
Thanks for all your content you are a beast. maybe if you can teach us how to make our own button on the gui and our own menus for example to buy or sell equipment-
@bramja5460
@bramja5460 2 года назад
Still very useful, thx!
@yuhi8925
@yuhi8925 3 года назад
Love how almost every mod he makes is about spongebob
@GameZone3
@GameZone3 Год назад
Thank you for what you have given me, even though I have a problem understanding English because I am an Arab. So you can get this success from stuff and keep teaching us more
@Choo_Choo_Oreo
@Choo_Choo_Oreo 4 года назад
The news event was helpful, could a ping in a request for something else though?
@matt-rs7ij
@matt-rs7ij 3 года назад
good tutorial
@thefox787
@thefox787 4 года назад
hey i just whanted to ask could you do a moding lecon about how to create custom research tree's and to how to modify alredy existing one? thanks
@MBKovas
@MBKovas 2 года назад
Hello there. I put a condition "is_subject_of" under the "option" block but it does not work. Is there any explanation to this? I have read somewhere that certain scopes are not supported for triggers. If that's the case, what would the alternative be?
@supertinybaba8936
@supertinybaba8936 4 года назад
epic
@DANTE-kg4zg
@DANTE-kg4zg 4 года назад
Great video and great series! I have a problem where I can't update my mod. I click upload, everything is working in debug mode but there is no update...
@imsharkius9325
@imsharkius9325 3 года назад
Hello again Iron Workshop! I need some help with syntax. So I created an event that triggers when you leave the EU. How do I make it so the country is said with the name of it? (Example: [GER.GetLeader]) This one is used for the country leader, when I studied the game it said ROOT. Is that the syntax needed, or must I change that? For example: [ROOT.GetCountry] Could you help me get the correct syntax for the country name?
@citywokbesitzer6834
@citywokbesitzer6834 2 года назад
Could you make a tutorial for creating super events as well?
@wojtek9206
@wojtek9206 4 года назад
I cannot get the localisation to work, it only shows "timekeepers.1.d" or "timekeepers.1.t", I've made sure that the file structure is correct, the file is a .yml, and it has UTF-8-BOM encoding but it's still not working
@Finlzz
@Finlzz 3 года назад
Hey Iron workshop! So a while ago I started making my mod and putting events in. Somehow I didnt realise but now the base game events dont have any titles or descriptions. Can you help me with this?
@balijaa
@balijaa 3 года назад
Can you make it so it triggers at certain date in the game?
@Alex_FRD
@Alex_FRD Год назад
Is there any way to have more than just 4 options per event or is that hardcoded?
@o_oshadowo_o3933
@o_oshadowo_o3933 3 года назад
i really want to thank you for this great tutorial it’s very helpful and i appreciate all your hard work for making it
@TheIronWorkshop
@TheIronWorkshop 3 года назад
You need to create an event where one of the options contains the effect: transfer_state = ID_OF_STATE_TO_TRANSFER And then link that event to a focus by including the line TAG_OF_COUNTRY_TO_FIRE_EVENT_FOR = { country_event = ID_OF_EVENT }
@o_oshadowo_o3933
@o_oshadowo_o3933 3 года назад
@@TheIronWorkshop thank you sooo much it work
@TheIronWorkshop
@TheIronWorkshop 3 года назад
@@o_oshadowo_o3933 Awesome!
@pillbox2079
@pillbox2079 4 года назад
TBH I need more information and examples on the different options you can have in events. This tutorial really helped, but I am not sure of the things I can add to options. I can make it spawn a new event, add ideas, add war support, stability, experience and all set of different things. But how do I make it so that it unlocks a focus or a decision? Or maybe add opinion to a specific country or how to make a license? Those are interesting for me right now. I love these tutorials and many of them helped me with my mods.
@TheIronWorkshop
@TheIronWorkshop 4 года назад
The things you described are effects and modifiers, effects can be added in a very straightforward way by just putting them under the option = { As for modifiers, they are usually added via ideas, so you need to create an idea (can be a hidden idea by not giving it an icon) and then apply the modifier to it. You can see a list of possible effects and modifiers in the HOI4 wiki which I have a link to in the video description.
@pillbox2079
@pillbox2079 4 года назад
@@TheIronWorkshop Yes, I found out how to do that with a lot of reading in the game files, but I still don't get one thing. How to unlock decisions and focuses via event decisions? I saw some flags that are being set up, but where do I need to list them and how do they work? Any ideas?
@TheIronWorkshop
@TheIronWorkshop 4 года назад
I will probably have a proper lesson about using decisions in the future which will explain how to interact with them through other parts of the game. To unlock focuses you can just put always = no in the focus to make it never be available and unlock it via an event by using the unlock_national_focus = FOCUS ID command, it also works in decisions.
@pillbox2079
@pillbox2079 4 года назад
@@TheIronWorkshop Many thanks! I will be waiting for your next episodes! ^.^
@satoshi4773
@satoshi4773 Год назад
How do I make an event trigger upon capitulation of a country I’m fighting against?
@anprimdude
@anprimdude 12 дней назад
can you do a tutorial on custom industrial concerns and designers ?
@Antonioelpro96
@Antonioelpro96 9 месяцев назад
I have a question If I make a mod for Puerto Rico, how do I put the namespace and id?
@quintonmaxfield5757
@quintonmaxfield5757 Год назад
I'm trying to make an event that has an option to randomly fire one of two events, but I cannot find information on this anywhere!
@joshuacooley1417
@joshuacooley1417 3 года назад
So I'm having a strange issue with my news event. I can trigger it from the console, and it works fine, everything shows up as expected. But, when I set it to happen randomly using mean_time_to_happen the event fires, and the effects actually are implemented, but the news graphic never shows up. Any ideas?
@redbox1976
@redbox1976 3 года назад
the event must take place from 1936 to 1945, this is the range.
@giancocastillo6423
@giancocastillo6423 2 года назад
Is there a way to make an event start on a specific date?
@rbnow9462
@rbnow9462 2 года назад
I did everything in the tutorial, but I can't get the event pictures to appear. I even tried using vanilla pictures, how can I get it to work?
@chavdarnanov6165
@chavdarnanov6165 3 года назад
after i try it ingame with debug mode on, console says "There is no event with ID#-1", why is that and how do i fix it?
@dianmops8908
@dianmops8908 2 года назад
Me too
@TheHalfwayXBray
@TheHalfwayXBray 2 года назад
@@dianmops8908 same it worked a few months ago when i first started on my mod, but now when trying to rewrite it after losing it all, it dosen't seem to work the same
@dianmops8908
@dianmops8908 2 года назад
@@TheHalfwayXBray I didnt rewrite anything i just followed the tutorial exactly how he did it. But i still get the Error in the console.
@TheHalfwayXBray
@TheHalfwayXBray 2 года назад
@@dianmops8908 after spending an hour last night looking through a few examples i was able to get mine to work. I could post what my code looks like if you want.
@porter5295
@porter5295 2 года назад
Me too.. How can I fix it? Plz tell me about "There is no event with ID#-1"
@krystianwinciorek1621
@krystianwinciorek1621 Год назад
how to create event, raport if I want to this event show up when my focus will start?
@Claseeimperial
@Claseeimperial 3 года назад
thanks man :) how to change the country's leader
@landonito4616
@landonito4616 3 года назад
This is extremely helpful, but I can't get the image to show up. I looked for the A8R8G8B8 setting, but I couldn't find it.
@TheIronWorkshop
@TheIronWorkshop 3 года назад
Try just grabbing an event image from the vanilla game, open it in Pain.net, change it to whatever you need and then just go to file ---> save as. It should give you the correct format automatically.
@midnight1274
@midnight1274 3 года назад
So I did everything right and my events show up. But all of the vanilla event's pictures won't show up and all I see is a dog. Any ideas?
@firechiII
@firechiII 2 месяца назад
I have created an event which works and done the same thing for a 2nd event but that event doesnt work and just gives me an error
@Dino10Boy
@Dino10Boy 4 года назад
Could you do one to make a new formable nation?
@Dino10Boy
@Dino10Boy 2 года назад
I figured it out but it is complex
@champnotchicken4318
@champnotchicken4318 4 года назад
Off topic question but I have been trying to follow your EU4 modding guides but the Europa Universalis folder looks very different than It did in your video. I know they made changes to mods in 1.29. Is this part of the changes?
@TheIronWorkshop
@TheIronWorkshop 4 года назад
Those are actually really outdated and I am conflicted about redoing them especially since I don't have the latest DLC for the game.
@champnotchicken4318
@champnotchicken4318 4 года назад
@@TheIronWorkshop I can not find a SINGLE modding guide on eu4 except for outdated ones. If you cant make another one can you point me to a source of knowledge in how to mod.
@noawidson3794
@noawidson3794 11 месяцев назад
what is your notepad++ style?
@clowe_only
@clowe_only Год назад
hey i have a error message in the game saying "there is no event ID ?-1"
@xavernoll2411
@xavernoll2411 4 года назад
Also for some unknown reason I cant open the files via Notepad++
@yemrekanal1
@yemrekanal1 3 года назад
Hi! I want do a event with focus. but i cant please help me.
@thesamuraimemelord3581
@thesamuraimemelord3581 Год назад
I dont undertstood how to appear a News event after i click a specific country event
@Ruben_n45
@Ruben_n45 3 года назад
my event dosen't work, it says "there is no event with ID #.1" Edit : i fixed it ! It was a problem in the files name
@noellindberg2493
@noellindberg2493 3 года назад
Which file? I'm having the same issue.
@Ruben_n45
@Ruben_n45 3 года назад
@@noellindberg2493 the events file, i wrote it without the "s" at the end. If it's not that you must check your syntax
@NateL1992
@NateL1992 Год назад
I'm having this same issue. What did you change in regards to the "s"? I've been following along and doing my own variant for the country mod I made with his other video; it should work given that I followed every single step properly, but it gives me that error. Every ID name is correct from what I can tell
@clowe_only
@clowe_only Год назад
yeah same ive done everything correctly it still gives me that error
@SGold-lh9ns
@SGold-lh9ns 2 года назад
How can I trigger an event when a certain country is capitulated by another country? For example, if I wanted an event to happen when Germany, specifically, capitulated both France and the UK. How can I do that?
@TheIronWorkshop
@TheIronWorkshop 2 года назад
You will need to use the required on action called on_capitulation Watch the video on using on actions to learn how to use them.
@NateL1992
@NateL1992 Год назад
Wonderful tutorial, so thank you for that. I have a problem getting my event to work. It tells me that the event ID doesn't exist, no matter what I change in the file and in localisation. Any thoughts on this? Or can anyone else help me out? Its driving me nuts
@kakake2098
@kakake2098 6 месяцев назад
Having the same issue rn
@TehFloridaMapper
@TehFloridaMapper Год назад
i have a question: How do i make an event that makes a new country because i wanna make a focus for poland that causes lithuania to have a decision and if they accept it creates a union
@lightbub4318
@lightbub4318 Год назад
You have to make the country first but just without and states. Then once they accept it so that said country becomes the owner of (in this case) all polish and Lithuanian states. It is also probably a good idea for that country to gain cores on all states.
@kartvelianmapping808
@kartvelianmapping808 3 года назад
how can you make super events? nice video btw
@redbox1976
@redbox1976 3 года назад
wdym
@xgafehuk
@xgafehuk 5 месяцев назад
How can I "give" a country event to a specific country?
@regodanielfasi9189
@regodanielfasi9189 4 года назад
So I've got a lil problem. When I'm trying to launch the game with the event mod, it won't start. I have tried it to launch both in the debug mod and the non debug mod. When I press the play button the game just crashes, in the debug the game just doesn't open.
@TheIronWorkshop
@TheIronWorkshop 4 года назад
I suspect you are starting the game with other mods without realizing it. Make sure to open the game launcher and click on manage mods and then switch to a list view and make sure all other mods are disabled.
@trihermawan9553
@trihermawan9553 3 года назад
What can i do if i want the event to be fired 1 or 2 months after i got independence? What syntax should i use?
@TheIronWorkshop
@TheIronWorkshop 3 года назад
There you go: country_event = { id = ID_OF_EVENT days = X }
@lightbub4318
@lightbub4318 Год назад
I made a event with 2 choices, I set the ai chance on both of them to equal 100, and the events work when players are playing as the countries. But when ever the ai get a event it doesn't do anything. I don't know why. How do I fix this? (I'm only using events in national focuses if that has any effect)
@catxx_gamer3812
@catxx_gamer3812 3 дня назад
100 for both
@gaunterodimm539
@gaunterodimm539 4 года назад
Yo, can you make a tutorial on how to make custom army uniform for a country.
@commissarcain5257
@commissarcain5257 3 года назад
that's sprite making, not coding. whole different animal to tackle
@gaunterodimm539
@gaunterodimm539 3 года назад
@@commissarcain5257 hahahhaha that was 8 months ago, i have fulfilled my request. But still thanks for the help.
@sanctussucks5605
@sanctussucks5605 4 года назад
For some reason when i try to trigger the event via console it says no event with this ID exists, what am i doing wrong, they're all in the right places
@TheIronWorkshop
@TheIronWorkshop 4 года назад
If you have brackets that are not closing and thus are breaking the event entry the game won't recognize it. Make sure everything closes properly and that your mod that contains the event is activated.
@porter5295
@porter5295 2 года назад
I can't fix about "There is no event with ID -1" What is the problem I made?? Please Tell me...
@littleminer1978
@littleminer1978 Год назад
i have the same problem
@legolegolegends323
@legolegolegends323 Год назад
good now I can make a unconcealable that makes the player a puppet
@nikolayilyin1819
@nikolayilyin1819 3 года назад
How do you make a news event fire on startup?
@TheIronWorkshop
@TheIronWorkshop 3 года назад
Wait for today's video "Using on actions" to find out.
@nikolayilyin1819
@nikolayilyin1819 3 года назад
@@TheIronWorkshop Oh ok
@hazelsnep
@hazelsnep 2 года назад
Events aren't working for me, is there any way to fix it? error: "There is no event with ID ?-1"
@aekl4640
@aekl4640 Год назад
the id needs to be the same name as the namespace, like this: namespace = start id = start.1 got it?
@hazelsnep
@hazelsnep Год назад
@@aekl4640 that didn't work
@davidcarl2834
@davidcarl2834 4 года назад
I know to create country's but, how do you create new releasable nations?
@davidcarl2834
@davidcarl2834 4 года назад
never mind I found out how to do it but, I want to release it threw a decision and not threw the occupation menu, how do I do that?
@kaiserwilhelmii5393
@kaiserwilhelmii5393 2 года назад
I know im late but when I try this tutorial the picture for the news event gets really streched
@TheIronWorkshop
@TheIronWorkshop 2 года назад
Restart the game, it will correct itself.
@kaiserwilhelmii5393
@kaiserwilhelmii5393 2 года назад
@@TheIronWorkshop Thanks! Now it works like a dream!
@Hadahuda
@Hadahuda 3 года назад
26:49
@Hadahuda
@Hadahuda 3 года назад
18:49
@RealOocca
@RealOocca Год назад
You do not start with that event_mod folder :>
@gabrieliuspergizas-charles391
@gabrieliuspergizas-charles391 9 месяцев назад
for the first event when I test it I get an error message saying "there is no event with ID ?8400001" does anyone know how to fix this?
@Nagibator3310
@Nagibator3310 3 месяца назад
You forgot to put a dot with a number
@gabrieliuspergizas-charles391
@gabrieliuspergizas-charles391 3 месяца назад
THANKS EVEN THOUGH IT WAS 5 MONTHS AGO LOL@@Nagibator3310
@cashewsinc.5647
@cashewsinc.5647 3 года назад
Hey, i recently followed your "How to make a country" tutorial, and i made a country with it. Question is, can i do this in an already existing mod i made ?
@4klog
@4klog 2 года назад
yes
@ureo_umbreon8601
@ureo_umbreon8601 Год назад
Well yeah...
@maxin5598
@maxin5598 Год назад
after appdate 1.12.8 my localisations files stop working, and I don't know how to fix this
@TheIronWorkshop
@TheIronWorkshop Год назад
See first pinned comment to this video for a solution
@maxin5598
@maxin5598 Год назад
@@TheIronWorkshop i did that but it still doesn't work
@flapjack6983
@flapjack6983 Год назад
@@maxin5598 does ur yml file have l_english at the end? like this "loc_l_english.yml"
@maxin5598
@maxin5598 Год назад
@@flapjack6983 my file has name new_events_l_english
@flapjack6983
@flapjack6983 Год назад
@@maxin5598 check for any typos in your localisation file. make sure you didnt forget any quotation marks at the end. newsevent.1:0 “Your news event” Edit:typo
@VrystaatBoer
@VrystaatBoer 3 года назад
eyyyyy south africa!
@youytsk7154
@youytsk7154 3 года назад
Hey please make tutorial how to make new state. ty.
@TheIronWorkshop
@TheIronWorkshop 3 года назад
There is already a lesson about that: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-YbViu2xl--s.html
@youytsk7154
@youytsk7154 3 года назад
@@TheIronWorkshop ty
@cirianar
@cirianar 3 года назад
How do custom GUI events work?
@TheIronWorkshop
@TheIronWorkshop 3 года назад
Not sure what you mean, are you talking about super events and such?
@cirianar
@cirianar 3 года назад
@@TheIronWorkshop yeah thats what I was thinking of
@TheIronWorkshop
@TheIronWorkshop 3 года назад
Super events are created using scripted/custom GUI and have very little to do with the built in events that this lesson deals with. If you want to create your own you will need some basic understandings about custom GUI, I suggest you watch this lesson (ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-QvJ4h3XCXO8.html) and then take a look at the existing code of these super events that exist in mods, this will allow you to create your own.
@cirianar
@cirianar 3 года назад
@@TheIronWorkshop oh ok thanks
@vraskus7265
@vraskus7265 Год назад
10:30
@eidamvolf5672
@eidamvolf5672 6 месяцев назад
I think he likes cuba
@xavernoll2411
@xavernoll2411 4 года назад
Ive watched all the videos like 5 times now and it still does not make any sense to me
@lioubastoupakova3770
@lioubastoupakova3770 3 года назад
amelia earhart discovers bikini bottom is real !
@chemio2430
@chemio2430 4 года назад
28:17
Далее
[HOI4 Modding ] Creating New Ideas
30:12
Просмотров 53 тыс.
FINALLY ANSWERED! Why Use HORSES Instead of TRUCKS?
15:38
🎤Пою РЕТРО Песни ✧˖°
3:04:48
Просмотров 1,7 млн
Recycled Car Tyres Get a Second Life! ♻️
00:58
Просмотров 699 тыс.
DON'T play without these mods in HOI4
11:36
Просмотров 40 тыс.
[HOI4 Modding] Using Cosmetic Tags
11:53
Просмотров 12 тыс.
So I Played Germany in 1933
40:48
Просмотров 877 тыс.
TRYING HOI3 FOR THE FIRST TIME!
26:21
Просмотров 70 тыс.
THE WORST Focus Trees In Hearts of Iron 4
29:05
Просмотров 331 тыс.
Peaceful Hitler in HoI4 / RP storytelling
16:04
Просмотров 160 тыс.
The Mod That Fixes America In Hearts Of Iron 4
16:02
Просмотров 297 тыс.
[HOI4 Modding] Creating New States
21:03
Просмотров 62 тыс.
[HOI4 Modding] Creating Cities
21:23
Просмотров 22 тыс.
NOT STOPPING TIL NEW WORLD RECORD
10:21:25
Просмотров 2,6 млн