AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D(2)] Remove Lobby Reservation (When Full) (https://forums.alliedmods.net/showthread.php?t=94415)

Downtown1 06-11-2009 00:06

[L4D(2)] Remove Lobby Reservation (When Full)
 
2 Attachment(s)
[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.

fpsbrian 06-11-2009 01:10

Re: [L4D] Remove Lobby Reservation (When Full)
 
Awesome, can't wait to test it out!

Naow 06-11-2009 03:59

Re: [L4D] Remove Lobby Reservation (When Full)
 
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!

Downtown1 06-11-2009 04:03

Re: [L4D] Remove Lobby Reservation (When Full)
 
Quote:

Originally Posted by Naow (Post 846152)
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).

Naow 06-11-2009 04:08

Re: [L4D] Remove Lobby Reservation (When Full)
 
Quote:

Originally Posted by Downtown1 (Post 846155)
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)

Downtown1 06-11-2009 04:22

Re: [L4D] Remove Lobby Reservation (When Full)
 
Quote:

Originally Posted by Naow (Post 846157)
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...)

Naow 06-11-2009 04:49

Re: [L4D] Remove Lobby Reservation (When Full)
 
Okay , I will try , thx for your work

AtomicStryker 06-11-2009 05:49

Re: [L4D] Remove Lobby Reservation (When Full)
 
Plugin fails to compile if you click the .sp Link


fatal error 120: cannot read from file: "left4downtown.inc"

Naow 06-11-2009 06:19

Re: [L4D] Remove Lobby Reservation (When Full)
 
Quote:

Originally Posted by AtomicStryker (Post 846190)
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 :)

EpicFailGames 06-11-2009 08:14

Re: [L4D] Remove Lobby Reservation (When Full)
 
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....

:|


All times are GMT -4. The time now is 05:15.

Powered by vBulletin®
Copyright ©2000 - 2022, vBulletin Solutions, Inc.