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

[Any] Classy Crash Logger


Post New Thread Reply   
 
Thread Tools Display Modes
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 10-07-2010 , 22:40   Re: [Any] Classy Crash Logger
Reply With Quote #31

Quote:
Originally Posted by snelvuur View Post
It does log it when the map changes with l4d2 for instance..
That has to do with L4D.

I may have a way to fix it though.
__________________
DarthNinja is offline
snelvuur
Veteran Member
Join Date: Jun 2008
Location: Netherlands
Old 10-08-2010 , 13:38   Re: [Any] Classy Crash Logger
Reply With Quote #32

Well if you could. Please
snelvuur is offline
eraserhead
Veteran Member
Join Date: Nov 2009
Old 10-08-2010 , 14:34   Re: [Any] Classy Crash Logger
Reply With Quote #33

Where can i find the log then? Because as you can see on my page there are only dates and times and no diagnostic info.
__________________
eraserhead is offline
Send a message via Skype™ to eraserhead
snelvuur
Veteran Member
Join Date: Jun 2008
Location: Netherlands
Old 10-08-2010 , 14:37   Re: [Any] Classy Crash Logger
Reply With Quote #34

it only shows you the timestamp when the server restarted, no logs no diagnostics.. as it says in the first page..
snelvuur is offline
Tema
Junior Member
Join Date: Jan 2010
Location: Minsk
Old 10-09-2010 , 06:00   Re: [Any] Classy Crash Logger
Reply With Quote #35

Quote:
Originally Posted by Nomarky View Post
Could you share the batch file? I've been trying to do something like this, but havent had much success googling...

CHeers!
Code:
@echo off
cls
echo Protecting srcds from crashes...
title tf2 restarter
:srcds
echo (%time%) srcds started.
start /wait srcds.exe -console -game tf -secure -tickrate 66 +maxplayers 32 -port 27020 +map pl_goldrush -appid 440 -nocrashdialog +log on -noipx
echo (%time%) WARNING: srcds closed or crashed, restarting....
goto srcds
__________________
Tema is offline
Send a message via ICQ to Tema
Skyrider
AMX Mod X Beta Tester
Join Date: May 2005
Location: Netherlands
Old 01-03-2011 , 03:12   Re: [Any] Classy Crash Logger
Reply With Quote #36

Yup.. even logs with a simple map change. Would love to see more details in the log, plus multiple server support later on. By the way.. how do I alter the time frame? It shows a time which is not my own local time. How do I alter this?
__________________
Skyrider is offline
Send a message via AIM to Skyrider Send a message via MSN to Skyrider Send a message via Yahoo to Skyrider
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 01-03-2011 , 03:17   Re: [Any] Classy Crash Logger
Reply With Quote #37

Quote:
Originally Posted by FF|Skyrider View Post
Yup.. even logs with a simple map change. Would love to see more details in the log, plus multiple server support later on. By the way.. how do I alter the time frame? It shows a time which is not my own local time. How do I alter this?
At some point (soon I hope) I'm going to add a bunch of features.
Presently I'm busy working on ItemBot.

The timestamp is whatever your server's time/date is set to. If you need to change it, edit the php file to add/remove the needed time from the stamp before printing it.

I'm sure I'll add a config for that as well in the future.
__________________
DarthNinja is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 08-10-2011 , 01:36   Re: [Any] Classy Crash Logger
Reply With Quote #38

Well I got around to rewriting this, so hopefully it's going to be a lot more useful.

Quote:
  • Web V2.0.0
    • Complete rewrite
    • Multi-server compatible!
    • Now lists the hostname or custom name of the servers.
    • Servers are now filterable on the list by ID number.
    • Looks Purrdy! (not so much)
    • CSS2.1/CSS3 Compliant!
    • XHTML 1.0 Compliant!
  • Plugin V2.0.0
    • Complete rewrite
    • Plugin now uses threaded connections and queries
    • Cvar added to set a custom name for the server to display on the web interface. Defaults to the server hostname.
    • Cvar added to set a server ID number (for site crash filtering).
    • Cvar added to set a time offset to alter the server timestamp by.
    • Feature added to detect crashes / forced restarts from graceful server restarts. Only crashes and forced restarts will be logged.
Live Demo:
http://darthninja.com/crashlog_demo/

Updating:
  1. Install the plugin
  2. Edit the plugin config that the plugin now generates:
    • sm_crashlogger_offset
      Edit as needed to correct timezone issues.
    • sm_crashlogger_servername
      Set as desired, otherwise leave blank to use the server hostname.
    • sm_crashlogger_serverid
      Make sure you set this: A unique numeric ID is needed for the site to sort/filter servers.
  3. Delete the old site files
  4. Upload the new site files
    You can leave the config file alone as no changes are needed.
__________________

Last edited by DarthNinja; 08-10-2011 at 01:48.
DarthNinja is offline
Obsidian
Senior Member
Join Date: Jun 2011
Old 08-20-2011 , 23:39   Re: [Any] Classy Crash Logger
Reply With Quote #39

Quote:
Originally Posted by DarthNinja View Post
Erm, your demo...

"Unable to select database"
__________________
TF2 Stats plugin alternative web interface - profile @ Github
(tf2stats-webui latest release: 1.1.1)


"If you're not willing to do it right, don't get involved with security or Explosive Ordinance Disposal."
Obsidian is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 08-21-2011 , 02:00   Re: [Any] Classy Crash Logger
Reply With Quote #40

Quote:
Originally Posted by Obsidian View Post
Erm, your demo...

"Unable to select database"
I'm in the process of moving to a new VPS, deal with it.
__________________
DarthNinja 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 16:42.


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