Unavailable Event

So I tend to make a lot of focuses give an event as a reward, When I do this I get very mixed results however. Lets say I have an event, "event.1," and I need it to be a reward. When I do the fire event reward one of two things will happen. Either A) the event is fine and will be launched or B) the event is invalid. When exported it will say "invalid_event.id event.1" or something very similiar to it. If anyone can please tell me how to fix this I would greatly appreciate it.

There's nothing in the export code which should cause it to say "invalid_event.id".


Would you be able to provide a bit more information:

  • Which mod(s) you are having this issue with
  • Which event(s) you are having this issue with
  • An example of a focus (and which tree it is in) which calls the event(s)

It appears to be a universal issue, ive had it with almost every mod at least once.

Out of the mods I have right now I am experiencing it on every event. It remains a issue universally over every category of events on every mod I have tried. I don't know what could cause it because without changing anything it may work for seemingly no reason with no change.

Idk what you mean by "what tree," if by which focus tree it happens in; any tree that I put an event in has a high chance of experiencing this issue and isn't isolated to a specific focus tree, if you mean like a focus path; its the same way. And here is an example of the focus reward:

TAG = {

country_event = {

days = 0 

id = event.1 

}


}


(it also still happens of days are set to 1, 2, etc)


Maybe I'm being dumb here, but I am not seeing the issue. 

I had a look at your Polish and Latin mods as an example, and in the code for both of their event files, it didn't say "invalid_event" in place of polish-events or latin-events.

Is the issue occurring only in-game? Or is it something you're seeing in the files itself.

If it is in-game, would you be able to confirm a mod where the error is currently occurring, so that I can download the mod and investigate further?

Yes, the issue occurs in the game. It will display the invalid event id message in the reward section for events. And I did notice that it seems to be less likely to occur in smaller mods.

The best example I can think of is the Tea Drinker mod I am currently working on. If you go to Pitcairn island there is the initator nation and in there focus tree is a Vienna March focus which gives an invalid event for me.

The issue was due to a conflict of file names, meaning some of the event files weren't downloading; for example both the country and events titled "Austria-Hungary" created "austria-hungary_customicons.txt".

This error has now been fixed, and it it appears all of your event files are now exporting as they should.


I'm not sure why the bug report window isn't auto-filling the errors being found, but you appear to have the following errors being recognised by the site on export:

Poland-Lithuania has total party popularity greater than 100% for date: 1936.1.1

Naples has total party popularity greater than 100% for date: 1936.1.1

Brazillian Empire has total party popularity greater than 100% for date: 1936.1.1

Alright thank you. I honestly really appreciate it.