-
Notifications
You must be signed in to change notification settings - Fork 0
Troubleshooting
89pleasure edited this page Jul 18, 2026
·
4 revisions
Check all of the following:
- The folder is exactly
Mods/PleasureLib, notMods/PleasureLib/PleasureLib. -
Mods/PleasureLib/Scripts/pleasure_lib.luaexists. -
Mods/PleasureLib/Scripts/pleasure_lib_settings.luaexists. - The consuming mod's loader is next to its
main.lua. - The loader fallback path has not been changed.
- UE4SS can run other Lua mods successfully.
Use the full Recommended Loader rather than depending only on
require("pleasure_lib").
Verify that enabled.txt exists in the PleasureLib folder. Optionally add
PleasureLib : 1 to Mods/mods.txt while diagnosing the installation.
find_object only finds objects that are available to StaticFindObject at
that time. The path may be wrong or the asset may not be loaded yet.
- Turn on runtime debug logging.
- Retry after the relevant menu, level, or asset has loaded.
- Use
delay_game_threadfor a known lifecycle delay. - Use
capture_new_objectsto discover objects created by a specific action.
Check the boolean return value from delay or delay_game_thread. A false
return means the required UE4SS scheduling helper was unavailable or the
callback was invalid.
- Check the return value from
register_hook. - Confirm the exact Unreal function path.
- For a true native post-hook, pass the callback as the third argument.
- Inspect the UE4SS log for PleasureLib's registration error.
- Confirm
id,get, andsetare present. - Use a globally unique ID such as
MyMod.SettingName. - Check the UE4SS log for registration or widget creation errors.
- Open
Settings -> Mods; PleasureLib exposes a dedicated native Mods page. - Keep
get()andset(value)protected from mod-specific initialization order problems. - For Int and Float settings, ensure
maximumis greater thanminimum. - For Float settings, ensure
stepis greater than zero. - For Enum settings, provide a non-empty
valueslist and usewidget = "spinner"orwidget = "dropdown".
parse_ini converts keys to uppercase. Read ini.ENABLED, not ini.Enabled.
The parser intentionally ignores section headers and does not create nested
tables.
Open an issue with:
- PleasureLib version
- UE4SS version
- Relevant UE4SS log lines
- Minimal code that reproduces the problem
- The object or hook path, when applicable