Jump to content

A Question about Loading and Event Running Order


JaredBGreat

Recommended Posts

I just need something clarified.  I've always assumed that the running of load time events went something like this:

 

1. Run pre-init for all mods

2. Run init for all mods

3. Run post-init for all mods

 

Where the operative part is "for all mods" -- that is, that regardless of load order or dependencies (or the absence of dependencies), init would not run until after all mods have run pre-init, and likewise with post-init running after all mods have run init.  However, that was something of an assumption.

 

So, was I right?  Or would a mod set to load after another (or just after it in the directory) actually complete all its initializations before another is loaded?  This could be useful to know for things like APIs.  Whether or not it has any relevant to the poorly designed and apparently broken API I'm trying to fix is another thing, but this would be a useful thing to know and be sure of.

Developer of Doomlike Dungeons.

Link to comment
Share on other sites

17 minutes ago, JaredBGreat said:

Where the operative part is "for all mods" -- that is, that regardless of load order or dependencies (or the absence of dependencies), init would not run until after all mods have run pre-init, and likewise with post-init running after all mods have run init.

That is correct. Mod loading order only determines the order in which mods are passed the FML lifecycle events. If mod A requires mod B and mod B requires mod C then the loading order would be the following:

Pre-Init: C, B, A -> Init: C, B, A -> Post-Init: C, B, A

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.