-
Notifications
You must be signed in to change notification settings - Fork 124
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
Penumbra.ReloadMod API doesn't function properly. #402
Comments
Works fine for me. Are you doing this off mainthread? |
My actual use case is on a separate thread and the test was done in a plugin ctor (which I assume is either a thread or async task), the issue persists even when called from a draw event as in your code. I've uploaded the plugin I used to test this: https://github.com/Sevii77/penumbra_issue On a side note, my current workaround is to delete and add the mod back, which works even on a separate thread. var root = $"{Interface.GetIpcSubscriber<string>("Penumbra.GetModDirectory").InvokeFunc()}/{id}";
Directory.Move(root, $"{root}_TEMP");
Interface.GetIpcSubscriber<string, string, byte>("Penumbra.DeleteMod").InvokeFunc(id, "");
Directory.Move($"{root}_TEMP", root);
return Interface.GetIpcSubscriber<string, byte>("Penumbra.AddMod").InvokeFunc(id); |
Reloading an existing mod doesn't seem to generate default settings or fix invalid settings (not just via IPC). Probably fixed it for next release. |
Creating a new option group and calling
Penumbra.ReloadMod
will not properly reload the mod. The following code creates a new mod, adds a new group, update it, and tries to update the setting of it:Creating and updating the group causes the settings ui to error:
And setting the settings will cause that to throw an exception, this also happens if the group is only created once, and
ReloadMod
called onceThis code also causes my game to crash sometimes but I can't get that to be consistent.
The text was updated successfully, but these errors were encountered: