MelonLoader

MelonLoader

242 Downloads

[Enhancement]: Steam Workshop Support

eterlan opened this issue ยท 5 comments

commented

Describe the new feature or enhancement

Thanks for your great plugin! It would be nice if I can hide the console or customize Mod path in the user config file, how do you think about that?

commented

At the moment, it's already possible to hide the console using the --melonloader.hideconsole launch argument (however I still feel like it should be a config, and the configs themselves should become more exposed).

For the custom Mods path config, could you give a few examples to prove that it would be useful in any way?

commented

You can change the main directory for all of MelonLoader's folders (including Mods) by giving a directory alongside --melonloader.basedir, though you still need version.dll in the game's directory to load it and have everything else in a different folder.

commented

At the moment, it's already possible to hide the console using the --melonloader.hideconsole launch argument (however I still feel like it should be a config, and the configs themselves should become more exposed).

For the custom Mods path config, could you give a few examples to prove that it would be useful in any way?

Thanks for reply! Actually I'm develop a game, and I would like to use Steam workshop, which use different folder in steamapp/workshop/xxx1/dll, so..
Another question is may I control which mod to load? Do you have any API to control this?

commented

You can change the main directory for all of MelonLoader's folders (including Mods) by giving a directory alongside --melonloader.basedir, though you still need version.dll in the game's directory to load it and have everything else in a different folder.

Thanks for reply! Good to know that.

commented

At the moment, it's already possible to hide the console using the --melonloader.hideconsole launch argument (however I still feel like it should be a config, and the configs themselves should become more exposed).
For the custom Mods path config, could you give a few examples to prove that it would be useful in any way?

Thanks for reply! Actually I'm develop a game, and I would like to use Steam workshop, which use different folder in steamapp/workshop/xxx1/dll, so.. Another question is may I control which mod to load? Do you have any API to control this?

There is no set API, given that mods initialize sequentially, so it wouldn't make much sense to have a mod stop the initialization of another. However, a simple way to do this is to just use a plugin and move any mods you don't want to load can be moved out of the mod folder (possibly into a subfolder or completely separate folder).

Another way that gives more flexibility (like disabling mods at runtime) would be to create your own set of events for mods to subscribe to.