Jump to content

General Modding - Issue with Overwrites


Recommended Posts

Posted

So - I've been attempting to write some patches for some other mods (personal modifications, etc...). I've noticed some disturbing behavior in the way the game handles load order, specifically when trying to overwrite EVENTS from other mods. To give an example - I'll have a file located in the events folder with the same folder convention as the source mod. I'll name my file and overwrite the event. I'll have my mod lower in the load order than the base mod. So the behavior I see is when the game loads I receive a RANDOM file in the error.log file's notice for "Duplicated event ID". Sometimes my file gets chosen, sometimes the core mod's gets chosen. I've seen note this happens even with small changes (like and extra comment or space) in the overwrite mod, or sometimes, even without any changes at all.

 

This problem seems to have been seen by another modder on the paradox forum: #post-26942184 which was submitted as a bug but never followed up on?

 

Has anyone else seen this issue or know a solve for it?

Posted

There are some inconsistent behaviours in the way modding works in CK3 (and other paradox games). In some areas you can simply make your own files and  insert new code or append existing code quite easily and they load. In other areas you can't have the same functions in different file names or can't do anything except replace an entire file with the same name. Sometimes you'll see mods using z prefixes to ensure the mod file is loaded after any other version of the same file because it loads alphabetically.

 

Events are a good example. You cannot have two different files loaded with the same event names. So if you want to alter an existing game event, you have to replace the entire original event file from the source and keep the same file name. This is one of the reasons maintaining a mod isn't simply fixing it if it crashes, failing to maintain overwritten files can mean whole new game functions from paradox are missing when a mod overwrites a key file with an older version.

Posted
8 hours ago, GallowsUK said:

You cannot have two different files loaded with the same event names. So if you want to alter an existing game event, you have to replace the entire original event file from the source and keep the same file name.

 

This is what I did not know and explains why the games has a 50/50 to load either file. *sigh* alright - noted and I really appreciate the input.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...