-
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
Disable MAD mods on leaving server #670
Comments
In a similar vein as this: R2Northstar/NorthstarMods#263 Any mods that get enabled/disabled specifically to join a server should get reverted back to the state they were in after leaving the server. Some pointers for implementation:
|
For implementation can't we enable/disable the mods according to the server without writing it to enabledmods and then on every server leave we load enabledmods again to reset to the previous state |
Yeah that would work, could have "temporarily" enabled/disabled mods by doing that. However reloading mods on every server leave isn't great, we should check to make sure that there are currently some "temporarily" enabled/disabled mods first |
Can we really avoid using enabledmods here? |
Launcher-side, is there any particular method (hook?) that is triggered on leaving a game? |
Is this what you're looking for? I think this might be it. So this is my first time collaborating on Northstar, so I'm not entirely sure how this works, but do you need a C++ function or a Squirrel function? I found this callback in the Respawn API (Squirrel). void AddCallback_OnClientDisconnected( void functionref( entity player ) callbackFunc ) I'm assuming C++, I just don't know where to look, really. We could also use |
Thanks for taking a look! |
Yes
Simply dont do anything on leave (apart from reloading mods) and only care about joining. If you dont touch enabledmods youll be a-okay. |
That's what I ended up doing in #758. |
Sorry, should have checked. Sorry for replying so late as well. I'm retiring and likely not coming back (emphasis on likely) because the vanilla (the only servers I played on, used Vanilla+) community have constantly been resolve-breakingly rude sometimes and I'm just drained of any motivation to continue playing or even develop mods/here. I could play on Northstar servers but again I'm just so drained. I might come back but it'll probably be a while. |
Nah, I can't leave. I love this game too much. I was just really already mad yesterday and one guy in a match was just my final straw. This game's too good to abandon, and I was acting REALLY dramatic. Sorry :( I can look and try finding a server-side function, if that would help. |
Thanks for looking, but this issue should be solved once #758 is merged. |
Got it! If you need any help let me know :D |
As we don't want MAD mods to conflict with other mods, mods that have been downloaded to join a server should be disabled after leaving said server.
The text was updated successfully, but these errors were encountered: