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

[ANY] Log Connections


Post New Thread Reply   
 
Thread Tools Display Modes
PAL-18
AlliedModders Donor
Join Date: Jul 2010
Old 03-27-2015 , 02:16   Re: [ANY] Log Connections
Reply With Quote #31

The folder exists (addons/sourcemod/logs/connections), but i keep getting complaints about it not existing.

Quote:
02:15:15 [SM] Plugin encountered error 25: Call was aborted
02:15:15 [SM] Native "SetFailState" reported: Failed to create directory at /sourcemod/logs/connections - Please manually create that path and reload this plugin.
02:15:15 [SM] Displaying call stack trace for plugin "logconnections.smx":
PAL-18 is offline
PAL-18
AlliedModders Donor
Join Date: Jul 2010
Old 04-05-2015 , 18:31   Re: [ANY] Log Connections
Reply With Quote #32

I managed to fix the error in my previous post by doing the following:

In logconnections.sp, delete lines 20 to 28:

Code:
	BuildPath(Path_SM, g_sFilePath, sizeof(g_sFilePath), "logs/connections/");
	
	if (!DirExists(g_sFilePath))
	{
		CreateDirectory(g_sFilePath, 511);
		
		if (!DirExists(g_sFilePath))
			SetFailState("Failed to create directory at /sourcemod/logs/connections - Please manually create that path and reload this plugin.");
	}
Make sure to create "addons/sourcemod/logs/connections" directory.
PAL-18 is offline
daimyo21
New Member
Join Date: Jan 2011
Old 05-08-2015 , 18:38   Re: [ANY] Log Connections
Reply With Quote #33

Quote:
Originally Posted by PAL-18 View Post
I managed to fix the error in my previous post by doing the following:

In logconnections.sp, delete lines 20 to 28:

Code:
    BuildPath(Path_SM, g_sFilePath, sizeof(g_sFilePath), "logs/connections/");
    
    if (!DirExists(g_sFilePath))
    {
        CreateDirectory(g_sFilePath, 511);
        
        if (!DirExists(g_sFilePath))
            SetFailState("Failed to create directory at /sourcemod/logs/connections - Please manually create that path and reload this plugin.");
    }
Make sure to create "addons/sourcemod/logs/connections" directory.

Confirmed that this works
daimyo21 is offline
island55
Senior Member
Join Date: Aug 2010
Location: charleston
Old 06-07-2015 , 22:11   Re: [ANY] Log Connections
Reply With Quote #34

or you could have read the previous posts: https://forums.alliedmods.net/showpo...4&postcount=17
island55 is offline
brsobral
Junior Member
Join Date: Feb 2016
Old 02-06-2016 , 14:03   Re: [ANY] Log Connections
Reply With Quote #35

I am with same error, but this folder has been created automatically.
Can anyone help me?
brsobral is offline
brsobral
Junior Member
Join Date: Feb 2016
Old 02-06-2016 , 15:36   Re: [ANY] Log Connections
Reply With Quote #36

L 02/06/2016 - 181:26: Error log file session closed.
L 02/06/2016 - 182:01: SourceMod error session started
L 02/06/2016 - 182:01: Info (map "market") (file "errors_20160206.log")
L 02/06/2016 - 182:01: [SM] Plugin encountered error 25: Call was aborted
L 02/06/2016 - 182:01: [SM] Native "SetFailState" reported: Failed to create directory at /sourcemod/logs/connections - Please manually create that path and reload this plugin.
L 02/06/2016 - 182:01: [SM] Displaying call stack trace for plugin "logconnections.smx":
L 02/06/2016 - 182:01: [SM] [0] Line 27, /home/forums/content/files/1/7/9/3/9/7/115447.attach::OnPluginStart()
brsobral is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 02-07-2016 , 00:33   Re: [ANY] Log Connections
Reply With Quote #37

Quote:
Originally Posted by brsobral View Post
Failed to create directory at /sourcemod/logs/connections - Please manually create that path and reload this plugin.
__________________
Dr. McKay is offline
brsobral
Junior Member
Join Date: Feb 2016
Old 02-07-2016 , 06:19   Re: [ANY] Log Connections
Reply With Quote #38

Quote:
Originally Posted by brsobral View Post
but this folder has been created automatically.
this folder is already created.

Ps. I am talking about Insugengy dedicated server on windows.
On "sm plugins list" this plugins is showed with "<error>" before name on the list.
brsobral is offline
goodBEan
Senior Member
Join Date: Jul 2010
Location: St. Louis Mo USA
Old 03-08-2016 , 19:57   Re: [ANY] Log Connections
Reply With Quote #39

Any chance you can add the option to change the location of the log. I am using source servers within docker containers and its a pain in the ass to have it pull logs from 2 directories.

Last edited by goodBEan; 03-08-2016 at 21:48.
goodBEan is offline
goodBEan
Senior Member
Join Date: Jul 2010
Location: St. Louis Mo USA
Old 11-13-2016 , 12:14   Re: [ANY] Log Connections
Reply With Quote #40

Since I use docker for some of my servers, the fact that it posts the logs in a sub-directory kinda made things a bit harder. So what I did is made a few modifications to fit my needs.

I made only 2 changes.

  • The log file is in /sourcemod/logs instead of /sourcemod/log/connections
  • The log file has starts with the name STEAMID_*.txt (STEAMID_13_Nov_2016.txt). It was just previously Nov_2016.txt
I have attached both files to this post. I have renamed the file logconnections-ll in order to keep things organized.



Also its my first time modifying a plugin and posting it, so I am sorry if I break any rules or something.


32
Attached Files
File Type: sp Get Plugin or Get Source (logconnections-ll.sp - 527 views - 4.0 KB)
File Type: smx logconnections-ll.smx (6.1 KB, 254 views)

Last edited by goodBEan; 11-13-2016 at 12:24.
goodBEan 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 03:46.


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