Author Topic: Packaging Add-ons Within a Gamemode  (Read 2020 times)

I'm remaking my old "Speed DM" Gamemode I wanted to find out if it is possible to package add-ons into the gamemode itself.  I will credit someone in the making of this gamemode for giving me the correct answer.

Sure, add a server.cs file and add it to your addons list.

The easiest way to do that:
make an unzipped version of the addon you want to package with it,
plop into gamemode dolder

make server.cs, and in the file, put
exec("./Script_whatever/server.cs");
put server.cs into gamemode folder
make sure that script is in the gamemode zip!

in gamemode.txt, add

ADDON Gamemode_SpeedDM

that should be all

if you need more, just repeat same process and just addon to server.cs

Final product

in Gamemode_SpeedDM
   server.cs
   Script_Whatever (UNZIPPED)
   gamemode.txt
   other gamemode stuff...

-important information-
So if I wanted to add a weapon I just transfer all of it's contents unzipped into the gamemode folder and then put the exec("./Script_whatever/server.cs"); thing in there?

Or just add the weapon file to the auto exec file list in gamemode.txt

Please just list the add-ons in gamemode.txt. Don't package them with it.

Please just list the add-ons in gamemode.txt. Don't package them with it.
You want to package them in if your game mode uses alot of custom add-ons and you don't want to require people to download them all.

If an add-on is updated, you will be stuck with the old version.

If an add-on is updated, you will be stuck with the old version.
You'd package them in when your game mode is ready to be released, and if it works with the current version then there is no need to update it.

if it works with the current version then there is no need to update it.

If there is a major update, of course there'll be a need to update.

If there is a major update, of course there'll be a need to update.
Not if your game mode is released and works perfectly with the old version.

If anything, people having newer versions of the add-on than your gamemode was designed with it might break everything.

If people want to distribute mods with their gamemodes, they should set up a zip structure like this:

- Main zip file.zip
   - GameMode_Whatever.zip
   - Other_Mods.zip
   - Fun_stuff.zip

Then just have people extract it to their add-ons folder.

If people want to distribute mods with their gamemodes, they should set up a zip structure like this:

- Main zip file.zip
   - GameMode_Whatever.zip
   - Other_Mods.zip
   - Fun_stuff.zip

Then just have people extract it to their add-ons folder.
Okay, I'll do that then. Locking thread, thanks for the help again guys.