Raised This Month: $239 Target: $400
 59% 

[L4D(2)] Remove Lobby Reservation (When Full)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Downtown1
Veteran Member
Join Date: Mar 2004
Plugin ID:
954
Plugin Version:
1.1.1
Plugin Category:
Server Management
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    245 
    Plugin Description:
    Old 06-11-2009 , 00:06   [L4D(2)] Remove Lobby Reservation (When Full)
    Reply With Quote #1

    [L4D(2)] Remove Lobby Reservation (When Full) 1.1.1

    Synopsis
    Are you tired of lobby reservation ruining your day? Want to change the gamemode after connecting to your server from the lobby, but can't? Want to have more than 8 players connect to your server after you connected from a lobby?

    This plugin solves these problems by automatically removing the reservation once the server is "full" (meaning the maximum amount of players that can join a server from a lobby). This means 8 for a versus/scavenge lobby, 4 for a survival/coop lobby.

    Once all the lobby players are connected, it will automatically remove the lobby reservation and you can now change the gamemode or tell the rest of your friends to connect via the console for some 8v8 action (note: separate plugin is required for proper 8v8 support).

    You can verify your server is unreserved at anytime by typing in status in console and looking for a line (unreserved) next to (not hibernating).

    Commands
    Admin (BAN flag):
    • sm_unreserve - Manually remove lobby reservation at anytime

    Cvars
    • l4d_unreserve_version - the version of this plugin
    • l4d_unreserve_full - (1) Automatically unreserve the server when it gets "full" (8 at versus/scavenge, 4 at coop/survival), (0) disabled

    INSTALLATION
    • 1. Upgrade to SourceMod 1.3 or later.
    • 2. Install latest Left 4 Downtown extension from here (0.4.0 or later required).
    • 3. Place .smx file into /addons/sourcemod/plugins

    You will need to buy extra slots from your GSP, i.e. +maxplayers 16 on the command line, to get more than 8 players

    Notes: To developers of other plugins, feel free to use all this code to add unreserving to your own (existing?) plugins. View this more of a sample plugin than anything, since I'm only planning to maintain this for bugfixes only.

    CHANGELOG
    • 1.1.1 - Removed message when server has been unreserved automatically. It will always be unreserved as soon as the server is full.
    • 1.1.0 - Removed "IsReserved" check which prevented plugin from working on Linux after the function was removed from the server binary.
    • 1.0.0 - Initial release

    Views:
    * 1.0.0 - 1491 (smx), 469 (sp)

    The .SP file will fail to compile using the web compiler, download the .SMX file instead.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4dunreservelobby.sp - 4651 views - 3.2 KB)
    File Type: smx l4dunreservelobby.smx (3.6 KB, 14377 views)

    Last edited by Downtown1; 01-08-2010 at 14:03. Reason: updated description
    Downtown1 is offline
    fpsbrian
    Senior Member
    Join Date: Feb 2008
    Old 06-11-2009 , 01:10   Re: [L4D] Remove Lobby Reservation (When Full)
    Reply With Quote #2

    Awesome, can't wait to test it out!
    __________________
    fpsbrian is offline
    Naow
    Senior Member
    Join Date: Feb 2009
    Old 06-11-2009 , 03:59   Re: [L4D] Remove Lobby Reservation (When Full)
    Reply With Quote #3

    It doesnt work in my server , the plugin is loaded ,your extension installed , l4d_maxplayers 14 and sv_visiblemaxplayers 10.
    Players 8/10 -> server is full
    It shows a message when a tank spawn ( client connected or something like that)

    Thx!
    Naow is offline
    Downtown1
    Veteran Member
    Join Date: Mar 2004
    Old 06-11-2009 , 04:03   Re: [L4D] Remove Lobby Reservation (When Full)
    Reply With Quote #4

    Quote:
    Originally Posted by Naow View Post
    It doesnt work in my server , the plugin is loaded ,your extension installed , l4d_maxplayers 14 and sv_visiblemaxplayers 10.
    Players 8/10 -> server is full
    It shows a message when a tank spawn ( client connected or something like that)

    Thx!
    Did you update to the 0.3.0 extension, the unreserve functionality wasn't added until earlier today. Once 8 players connect it should print to chat that the server got unreserved (which you can verify by typing in 'status' and it will say if it's currently reserved or not).
    Downtown1 is offline
    Naow
    Senior Member
    Join Date: Feb 2009
    Old 06-11-2009 , 04:08   Re: [L4D] Remove Lobby Reservation (When Full)
    Reply With Quote #5

    Quote:
    Originally Posted by Downtown1 View Post
    Did you update to the 0.3.0 extension, the unreserve functionality wasn't added until earlier today. Once 8 players connect it should print to chat that the server got unreserved (which you can verify by typing in 'status' and it will say if it's currently reserved or not).
    Yea i use the latest version of your extension , my server is correctly unreserved (status) when a player leaves and a new one enters , it prints a message [Unreserved]...(can't remember)
    Naow is offline
    Downtown1
    Veteran Member
    Join Date: Mar 2004
    Old 06-11-2009 , 04:22   Re: [L4D] Remove Lobby Reservation (When Full)
    Reply With Quote #6

    Quote:
    Originally Posted by Naow View Post
    Yea i use the latest version of your extension , my server is correctly unreserved (status) when a player leaves and a new one enters , it prints a message [Unreserved]...(can't remember)
    Ok, oops, uploaded a version with debug printing on by accident. Uploaded an SMX with that disabled.

    Anyhow, once you get 8 players in it should say
    Quote:
    [SM] A full lobby has connected, automatically unreserving the server.
    This will only happen if the server is already reserved (won't do anything if it's unreserved). After that you can confirm it by typing 'status' it will say (unreserved) or (reserved 1234567890...)
    Downtown1 is offline
    Naow
    Senior Member
    Join Date: Feb 2009
    Old 06-11-2009 , 04:49   Re: [L4D] Remove Lobby Reservation (When Full)
    Reply With Quote #7

    Okay , I will try , thx for your work
    Naow is offline
    AtomicStryker
    Veteran Member
    Join Date: Apr 2009
    Location: Teutonia!!
    Old 06-11-2009 , 05:49   Re: [L4D] Remove Lobby Reservation (When Full)
    Reply With Quote #8

    Plugin fails to compile if you click the .sp Link


    fatal error 120: cannot read from file: "left4downtown.inc"
    AtomicStryker is offline
    Naow
    Senior Member
    Join Date: Feb 2009
    Old 06-11-2009 , 06:19   Re: [L4D] Remove Lobby Reservation (When Full)
    Reply With Quote #9

    Quote:
    Originally Posted by AtomicStryker View Post
    Plugin fails to compile if you click the .sp Link


    fatal error 120: cannot read from file: "left4downtown.inc"
    I used the .smx

    The problem is still here , can't join when there are 8 players : /

    Tell me if it works for you guys

    Last edited by Naow; 06-11-2009 at 06:22.
    Naow is offline
    EpicFailGames
    Member
    Join Date: Jun 2009
    Old 06-11-2009 , 08:14   Re: [L4D] Remove Lobby Reservation (When Full)
    Reply With Quote #10

    Hmmm.. I updated to the latest version of the downtown extension and Super Versus, among others... I will test out this mod when I get home this evening...

    Hopefully there will be at least one confirmed post of success by then... *Can't compile....

    EpicFailGames is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 23:33.


    Powered by vBulletin®
    Copyright ©2000 - 2017, vBulletin Solutions, Inc.
    Theme made by Freecode