Author Topic: Is it possible to make sure an add-on is loaded regardless of gamemode?  (Read 3999 times)


Badspot

  • Administrator
Unfortunately, no.  The purpose of a game mode is to provide a consistent, reliable user experience that is what the author of the game mode intended.  This means loading a known set of add-ons in a known order.  If you want to load a custom set of add-ons you should start a custom game or make a new game mode. 

The problems I'm trying to address here are that users are constantly having problems with conflicting add-ons and content creators are constantly getting false bug reports that are the result of add-on conflicts.  The gamemode system is an improvement for both parties. 

What about things like adminchat? The /hosts/ want those kinds of things enabled.

I believe that server add-ons with no content can be executed through the console, and sometimes start automatically. Proof: My server eval runs in a gamemode that doesn't include it without me starting it through the console.

goddamnit i've said it 3 times now, i know that contentless add-ons can be started with exec()

the question is this: how do you start it automatically?

the question is this: how do you start it automatically?

and sometimes start automatically. Proof: My server eval runs in a gamemode that doesn't include it without me starting it through the console.

.......
it randomly decides to automatically launch contentless add-ons?

wtf.

Hey guys something completely random just happened that wasn't supposed to and I don't know why or how! Must be proof of something!

Xalos' phenomena was most likely caused by packages being forgeted up, which is a known and prevalent issue

Dedicated servers default to starting in "legacy mode" (custom with all add-ons enabled).

I posted the code to do it but Badspot removed it. He also sent me a PM saying that he would block that workaround.

If you want to discuss the merits of add-ons vs gamemodes we can do that in this thread http://forum.blockland.us/index.php?topic=204740.0 or via PM
Okay. I can see the point of having gamemodes for (mainly single-player) fully packaged "experiences" (such as the click challenge you posted), but for many things that I'd still see as "gamemodes" (such as Slayer, TDM, freebuilds, or my DM gamemode) but are still more abstract and benefit from being treated more like presets for the custom gamemode (although I still think they should show up in the gamemode menu). Then there's also the things that are useful for just about any multiplayer server regardless of gamemode, such as RTB or Permissions. I can see your goal in trying to protect admins and content creators from conflicts, but I think you're going too far. Leaving forceRequiredAddOn able to request any add-on would, in my opinion, be a good compromise, since it's still up to the add-ons, not the users, to request said add-ons. That said, the "dream scenario" would be separating between "experiences" (which work like the gamemode system currently works) and more free-form "gamemodes" (which are basically templates for custom).

forceRequireAddOn really should be enabled. Mod makers know what mods they want need enabled for their add-on to run. if the gamemode maker is a loving handicap and left it out, the add-on maker will get blamed.

Badspot sent me a message.

Subject: Loading add-ons in addition to gamemodes

This is not something that I want to have happen.  I have explained it here http://forum.blockland.us/index.php?topic=204740.msg5661219#msg5661219

The code you posted in that thread will not work in upcoming versions.  It's nothing personal, I just don't want the gamemode system to be undermined like that. 

My response.

Subject: Re: Loading add-ons in addition to gamemodes

It would be extremely helpful to modders if you allowed us to create custom game modes where the user is allowed to select additional add-ons. This would be done by the creator of the game mode placing the word "CUSTOM" in their gamemode.txt. The core required add-ons for the gamemode would be force-enabled, but the user would be able to select additional mods, such as a server voting mod or autosaver.

Really, the current system is far too rigid and is quite useless for modders. We need more flexibility.