Code Monkey home page Code Monkey logo

scpsl-gamemode-manager's Introduction

SCPSL Gamemode Manager

A framework that supports different gamemodes in one single server.

Put sm_config_gamemode.txt in the same folder with config_gameplay.txt to modify gamemodes.

Config

gm_round_sequence: {15%template1|20%template2|template3}, template4

Command

gamemode - Show the current gamemode.

gamemode help - Show the usage of gamemode command.

gamemode list - Show the list of gamemodes.

gamemode setnextmode { [template name] | [plugin id] [spawn queue] [name] } - Set the mode of next round.

gamemode enable - Enable gamemodes.

gamemode disable - Disable all gamemodes.

API

void RegisterMode(Plugin gamemode, string spawnqueue = "-1"); If spawnqueue is "-1", the gamemode will run with default config(team_respawn_queue)

void SetNextMode(Plugin gamemode, string spawnqueue = "-1", string name = null);

Teams[] GetCurrentQueue();

Plugin GetCurrentMode();

string GetCurrentName();

List<Plugin> GetModeList();

scpsl-gamemode-manager's People

Contributors

lordofkhaos avatar rnen avatar shingekinorex avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

scpsl-gamemode-manager's Issues

Gamemode - SCP035

When scp035.dll is loaded, it seems to break SCP106's ability to move people to the portal dimension, he just does 40 damage instead. I tested with GMM enabled and disabled. When GMM is disabled I receive no error messages in the terminal output, but I did receive these messages (which could be unrelated) in the terminal output when GMM and scp035 were installed.

GMM is v2.3, 035 is 2.2 based on what I got from this github. I also have AdminToolbox 1.3.8.7 and CustomAnnouncements 1.7. I am on Mono version 5.20.1.19, ServerMod version 3.4.1-A and MultiAdmin version 3.2.1.

[20:50:56] Sending request to SCP: Secret Laboratory...
[20:50:56] Waiting for players..
[20:50:56] The round is about to restart! Please wait..
[20:50:56] [ERROR] [Event] System.ArgumentOutOfRangeException: 'minValue' cannot be greater than maxValue.
Parameter name: minValue
at System.Random.Next (System.Int32 minValue, System.Int32 maxValue) [0x00029] in :0
at GamemodeManager.SmodAPI.SmodEventHandler.OnRoundRestart (Smod2.Events.RoundRestartEvent ev) [0x00154] in :0
at Smod2.Events.RoundRestartEvent.ExecuteHandler (Smod2.EventHandlers.IEventHandler handler) [0x00000] in <0287d0af57204608998f2238813468a4>:0
at Smod2.Events.EventManager.HandleEvent[T] (Smod2.Events.Event ev) [0x00016] in <0287d0af57204608998f2238813468a4>:0
[20:50:56] [ERROR] [Event] Event Handler: GamemodeManager.SmodAPI.SmodEventHandler Failed to handle event:Smod2.Events.RoundRestartEvent
[rnen.admin.toolbox] Round: 1 started.
[20:51:56] [INFO] [rnen.admin.toolbox] Players this round: 3
[20:51:56] [ERROR] [Event] Event Handler: GamemodeManager.SmodAPI.SmodEventHandler Failed to handle event:Smod2.Events.RoundStartEvent
[20:51:56] [ERROR] [Event] System.ArgumentOutOfRangeException: 'minValue' cannot be greater than maxValue.
Parameter name: minValue
at System.Random.Next (System.Int32 minValue, System.Int32 maxValue) [0x00029] in :0
at GamemodeManager.SmodAPI.SmodEventHandler.OnRoundRestart (Smod2.Events.RoundRestartEvent ev) [0x00154] in :0
at GamemodeManager.SmodAPI.SmodEventHandler.OnRoundStart (Smod2.Events.RoundStartEvent ev) [0x00018] in :0
at Smod2.Events.RoundStartEvent.ExecuteHandler (Smod2.EventHandlers.IEventHandler handler) [0x00000] in <0287d0af57204608998f2238813468a4>:0
at Smod2.Events.EventManager.HandleEvent[T] (Smod2.Events.Event ev) [0x00016] in <0287d0af57204608998f2238813468a4>:0

Where do I set this up?

How should I be setting this up in the server files? At the moment, if I put the gamemodes in the plugins folder with the gamemode manager, it glitches and causes the gamemodes to cycle infinitely, not letting staff of the server enable them manually.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.