The Unreal Admins Page - Forums

The Unreal Admins Page - Forums (https://unrealadmin.org/forums/index.php)
-   Tips & Tutorials Followups (https://unrealadmin.org/forums/forumdisplay.php?f=111)
-   -   The Ultimate Bat File (https://unrealadmin.org/forums/showthread.php?t=12248)

Baiter 21st September, 2005 11:05 PM

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

ShiningSquirrel 22nd September, 2005 01:37 AM

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

‮‮‮ 22nd September, 2005 07:43 PM

Cool thanks for the tip SSquirell

PizzaMan 22nd September, 2005 07:58 PM

Tell me, how did you get the amazing idea of using a blank forum name? And why is that even possible?

ShiningSquirrel 22nd September, 2005 09:24 PM

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.

PizzaMan 22nd September, 2005 10:08 PM

Lame indeed.

Adrian[ADIES] 9th February, 2006 10:02 PM

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.

dualillusion 11th February, 2006 06:06 AM

It took a professional programmer to make a bat file? sad.. nethertheless, cool bat :P

Adrian[ADIES] 13th February, 2006 05:57 PM

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.

Baiter 14th February, 2006 12:18 AM

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.

BLTicklemonster 26th February, 2007 05:05 PM

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.

Baiter 26th February, 2007 05:41 PM

Quote:

Originally Posted by BLTicklemonster (Post 113111)
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 :P

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.

:P

BLTicklemonster 26th February, 2007 08:43 PM

Thanks B! Since I installe eavyspawn no log, suddenly aka has begun logging, lmao. I wonder what will begin logging next?

BLTicklemonster 26th February, 2007 09:53 PM

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?

Baiter 27th February, 2007 12:59 AM

Quote:

Originally Posted by BLTicklemonster (Post 113146)
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)

BLTicklemonster 27th February, 2007 04:23 AM

We're still logging aka stuff. Sure that's the right one?

Baiter 27th February, 2007 06:53 AM

Quote:

Originally Posted by BLTicklemonster (Post 113181)
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

BLTicklemonster 27th February, 2007 11:16 AM

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

Sorry.

{BL}GypsyAngel[BLA] 28th February, 2007 05:24 AM

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.

back4more 26th September, 2010 05:03 AM

bump this one back up , was looking for this for a while now. :P


All times are GMT +1. The time now is 02:31 PM.

 


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