You are an unregistered user, you can register here
Navigation

Information

Site

Donations
If you wish to make a donation you can by clicking the image below.


 
Go Back   The Unreal Admins Page > Forums > Unreal Admins > General > Tips & Tutorials Followups

Reply
Thread Tools Display Modes
  #1  
Unread 21st September, 2005, 11:05 PM
Baiter's Avatar
Baiter Baiter is offline
Holy Shit!!
 
Join Date: Apr 2004
Location: Houston, TX
Posts: 1,566
Default The Ultimate Bat File

Hey Guys!

Dingus, a member of the SDA Clan, is a professional programmer, and has made this very awesome bat file, and gave me permission to share it.



This Bat File will save every single Bat File into a Directory of YOUR Choosing. So, you can now save all your Server Logs!

This also acts as a Crash Log, and an Automatic Server Restart in the Event of a Crash.



First of all, this is Ours Currently.
Code:
:top
d:
cd\UTServers\UnrealTournament\System
ucc server CTF-2Pyramids][?Mutator=MapVoteLA12.BDBMapVote multihome=67.19.181.52 ini=SERVER.INI log=ucc.log
for /f "tokens=1,2" %%u in ('date /t') do set d=%%v
for /f "tokens=1" %%u in ('time /t') do set t=%%u
if "%t:~1,1%"==":" set t=0%t%
set timestr=%d:~6,4%%d:~3,2%%d:~0,2%%t:~0,2%%t:~3,2%
copy ucc.log C:\ServerCrashLogs\main\ucccrash%timestr%.log
copy ucc.log ucccrash.log
goto top
Now there are some Variables you need to change. Most of which is Obvious, but I will stay it for the sake of everyone.

d: <== Drive in Which the Server is on.
cd\UTServers\UnrealTournament\System <== Folder Directory of the Server
ucc server CTF-2Pyramids][?Mutator=MapVoteLA12.BDBMapVote multihome=67.19.181.52 ini=SERVER.INI log=ucc.log <== Server Command Line
for /f "tokens=1,2" %%u in ('date /t') do set d=%%v
for /f "tokens=1" %%u in ('time /t') do set t=%%u
if "%t:~1,1%"==":" set t=0%t%
set timestr=%d:~6,4%%d:~3,2%%d:~0,2%%t:~0,2%%t:~3,2%
copy ucc.log C:\ServerCrashLogs\main\ucccrash%timestr%.log <== Directory in which you want the Logs to Go.
copy ucc.log ucccrash.log
goto top


Be sure to post any comments or Suggestions!

Enjoy!

Dingus and Baiter
www.clansda.com
Reply With Quote
  #2  
Unread 22nd September, 2005, 01:37 AM
ShiningSquirrel ShiningSquirrel is offline
Holy Shit!!
 
Join Date: Mar 2004
Posts: 740
Default

Quote:
Originally Posted by Baiter
Hey Guys!

Dingus, a member of the SDA Clan, is a professional programmer, and has made this very awesome bat file, and gave me permission to share it.



This Bat File will save every single Bat File into a Directory of YOUR Choosing. So, you can now save all your Server Logs!

This also acts as a Crash Log, and an Automatic Server Restart in the Event of a Crash.



First of all, this is Ours Currently.
Code:
:top
d:
cd\UTServers\UnrealTournament\System
ucc server CTF-2Pyramids][?Mutator=MapVoteLA12.BDBMapVote multihome=67.19.181.52 ini=SERVER.INI log=ucc.log
for /f "tokens=1,2" %%u in ('date /t') do set d=%%v
for /f "tokens=1" %%u in ('time /t') do set t=%%u
if "%t:~1,1%"==":" set t=0%t%
set timestr=%d:~6,4%%d:~3,2%%d:~0,2%%t:~0,2%%t:~3,2%
copy ucc.log C:\ServerCrashLogs\main\ucccrash%timestr%.log
copy ucc.log ucccrash.log
goto top
Now there are some Variables you need to change. Most of which is Obvious, but I will stay it for the sake of everyone.

d: <== Drive in Which the Server is on.
cd\UTServers\UnrealTournament\System <== Folder Directory of the Server
ucc server CTF-2Pyramids][?Mutator=MapVoteLA12.BDBMapVote multihome=67.19.181.52 ini=SERVER.INI log=ucc.log <== Server Command Line
for /f "tokens=1,2" %%u in ('date /t') do set d=%%v
for /f "tokens=1" %%u in ('time /t') do set t=%%u
if "%t:~1,1%"==":" set t=0%t%
set timestr=%d:~6,4%%d:~3,2%%d:~0,2%%t:~0,2%%t:~3,2%
copy ucc.log C:\ServerCrashLogs\main\ucccrash%timestr%.log <== Directory in which you want the Logs to Go.
copy ucc.log ucccrash.log
goto top


Be sure to post any comments or Suggestions!

Enjoy!

Dingus and Baiter
www.clansda.com
I use something similer when using firedeamon.
Only differance is I seperated out the set time strings to make it easier to customize.
http://www.unrealadmin.org/forums/sh...83&postcount=4
Reply With Quote
  #3  
Unread 22nd September, 2005, 07:43 PM
‮‮‮ ‮‮‮ is offline
Banned
 
Join Date: Sep 2005
Posts: 7
Default

Cool thanks for the tip SSquirell
Reply With Quote
  #4  
Unread 22nd September, 2005, 07:58 PM
PizzaMan's Avatar
PizzaMan PizzaMan is offline
Holy Shit!!
 
Join Date: Jun 2004
Location: Bergen - Norway
Posts: 2,389
Default

Tell me, how did you get the amazing idea of using a blank forum name? And why is that even possible?
Reply With Quote
  #5  
Unread 22nd September, 2005, 09:24 PM
ShiningSquirrel ShiningSquirrel is offline
Holy Shit!!
 
Join Date: Mar 2004
Posts: 740
Default

Quote:
Originally Posted by PizzaMan
Tell me, how did you get the amazing idea of using a blank forum name? And why is that even possible?
He's using a unicode reverse text code.
It's an old trick but some still think it's funny. Using the same code you can make all of your typing appear backwards.

* this is an example, pretty lame but some people think it's fun to popst in forums this way.
Reply With Quote
  #6  
Unread 22nd September, 2005, 10:08 PM
PizzaMan's Avatar
PizzaMan PizzaMan is offline
Holy Shit!!
 
Join Date: Jun 2004
Location: Bergen - Norway
Posts: 2,389
Default

Lame indeed.
Reply With Quote
  #7  
Unread 9th February, 2006, 10:02 PM
Adrian[ADIES]'s Avatar
Adrian[ADIES] Adrian[ADIES] is offline
Godlike
 
Join Date: May 2005
Location: UK NorthWest
Posts: 252
Default On Windows XP Pro

This is a super .bat file Thanks Dingus and Baiter

Just incase anyone else has the same problem as me ill post my experience.
I use WindowsXP Pro on my server so I dont know if thats why I struggled but, I was getting syntax error and the date wasnt working time was ok.

After a lot of guessing and trial and error I had to change the line
from
Code:
for /f "tokens=1,2" %%u in ('date /t') do set d=%%v
to
Code:
for /f "tokens=1,2" %%u in ('date /t') do set d=%%u
I just changed "v" to "u" and the error log works fine for me now.
__________________
www.adies.net - Dedicated to Strangelove-CTF.

Download my UT map CTF-Microhec33 CTF-Microhec33.zip :::: Read The Review
Reply With Quote
  #8  
Unread 11th February, 2006, 06:06 AM
dualillusion dualillusion is offline
Forum Newcomer
 
Join Date: Feb 2006
Posts: 2
Default

It took a professional programmer to make a bat file? sad.. nethertheless, cool bat
Reply With Quote
  #9  
Unread 13th February, 2006, 05:57 PM
Adrian[ADIES]'s Avatar
Adrian[ADIES] Adrian[ADIES] is offline
Godlike
 
Join Date: May 2005
Location: UK NorthWest
Posts: 252
Default

Just a bit of info ive found for me it will log from turning the server on to whenever it does go off/crash instead of restarting at each map change.
So after a couple of days my log was 200mb.
__________________
www.adies.net - Dedicated to Strangelove-CTF.

Download my UT map CTF-Microhec33 CTF-Microhec33.zip :::: Read The Review
Reply With Quote
  #10  
Unread 14th February, 2006, 12:18 AM
Baiter's Avatar
Baiter Baiter is offline
Holy Shit!!
 
Join Date: Apr 2004
Location: Houston, TX
Posts: 1,566
Default

Quote:
Originally Posted by Adrian[ADIES]
Just a bit of info ive found for me it will log from turning the server on to whenever it does go off/crash instead of restarting at each map change.
So after a couple of days my log was 200mb.
Your log will continue to grow until your server crashes or you reset it.

And to my advice to suppress logs like this:

Suppress=DevLoad
Suppress=DevSave
Suppress=DevNetTraffic
Suppress=DevGarbage
Suppress=DevKill
Suppress=DevReplace
Suppress=DevSound
Suppress=DevCompile
Suppress=DevBind
Suppress=DevBsp
Suppress=DevNet
Suppress=ScriptWarning
Suppress=NetComeGo

And if you use AKA, use the No log Version.

And if you use Eavy Spawn Protection, use the No log Version.


And I have a VERY FULL 30 man server, and it only logs about 7-10 MB a day.
Reply With Quote
  #11  
Unread 26th February, 2007, 05:05 PM
BLTicklemonster BLTicklemonster is offline
Holy Shit!!
 
Join Date: May 2004
Posts: 1,004
Default

Okay, there's an aka no log version? Where?!!!?

and pardon my eeg-nurnce, but is there anything like this bat file for linux servers? We need to be saving crash logs, but our provider has nothing to do that with from what I hear.
Reply With Quote
  #12  
Unread 26th February, 2007, 05:41 PM
Baiter's Avatar
Baiter Baiter is offline
Holy Shit!!
 
Join Date: Apr 2004
Location: Houston, TX
Posts: 1,566
Default

Quote:
Originally Posted by BLTicklemonster View Post
Okay, there's an aka no log version? Where?!!!?

and pardon my eeg-nurnce, but is there anything like this bat file for linux servers? We need to be saving crash logs, but our provider has nothing to do that with from what I hear.
-={SDA}=-Dingus made this, so thank him....I didnt do it

The 6K version:

http://www.ut-files.com/Admin/AKA/AKAv6KLog.zip

The 20K Version:

http://www.ut-files.com/Admin/AKA/AKAv20K.zip

As far as a Linux Version without having access to the actual PC, I dont know, but maybe someone else here does.

__________________
-={SDA}=-Baiter | Maker of Sniper's Heaven
Clan SDA | UT Server Baiter Edition | Play Sniper's Heaven!!! | SDA Gaming Servers
Reply With Quote
  #13  
Unread 26th February, 2007, 08:43 PM
BLTicklemonster BLTicklemonster is offline
Holy Shit!!
 
Join Date: May 2004
Posts: 1,004
Default

Thanks B! Since I installe eavyspawn no log, suddenly aka has begun logging, lmao. I wonder what will begin logging next?
Reply With Quote
  #14  
Unread 26th February, 2007, 09:53 PM
BLTicklemonster BLTicklemonster is offline
Holy Shit!!
 
Join Date: May 2004
Posts: 1,004
Default

Oo it has the exact same name as what we use at present. Just overwrite it, I suppose, seeing as how there's no client downloads, huh?
Reply With Quote
  #15  
Unread 27th February, 2007, 12:59 AM
Baiter's Avatar
Baiter Baiter is offline
Holy Shit!!
 
Join Date: Apr 2004
Location: Houston, TX
Posts: 1,566
Default

Quote:
Originally Posted by BLTicklemonster View Post
Oo it has the exact same name as what we use at present. Just overwrite it, I suppose, seeing as how there's no client downloads, huh?
yep. Just as long as you dont have it in your server packages (which you shouldnt)
__________________
-={SDA}=-Baiter | Maker of Sniper's Heaven
Clan SDA | UT Server Baiter Edition | Play Sniper's Heaven!!! | SDA Gaming Servers
Reply With Quote
  #16  
Unread 27th February, 2007, 04:23 AM
BLTicklemonster BLTicklemonster is offline
Holy Shit!!
 
Join Date: May 2004
Posts: 1,004
Default

We're still logging aka stuff. Sure that's the right one?
Reply With Quote
  #17  
Unread 27th February, 2007, 06:53 AM
Baiter's Avatar
Baiter Baiter is offline
Holy Shit!!
 
Join Date: Apr 2004
Location: Houston, TX
Posts: 1,566
Default

Quote:
Originally Posted by BLTicklemonster View Post
We're still logging aka stuff. Sure that's the right one?
Make sure these settings match:

[AKAv6L.AKAv6L]
NameCheckDelaySeconds=300
bAutoAddIPToNameEntries=True
bChangeNames=False
KeepNameHistory=3
bListCommand=True
bChangeCommand=False
bLog=False
__________________
-={SDA}=-Baiter | Maker of Sniper's Heaven
Clan SDA | UT Server Baiter Edition | Play Sniper's Heaven!!! | SDA Gaming Servers
Reply With Quote
  #18  
Unread 27th February, 2007, 11:16 AM
BLTicklemonster BLTicklemonster is offline
Holy Shit!!
 
Join Date: May 2004
Posts: 1,004
Default

Jeez, there was a readme file in there wasn't there?

Sorry.
Reply With Quote
  #19  
Unread 28th February, 2007, 05:24 AM
{BL}GypsyAngel[BLA] {BL}GypsyAngel[BLA] is offline
Rampage
 
Join Date: May 2006
Posts: 59
Default

Actually, I think I can get our provider to look at it, since it would be a function of the startup script.

If not, I'll dig out my trusty-rusty coders' guide for *NIX and see what I can pull from me bum.

I'll keep you posted.
Reply With Quote
  #20  
Unread 26th September, 2010, 05:03 AM
back4more's Avatar
back4more back4more is offline
Holy Shit!!
 
Join Date: Oct 2008
Location: NextDoor
Posts: 1,908
Default

bump this one back up , was looking for this for a while now.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:12 AM.


 

All pages are copyright The Unreal Admins Page.
You may not copy any pages without our express permission.