• 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.
P.S. please what app would you use for the Excel table files like Province.csv? Notepad++ as well?
I cant work with that, the excel columns give me a great overview,

Any recommendations on what apps to use to avoid file corruption??

Many thanks
You really need help from a good modder. You are modding the events incorrectly. I don't understand why you are using semicolon denotation for events. I have never seen an event written that way. Have you looked at how other events are written and structured?
Look at this event. Do you see the differences in how it is written vs your events?

#########################################################################
# The 2-2-6 incident (Japan)
#########################################################################
event = {
id = 2011006
random = no
country = JAP

name = EVT_1_NAME
desc = EVT_1_DESC
style = 2
picture = "news_paper"
trigger = {
atwar = no
NOT = {
ispuppet = JAP
}
}

date = { day = 25 month = february year = 1936 }

action_a = {
ai_chance = 90
name = EVT_1_ACTA
command = { type = dissent value = 1 }
command = { type = domestic which = interventionism value = 1 }
command = { type = set_domestic which = democratic value = 3 }
command = { type = set_domestic which = political_left value = 4 }
command = { type = domestic which = freedom value = -1 }
command = { type = sleepminister which = 50323 } # Saito Makoto
command = { type = sleepminister which = 50269 } # Takahashi Korekiyo
}
action_b = {
ai_chance = 10
name = EVT_1_ACTB
command = { type = dissent value = 3 }
command = { type = domestic which = interventionism value = 2 } # NOTE: The B choice effects are stronger than A by design
command = { type = domestic which = democratic value = -3 } # This represent a greater shift towards the military and
command = { type = domestic which = political_left value = -3 } # right wing control.
command = { type = domestic which = freedom value = -3 }
command = { type = domestic which = defense_lobby value = 1 }
command = { type = headofstate which = 50001 }
command = { type = headofgovernment which = 50013 }
command = { type = foreignminister which = 50039 }
command = { type = armamentminister which = 50062 }
command = { type = ministerofsecurity which = 50086 }
command = { type = ministerofintelligence which = 50114 }
command = { type = chiefofstaff which = 50007 }
command = { type = chiefofarmy which = 50008 }
command = { type = chiefofnavy which = 50148 }
command = { type = chiefofair which = 50154 }
command = { type = relation which = SOV value = -10 }
command = { type = relation which = CHI value = -10 }
command = { type = sleepminister which = 50323 } # Saito Makoto
command = { type = sleepminister which = 50269 } # Takahashi Korekiyo
}
}
 
P.S. please what app would you use for the Excel table files like Province.csv? Notepad++ as well?
I cant work with that, the excel columns give me a great overview,

Any recommendations on what apps to use to avoid file corruption??

Many thanks
I don't mess with province.csv I am unwilling to spend the time learning the right way to change/add/delete provinces from a map. I am a player first and foremost. Good luck to you
 
I don't mess with province.csv I am unwilling to spend the time learning the right way to change/add/delete provinces from a map. I am a player first and foremost. Good luck to you
I am not using semicolon denotations, this is a screenshot of savedebug file.

I am not adding or deleting provinces, you can edit IC, resources, manpower, beaches yes or no, etc... in the provinces.csv with Excel.

Anyway, I seem to have struck luck because when I copy paste to a brand new file with Notepad++ it keeps saying Error ID used for event such and such but the game works normally.
 
This should be my last question here for a while, but does anyone know why exactly a country isn't showing up in the "liberate nation" menu/causes a CTD upon releasing it (the DDR, which I didn't mess with)?

Is there something wrong with the code in revolt.txt? This kinda has me concerned about all the new tags I added now.

U23 = { # Alsace-Lorraine
date = { day = 1 month = january year = 1000 }
expirydate = { day = 29 month = december year = 3000 }
minimum = { 72 73 316 }
extra = { 64 317 1022 }
capital = 72
regular_id = FRA
intrinsic_gov_type = left_wing_radical
no = { FRA U01 U11 }
}


U24 = { # Hawaii
date = { day = 1 month = january year = 1000 }
expirydate = { day = 29 month = december year = 3000 }
minimum = { 658 659 660 663 7242 }
min = 1
extra = { }
capital = 663
regular_id = USA
}

U25 = { # North Germany
date = { day = 1 month = january year = 1000 }
expirydate = { day = 29 month = december year = 3000 }
minimum = {
223 300 298 299 301 302 304 296 297 309 473 482 510 546 80 81 86 87 88 89 90 76 67 75 74
3254 1400 1405 1595 1623 1779 1810 1811 2647 3238 3239 3257 3258 3256 3259 3260 3261 3255 2381
2370 3244 3245 3243 3240 6500 6519 6520 6521 6917
7188 7187 7185 7184 7186 7183 7182 7260 7181 7266 7190 7986 7045 7046 7047 7177
}
min = 1
extra = { }
claims = { 66 72 73 83 84 85 91 303 310 311 312 313 314 315 374 375 376 457 547 970 989 1014 1015 1016 1018 1022 1904 2597 2627 3241 3242 3246 3247 3248 3249 3250 3251 3252 3253 7178 7179 7180 7189 }
capital = 300
regular_id = GER
}
 
Last edited:
Where did you read that excel would be a good program to edit DH files and worse: to probably save those files with excel?
Use a

Where did you read that excel would be a good program to edit DH files and worse: to probably save those files with excel?
Use a standard asci-editor instead.
I have resolved the provinces issue.

But the Events issue keeps coming back.

Hello,

I have been editing events to get a certain flow of the game, just editing files like 100 percent chance with other 0% outcomes.

At first everything worked fine but then I started getting weird freezes and crashes after a while.

Now I input original files from online for example, edit a few event files, save and the game crashes for example August 2nd at the end of the day always.

I copied the crashing files onto new blank cut files in event files with Notepad ++ and everything worked fine after that. Which was weird and suspicious.

What was weird, the savedebug said the events in those files are now duplicate IDs but they worked.

Then I started editing anew with Notepad++ and the same thing keeps happening.

The savedebug level 2 log DOES NOT show any log when it crashes.

Who all and where is the best to contact about this?? Please
 
This should be my last question here for a while, but does anyone know why exactly a country isn't showing up in the "liberate nation" menu/causes a CTD upon releasing it (the DDR, which I didn't mess with)?

Is there something wrong with the code in revolt.txt? This kinda has me concerned about all the new tags I added now.
I would like to know as well if this comes up in the future for me as well.
 
This should be my last question here for a while, but does anyone know why exactly a country isn't showing up in the "liberate nation" menu/causes a CTD upon releasing it (the DDR, which I didn't mess with)?

Is there something wrong with the code in revolt.txt? This kinda has me concerned about all the new tags I added now.
I have never released the DDR, and don't see them on your list. Is this happening in unmodded 1.05.2? If so, I will try it and verify it and if I can verify it I will take it to the team. I am sure they want to know. Can you verify your checksum please?
 
How to wake techteam by event? It works for China and von faulkhausen, but not People's Republic of China, their wake up dont work.

If I edit their year to start to pre 1933, then it is available at start, not waken by event.
 
Is there a cap on the number of events that can be loaded? I can see savedebug.txt loading 4470 events, but mysteriously there are a couple of ones from UK.txt that don't get loaded at all. I'm wondering if I need to remove events...
E: Might've figured it out, bad syntax wasn't getting caught by debug (But it'd still be nice to know if there's a limit)
 
Last edited:
1000084857.jpg
Please does anyone know why the green shade background keeps appearing on some flags when you copy them into the game?
 
I'm trying to make an event that starts a war between two random countries. I came up with this along with a few other variations but none of them seem to work:


event = {
id = 1023
country = -1
random = yes
name = "EVT_1023R_NAME"
desc = "EVT_1023R_DESC"


action_a = {
name = "ACTIONNAME1023A"
command = { type = war which = -1 } }
}
}

Does anyone know if an event like this would be possible and how that event code would look?

Thanks
 
Hello ! I'm not sure you the commands works with a random country. However there may be ways to make random countries to declare war to each others but it would be a long event as you have to put all countries one by one. I can have a look at it when I'm back on a computer if you'd like.
 
34252435234.png

Hello,
can anyone tell me in which part of the fike misc.txt should I go to change the parameters shown inside the red rectangle?
 
View attachment 1260511
Hello,
can anyone tell me in which part of the fike misc.txt should I go to change the parameters shown inside the red rectangle?
I just turn it off in misc.txt. while I like the idea I theory, until logistics are more realistic I don't use it. Jmo, ymmv. Just search for stockpile in misc.txt. you should find it.
 
  • 1
  • 1Like
Reactions:
I just turn it off in misc.txt. while I like the idea I theory, until logistics are more realistic I don't use it. Jmo, ymmv. Just search for stockpile in misc.txt. you should find it.
Done, thank you.
 
  • 1Like
Reactions:
Guys, I'm incredibly out of the loop here so bear with me.

Is it possible to create flags/shields with GIMP? Aren't all known templates using action files? Does GIMP support them? How do you make flags these days? Can't run Photoshop here even if I could afford.

Cheers!
 
Guys, I'm incredibly out of the loop here so bear with me.

Is it possible to create flags/shields with GIMP? Aren't all known templates using action files? Does GIMP support them? How do you make flags these days? Can't run Photoshop here even if I could afford.

Cheers!
Hi !
Im not sure what are action files but if you're talking about calcs, there is somewhere on the internet blank templates of all the DH graphic stuff. Worst case scenario I have a copy on my computer with some improvments I can upload them next time im on it.
I personnally use paint.net and GIMP, GIMP works fine (better than paint.net).
I think there was also a tool to make flag/shield easily don't know if it works still tho :)
 
All right, I've checked these commands in Kaiserreich events, but it seems they don't work at all. I've triggered event 100160 for AST, which gives independence to NZL and should switch some units for it. In this case it works, as it switches units in independence command:
Code:
command = { type = independence which = NZL value = 0 when = 0 }
command = { type = switch_allegiance which = 10600 value = 8 where = NZL } #Units in NZL territory
command = { type = switch_allegiance which = 10600 value = 2 where = NZL }
command = { type = switch_allegiance which = 10600 value = 5 where = NZL }
command = { type = switch_allegiance which = 10600 value = 11 where = NZL }
But when I've changed it to:
Code:
command = { type = independence which = NZL value = 1 when = 0 } #Value changed from 0 to 1
command = { type = switch_allegiance which = 10600 value = 8 where = NZL } #Units in NZL territory
command = { type = switch_allegiance which = 10600 value = 2 where = NZL }
command = { type = switch_allegiance which = 10600 value = 5 where = NZL }
command = { type = switch_allegiance which = 10600 value = 11 where = NZL }
It keeps given units under Australasian control (though it doesn't cause ctd). So my final thought - switch_allegiance simply doesn't work. Thanks for help anyway :)
@^_AC_^

I know it's a super old post, but thought you guys might want to know, on the latest patch anyways the switch_allegiance command works. Airforce and land unit units go into the receiving nation's redeployment pool, ships immediately switch to the new owner right where they are on the map.

Tested by modifying then manually triggering an event from the All in One Gold edition mod, as shown below. The way they had it coded originally, only Danish land divs would switch, not any ships (they only had -1 everywhere). You've got a great mod btw NukePL! Lots of innovation/creative uses of the engine and flavor.

Edit: It seems only random units can be switched this way, not specific ones. The only available settings are whether it's land/air/sea, anything more specific either crashes or doesn't work for me, even using the same syntax as the unlock or lock division commands.

Any chance of getting this fixed in a patch? Ideally it'd be great if the ability to transfer specific units by ID worked, but what would be really good I think is the ability to transfer any division within a certain type, including user defined ones, instead (ie by divtype, like the add division command, to be able to make an event to check if Country A has 4 battleships, if trigger met, be able to transfer any 2 of 4 battleships to Country B)


###############################################
# Operation Safari
###############################################
event = {
id = 17426908
random = no
country = DEN

name = "Operation Safari"
desc = "Operation Safari was the attack by the German Wehrmacht on the Royal Danish Army and Royal Danish Navy on 29 August, 1943. As a counter-measure. Should we scuttle the ships or surrender? The Germans also demand disarmament of all branches of the Danish armed forces."
style = 2
picture = "DEN03"

action_a = {
name = "Scuttle the ships and disarm the troops"
ai_chance = 95
command = { type = manpowerpool value = -5 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -2 }
command = { type = delete_unit which = -2 }
command = { type = delete_unit which = -2 }
command = { type = delete_unit which = -2 }
command = { type = delete_unit which = -2 }
command = { type = delete_unit which = -3 }
command = { type = delete_unit which = -3 }
command = { type = delete_unit which = -3 }
command = { type = delete_unit which = -3 }
command = { type = delete_unit which = -3 }
command = { type = delete_unit which = -3 }
command = { type = delete_unit which = -3 }
command = { type = delete_unit which = -3 }
command = { type = delete_unit which = -3 }
command = { type = delete_unit which = -3 }
command = { type = domestic which = democratic value = 1 }
command = { type = dissent value = 5 }
command = { type = trigger which = 17426909 }
command = { type = relation which = GER value = -25 }
}
action_b = {
name = "Surrender the ships and disarm the armed forces"
ai_chance = 5
command = { type = manpowerpool value = 5 }
command = { type = switch_allegiance which = -1 where = GER }
command = { type = switch_allegiance which = -1 where = GER }
command = { type = switch_allegiance which = -1 where = GER }
command = { type = switch_allegiance which = -1 where = GER }
command = { type = switch_allegiance which = -1 where = GER }
command = { type = switch_allegiance which = -2 where = GER }
command = { type = switch_allegiance which = -2 where = GER }
command = { type = switch_allegiance which = -2 where = GER }
command = { type = switch_allegiance which = -2 where = GER }
command = { type = switch_allegiance which = -2 where = GER }
command = { type = switch_allegiance which = -2 where = GER }
command = { type = switch_allegiance which = -2 where = GER }
command = { type = switch_allegiance which = -2 where = GER }
command = { type = switch_allegiance which = -2 where = GER }
command = { type = switch_allegiance which = -2 where = GER }
command = { type = switch_allegiance which = -3 where = GER }
command = { type = domestic which = political_left value = -1 }
command = { type = domestic which = democratic value = -1 }
command = { type = dissent value = 10 }
command = { type = trigger which = 17426910 }
command = { type = relation which = GER value = 25 }
}
}
 
Last edited:
  • 1Like
Reactions: