Saturday, March 1

xRedirect 1.0.3.4 [Modification]

xREDIRECT plugin for AMX Mod X version 1.0.3.4 is a custom modification of the original plugin. Since the recent updates by Valve, it is not longer an option to redirect Steamers to other servers with or without their consent. This modification allows once more to redirect all players using xREDIRECT be it Steamers or Non-Steamers. The method used to redirect players in this plugin is publicly available if you know where to search, but as Valve said they do not want any more redirects, I will not share its source here. This is the same reason why this plugin is declared as "DEAD" on AM forums.

CHANGES
  • Modified the Connect method to allow Steamers to be redirected.

INSTALLATION
  • Copy xredirect.amxx to addons/amxmodx/plugins folder.
  • Copy xredirect.txt to addons/amxmodx/data/lang folder.
  • Copy serverlist.ini to addons/amxmodx/configs folder and add your servers to it. Sample servers added already. Keep the same file in all servers for optimal functioning of the plugin.
  • Edit addons/amxmodx/config/plugins.ini and add xredirect.amxx to it on a new line.
  • Restart server or change map for changes to take effect.
  • Note: This plugin requires sockets module to be enabled on your server. Make sure you check your modules.ini for that.

CVARS

For complete details of the CVARs used for this plugin please visit the official wiki here (External Link).


SERVERLIST.INI

The servers can be added in serverlist.ini with the below parameters - 
  • address = server address (can be IP or DNS name)
     
  • localaddress = the server address the server has on it's local network - only neccessary to be specified, when players also can connect to the server from a local network
     
  • port = server port - a value between 1025 and 65536, default 27015
     
  • cmdbackup = defines how often the UDP request is resent to the server (with redirect_check_method > 0), default 2
     
  • noauto = 1 disables automatic redirection to that server regardless of what redirect_auto is set to, 0 means controlled by redirect_auto default is 0
     
  • nomanual = 1 disables manual redirection to that server regardless of what redirect_manual is set to, 0 means controlled by redirect_manual default is 0
     
  • nodisplay = if this is set to 1 it will hide the server from the /server list and announcements, default 0
     
  • adminslots = if this is set to 1 the plugin will redirect only people with reserved slot there if it's e.g. 12/13 players on the target server, default 0
     
  • password = the password that is needed to connect to the server, default <none>
     
  • publicpassword = if set to 1, all players can connect to passworded servers, when set to 0 only admins, default 0
The parameters which you do no need can be ignored for their default values.


COMMANDS
  • say /server - show server redirection menu
     
  • say_team /server - show server redirection menu
     
  • pickserver - show server redirection menu
     
  • say /follow - follow the last redirected player to his server
     
  • say_team /follow - follow the last redirected player to his server
     
  • say /retry - redirect back as soon as the foregoing server has a free slot
     
  • say_team /retry - redirect back as soon as the foregoing server has a free slot
     
  • say /stopretry - stop retrying the foregoing server
     
  • say_team /stopretry - stop retrying the foregoing server
     
  • redirect_announce_now - announce server list immediately, requires ADMIN_KICK access
     
  • redirect_user - <playername|playerid> [servernum] - redirect a player [to a given server], requires ADMIN_KICK access


Orginal plugin (External Link)
Author - xOR
Plugin credits to the original author.
Modification credits to ~UN!CORN~ (Me)

Note : If you get any problems with this plugin or find out any bugs in it, please use this page to report them back to me so that I can fix them.

39 comments:

  1. worked for some hours, then crashed servers (steamcmd).

    ReplyDelete
    Replies
    1. I tested the plugin on STEAMCMD Servers first. It did not give any kind of problem. Please provide error logs (if any). Without logs it would be impossible for me to fix those errors.

      Delete
  2. after map change the server crash - 48/1.1.2.7/Stdio 6132 , AMXX v1.8.2, MM v1.21p37

    ReplyDelete
    Replies
    1. Please verify if you have sockets module enabled.
      Try using MM 1.21-am.
      Use amx_modules command to check if you have necessary modules enabled.

      Delete
    2. +1 linux falls when the map changes

      Delete
  3. Replies
    1. The method used to redirect players in this plugin is publicly available if you know where to search, but as Valve said they do not want any more redirects, I will not share its source here.

      Delete
  4. hi, seems nice plugin, bt can u help as i want the server to redirect on 32/32 rather thn on 31/32..

    which command shud be change to make it effective if redirection once server if full 32/32 is possible.

    i want every 33rd gamer to get redirected rather thn the 32nd one

    ReplyDelete
    Replies
    1. There is no such thing as 32/32 redirect.
      You can only redirect when there is at least one slot free in the server. HL1 engine allows max 32 players so it is impossible to redirect the 33rd player as he wont even be able to connect to the server.

      Delete
  5. I guess there is a way, will post the proof soon, hope u will be able to help than, i jus want every 33rd player who tries to connect on server having 32/32 gettin redirected to next server

    ReplyDelete
    Replies
    1. Will wait for the proof. Would be happy if you proved me wrong in this case :)

      Delete
  6. one more thing,, whenever sv having 31/32 players n if any admin with slot reservation joins a random player from server gets redirected though it shud be 32/32 thn.

    how to stop this ?

    ReplyDelete
    Replies
    1. Please read the full cvar list and settings here. There might be a possibility that you might or might not have configured some setting properly or you might not have a working knowledge of xRedirect plugin.

      Delete
  7. checked everythin, still not able to find, it still kicks a random player whenever some admin with slot reservation joins.

    Help wud be appreciated :D

    ReplyDelete
  8. I just rechecked the full source code just to be sure. This plugin does not kick anyone no matter who joins.
    Check for any other plugins that might be doing it, check for other slot reservation plugins.

    ReplyDelete
  9. :D i have been using it for long and using it for 5 servers, i don have any other plugin which kicks player when admin with reservation joins...

    Really appreciate prompt reply

    ReplyDelete
  10. when server is 32/32 players dont get redirected , plz help?

    ReplyDelete
    Replies
    1. I already said it works only with Max slots minus 1.

      Delete
    2. ok , last thing : is it compat with new HLDS build? or can u provide recompiled plugin with amx1.8.2 ? plz

      Delete
  11. Replies
    1. Hi,
      I got a little bug :
      L 11/24/2014 - 19:52:02: [AMXX] Displaying debug trace (plugin "xredirect.amxx")
      L 11/24/2014 - 19:52:02: [AMXX] Run time error 4: index out of bounds
      L 11/24/2014 - 19:52:02: [AMXX] [0] xredirect.sma::welcome_message (line 2425)
      L 11/24/2014 - 19:52:06: [AMXX] Displaying debug trace (plugin "xredirect.amxx")
      L 11/24/2014 - 19:52:06: [AMXX] Run time error 4: index out of bounds
      L 11/24/2014 - 19:52:06: [AMXX] [0] xredirect.sma::welcome_message (line 2425)

      Delete
  12. http://www.extreamcs.com/forum/amxmodx/xredirect-t231748.html
    i used this plugin and it works fine with steamers but it have an issue . when server is 31/32 and admin trys to join a player get kicked and server stays as 31/32 when the original plugin used to make admin join than it's 32/32 till someone leave . the question is how ur edition work ?

    ReplyDelete
    Replies
    1. This is the same edition as it was on the authors official section on AM forums. I have simple altered the connection part.
      To put it simply this is the default plugin. No changes made.

      Delete
    2. ok but i want an answer . does ur plugin will act like like that example : when admin join server and it's 31/32 the server will go to be 32/32 and redirect project will stop till a player leave than it's 31/32 and redirect is working again till this slot is feld with admin ? and what is the right cvar config for it to happen

      Delete
    3. AFAIK the plugin will work exactly same as you mentioned. Plugin will not kick anyone when admin connects and server is 32/32. To be fair it does not seem correct to kick anyone in place for admin. This is the job of Slot Reservation plugin and not XRedirect.

      I have a different plugin for slot reservation in my collection, I shall look into it later if you need it.

      Delete
    4. i have got amx_reservation disabled from plugins .ini

      and when i set my config to :
      redirect_active 1
      redirect_auto 2
      redirect_adminslots 1
      redirect_maxadmins 1

      players get kicked and server stay 31/32

      when i change admin slot to 0 and max admin to 0
      even admins get redirected but no kick to the last player who joined .

      so what i need directly and how the plugin used to act before the update of steam is when the server is 31/32 and a player trys to join he will get redirected to the next server in the list which why auto is set to 2 and if it was an admin he will join without anyone get kicked and it will be 32/32 till someone leave . i know my writing are hard to understand but i looked this problem many times and idk why players keep getting kicked when ever admin try to join and server is always 31/32

      Delete
    5. I rechecked the full source again, but I was unable to find any part in it which kicks a player when admin joins in. So probably the player does not get kicked, he simple leaves.
      Check your server console when this happens, it should help you identify what the problem is exactly.

      Delete
  13. win7 steamcmd server metamod am1.21am (or 1.21p37) amxmodx 1.8.2

    metamod 1.21am crash the server on mapchange (hlds launcher error)

    metamod 1.21p37 crash the server on map (error message from microsoft visual c++ library)

    ReplyDelete
  14. TheZeroBeatzTuesday, November 25, 2014 at 12:43:00 AM GMT+5:30
    Hi,
    I got a little bug :
    L 11/24/2014 - 19:52:02: [AMXX] Displaying debug trace (plugin "xredirect.amxx")
    L 11/24/2014 - 19:52:02: [AMXX] Run time error 4: index out of bounds
    L 11/24/2014 - 19:52:02: [AMXX] [0] xredirect.sma::welcome_message (line 2425)
    L 11/24/2014 - 19:52:06: [AMXX] Displaying debug trace (plugin "xredirect.amxx")
    L 11/24/2014 - 19:52:06: [AMXX] Run time error 4: index out of bounds
    L 11/24/2014 - 19:52:06: [AMXX] [0] xredirect.sma::welcome_message (line 2425)



    What happen with this error ?

    ReplyDelete
    Replies
    1. Check your config/language file. Most likely something wrong with the welcome message. Remember UTF-8 with BOM is the encoding you need to LANG files.

      Delete
  15. I cannot see how many players are there in each server when i type /server in chat

    ReplyDelete
    Replies
    1. Make sure the necessary CVARS are enabled and also check if the game query ports are open on the server side and see if you can connect to them from the client side.

      Delete
  16. Getting this error now
    Could not execute privileged command "Connect" xx:xx:xx:xx:27015

    ReplyDelete
  17. Obtendo este erro agora
    Não foi possível executar o comando privilegiado "Conectar" xx: xx: xx: xx: 27015

    ReplyDelete

Comment anything you want. Just be polite and give respect to others!
I am simply going to remove the comments which are offensive or are off topic.
And please don't spam your website links in comments. I don't, neither should you.