Raised This Month: $ Target: $400
 0% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
cyb
Member
Join Date: Jun 2010
Old 01-23-2011 , 16:35   Re: Server Redirect 1.1 [Last update: Februari 7, 2009]
Reply With Quote #231

thnx work fine now
cyb is offline
eraserhead
Veteran Member
Join Date: Nov 2009
Old 01-29-2011 , 10:03   Re: Server Redirect 1.1 [Last update: Februari 7, 2009]
Reply With Quote #232

Hello everyone!

I read though this entire thread and installed the latest version by Naris. When i set this:

Quote:
// sm_redirect_ads_hideempty - when set, servers without players will not be advertised
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_redirect_ads_hideempty "1"
And i join the server i still see this:

Quote:
Also available: (servers) - Say !servers to switch servers.
I thought it was supposed not to show advertisements when i set that cvar to 1. Anyone have a suggestion?

edit: Two more suggestions if anyone wants to improve this plugin:

1.Make a cvar that changes the advertisements interval once there are players on a server and change it back to the default interval i a server is empty
2.Incorporate the chatcolors from the advertisements plugin: http://forums.alliedmods.net/showthread.php?p=592536
__________________

Last edited by eraserhead; 01-29-2011 at 10:48.
eraserhead is offline
Send a message via Skype™ to eraserhead
Truban
BANNED
Join Date: Aug 2009
Location: Ukraine
Old 01-31-2011 , 14:06   Re: Server Redirect 1.1 [Last update: Februari 7, 2009]
Reply With Quote #233

How translate text:
The server is offering to connect you to:
and
Press F3 accept. ?
Truban is offline
Send a message via Skype™ to Truban
bzellinger
Member
Join Date: Sep 2010
Old 02-10-2011 , 17:17   Re: Server Redirect 1.1 [Last update: Februari 7, 2009]
Reply With Quote #234

I am testing this plugin locally before I upload it to my server. This is what happens: When I type !servers, the server name shows up, however, it shows me the map and players of the local server of which I'm testing. When I press 1, the proper redirect server displays correctly.

Why is it showing me the current map of which I'm playing instead of the redirection server stats?

MySql is also on the test server machine. As far as I know the tables are set correctly:

--
-- Database: `serverredirect`
--
CREATE DATABASE `serverredirect` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `serverredirect`;
-- --------------------------------------------------------
--
-- Table structure for table `server`
--
CREATE TABLE IF NOT EXISTS `server` (
`id` int(11) NOT NULL auto_increment,
`address` varchar(50) NOT NULL default '127.0.0.1',
`groupnumber` int(11) NOT NULL default '1',
`last_update` datetime NOT NULL,
`display_name` varchar(100) NOT NULL default '[new server]',
`offline_name` varchar(100) NOT NULL default '[offline]',
`maxplayers` int(11) NOT NULL default '0',
`currplayers` int(11) NOT NULL default '0',
`map` varchar(70) NOT NULL default '[no map]',
PRIMARY KEY (`id`),
KEY `groupnumber` (`groupnumber`),
KEY `last_update` (`last_update`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `server`
--
INSERT INTO `server` (`id`, `address`, `groupnumber`, `last_update`, `display_name`, `offline_name`, `maxplayers`, `currplayers`, `map`) VALUES
(1, 'XX.150.221.XXX', 1, '2008-12-31 00:00:00', 'Left 4 Dead Server | {MAP} | {CURR}/{MAX}', XX.150.221.XXX | OFFLINE', 0, 0, '[no map]');

Also, the ads don't work for me.

Last edited by bzellinger; 02-10-2011 at 17:37.
bzellinger is offline
St00ne
Veteran Member
Join Date: Jan 2011
Location: Annecy - France
Old 04-14-2011 , 12:37   Re: Server Redirect 1.1 [Last update: Februari 7, 2009]
Reply With Quote #235

Hi everyone,

I just edited sourcecode to add 2 client commands to display servers menu but I can't compile the code.
I'm running a french server so I added "!serveur" and "!serveurs" cmds by editing this way:
Code:
if (strcmp(text[startidx], "!servers", false) == 0 || strcmp(text[startidx], "!swapme", false) == 0 || strcmp(text[startidx], "!server", false) == 0 || strcmp(text[startidx], "!serveurs", false) == 0 || strcmp(text[startidx], "!serveur", false) == 0)
Sourcemod online compiler tells me
Quote:
/home/groups/sourcemod/upload_tmp/phpl3MWms.sp(37) : fatal error 120: cannot read from file: "serverredirect"
Compilation aborted.
1 Error.
Even the default sourcecode displays the same error so it doesn't come from the simple changes I made.

Can anybody help me and tell me how I should do?

Thank you,

St00ne.

Last edited by St00ne; 04-14-2011 at 12:41.
St00ne is offline
St00ne
Veteran Member
Join Date: Jan 2011
Location: Annecy - France
Old 04-14-2011 , 15:32   Re: Server Redirect 1.1 [Last update: Februari 7, 2009]
Reply With Quote #236

Ok it seems I need to compile it locally.

What is the linux command to use?
./compile.sh serverredirect.sp;
./compile.sh serverredirect.sp -i serverredirect.inc;
or ./compile.sh serverredirect.sp -i include/serverredirect.inc ?

Please let me know.

I tried all of them and everytime smx file is created, but I don't know if it's ok yet.
Moreover it tells me "serverredirect.sp(644) : warning 234: symbol "AskPluginLoad" is marked as deprecated: Use AskPluginLoad2() instead"
... ???
St00ne is offline
eraserhead
Veteran Member
Join Date: Nov 2009
Old 04-15-2011 , 18:45   Re: Server Redirect 1.1 [Last update: Februari 7, 2009]
Reply With Quote #237

To compile just download the sourcemod package (if you have a windows local client PC, download the windows package, this is not related to your server!), then go to addons/sourcemod/scripting. Then drag and drop your sp file onto the compile.exe file.

You can find the compiled smx in the /compiled folder.
__________________
eraserhead is offline
Send a message via Skype™ to eraserhead
St00ne
Veteran Member
Join Date: Jan 2011
Location: Annecy - France
Old 04-16-2011 , 14:38   Re: Server Redirect 1.1 [Last update: Februari 7, 2009]
Reply With Quote #238

Thank you eraserhead,

I didn't know we could simply drag and drop files this way.
In the meantime I successfully compiled it by placing all sp files and include folder in scripting flder, then typing ./compile.sh serverredirect.sp -i include/serverredirect.inc.
My computer is running windows but my server is running linux, you said I should I should dl windows package... which package are you talking about? I'm using sourcemod for linux servers, and plugin has only one version... I don't see what you mean.

Some friend told me that the warning message saying "serverredirect.sp(644) : warning 234: symbol "AskPluginLoad" is marked as deprecated: Use AskPluginLoad2() instea"
is not error, it is due to sourcemod updates, and plugin works fine.

Thank you for your answer, I'll surely use this 'drag and drop' method next time

Bye

Last edited by St00ne; 04-16-2011 at 14:41.
St00ne is offline
eraserhead
Veteran Member
Join Date: Nov 2009
Old 04-16-2011 , 15:24   Re: Server Redirect 1.1 [Last update: Februari 7, 2009]
Reply With Quote #239

I was talking about the sourcemod windows package. You can't use linux compiler on a windows client computer :-)
__________________
eraserhead is offline
Send a message via Skype™ to eraserhead
eraserhead
Veteran Member
Join Date: Nov 2009
Old 04-20-2011 , 20:10   Re: Server Redirect 1.1 [Last update: Februari 7, 2009]
Reply With Quote #240

This plugin doesn't work anymore on both my servers. Unable to connect to the database and then makes my servers crash. I had to move it to disabled. The database itself seems fine. I was using Naris' version.

Anyone else have problems?
__________________
eraserhead is offline
Send a message via Skype™ to eraserhead
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 07:37.


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