To mod authors using mod_hooks: Please use the ::mods_queue feature (new as of mod_hooks version 15) in future versions of your mods. This lets mods declare dependencies and incompatibilities with other mods so that mod_hooks can dynamically reorder the mods to satisfy their dependencies, and I hope it will become standard. Even if you don't have any relationships to declare, using ::mods_queue ensures that your mod can participate in the dynamic ordering. See the description tab for more details. Also, this feature is new, so please let me know if you run into any problems. Converting a mod is simple. If your mod normally does: ::mods_registerMod("foo", 1); ... your hooks here ...
Change it to: ::mods_registerMod("foo", 1); ::mods_queue(null, null, function() { ... your hooks here ... });
Also, since version 16, the restrictions on mod names and versions are enforced. See the documentation for ::mods_registerMod for details.
As of version 19, mod authors must exercise special care if they compile their own .cnut files (which is usually not necessary). See the documentation for ::mods_hookClass for details.
As of version 20, it is now possible (usually) to hook exact classes rather than hooking a base class and trying to find a particular child. See ::mods_hookExactClass for details.
As of version 21, 'new' hooks work more reliably (i.e. in more situations), but class-based hooks are still better if applicable.
yeah theres something wrong with ur mod, it doesn't work with an updated mod, maybe legends? idk but it just doesn't work. The error is
Mod mod_hooks (modding script hooks) version 21.1 had an error (the index 'getLootForTile' does not exist) during its hook on bb class scripts/entity/tactical/enemies/spider
Edit: okay after reading that Legends doesent requires modding script hooks anymore, i removed it and it worked (had to remove favoured_enemy_refund mod for legends aswell)
seems like i can now play on newest version with my 26 other mods
Yeah, Legends had its own, internal version of mod_hooks that might conflict with this one. I think they have a whitelist of allowed mods in the Legends documentation...
I'm having problems running some mods on my laptop. I deleted all mods except for mod hooks and MSU. I keep getting an error with mod hooks and my game ends up shutting down. https://pastebin.com/BJ0YwW19.
im getting a stupid error that says "mod mod_hooks (modding script hooks) version 21.1 had an error (the index 'getTooltip' does not exist) during its hook on bb class scripts/skills/actives/ghoul_claws."
i literally havnt done anything, i just booted the game up and it gave me this message and have no idea how to fix it? any ideas anyone?
Hi guys. I just updated the game and gave it a try. I have all 22 of my mods installed (plus one third-party mod) and didn't notice any obvious problems. I didn't test every mod, but the ones I did test worked and I didn't notice any errors in my log file, either. Could you give more details about the error and a list of mods you have installed?
@AdamMil01 same. its prob because of Legends: https://ibb.co/d4bNTDrw https://ibb.co/gbcK98Cj --- sorry, couldn't figure out how to insert the pictures. these are the pictures, I swear -_-
Hey guys i'm not good at coding so can anyone help Just updated my mods and every time i open the game this keeps popping up how to fix https://postimg.cc/Hj54PJR7
After updating Modern Hooks, and Modding Script Hooks, all the other mods I have installed that rely on them stopped working. Do I need to wait for updates for those mods too, and then reinstall them?
Does anyone know of any good youtube tutorials for using this? I'm not at all experienced in programming and looking at this makes a physical woosh sound because it just goes over my head.
223 comments
::mods_registerMod("foo", 1);
... your hooks here ...
Change it to:
::mods_registerMod("foo", 1);
::mods_queue(null, null, function()
{
... your hooks here ...
});
Also, since version 16, the restrictions on mod names and versions are enforced. See the documentation for ::mods_registerMod for details.
As of version 19, mod authors must exercise special care if they compile their own .cnut files (which is usually not necessary). See the documentation for ::mods_hookClass for details.
As of version 20, it is now possible (usually) to hook exact classes rather than hooking a base class and trying to find a particular child. See ::mods_hookExactClass for details.
As of version 21, 'new' hooks work more reliably (i.e. in more situations), but class-based hooks are still better if applicable.
Mod mod_hooks (modding script hooks) version 21.1 had an error (the index 'getLootForTile' does not exist) during its hook on bb class scripts/entity/tactical/enemies/spider
Edit: okay after reading that Legends doesent requires modding script hooks anymore, i removed it and it worked (had to remove favoured_enemy_refund mod for legends aswell)
seems like i can now play on newest version with my 26 other mods
Thanks for taking a look. Appreciate it.
i literally havnt done anything, i just booted the game up and it gave me this message and have no idea how to fix it? any ideas anyone?
We're all waiting on updates lol
same. its prob because of Legends:
https://ibb.co/d4bNTDrw
https://ibb.co/gbcK98Cj
---
sorry, couldn't figure out how to insert the pictures. these are the pictures, I swear -_-
Just updated my mods and every time i open the game this keeps popping up
how to fix
https://postimg.cc/Hj54PJR7
::mods_addField("skills/skill", "skill", "CanTargetAlly", false);
how to do it properly?