If you run into issues with modern hooks, be sure to upload your log file (found in Documents/Battle Brothers/log.html) to a file host somewhere, and link it with your report, without your log file there is almost nothing I can do.
IF THERE ARE MODS THAT REQUIRE MOD HOOKS, YOU WILL STILL NEED TO INCLUDE MOD HOOKS IN YOUR MODLIST. THIS CAN BE SAFELY RUN ALONGSIDE MOD HOOKS
Thanks for carrying on the torch. At the time of the original mod_hooks, much was unknown about how the game worked, especially the details and inner workings of its custom class system, and some of what was "known" turned out to be subtly incorrect or broken by later changes to the game. As a result, the original design of mod_hooks was somewhat flawed, but those flawed bits were kept around in the interest of backwards compatibility. It was also unclear what features modders would need; several features were basically never used by anyone, while some useful features were never added...
It's nice that you can make a clean start with all that we now know. Good luck with the modding and keep up the good work!
Obviously none of this would have been possible without you, the entire modding community owes you pretty much everything.
The inner workings of BB are pretty unique with a bunch of weird stuff that goes on so the fact you couldn't get it all in a few months when it took us years is perfectly understandable. (The logic behind WHY some of it is the way it is still escapes me but oh well)
Modern Hooks 100% learns a lot from mod hooks, and the original API I had in mind for it sucked. It's only with significant feedback from others in the community that it arrived at the form it's at right now, which imo is actually really neat.
I hope you end up taking another look at modding BB (saw you launch the game a couple times :P) and potentially give some feedback on modern hooks if you're feeling extra generous and decide to use it.
bro Endur1el, thank you so much for all the effort you've put into modding this game, I dont use all your mods but I love the ones I do. thanks again and stay healthy <3
Hello. Tell me, please, how can I use Modern Hooks to edit the asset_manager file, the "local slave" variable of the update function, without completely rewriting the function itself?
If you'd like specific help like this then you should join the BB Modding Discord and ask around there. Either I or someone else will help you out, I don't really like helping with specific issues in a forum format.
Unless LEGENDS and SELSWORDS require Modern Hooks, it makes no difference to you. But you can assume that new mods or updates will use Modern Hooks, in which case you would also have to use/download Modern Hooks.
Modern Hooks is for the modders and only indirectly for the players - at least that's how I understand it
So fundamentally, this doesn't really enable anything that would have been impossible before (this is technically untrue but as far as users are concerned mostly accurate), although I say that having experienced years of finding super specific solutions for the edge case scenarios the engine forced onto us, which will mostly be unnecessary using modern hooks. It should make it much easier to start modding, easier to make mods without bugs, and much easier to debug mod compatibility, and specifically that last point is something I could even improve over time as I should be able to add additional validations as people make suggestions.
On the other hand MSU 1.3 will finally add the ability to persistently store data without bbparser so get TaroEld to work on reviewing stuff so we can release :P
That is frankly the most mind-boggling log I've ever seen. First off there is a bug in retirement home https://www.nexusmods.com/battlebrothers/mods/590. You should show the mod author your log, their scripts/!mods_preload/mod_retirement_home_desensitized requires that Sato's of flesh and faith + be installed, otherwise it will spit out errors in the log and not work. Secondly there does seem to be some error in tnf_NewChampions, but you don't actually seem to have the file in your list
Unexpected file or directory found: tnf_17FatigueNimble-69-1-1-1566748427.zip 09:07:00IO Unexpected file or directory found: tnf_allPoleAP-69-1-1-1598708912.zip 09:07:00IO Unexpected file or directory found: tnf_ammoThrowSpear-69-1-1-1566748354.zip 09:07:00IO Unexpected file or directory found: tnf_betterEagleEyes-69-1-1555455157.zip 09:07:00IO Unexpected file or directory found: tnf_debugMode-69-1-4-1607140694.zip 09:07:00IO Unexpected file or directory found: tnf_expandedRetinue-69-1-0-1647255576.zip 09:07:00IO Unexpected file or directory found: tnf_fixAmbitionUpdate-69-1-3-1647177601.zip 09:07:00IO Unexpected file or directory found: tnf_greenskinsNamedWeapons-69-1-0-1649426739.zip 09:07:00IO Unexpected file or directory found: tnf_moreMilitia-69-1-1575728144.zip 09:07:00IO Unexpected file or directory found: tnf_namedShields-69-1-3-1649111438.zip 09:07:00IO Unexpected file or directory found: tnf_oldNorseHelmet-69-1-2-1593786690.zip 09:07:00IO Unexpected file or directory found: tnf_resolveConfident-69-1-1554915467.zip 09:07:00IO Unexpected file or directory found: tnf_revisedNamedItems-69-1-0-1649083754.zip 09:07:00IO Unexpected file or directory found: tnf_seedAnalyzer-69-1-1-1575649411.zip 09:07:00IO Unexpected file or directory found: tnf_triesBowyer-69-1-1-1610832280.zip 09:07:00IO Unexpected file or directory found: tnf_trueNightOwl-69-1-1555455263.zip
None of these are tnf_newChampions, and yet somehow you have their file executing? Finally there is no reference to a Webknecht in the actual tnf_newChampions file, so I have no idea wtf is happening in your modlist. Did you get your tnf_newChampions file somewhere else?
PS: Please do not convert the html file into a txt file, it makes it much harder to read.
Hey Endur1el, thank you for all the work you've put into BB modding. I consider most of your mods required for my playthroughs.
I wanted to use some of your updated mods that require Modern Hooks alongside Emo's SellSwords Updated, but I get this error. I only get this when I have Modern Hooks, SSU loads fine without it. https://imgur.com/BUwHtDV
This is an annoying error caused by a bug in squirrel. I'm working on a workaround right now but if anyone else gets something similar try to just restart the game. It should fix itself. Sorry about that
Hello and thank you for the Modern Hooks. This very well may be an error on my part. I am using the latest versions of Clever Recruiter, EIMO, and Settlement Situations MSU. I also am using MSU 1.2.7. For some reason, Fatal Errors occur:
I see the problem though, this does not replace mod_hooks for mods that require it, and can be run alongside mod hooks. If there are mods that require mod hooks you will still need to have it included in your modlist.
Edit: this is also why with legends you don't have any issues, because legends has mod_hooks included.
I see, just so you're aware, there is no need to do that, and it makes it harder to read the log, just leave the log in it's original format in the future ^^
When I install modern hooks, the black screen of the legends team appears saying that I didn't need to install a hooks, and when I just install the new msu settlements mod, the details do not appear
40 comments
IF THERE ARE MODS THAT REQUIRE MOD HOOKS, YOU WILL STILL NEED TO INCLUDE MOD HOOKS IN YOUR MODLIST. THIS CAN BE SAFELY RUN ALONGSIDE MOD HOOKS
DOES NOT CONFLICT WITH MODDING SCRIPT HOOKS
It's nice that you can make a clean start with all that we now know. Good luck with the modding and keep up the good work!
The inner workings of BB are pretty unique with a bunch of weird stuff that goes on so the fact you couldn't get it all in a few months when it took us years is perfectly understandable. (The logic behind WHY some of it is the way it is still escapes me but oh well)
Modern Hooks 100% learns a lot from mod hooks, and the original API I had in mind for it sucked. It's only with significant feedback from others in the community that it arrived at the form it's at right now, which imo is actually really neat.
I hope you end up taking another look at modding BB (saw you launch the game a couple times :P) and potentially give some feedback on modern hooks if you're feeling extra generous and decide to use it.
Wish you all the best and thanks ^^
thank you so much for all the effort you've put into modding this game, I dont use all your mods but I love the ones I do.
thanks again and stay healthy <3
Why should I use it instead of modding script hooks?
But you can assume that new mods or updates will use Modern Hooks, in which case you would also have to use/download Modern Hooks.
Modern Hooks is for the modders and only indirectly for the players - at least that's how I understand it
On the other hand MSU 1.3 will finally add the ability to persistently store data without bbparser so get TaroEld to work on reviewing stuff so we can release :P
Unexpected file or directory found: tnf_17FatigueNimble-69-1-1-1566748427.zip
09:07:00IO
Unexpected file or directory found: tnf_allPoleAP-69-1-1-1598708912.zip
09:07:00IO
Unexpected file or directory found: tnf_ammoThrowSpear-69-1-1-1566748354.zip
09:07:00IO
Unexpected file or directory found: tnf_betterEagleEyes-69-1-1555455157.zip
09:07:00IO
Unexpected file or directory found: tnf_debugMode-69-1-4-1607140694.zip
09:07:00IO
Unexpected file or directory found: tnf_expandedRetinue-69-1-0-1647255576.zip
09:07:00IO
Unexpected file or directory found: tnf_fixAmbitionUpdate-69-1-3-1647177601.zip
09:07:00IO
Unexpected file or directory found: tnf_greenskinsNamedWeapons-69-1-0-1649426739.zip
09:07:00IO
Unexpected file or directory found: tnf_moreMilitia-69-1-1575728144.zip
09:07:00IO
Unexpected file or directory found: tnf_namedShields-69-1-3-1649111438.zip
09:07:00IO
Unexpected file or directory found: tnf_oldNorseHelmet-69-1-2-1593786690.zip
09:07:00IO
Unexpected file or directory found: tnf_resolveConfident-69-1-1554915467.zip
09:07:00IO
Unexpected file or directory found: tnf_revisedNamedItems-69-1-0-1649083754.zip
09:07:00IO
Unexpected file or directory found: tnf_seedAnalyzer-69-1-1-1575649411.zip
09:07:00IO
Unexpected file or directory found: tnf_triesBowyer-69-1-1-1610832280.zip
09:07:00IO
Unexpected file or directory found: tnf_trueNightOwl-69-1-1555455263.zip
None of these are tnf_newChampions, and yet somehow you have their file executing? Finally there is no reference to a Webknecht in the actual tnf_newChampions file, so I have no idea wtf is happening in your modlist. Did you get your tnf_newChampions file somewhere else?
PS: Please do not convert the html file into a txt file, it makes it much harder to read.
I wanted to use some of your updated mods that require Modern Hooks alongside Emo's SellSwords Updated, but I get this error. I only get this when I have Modern Hooks, SSU loads fine without it.
https://imgur.com/BUwHtDV
Thanks!
The logs are located here:
https://file.io/8ObywBTDXtu9
https://filebin.net/zex24wh41tqxhjyf
Edit: this is also why with legends you don't have any issues, because legends has mod_hooks included.
To change the log into a txt file, I simply copy the information from the original log over to a .txt document and save.
Mod hooks need to be included into the modlist? Got it. Thank you so much!
Edit: Thanks to your guidance, it is working just fine now :).