• 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.

elbasto

Tier 1 minion
82 Badges
Aug 12, 2003
3.502
2
  • Stellaris: Galaxy Edition
  • 500k Club
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Victoria 2: Heart of Darkness
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Arsenal of Democracy
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • For The Glory
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Victoria 2
Ok, here's what I'm trying to do:

I was trying to script an event that gives any country all the techs at any moment (i.e.: F12+event 666 POL, F12+event 666 LUX, etc.).

Now, considering my poor knowledge of programming, I copy pasted all the techs in an event for some beta testing (in this case the Rhineland) but all I get is a CTD after three days (in the game that is). I've also tried this in other events.
I've also tried modifying the starting techs for a country (also by copy-paste) but the result is the same: CTD.

So I was trying to make an event that only appears for the Human Player, but I failed miserably.

I've already made a list with ALL the tech numbers that I want.

So can somebody help me? Is there any way I can give all the techs via event?

EDIT: version 1.05c vanilla
 

Alexandru H.

Field Marshal
6 Badges
Aug 31, 2002
4.437
95
  • Europa Universalis IV
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Surviving Mars
  • Cities: Skylines
  • Crusader Kings II
show us your event first...

btw, it's better to follow the example of events that give away techs, like the spanish war
 

elbasto

Tier 1 minion
82 Badges
Aug 12, 2003
3.502
2
  • Stellaris: Galaxy Edition
  • 500k Club
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Victoria 2: Heart of Darkness
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Arsenal of Democracy
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • For The Glory
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Victoria 2
It would be something like this:
PHP:
event = {
	id = 
	random = no
	persistent = yes
	country = 
	trigger = {

	}
	name = "All your techs are belong to us"
	desc = "Please allow me to introduce myself I'm a man of wealth and taste
I've been around for a long, long year Stole many a man's soul and faith
And I was 'round when Jesus Christ Had his moment of doubt and pain Made damn sure that Pilate Washed his hands and sealed his fate
Pleased to meet you Hope you guess my name But what's puzzling you Is the nature of my game

I stuck around St. Petersburg When I saw it was a time for a change
Killed the czar and his ministers Anastasia screamed in vain
I rode a tank Held a general's rank When the blitzkrieg raged And the bodies stank
Pleased to meet you Hope you guess my name but what's puzzling you Is the nature of my game, oh yeah

I watched with glee While your kings and queens Fought for ten decades For the gods they made…
"
	style = 0

	date = { day = 1 month = january year = 1936 }

	action_a = {
		name = "YES! Take me, I'm evil..."
		command = { type = gain_tech which = 12000 }
		command = { type = gain_tech which = 5972 }
	action_b = {
		name = "NEVER! Fair play above all..."		

	}
}

I wanted to make this event aviable for all the countries... that is, one random event that triggers the 1st of Jan of 1936 for every single country

(I didn't put all the techs because the post length would have been too big)
 

jdrou

Field Marshal
74 Badges
Jun 10, 2002
24.161
461
  • Stellaris: Federations
  • Europa Universalis IV
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Paradox Order
  • Stellaris: Digital Anniversary Edition
  • Humble Paradox Bundle
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: El Dorado
  • Europa Universalis III: Collection
  • Europa Universalis III: Chronicles
  • 500k Club
  • 200k Club
  • Europa Universalis IV: Dharma Pre-order
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Imperator: Rome Deluxe Edition
  • Europa Universalis IV: Golden Century
  • Stellaris: Megacorp
  • Europa Universalis IV: Dharma
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Deus Vult
  • Darkest Hour
  • Crusader Kings II
  • Hearts of Iron II: Armageddon
  • Arsenal of Democracy
  • Hearts of Iron Anthology
  • Victoria 2
  • Rome Gold
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Hearts of Iron III
  • For The Glory
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Stellaris: Galaxy Edition
Minor detail you should be aware of: the first day of the month is 0 not 1.

If you only intend to fire it from the console you don't need any trigger or date (or probably country) since those are ignored when firing from the console. You could give the event to countries other than the one you are playing by using event <event #> <country tag> as you showed in your first post.

If you want the event to fire for every country you will need a separate event for each one. If the event is random then it may never fire and not having any triggers or an offset may cause problems.
 
Last edited:

elbasto

Tier 1 minion
82 Badges
Aug 12, 2003
3.502
2
  • Stellaris: Galaxy Edition
  • 500k Club
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Victoria 2: Heart of Darkness
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Arsenal of Democracy
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • For The Glory
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Victoria 2
OK, thanks for the feedback.
I've managed to trigger the event for Germany. The problem is that the only way to avoid a CTD is to be on some of the interface screens when the events trigger (i.e. industry, diplomacy, etc,) and NOT viewing a specific unit/province.
Why? Well, I believe (and I am just GUESSING) that this is because after I received all the techs the game couldn't change the units/province values (soft attack, IC, etc.) while I was looking at them.
So, the event caused CTD several times, until I selected the Industrial output interface in the ledger, in that case, the game didn't crashed (not until 1940, when I quit for testing purposes) in different occasions.
But I'm still not sure what's causing the CTD, maybe a more experienced modder could give me the answer.
Finally jdrou, I might give it a try and script it for every country (when I have the time), it might be interesting to see a world war with ALL the techs (aka: "All your techs are belong to us").

Anyway, thanks for your help people in this, my first modding attemp. Any other comment would be appreciated.