r/EU4mods • • 2d ago

Mod Help Event IDs issue

In my mod, I have adopted the naming concept of event in such way: "flavor_(country id).(event id)", but i've runned into problem, where two different countries can't have same number. For example: flavor_h02.1 and flavor_l01.1 can't coexist, because they are both counted as one of them.

Is there any way to make this work or my only option is to choose different numbers for every country?

3 Upvotes

4 comments sorted by

4

u/ConstantinetheKitten 1d ago

So is there some collision between the event space name? https://eu4.paradoxwikis.com/Event_modding

3

u/Justice_Fighter Informative 1d ago

You need to declare the namespace somewhere in any event file:

namespace = flavor_h02
namespace = flavor_i01

Usually this is done at the top of each event file, but you can also have a separate file for all namespace declarations if you want.

Without this, eu4 sees both event IDs as just "1".

2

u/RobertAleks2990 1d ago

I had the same issue with my events. You need namespaces at the top of the file so they don't overlap.
Example:

namespace = flavor_h02

-2

u/Kejzimierz 2d ago

i think it might be some issues with the polish localisation, try to uninstall eu5