AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   xREDIRECT (https://forums.alliedmods.net/forumdisplay.php?f=128)
-   -   xredirect rc2 beta problem (https://forums.alliedmods.net/showthread.php?t=235325)

RoboCop 02-12-2014 11:34

xredirect rc2 beta problem
 
I got a small problem using xRE 2.0 RC2 beta. What it is I'm trying to allow it to redirect my other CS servers like for CSDM CSGG and CS1.6 but when I checked by using /server and pressed the number to relocate to a different server, it failed. I used debug on xredirect.amxx and compiled the .sma with AMXX 1.8.2 package that came with the compile.sh. I did put the /include file in there as well, but I cannot make sense of this debug log error:

Code:

L 02/12/2014 - 16:25:11: Start of error session.
L 02/12/2014 - 16:25:11: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20140212.log")
L 02/12/2014 - 16:25:11: [AMXX] Displaying debug trace (plugin "xredirect-beta.amxx")
L 02/12/2014 - 16:25:11: [AMXX] Run time error 4: index out of bounds
L 02/12/2014 - 16:25:11: [AMXX]    [0] xredirect-beta.sma::can_redirect_player (line 1371)
L 02/12/2014 - 16:25:11: [AMXX]    [1] xredirect-beta.sma::redirect (line 2428)
L 02/12/2014 - 16:25:11: [AMXX]    [2] xredirect-beta.sma::server_menu_select (line 2767)

This is what my serverlist.ini looks like:

Code:

[[APG] CS Classic]
address=94.23.210.10
localaddress=94.23.210.10
port=27015
cmdbackup=2
noauto=0
nomanual=0
nodisplay=0
adminslots=0
password=
publicpassword=0

[[APG] CS GG]
address=94.23.210.10
localaddress=94.23.210.10
port=27026
cmdbackup=2
noauto=0
nomanual=0
nodisplay=0
adminslots=0
password=
publicpassword=0

[[APG] CS DM]
address=94.23.210.10
localaddress=94.23.210.10
port=27028
cmdbackup=2
noauto=0
nomanual=0
nodisplay=0
adminslots=0
password=
publicpassword=0

Any reasons why this xRE-beta isn't working?

DruGzOG 02-12-2014 11:36

Re: xredirect rc2 beta problem
 
Probably because redirecting is not allowed anymore.

Mordekay 02-12-2014 13:16

Re: xredirect rc2 beta problem
 
Search the ๖atest topics, iirc there is a problem with the sockets since the last updates that causes this error above. Redirecting itslef doesn't work anymore since the steamcmd updates, that's why xOR didn't saw a reason to fix them.
xREDIRECT is dead currently.

Spawner30 03-07-2014 09:27

Re: xredirect rc2 beta problem
 
Test This Its A Simple Redirect
PHP Code:


    
/* Plugin generated by AMXX-Studio */
     
    #include <amxmodx>
    #include <colorchat>
     
    #define Deathrun "IP"
    #define BunnyHop "IP"
    #define Jailbreak "IP"
    #define FFA "IP"
     
    
public plugin_init() {
        
register_plugin("Simple Reditect""1.0""Spawner")
        
register_clcmd("say /server""Redirect")
        
register_clcmd("say_team /server""Redirect")
        
register_clcmd("say server""Redirect")
    }
     
    public 
Redirect(id)
    {
        new 
menu menu_create("\wRedirect Menu \d[\rYourServer\d]""Handler")
       
        
menu_additem(menu"\rD\weathrun Server #1#""1"0)
        
menu_additem(menu"\rB\wunnyHop Server #2#""2" 0)
        
menu_additem(menu"\rJ\wailbreak Server #3#""3" 0)
        
menu_additem(menu"\rF\wFA PubliC #4#""4" 0)
       
        
menu_setprop(menuMPROP_EXITMEXIT_ALL)
       
        
menu_display(idmenu0)
    }
     
    public 
Handler(idmenuitem)
    {
        if( 
item == MENU_EXIT ) {
            
menu_destroy(menu);
            return 
PLUGIN_HANDLED;
        }
        new 
data[6], szName[33];
        new 
accesscallback;
        
menu_item_getinfo(menuitemaccessdata5szName32callback)
        new 
key str_to_num(data);
        switch(
key)
        {
            case 
1: {
                new 
DRName[33];
                
get_user_name(idDRNamesizeof DRName 1)
                
client_cmd(id"Connect %s"Deathrun)
                
ColorChat(0TEAM_COLOR"^3 %s ^4Has Been Redirect To ^1Deathrun Club ^3#2"DRName)
            }
            case 
2: {
                new 
BHName[33];
                
get_user_name(idBHNamesizeof BHName 1)
                
client_cmd(id"Connect %s"BunnyHop)
                
ColorChat(0TEAM_COLOR"^3 %s ^4Has Been redirect To ^1BunnyHop Club ^3#2"BHName)
            }
            case 
3: {
                new 
JBName[33];
                
get_user_name(idJBNamesizeof JBName 1)
                
client_cmd(id"Connect %s"Jailbreak)
                
ColorChat(0TEAM_COLOR"^3 %s ^4Has Been Redirect To ^1Jailbreak Club ^3#2"JBName)
            }
            case 
4: {
                new 
FFAName[33];
                
get_user_name(idFFANamesizeof FFAName 1)
                
client_cmd(id"Connect %s"FFA)
                
ColorChat(0TEAM_COLOR"^3 %s ^4Has Been Redirect To ^1FFA  ^3#2"FFAName)
            }
        }
        
menu_destroy(menu)
        return 
PLUGIN_HANDLED;
    } 


Mordekay 03-07-2014 09:31

Re: xredirect rc2 beta problem
 
The connect command is blocked by Valve.


All times are GMT -4. The time now is 09:30.

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