Hi I am working on a custom event for Europa Universalis IV, but I keep running into errors related to the namespace and event ID definitions. Despite several fixes, the event does not trigger, and the error log keeps showing issues.My event is located in events/my_quiz_events.txt and is structured as follows:namespace = quiz_event
event = {
id = 37200001
title = "The Great Quiz!"
desc = "Which year marked the end of the Hundred Years' War?"
picture = DIPLOMACY_eventPicture
is_triggered_only = yes
option = {
name = quiz_event.1.a # Correct answer
trigger = { always = yes }
hidden_effect = {
add_stability = 1
random_list = {
33 = { add_adm_power = 100 }
33 = { add_dip_power = 100 }
34 = { add_mil_power = 100 }
}
}
}
option = {
name = quiz_event.1.b # Wrong answer
trigger = { always = yes }
hidden_effect = {
add_stability = -1
random_list = {
33 = { add_adm_power = -100 }
33 = { add_dip_power = -100 }
34 = { add_mil_power = -100 }
}
}
}
}
However, my error log continuously shows these messages:
[eventmanager.cpp:389]: unknown namespace 'quiz_frage' defined in event files
[eventmanager.cpp:216]: Corrupt Event Table Entry - event in events/my_quiz_events.txt line: 36
[eventmanager.cpp:442]: Incorrect namespace: quiz_frage
[eventmanager.cpp:398]: Broken id definition 'quiz_frage1' defined in event files
What I Have Tried:
- Ensuring the namespace is quiz_event and that all event IDs use quiz_event.X.
- Changing the event ID from a string (quiz_frage.1) to a number (37200001).
- Verifying the event file is properly placed in the events/ folder.
- Checking events.txt (if necessary) for correct event registration.
- Making sure my localization file (localisation/my_quiz_events_l_english.yml) correctly matches my event IDs:
37200001.title: "The Great Quiz!"
37200001.desc: "Which year marked the end of the Hundred Years' War?"
37200001.option.a: "1453"
37200001.option.b: "1492"
My Questions:
- What might be causing the namespace error?
- Is there anything I’m missing in my event structure?
- Do I need to explicitly register my event in events.txt, or does EU4 automatically load all event files in the events/ folder?
- Could my localization file be affecting event recognition?
- Is there any known issue with how I use hidden_effect or random_list?
Thanks in advance.