Raised This Month: $ Target: $400
 0% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Kenny Loggins
SourceMod Donor
Join Date: Jun 2008
Location: Rochester, MN
Plugin ID:
697
Plugin Version:
1.1
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    19 
    Plugin Description:
    Used to redirect players to other servers.
    Old 01-28-2009 , 19:29   Re: Server Redirect
    Reply With Quote #1

    Quote:
    Originally Posted by sishgupta View Post
    I've attached the fix, all i did was add

    Code:
    AutoExecConfig(true, "plugin.serverredirect");
    to the onpluginstart function

    I can't get this to compile.. Web or with compile.exe
    __________________

    Server Admin / Leader
    ClanAO.com
    Kenny Loggins is offline
    NoNameYan
    New Member
    Join Date: Jan 2009
    Old 01-29-2009 , 01:46   Re: Server Redirect
    Reply With Quote #2

    great job!!

    but there have some problom for this plugin..

    1. SM1.2 can't compile
    2. If server no people and server list will be offline
    3. left 4 dead can't swap to another server (it will may it disconnect)

    can you fix this problom?

    thx
    NoNameYan is offline
    sishgupta
    Junior Member
    Join Date: Dec 2008
    Location: Toronto
    Old 02-03-2009 , 23:48   Re: Server Redirect
    Reply With Quote #3

    Quote:
    Originally Posted by Kenny Loggins View Post
    I can't get this to compile.. Web or with compile.exe
    Yeah it wont compile for me either (fubar in the upload?), but if you add the line in manually it should work. This should fix the issue that people are having where the server uses serverid 0.


    try this one that ive put on my own site:
    http://tf2f.sishgupta.com/serverredirect.sp


    and to whoever asked, i just used a new table in my sourcemod database instead of creating a new DB alltogether

    also the map, curr, max variable do indeed work fine for me
    sishgupta is offline
    Brainstorm
    Member
    Join Date: Aug 2007
    Old 02-04-2009 , 15:42   Re: Server Redirect
    Reply With Quote #4

    Ok, I've spent half an hour working on the code and all important changes are done. Changelog so far:

    Quote:
    1.1 (serverredirect.sp)
    ! Fixed settings not being applied properly
    ! Fixed package (proper lay-out and correct files)
    ! Fixed mysql script, commented out the create database statement and fixed syntax.
    ? Now uses sv_maxvisibleplayers to determine max amount of players. Provides compatibility with reserved slot plugins.
    + Added sm_redirect_menusort to be able to choose how items get sorted.

    1.1 serverredirect_ads.sp
    + Can prevent empty servers from being advertised by setting sm_redirect_ads_hideempty to 1
    + {MAP}, {CURR} and {MAX} can now be used in the sm_redirect_ads_format var.
    I'll now have to test this against various games, this 'll take a bit longer

    About compiling: the webcompiler will not work since it's not a single file plugin. I use Pawn Studio to compile, but spcomp.exe will do just fine. I have uploaded a new 1.0 zip file, which has 3 different packaging errors fixed (inc file is now in scripting/include, typo in .sql file fixed and wrong version of serverredirect_cmds.sp).

    I you had any problems compiling the plugin, then please download the new 1.0 package. Compilation for both Sourcemod 1.1 and 1.2 will work (tested this using spcomp.exe). The binaries in that package have not changed.

    Once I tested TF2, L4D, CSS and such, I'll post version 1.1 of the plugins.


    @mauirixxx: renaming serverredirect.smx will give errors indeed. Once both serverredirect.smx and serverredirect_cmds are uploaded, it should work. Note that serverredirect.smx is required, the _cmds plugin is merely an extension that uses the main plugin.
    Brainstorm is offline
    Brainstorm
    Member
    Join Date: Aug 2007
    Old 02-07-2009 , 11:14   Re: Server Redirect 1.1 [Last update: Februari 7, 2009]
    Reply With Quote #5

    Check the start of this thread for version 1.1. Changes:

    Main plugin (serverredirect.smx)
    1.1
    ! Fixed settings not being applied properly
    ! Fixed package (proper lay-out and correct files)
    ! Fixed mysql script, commented the create database statement and fixed syntax.
    ? Now uses sv_maxvisibleplayers by default to determine max amount of players. Provides compatibility
    with reserved slot plugins. If sv_visiblemaxplayers is not set (less than 0), it'll
    use the maximum amount of player slots on the server.
    + Added sm_redirect_menusort to be able to choose how items get sorted.
    + Added sm_redirect_enableheartbeat tobe able to enable/disable the heartbeat. Can be used to (temporarily) disable
    the plugin and avoid advertising the server.

    Ads (serverredirect_ads.smx)
    1.1
    + Can prevent empty servers from being advertised by setting sm_redirect_ads_hideempty to 1
    + {MAP}, {CURR} and {MAX} can now be used in the sm_redirect_ads_format var.
    + Interval between ads can now be changed without having to reload the plugin.


    Upgrade instructions are in the first post, it's just a matter of uploading the new .smx files.

    I've tested this on TF2, DoD and CSS with Sourcemod 1.1, sourcemod 1.2 works as well. Note that redirecting is broken in L4D, when you press F3 to change servers you just get disconnected.

    Last edited by Brainstorm; 02-07-2009 at 11:51.
    Brainstorm is offline
    sishgupta
    Junior Member
    Join Date: Dec 2008
    Location: Toronto
    Old 02-08-2009 , 03:00   Re: Server Redirect 1.1 [Last update: Februari 7, 2009]
    Reply With Quote #6

    Thanks for patching this great plugin
    sishgupta 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 21:44.


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