-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fatal error on MenuBuilder:load_settings() #23
Comments
When you use the MenuBuilder provided as part of HopLib, it is expected to actually have HopLib in the mods folder. Judging by your report, you copied the menu builder to your testmod to use from there? |
Yup that's exactly what I did, I thought each file was a stand-alone library. Now I've installed HopLib as a separate mod, and included this inside my mod.txt: "dependencies" : {
"pd2-hoplib" : { "meta" : "https://updates.hoppip.at/pd2-hoplib" }
}, I copied this lines from another mod of yours that uses HopLib (I should have checked how your mods use HopLib in the first place). I guess this is the correct way to go about it cause now everything works fine. Thanks for your help! |
Yes, this is how you are supposed to use it, glad you could sort it out! |
I've been having issues using 'MenuBuilder.lua'. The script works fine if there is no settings file in 'PAYDAY 2\mods\saves'. But if that file exists when I open the game my TestMod won't load in correctly and there is no settings menu under the in-game mod options.
Reading the logs at 'PAYDAY 2\mods\logs' I get this error:
If I understand the logs correctly the problem is on this line:
because the function table.replace() does not exist.
I've searched on the Lua Reference Manual and under Table Manipulation I see there is no mention about a table.replace() function. Could this be an old and deprecated function that no longer works?
Furthermore, the manual does not have a table.union() function, so maybe there is also a problem on line 90:
I'm completely new to both modding and the Lua language and I don't really know what I'm doing. I don't even know if looking up the functions in the online manual was the correct move or if that has nothing to do with the error I'm having.
This problem could very well be caused by an error on my part and in that case I'm sorry to bother, but I'd like to understand what I'm doing wrong.
The text was updated successfully, but these errors were encountered: