Submod_Script_Loader_v1.1.pack

If you liked this item, please rate it up on Steam Workshop page.

Author: Romes_Finest

Last revision: 7 Jan at 12:29 UTC

File size: 138.81 KB

On Steam Workshop

Description:

A custom loader for TDD scripts. Works with scripts compatible with it.

A couple of things modders need to know to use it:
– The loader calls FirstTick action on its own. This was done to establish a suitable plugin point to the main TDD framework. This means your scripts should not do that at all. All you need to do, is execute your code, wrap your logic in a function and run it, at most.
– The loader also fires during UI creation.
– The loader finds scripts registered in it in referenced paths. Your paths need to be correct for it to work. It does not scan folders, as this is outside of Lua capabilities.
– The loader is meant to be used once, as close to the starting order of loading by the game as possible, so other loaders in other scripts need to go and should not be used for it to work.
-Finally, end users looking to use it may find themselves needing to edit the script themselves. This is currently unavoidable, because of the difficulties of modding Attila. You will need RPFM and you will need to be able, to open this file and type in the path to your submod scripts in the table. The standard format is "**your mod folder**.**yourscriptname**". Like my immortal characters pack is referenced in the image, exactly the same process. If this was setup correctly, scripts should work. If they don’t because they are not structured to be compatible with my loader, it is not my issue.

Credits
TDD team for making all assets
Frodo for his RPFM tool