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

Server Redirect 1.1 [Last update: Februari 7, 2009]


Post New Thread Reply   
 
Thread Tools Display Modes
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 10-18-2010 , 00:49   Re: Server Redirect 1.1 [Last update: Februari 7, 2009]
Reply With Quote #201

Nah. As I suggested earlier, the most recent updates to this plugin inserted the 'id' parameter into the queries, which shifted the original indexes up by one. But you're the only one that had this issue, where as it seems to have worked for everyone else, but everyone should have this problem. This is why I'm quite confused.
__________________
thetwistedpanda is offline
snelvuur
Veteran Member
Join Date: Jun 2008
Location: Netherlands
Old 10-18-2010 , 00:51   Re: Server Redirect 1.1 [Last update: Februari 7, 2009]
Reply With Quote #202

Well looking at this post: https://forums.alliedmods.net/showpo...&postcount=165 it seems i am not the only one. I have not heard more reports though.

But if this is the only fix i have to do, i'll change it myself when needed

Again thanks for the help.
__________________
Arguing with a fool only proves there are two
snelvuur is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 10-18-2010 , 00:54   Re: Server Redirect 1.1 [Last update: Februari 7, 2009]
Reply With Quote #203

What I posted is the appropriate fix for the plugin, it should resolve any issues in both _ads and _cmds. You could actually pass that parameter along to the _ads plugin and use it to not display the server players are currently in, come to think of it. Hopefully naris and the other individual will update their plugins to reflect the changes. In any case, glad it's finally fix for ya. A tad concerned why I don't have this issue though.
__________________
thetwistedpanda is offline
snelvuur
Veteran Member
Join Date: Jun 2008
Location: Netherlands
Old 10-18-2010 , 00:55   Re: Server Redirect 1.1 [Last update: Februari 7, 2009]
Reply With Quote #204

It will suddenly show up after the next valve update on your end... :-)
__________________
Arguing with a fool only proves there are two
snelvuur is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 10-18-2010 , 00:56   Re: Server Redirect 1.1 [Last update: Februari 7, 2009]
Reply With Quote #205

Lol, well I'm not using any of the versions listed here, I've merely updated the code to reflect recent changes, so maybe I fixed it without knowing.
__________________
thetwistedpanda is offline
Sortilegeqc
Junior Member
Join Date: Oct 2010
Old 10-18-2010 , 17:55   Re: Server Redirect 1.1 [Last update: Februari 7, 2009]
Reply With Quote #206

Hi all and thanx for that plugin.
Sorry for my english but i have some trouble.
i ad all of my servers in database.


id address groupnumber last_update display_name offline_name maxplayers currplayers map
1 81.93.250.181:27015 1 2010-10-18 23:41:19 Tournee Generale | {MAP} | {CURR}/{MAX} [Maintenances en cours] 6 0 cs_italy
3 81.93.250.181:27035 1 2010-10-18 00:00:00 GunGame Turbo DM | {MAP} | {CURR}/{MAX} [Maintenances en cours] 0 0 [no map]
4 81.93.250.181:27045 1 2010-10-18 00:00:00 DeathMatch [Maintenances en cours] 0 0 [no map]
5 81.93.250.181:27055 1 2010-10-18 00:00:00 Zombie Riot I [Maintenances en cours] 0 0 [no map]
6 81.93.250.181:27065 1 2010-10-18 23:52:57 Zombie Riot II [Maintenances en cours] 6 0 cs_office
2 81.93.250.181:27025 1 2010-10-18 00:00:00 Apero A Volonte | {MAP} | {CURR}/{MAX} [Maintenances en cours] 0 0 [no map]

In sourcemod config i add

sm_redirect_serverid "1"

and when i type !servers the plugin say only the first server online.

do you know what can i do ?

You can see i have 6 servers id for the same group 1.
In config file i set :
sm_redirect_serverid "1"
and i try to set :
sm_redirect_serverid "1"
sm_redirect_serverid "2"
sm_redirect_serverid "3"
and all servers and the plugin don't work. i know that but i just want to try.
How to set all server by groupid ? because all servers are with the groupid 1

Thanx a lot
__________________
Community [JpF]
Communauté [JpF] là pour le plaisir de jouer et de rencontrer des personnes qui partagent la même passion
http://www.team-jpf.org
Sortilegeqc is offline
naris
AlliedModders Donor
Join Date: Dec 2006
Old 10-19-2010 , 18:37   Re: Server Redirect 1.1 [Last update: Februari 7, 2009]
Reply With Quote #207

Quote:
Originally Posted by thetwistedpanda View Post
Naris, your version has a memory leak in serverredirect_ads:And that's just a small portion of it, there's about 300 more entries with the server only being online for 900 minutes. Your memory leak is in RedirListLoaded, you're not closing Handle:serverList. At least, this is what I believe it to be, just fixed it on my server and have to wait and see.
No, the version I posted most certainly does NOT have a memory leak in serverredirect_ads! However, it is VERY important that you use it with the version of serverredirect.sp that I also posted since the handle is closed in LoadServerRedirectList_Query(), where it should be, right after calling the forward!

Closing the handle in serverredirect_ads and/or serverredirect_cmds is extremely bad and can lead to errors or even possibly crashes if one plugin, such as serverredirect_ads , closes the handle before the other plugin, such as serverredirect_cmds, uses it.

Last edited by naris; 10-19-2010 at 19:36.
naris is offline
snelvuur
Veteran Member
Join Date: Jun 2008
Location: Netherlands
Old 10-19-2010 , 19:39   Re: Server Redirect 1.1 [Last update: Februari 7, 2009]
Reply With Quote #208

I assuming you are referring to the serverredirect.sp thats in the zip of:
https://forums.alliedmods.net/showpo...&postcount=162 right?
__________________
Arguing with a fool only proves there are two
snelvuur is offline
naris
AlliedModders Donor
Join Date: Dec 2006
Old 10-19-2010 , 20:14   Re: Server Redirect 1.1 [Last update: Februari 7, 2009]
Reply With Quote #209

Quote:
Originally Posted by snelvuur View Post
Could you explain a bit more, also the "redirect when its full" option?
Set the sm_redirect_slots convar to the number of slots to "reserve" as the redirection slots. When there are only this number of free slots left in the server, it is considered "full".

Set the sm_redirect_server convar to the ip of the server that should be used to "redirect" the any clients to when the server is "full".

Set the sm_redirect_time to the number of seconds that players connecting when the server is "full" have to join another server before they get kicked.

Set sm_redirect_announce to 1 to announce to the server when someone get redirected to another server.
naris is offline
naris
AlliedModders Donor
Join Date: Dec 2006
Old 10-19-2010 , 20:16   Re: Server Redirect 1.1 [Last update: Februari 7, 2009]
Reply With Quote #210

Quote:
Originally Posted by snelvuur View Post
I assuming you are referring to the serverredirect.sp thats in the zip of:
https://forums.alliedmods.net/showpo...&postcount=162 right?
Yes. Also, I just updated it with twistedpanda's fix for the ip/hostname instead of server name thing, so you should get a new copy.

I have also attached it here:
Attached Files
File Type: zip serverredirect.zip (35.9 KB, 187 views)

Last edited by naris; 10-19-2010 at 20:19.
naris is offline
Reply



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 10:56.


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