Raised This Month: $12 Target: $400
 3% 

Immunity Reserve Slots (2.0.8)


Post New Thread Reply   
 
Thread Tools Display Modes
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 08-28-2012 , 16:15   Re: Immunity Reserve Slots (2.0.4)
Reply With Quote #281

Quote:
Originally Posted by Jamster View Post
Oh poop, I knew there was something I needed to test, to see if it worked OK in other games the MvM code! Erm, I'll sort that out, guess I should do a check to only hook that for tf2! Apologies, will get a new one out asap.
Either that or check if it's INVALID_HANDLE before checking its value.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Jamster
Veteran Member
Join Date: Jun 2008
Old 08-28-2012 , 16:35   Re: Immunity Reserve Slots (2.0.5)
Reply With Quote #282

Ah yes, good point, oh well, updated now! :]

I swear I'll be a non-terrible programmer one day.
Jamster is offline
brbeaird
Junior Member
Join Date: Aug 2012
Old 08-28-2012 , 23:12   Re: Immunity Reserve Slots (2.0.5)
Reply With Quote #283

I'm at a loss. I have no idea what else to try. Nothing I do generates an IRS log file or gives any indication that Connect is even triggering. I'll try one more time to retrace my steps and show my current setup to see if if there's anything else anyone might suggest. Wish there was something I could do to get someone else to reproduce this.

  1. Downloaded fresh Hldsupdate tool and let it download the TF2 server files.
  2. Created blank server.cfg file. Added in my registration info (currently commented out) along with a few other basic settings.
  3. Downloaded and copy/pasted MM source (1.8.7)
  4. Downloaded and copy/pasted SM (1.5.0-dev+3630)
  5. Moved SM reserved slots to disabled folder
  6. Downloaded and copy/pasted Connect (1.1.0)
  7. Downloaded and copy/pasted IRS (2.0.5)

The only real config changes I can think of:
  • server bat script is set to start with an mvm map
  • mp_timelimit 0
  • mp_allowspectators 0
  • tf_mm_servermode 2
  • tf_mm_strict 1
  • Enable logs in both server.cfg and IRS config file


Meta and SM Version info:


Meta plugin info


SM plugin info


What startup looks like


What I get when I connect


My server.cfg
Code:
//sv_visiblemaxplayers 6
hostname <myhost>
mp_timelimit 0

//tf_server_identity_account_id <id>
//tf_server_identity_token <token>
mp_allowspectators 0
tf_mm_servermode 2
tf_mm_strict 1
log on
sv_log_onefile 0 //Log server information to only one file.
sv_logbans 1 //Log server bans in the server logs.
sv_logblocks 0 //If true when log when a query is blocked (can cause very large log files)
sv_logecho 0 //Echo log information to the console.
sv_logfile 1 //Log server information in the log file.
sv_logflush 1 //Flush the log file to disk on each write (slow).
sv_logsdir "logs" //Folder in the game directory where server logs will be stored.
sv_logecho 1
It's worth noting that if I try this when opened to public and the server is full, it lets me in and just makes me a spectator with no kicking whatsoever. The log just says something to extent of "Setting max_visible_players to 7" and then when I disconnect, it says "Setting max_visible_players to 6 for mvm."

Last edited by brbeaird; 08-28-2012 at 23:15. Reason: add note about spectator mode
brbeaird is offline
Jamster
Veteran Member
Join Date: Jun 2008
Old 08-29-2012 , 17:08   Re: Immunity Reserve Slots (2.0.5)
Reply With Quote #284

Sorry, please use this version, very important for debugging your particular issue:
http://forums.alliedmods.net/showpos...&postcount=259

Also, can you physically show me the contents of /addons/sourcemod/logs/?

Last edited by Jamster; 08-29-2012 at 17:09.
Jamster is offline
brbeaird
Junior Member
Join Date: Aug 2012
Old 08-29-2012 , 23:16   Re: Immunity Reserve Slots (2.0.5)
Reply With Quote #285

Alright, I'm back to that 2.0.4 version. Still no luck. :-(



This is all that gets created in my sourcemod log folder after starting the server and joining it myself.
brbeaird is offline
Jamster
Veteran Member
Join Date: Jun 2008
Old 08-30-2012 , 07:16   Re: Immunity Reserve Slots (2.0.5)
Reply With Quote #286

This may sound dumb, and I apologise, but you have the translation file installed for IRS, right?
Jamster is offline
brbeaird
Junior Member
Join Date: Aug 2012
Old 08-30-2012 , 08:11   Re: Immunity Reserve Slots (2.0.5)
Reply With Quote #287

No need to apologize. I've obviously missed something here, so I'll take any direction at all!

But alas, yes, I did already have the phrases file in:




Code:
"Phrases"
{
	"irs_version"
	{
		"en"	"Immunity Reserve Slots version."
	}
	"irs_kicktype"
	{
		"en"	"Who to kick when a valid player is found (0 - random, 1 - highest ping, 2 - highest time, 3 - lowest time)."
	}
	"irs_kickreason"
	{
		"en"	"Message to display when a client is kicked for a normal reserve slot (\"default\" - uses translation phrase, anything else uses what you enter)."
	}
	"irs_rejectreason_enable"
	{
		"en"	"Enable reject reason with the Connect extension (0 - disable, 1 - enable)."
	}
	"irs_rejectreason"
	{
		"en"	"Message to display when a client gets rejected for a reserve slot when they have reserve rights with the Connect extension (\"default\" - uses translation phrase, anything else uses what you enter)."
	}
	"irs_kickreason_immunity"
	{
		"en"	"Message to display when a client is kicked for a reserve slot based on immunity (\"default\" - uses translation phrase, anything else uses what you enter)."
	}
	"irs_log"
	{
		"en"	"Enable logging (0 - disable, 1 - enable highly verbose logs, 2 - only log the disconnected and connecting users in regular SM logs)."
	}
	"irs_immunity"
	{
		"en"	"Enable immunity check (0 - disable, 1 - immunity check if server is full of reserves, 2 - as with 1 but also allow players with high enough immunity and no reserve flag to stay connected)."
	}
	"irs_kickspecfirst"
	{
		"en"	"When enabled spectators are always kicked first before anyone else (0 - disable, all players are taken into account for kicking, 1 - enable)."
	}
	"irs_highimmunitylimit"
	{
		"en"	"The maximum amount of players that can connect to the server and kick a low immunity reserve slot player (0 - no limit, more than 0 to set the max limit)."
	}
	"irs_highimmunityvalue"
	{
		"en"	"This value and over are players who are considered to have high immunity (0 - disable, more than 0 to set the high immunity value)."
	}
	"irs_keepbalance"
	{
		"en"	"This tries to kick people in such a way to prevent autobalance (0 - disable, 1 - enable)."
	}
	"irs_autopassword"
	{
		"en"	"Allow direct connecting reserve slot users to connect without having to type in the password on a password protected server with the Connect extension (0 - disable, 1 - enable, 2 - as with 1 but allow all connecting clients to connect)."
	}
	"irs_kicklist_file"
	{
		"en"	"Path to kick list file (\"default\" - uses a file in the sourcemod config folder called irs_kicklist.ini, anything else uses what you enter e.g. \"cfg/kicklist.cfg\")."
	}
	"irs_kicklist_mode"
	{
		"en"	"Enable kick list mode (0 - disable, normal reserve slot operation, 1 - only use a kick list to kick specific clients, 2 - as with 1 but allow any connecting client to kick people from the server)."
	}
	"irs_kicklist_reload"
	{
		"en"	"Reloads the kick list."
	}
	"IRS Kick Log"
	{
		"#format"	"{1:s},{2:s},{3:s},{4:s}"
		"en"	"\"{1}\" ({2}) connected, \"{3}\" ({4}) was kicked."
	}
	"IRS Kick Reason"
	{
		"en"	"Slot reserved."
	}
	"IRS Reject Reason"
	{
		"en"	"No reserve slots available."
	}
	"IRS Kick List Reloaded"
	{
		"en"	"[SM] Immunity Reserve Slots kick list reloaded."
	}
	"IRS Kick Reason Immunity"
	{
		"en"	"Slot reserved - low immunity."
	}
	"IRS Plugin Error"
	{
		"#format"	"{1:s}"
		"en"	"Unloaded plugin {1} and moved to disabled folder, when installing IRS please do not use any other reserve slot plugins."
	}
	"IRS Kick List Path Error"
	{
		"#format"	"{1:s}"
		"en"	"Path to kick list file \"{1}\" not found or unreadable, disabling kick list mode until corrected."
	}
}
Anything else that might be missing?
brbeaird is offline
Jamster
Veteran Member
Join Date: Jun 2008
Old 08-30-2012 , 08:53   Re: Immunity Reserve Slots (2.0.5)
Reply With Quote #288

All fine and dandy. I'm very much at a loss! I'm gonna upgrade my local install to 1.5.0 snapshot and see if it's OK
Jamster is offline
Jamster
Veteran Member
Join Date: Jun 2008
Old 08-30-2012 , 08:59   Re: Immunity Reserve Slots (2.0.5)
Reply With Quote #289

Yep, works, using 3638. I think I'm gonna zip up my test server addons folder and post it! Then you can test yourself my exact setup, we can then rule out if it's a SM problem or not (i.e. a config/srcds issue).
Jamster is offline
Jamster
Veteran Member
Join Date: Jun 2008
Old 08-30-2012 , 09:15   Re: Immunity Reserve Slots (2.0.5)
Reply With Quote #290

OK, here's my server, I don't mind people downloading as there's nothing desperate in here, make sure you backup and move your /addons folder and /cfg folder.
https://dl.dropbox.com/u/1064363/fil...rv_jamster.zip
This has the debug version of IRS which I can confirm works, it spits logs at me!

Also, I have no server.cfg, I just have the following launch options for srcds:
srcds.exe -console -game tf +map koth_viaduct +maxplayers 32 +sv_lan 1
Naturally, you can change that to whatever map you want.
Jamster 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 19:29.


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