• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

unmerged(74599)

Nexus 6
Apr 17, 2007
4.391
0
2 things, no.1, my intent was for these events to fire randomly, otherwise I would have made their trigger conditions much easier to achieve. This is so that no AI player could reap the benefits of my prescence in controlling their country once I left.



((edit 2)no.2,) that is almost the exact reference in my events.txt file, in fact, it says this:

event = "db\my_event.txt"

edit:what is nzqs, btw?

Right, so the "events.txt" file is the file which tells your scenarios to load your "my_events.txt" into the game script. When this happens at the beginning of your game (when the scenario is loaded) these will be added to future saves in the "history" section of the save file for that game. This is the record of what "*.txt" files should be included in the save game.

However, if your saved game was started before you made these changes to your "event.txt" file, and added "my_events.txt" then the save will not have a record that this text file is relevant to the game. This is why you should search your save in the "history" section to see if it is there.

If it is not in the save, then you have two options:

One:


Add the new events to the HOI2.txt file as I suggested above.

Warning: (as you know) you will get a double entry error on load of a new scenario if you start a new game, because the game will find the same events in both "HOI2.txt" file and in your "my_events.txt" file. However, it should work with the old saves which were started before you created "my_events.txt".

Two:

Edit the save.

You can edit the save to tell it to include "my_events.txt" as a place to add scripts to the game when you load the save. You can include it by making a new entry in the save game file. To do this search "History" in the save game file. Then search "events". This will take you to a section of the save that looks something like this:

Code:
event = "db\events\AI_Other.txt" event = "db\events\AI_ROM.txt" event = "db\events\AI_HUN.txt" event = "db\events\AI_TUR.txt" event = "db\events\AI_SWE.txt" event = "db\events\AI_YUG.txt" event = "db\events\AI_BUL.txt" event = "db\events\AI_MEX.txt" event = "db\events\AI_BRA.txt" event = "db\events\AI_HON.txt" event = "db\events\AI_NIC.txt" event = "db\events\AI_SAL.txt" event = "db\events\AI_GUA.txt" event = "db\events\AI_COS.txt" event = "db\events\AI_PAN.txt" event = "db\events\AI_DOM.txt" event = "db\events\AI_HAI.txt" event = "db\events\AI_NEP.txt" event = "db\events\AI_PAR.txt" event = "db\events\AI_TAN.txt" event = "db\events\AI_URU.txt" event = "db\events\AI_IRE.txt" event = "db\events\AI_LIB.txt" event = "db\events\AI_COL.txt" event = "db\events\AI_CUB.txt" event = "db\events\AI_ECU.txt" event = "db\events\AI_PRU.txt" event = "db\events\AI_SAU.txt" event = "db\events\AI_SCH.txt" event = "db\events\AI_VEN.txt" event = "db\events\AI_ARG.txt" event = "db\events\AI_CHL.txt" event = "db\events\AI_CXB.txt" event = "db\events\AI_SIK.txt" event = "db\events\AI_CSX.txt" event = "db\events\AI_CAN.txt" event = "db\events\AI_AST.txt" event = "db\events\AI_NZL.txt" event = "db\events\AI_SAF.txt" event = "db\events\AI_SIA.txt" event = "db\events\AI_BOL.txt" event = "db\events\AI_PER.txt" event = "db\events\AI_MON.txt" event = "db\events\AI_HOL.txt" event = "db\events\AI_BEL.txt" event = "db\Goerings_Delay\EIR_timer.txt" event = "db\Goerings_Delay\asia.txt" event = "db\Goerings_Delay\germany_fh.txt" event = "db\Goerings_Delay\hungary_fh.txt" event = "db\Goerings_Delay\poland_fh.txt" event = "db\Goerings_Delay\UK.txt" event = "db\Goerings_Delay\USSR.txt" event = "db\Goerings_Delay\europe.txt" event = "db\Goerings_Delay\italy.txt" event = "db\Goerings_Delay\Allies_control.txt" event = "db\Goerings_Delay\China_surrenders.txt" event = "db\Goerings_Delay\chinaciviwar.txt" event = "db\Goerings_Delay\france_fall.txt" event = "db\Goerings_Delay\hoi2.txt" event = "db\Goerings_Delay\sweden.txt" event = "db\Goerings_Delay\USA.txt" event = "db\Goerings_Delay\USSR_FH.txt" event = "db\Goerings_Delay\slovakia.txt" event = "db\Goerings_Delay\South_American_Spheres.txt" event = "db\Goerings_Delay\nationalist_spain.txt" event = "db\Goerings_Delay\republican_spain.txt" event = "db\Goerings_Delay\AI_SPA.txt" event = "db\Goerings_Delay\AI_SPR.txt" event = "db\Goerings_Delay\vichy_new_fh.txt" event = "db\Goerings_Delay\molotov.txt" event = "db\Goerings_Delay\winterwar.txt" event = "db\Goerings_Delay\indochina.txt" event = "db\Goerings_Delay\hundredregiments.txt" event = "db\Goerings_Delay\fall_of_Japan.txt" event = "db\Goerings_Delay\AI_FIN_fh.txt" event = "db\Goerings_Delay\ai_ger_fh.txt" event = "db\Goerings_Delay\AI_ENG.txt" event = "db\Goerings_Delay\ai_sov_FH.txt" event = "db\Goerings_Delay\AI_ITA.txt" event = "db\Goerings_Delay\AI_FRA.txt" event = "db\Goerings_Delay\Ai_minors.txt" event = "db\Goerings_Delay\Soviet_Spheres.txt" event = "db\Goerings_Delay\AI_CHC.txt" event = "db\Goerings_Delay\AI_USA.txt" event = "db\Goerings_Delay\AI_CHI.txt" event = "db\Goerings_Delay\AI_CHIJAP.txt" event = "db\Goerings_Delay\Upgrades.txt" event = "db\Goerings_Delay\AI_JAP.txt" event = "db\Goerings_Delay\AI_CGX.txt" event = "db\Goerings_Delay\AI_CYN.txt" event = "db\Goerings_Delay\AI_man.txt" event = "db\Goerings_Delay\AI_POL.txt" event = "db\Goerings_Delay\AI_Inherit_Chi.txt" event = "db\Goerings_Delay\austria_fh.txt" event = "db\Goerings_Delay\bulgaria_fh.txt" event = "db\Goerings_Delay\czechoslovakia_fh.txt" event = "db\Goerings_Delay\finland_fh.txt" event = "db\Goerings_Delay\france_fh.txt" event = "db\Goerings_Delay\vichy_france_fh.txt" event = "db\Goerings_Delay\japan_fh.txt" event = "db\Goerings_Delay\romania_fh.txt" event = "db\Goerings_Delay\UK_fh.txt" event = "db\Goerings_Delay\death_events.txt" event = "db\Goerings_Delay\coups_hoi2.txt" event = "db\events\albania.txt" event = "db\events\croatia.txt" event = "db\events\nationalist_china.txt" event = "db\events\denmark.txt" event = "db\events\japanese_fascism.txt" event = "db\events\lithuania.txt" event = "db\events\Siam.txt" event = "db\Goerings_Delay\sc events.txt" event = "db\Goerings_Delay\ml events.txt" event = "db\Goerings_Delay\sl events.txt" event = "db\Goerings_Delay\sd events.txt" event = "db\events\election_events.txt" event = "db\events\RandomEvents.txt" event = "db\Goerings_Delay\secret_weapon_events.txt" event = "db\events\AI_capital_move.txt" event = "db\events\AI_ministers.txt" event = "db\events\AI_sliders.txt" event = "db\events\AI_minorshutinvasion.txt" event = "db\events\AI_reactive.txt" event = "db\events\AI_CHI_spheres.txt" event = "db\events\AI_revolters.txt" event = "db\events\colonial_release.txt" event = "db\events\japanmanpower.txt" event = "db\events\doomsday_election_events.txt" event = "db\events\doomsday_death_events.txt" event = "db\events\doomsday_coup_events.txt" event = "db\events\armageddon_events.txt" event = "db\events\armageddon_elections.txt" event = "db\events\armageddon_deaths.txt"

The format is pretty clear. Aall you need to do now is add an entry in this list:

event = "db\events\my_events.txt"

NZQS is the Checksum of the current version of the East is Red.
 

Klein001

First Lieutenant
13 Badges
Nov 6, 2008
217
1
  • Crusader Kings II
  • Deus Vult
  • Europa Universalis III Complete
  • Hearts of Iron III
  • Majesty 2
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Semper Fi
  • Europa Universalis IV
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
Ah!:), Well thank you for your advice and patience in dealing with me. I appreciate that you would go to the trouble of helping me, and again, I say Thank You.:D
 

unmerged(74599)

Nexus 6
Apr 17, 2007
4.391
0
Don't forget to make a copy of any saves you edit before you edit them. Always a good policy.
 

Klein001

First Lieutenant
13 Badges
Nov 6, 2008
217
1
  • Crusader Kings II
  • Deus Vult
  • Europa Universalis III Complete
  • Hearts of Iron III
  • Majesty 2
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Semper Fi
  • Europa Universalis IV
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
And yet, strangely enough, it is already there. But, again, since I wrote that first post in this thread, I have started as many as 5 new games, so I think that that might explain it.
 

unmerged(74599)

Nexus 6
Apr 17, 2007
4.391
0
If "my_events.txt" is in the save, then the issue is otherwise. I don't really have a lot of experience with "random" events, so I don't know.

Do Random events fire "in console"? Try firing one of the ones from the "SC events.txt" file and see if it fires. Probably will. But its just an idea.

Is it perhaps that your event ID Tags out of range? Maybe chop off a couple of zeros, and see then if they will fire.

By the way, this line:

Code:
NOT = { ai = Yes }

Could just as well be:
Code:
ai = no

If you mean it to be a player only event. Otherwise it is revesed.
 
Last edited:

Klein001

First Lieutenant
13 Badges
Nov 6, 2008
217
1
  • Crusader Kings II
  • Deus Vult
  • Europa Universalis III Complete
  • Hearts of Iron III
  • Majesty 2
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Semper Fi
  • Europa Universalis IV
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
that is where i intend to fire them. I have fired random event number 1013 at least 2,000 times, literally. (I used it to get 2000% prod.eff) The events are within tag range, as I have been able to fire them on newly started games, and the event_commands.txt file states that an event id can be anywhere from 0 up into several billions, so I think that I should be well within range.
 

unmerged(74599)

Nexus 6
Apr 17, 2007
4.391
0
Ok well,

I just took your event 6000000, and stuck it in one of my games in the "Asia.txt" file which i created for one of my modded games, loaded up France from an old save, and then opened up the F12 console command and fired it, and "voila" the people of France experienced a bountiful harvest of raw materials! :cool:

So, the events seem to work fine.
 

Klein001

First Lieutenant
13 Badges
Nov 6, 2008
217
1
  • Crusader Kings II
  • Deus Vult
  • Europa Universalis III Complete
  • Hearts of Iron III
  • Majesty 2
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Semper Fi
  • Europa Universalis IV
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
weird.:eek: But then again, you loaded the event directly into a file which came with the game. On my game, all the files seem to already reference my event file, so if I were to put the events into game file, it would tell me that there are 2 places where references to the events can be found. I think what I should do instead is put the events into a game file and delete the reference to my_event.txt from the saves, that way, it should eliminate the dual reference problem without having to start another game, especially if I move my_event.txt afterwards.
 

unmerged(74599)

Nexus 6
Apr 17, 2007
4.391
0
I created "Asia.txt" when I reorganized the entire file structure for the East is Red, so it is also new to the game.

Yes, you definitely have to remove the double references to the two sets of events. Why not post "my_event.txt" here so I can look at it directly? I have a few times made simple errors that make events not fire, too. And they are not always obvious.
 
Last edited:

Klein001

First Lieutenant
13 Badges
Nov 6, 2008
217
1
  • Crusader Kings II
  • Deus Vult
  • Europa Universalis III Complete
  • Hearts of Iron III
  • Majesty 2
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Semper Fi
  • Europa Universalis IV
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
well still, if Asia.txt is being used in the same way a vanilla game file would be, then it would be the same thing. It seems to me that the saves already know to load the my_event.txt file beforehand, what I think may have been happening is that it was loading only the parts that already existed, but due to some sort of error, simply did not fire them off when I tried to manually fire them off like I intended. If the events section of the history area of the saves tells the file all the event files to load, then that might be what was causing part of the later problems. Chances are, what happened was when I tried to copy them into hoi2.txt, the save files were already referencing my_event.txt, so that when I tried to load the saves, the program complained of the events being in 2 places at once.
 

unmerged(74599)

Nexus 6
Apr 17, 2007
4.391
0
Post "my_events.txt" here and let me see if I can get it to work.
 

Klein001

First Lieutenant
13 Badges
Nov 6, 2008
217
1
  • Crusader Kings II
  • Deus Vult
  • Europa Universalis III Complete
  • Hearts of Iron III
  • Majesty 2
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Semper Fi
  • Europa Universalis IV
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
i'm not sure how to post files.
 

unmerged(74599)

Nexus 6
Apr 17, 2007
4.391
0

Klein001

First Lieutenant
13 Badges
Nov 6, 2008
217
1
  • Crusader Kings II
  • Deus Vult
  • Europa Universalis III Complete
  • Hearts of Iron III
  • Majesty 2
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Semper Fi
  • Europa Universalis IV
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
i've set up the account and uploaded the file, now what?
 

unmerged(74599)

Nexus 6
Apr 17, 2007
4.391
0
Now just post the link to that file here.
 

Klein001

First Lieutenant
13 Badges
Nov 6, 2008
217
1
  • Crusader Kings II
  • Deus Vult
  • Europa Universalis III Complete
  • Hearts of Iron III
  • Majesty 2
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Semper Fi
  • Europa Universalis IV
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club

unmerged(74599)

Nexus 6
Apr 17, 2007
4.391
0
Heh. Funny that takes me to my "myfiles". :D There should be a direct link to the image, go to "share" and then copy that link and post that direct link to the file.
 

Klein001

First Lieutenant
13 Badges
Nov 6, 2008
217
1
  • Crusader Kings II
  • Deus Vult
  • Europa Universalis III Complete
  • Hearts of Iron III
  • Majesty 2
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Semper Fi
  • Europa Universalis IV
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club

unmerged(74599)

Nexus 6
Apr 17, 2007
4.391
0
Well, ok, there are no errors that I can see. I copied and pasted the entire contents of the file and added them to the end of my HOI2.txt file from my vanilla HOI II game and then saved. I loaded the game then fired the first event (resources) and the last (Dummy) and both seemed to work.

So, why not try this, cut them entirely from "my_events.txt", so that the file is empty, then paste the events in the HOI2.txt and see if that is working for you.

By the way you are playing in SP mode not MP, right?
 

Klein001

First Lieutenant
13 Badges
Nov 6, 2008
217
1
  • Crusader Kings II
  • Deus Vult
  • Europa Universalis III Complete
  • Hearts of Iron III
  • Majesty 2
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Semper Fi
  • Europa Universalis IV
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
i do not know what those are.