Raised This Month: $12 Target: $400
 3% 

Connect - A safer OnClientPreConnect forward


Post New Thread Reply   
 
Thread Tools Display Modes
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 12-02-2011 , 15:07   Re: Connect - A safer OnClientPreConnect forward
Reply With Quote #21

Quote:
Originally Posted by FunkyLoveCow View Post
There are no errors spit out to the console, server error log or SM error log. Ideas?
Remember that this extension either rejects or accepts players on connect. You need to change the "return" to "return true or false" in both cases, and then again at the end of the forward.

When rejecting a player you should format the rejection message so the user doesn't get garbage data like in your screenshot.
__________________

Last edited by GoD-Tony; 12-02-2011 at 15:11.
GoD-Tony is offline
FunkyLoveCow
Senior Member
Join Date: May 2010
Old 12-02-2011 , 15:40   Re: Connect - A safer OnClientPreConnect forward
Reply With Quote #22

Quote:
Originally Posted by GoD-Tony View Post
Remember that this extension either rejects or accepts players on connect. You need to change the "return" to "return true or false" in both cases, and then again at the end of the forward.

When rejecting a player you should format the rejection message so the user doesn't get garbage data like in your screenshot.
D'oh. Thanks. I completely ignored that new bool return. Thank you.
FunkyLoveCow is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 12-07-2011 , 21:50   Re: Connect - A safer OnClientPreConnect forward
Reply With Quote #23

Getting an error when trying to load the extension:
Quote:
Failed to find CBaseServer__RejectConnection function.
Can I just not late-load it, or am I missing something?
__________________
Dr. McKay is offline
ph
AlliedModders Donor
Join Date: Mar 2006
Old 12-09-2011 , 19:04   Re: Connect - A safer OnClientPreConnect forward
Reply With Quote #24

I get this error, any reasons why?
Quote:
[11] <FAILED> file "connect.ext.2.ep2v.dll": Failed to find CBaseServer__CheckMasterServerRequestRestart function.
Windows OS
ph is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 12-16-2011 , 16:09   Re: Connect - A safer OnClientPreConnect forward
Reply With Quote #25

Umm, this extension is apparently crashing my server. I installed and loaded it, and it crashed my server a few times. Removing it stopped the crashes.

CentOS 6 32-bit, TF2
__________________
Dr. McKay is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 12-16-2011 , 18:13   Re: Connect - A safer OnClientPreConnect forward
Reply With Quote #26

Quote:
Originally Posted by Dr. McKay View Post
Umm, this extension is apparently crashing my server. I installed and loaded it, and it crashed my server a few times. Removing it stopped the crashes.

CentOS 6 32-bit, TF2
Make sure you either have the SourceMod Gamedata updater working or update the gamedata manually from http://hg.limetech.org/projects/conn...nect.games.txt.
__________________
asherkin is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 12-17-2011 , 00:59   Re: Connect - A safer OnClientPreConnect forward
Reply With Quote #27

Quote:
Originally Posted by asherkin View Post
Make sure you either have the SourceMod Gamedata updater working or update the gamedata manually from http://hg.limetech.org/projects/conn...nect.games.txt.
That's probably it, the gamedata wasn't chmodded to be writable, so it couldn't be updated. Thanks.
__________________
Dr. McKay is offline
Experto
Member
Join Date: Jan 2008
Location: Brasil
Old 12-21-2011 , 14:35   Re: Connect - A safer OnClientPreConnect forward
Reply With Quote #28

I have the same problem...

Already updated the gamedata and the problem persists ...
__________________
My Plugins:
-IP Block: This plugin block the entry in the server of players with same IP. Too is possible to config exceptions for some IPs
-Auto Swap Team: This plugin does the automatic swap of teams according to the options selected
-Welcome Sound: Plays sound of welcome for the players
Experto is offline
MFS
AlliedModders Donor
Join Date: Dec 2010
Old 12-23-2011 , 05:36   Re: Connect - A safer OnClientPreConnect forward
Reply With Quote #29

Aafter installing the server, the client can not access the server, writes the kind of "connection is not established after 4 attempts" (do not remember exactly, but the meaning is the same)

debian, css

Last edited by MFS; 12-23-2011 at 05:36.
MFS is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 12-27-2011 , 15:59   Re: Connect - A safer OnClientPreConnect forward
Reply With Quote #30

So I went and added the Updater plugin, as well as that Auto Steam Update plugin to my Linux server.

Also added cURL, SteamTools, and this extension.

Started my server up.....it crashes on start, restarts itself, crashes again, restarts itself, crashes again....you get the idea.

So I stopped my server, removed this extension and started it back up......it started fine. No crashes.

So for some reason, this extension causes my server to repeatedly crash on start. And because my server auto-restarts itself (after 15 seconds), it's a repetitive crash.

I've checked my SourceMod error logs, and nothing appears in them. I can't seem to find the location of my server's crash dumps, so I can't exactly check them.

And I should note that my server is using the latest Linux-version SourceMod/MetaMod versions.

Edit: I see mentions of some gamedata thing up there. I'm gonna check that out later. I have a feeling that might be why my server crashes on load.

Last edited by 404UserNotFound; 12-27-2011 at 16:00.
404UserNotFound is offline
Reply


Thread Tools
Display Modes

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 17:39.


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