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

I wrote text.csv but wanted to say event.txt. That as because I just added the eventname and so.
 
Re: Re: Re: event in an existing game

Originally posted by Havard
At the end of your savefile there is a list of all the event files included in the savegame. Your event need to be in one of those files. You can either add a new filename to the list or put it into an existing file.

Placing the new filens in events.txt will help for new games.

You're right...I went and tested that, and you're right. Very strange. I've had new events pop up when I loaded a saved game - my theory is that these were changed events using the same number, which I have a habit of doing. So the game didn't notice that the details were different, only that the ID was on its approved list. Go figure.
 
Originally posted by XieChengnuo
I have a problem with some events I'm scripting.

They don't fire when they are supposed to trigger, but when i save, quit and reload, they trigger all of a sudden.

How do I get them to trigger when they are supposed to (in this case, when they end a war with a nation)?
Could you post the events? It's a bit hard to find anything when we haven't got a clue about how the events look. Post them in a new thread :)
 
Oh... something I discovered... an event will not fire if it is trying to remove a building that does not exist. (IE trying to remove a tax collector from a province that does not have one.)
 
dharper said:
You're right...I went and tested that, and you're right. Very strange. I've had new events pop up when I loaded a saved game - my theory is that these were changed events using the same number, which I have a habit of doing. So the game didn't notice that the details were different, only that the ID was on its approved list. Go figure.
The events.txt file is only read when a new game is started; all the individual event files are listed in the savegame and re-read when the save is loaded so new events added to existing files will be available.

Isaac Brock said:
You need to have this flavor_byz.txt (or whatever you called it) included in event.txt.
stapper said:
I wrote text.csv but wanted to say event.txt. That as because I just added the eventname and so.
Changing events.txt will not work (see my reply to dharper). If you don't want to modify an existing event file you need to add the name of the new event file to the savegame in the list of event files near the end of the file; starts with event = "db\events\major_akk.txt".
 
dharper said:
You're probably right. That's the only techgroup error I've ever seen, so I extrapolated from it. I'll change it so I don't mislead anybody.

Thanks for pointing that out! :)
For some reason the program must weird out if a tech group's name is the same as a religion name. I can't understand why, but then, I'm not a C++ programmer.
 
i got a lot of lhs error messages und 'unknown data defined in database' errors but the funny thing is, i get these errors not only for my own events but also for original events (e.g. the fuggers with id = 366301) where i changed nothing.
 
Thanks for the hard work dharper, these details save others hours. I have Havard's guide near the top of my bookmarks. ;)
 
chefkoch said:
i got a lot of lhs error messages und 'unknown data defined in database' errors but the funny thing is, i get these errors not only for my own events but also for original events (e.g. the fuggers with id = 366301) where i changed nothing.
Major thread necromancy here. There is no original event with that number so I assume you are playing some mod. There are probably bugs in the mod in addition to whatever you are adding. Also, a bug in one event (especially missing braces) will frequently cause error messages that refer to later events.