| xREDIRECT |
![]() Description: First of all, if you are too lazy to read all this don't bother me with problems or questions! It's a non-simple plugin for non-simple people who want more than only some simple features. If this is not what you want, that's ok. Then just move along. Or maybe you only want to redirect people to your new server when the IP changed? Then better check out this plugin. Right, it is not easy to install. But it can't be too hard either, when it is running on hundreds of servers. Sorry, I just had to say that, as I don't want to have anything like this again. For those who want to participate in coding this plugin, the code cross reference is here. You can also generate it from source (from 1.0RC2 and above) using compiler option -r. If you want to know on how many servers it is running you can look at the official addon/plugin stats. Thanks to Bailopan for adding it at this point. You want to find servers where this plugin is running? Use this. The plugin does several things that all can be turned on or off seperately by CVAR's:
Available Client Commands:
Server List File: The file is in ini format. The section name is the server name. The keys here are used to set server properties and override general CVAR settings, e.g. you can have manual redirect (the menu) enabled but still disable it for a single server by setting nomanual=1 for that server in the server list file. The following keys are recognized:
If a value is not specified the default value is used. The "address" key always must be specified and doesn't have a default value The file name by default is serverlist.ini, this can be changed by modifying the define SERVERLIST in the plugin source and then recompiling the plugin. Here is an example on how the server file could look: serverlist.ini Code: [my example server] Also several parts in the plugin rely on the fact that all servers have the same number (thus, the same order in serverlist.ini file). Beside the technical limitations you make it easy for the user to get a feeling for your servers if you always provide him the same list, no matter on which server he is. If the list would miss the current server or even the order would be different on every server you would just confuse your users. Please be aware that when using more than 6 servers in SERVERFILE you have to change the define MAX_SERVERFORWARDS and recompile the plugin. If there are more servers in the file than specified by MAX_SERVERFORWARDS the other servers will be ignored. There is no need to add nomanual=1, noauto=1 or the like to the server that is the server the plugin is running on. The plugin will detect that itself and prevent people from being redirected back to the same server. Hint: if you don't want to create the server list by hand you can use xServerList to create your server list file (or load and edit an existing list). You can as well use it to check an existing file for errors. Languages:
Many thanks to all translators! If you like a translation, why not give karma to the translator if he is listed with his account? You can translate something that is not listed here or finish an incomplete language? Then please go to this thread. Available CVAR's: These CVAR's have to be set in the server's amxx.cfg. Only setting them via console (direct, ssh, rcon, hlsw...) is problematic for some of them. When discussing errors please always post the part of your amxx.cfg that is setting these CVAR's (those beginning with "redirect_"). CVAR List Requirements:
Basically the plugin is intended to work with - every HL1 mod (steam and nosteam versions) - the currently latest and last before latest AMXX version It has been seen working with CS 1.5 (WON2), CS 1.6, Condition Zero, Natural Selection, Day of Defeat and Team Fortress Classic. It should also work with HLTV. Modules: The plugin requires the sockets module to be loaded. You can enable it in your modules.ini. If you don't want to load it search for the line containing require_module("sockets") and comment it out or delete it. When doing this you can only use redirect_check_method 0. If you set this to something different your server might crash or other problems arise. Troubleshooting: If you have problems with plugin functionality please first check whether your problem/question is already explained in the FAQ. If it is not, you can ask your questions here in this thread. I don't check my PMs regularly, even when I am always notified of them. You probably just increase your waiting time if you use a PM instead of asking in this thread. Furthermore you'd just throw away your chances that someone else helps you, who can do this just as good as me. In almost all cases people that try to help you need this information:
Issue tracker: Bugs and features are tracked with Mantis. The Mantis project for xREDIRECT can be found here. Everyone can read tasks there, but if you want to create one you need to register and/or login first. Beta and Stable Differences: For the beta version I just programmed the new features or bug fixes and gave everything a short test on my server and see whether the new features work/the bugs are fixed and check that the server does not crash. Right after that I release it here. When a beta version is around for a while and seems to be stable for some longer time and some more people it will become a stable version and replace the last stable. There might be several beta versions before a new version is put into stable. So beta version has the freshest features but the highest risk to contain bugs. The decision what version you want to use is up to you. Thanks To: Thanks to these people for patiently testing the plugin even through heavy server crashes: Also I'd like to thank Mordekay who appeared here first in September 2006 and since then has been helping people who had issues with the plugin. Final Note: We plugin coders invest time, nerves and knowledge to make the best plugins we can. I try to help with any issue you might have with it. We provide the source code so people can learn from it to make more cool plugins useful for you as well. We do all this for you (and for us). AND: we do all this for free. So please be so kind and do the only thing I want from you: If you like the plugin, post here that you have it running on your server and you like it. Rate the thread to whatever rate you think it deserves. Don't just silently download the plugin and forget anything else as soon as it is running. Don't only post here if something isn't working or you have trouble installing it but as well when everything works fine. If I don't get enough positive feedback I might start to think people don't like the plugin or noone wants it and stop developing it. This is valid for EVERY plugin coder and EVERY plugin here. Not just me and my plugin. Last Stable Changes: -[000444] Rewrite socket code -[000443] Servers not listed due to recent Half-Life 1 protocol update - added workaround for "Server tried to send invalid command" issue, making redirection work again - thanks to joaquimandrade who had the idea Last Beta Changes: -[000445] Compare mod versions -[000362] Option to set whether to count bots or not For a complete changelog look into the source code or at the bug tracker. Installation: Note that the .sma and the .inc file is only needed when you want to compile xREDIRECT or plugins using it in this amxx folder. The files go into these directories (relative to your amxx directory):
Current stable version: 1.0.3.2 Current beta version: 1.0.4 this thread is closed, please upen a new thread for your concern in the sub forum xREDIRECT. Attached Files
|