Jump to content

Check us out:

Photo
- - - - -

Lynxx's ShrubLogger V1.17 / CheckServer V1.13


  • Please log in to reply
18 replies to this topic

#1
Lynxx

Lynxx

    Will Become Famous Soon Enough

  • Old retired farts
  • 2,471 posts
  • Gender:Male
  • Location:Germany, Warmbronn
  • Server:Bunker #2
Click to view battle stats
-------------------------------------------------------------------------------

Summary

-------------------------------------------------------------------------------

1) You get this additional features via crontab:

ShrubUpdate.sh - keep track of the players levels over time

kill_IF_EMPTY.sh - restarts the server once every night, to keep logfiles small

2) You get this additional commands in the shell:

>levels partofname or partofguid
Prints the levelhistory for this player(s)
Outputs full guid and every match found with exact date.

>alllevels
Print the levelhistory for all connected players (needs a working finger-commands, etadmin-finger wont work)

>findplayer name
Find a player on a bunker-server

>checkserver (name)
Prints info about the server, servername, started, map running, spectators, players
All connected players, with xp, ping, team

3) You get his additional commands in the game via etadmin_mod:

>!levels partofname or partofguid
Prints the levelhistory for this player(s)
Outputs only the partly guid you also see in !listplayers, maximum displays 5 matches, "fancy dates" - like yesterday, 5w (5 weeks)

>!findplayer name
Find a player on a bunker-server

>!checkserver (name)
Prints info about the server, servername, started, map running, spectators, players

-------------------------------------------------------------------------------

ShrubLogger

-------------------------------------------------------------------------------

Normally all admins decide by feeling when someone should get a new level, but this could result in someone leveling 2 or more levels in a very short time.
Because noone knows when did player X get his last levelupgrade ?

Here is the solution, ShrubLogger - it should run at least every 24h, will scan the shrubbot.cfg and remember when players got their levels in shrubhist.cfg.

You just have to start it once manually to see if the install of java and so on are ok, then you set up a cron-job (crontab -e) with:
CODE
#Execute ShrubUpdate every 6h
#M S T M W Befehl
0 0,6,12,18 * * * ./ShrubUpdate


When you setup this alias (or similar):
alias levels='cd /usr/local/games/enemy-territory/noquarter;java ShrubLogger'

You can then simply search for players with:
levels partofname or partofGUID

For example:
levels lyn
ShrubLogger .... by Lynxx - for |>B<|unker-Community
Searching for 'lyn' ...
|>B<|Lynxx|A| / F9F282346C685288D8835B2BED8E80E0 LVL: 1=1.1.2003,2=20.3.2003,3=16.6.2003,4=31.10.2003,...,666=31.12.2005,1000=1.6.2006

Ofcourse there is no real history right now, because all players got their levels 'brand new', but that's why i've written the tool, in the future you will see something like:
Imnew / 855BF9F2288D8836C62BED823480E08E LVL: 1=5.1.7,2=20.3.7,3=1.6.7,4=22.9.7

From today it's running on B2.

You need to install any Java (JDK1.02 ++) on your server, installing under current user is enough, no need for root.

Edit: If there are duplicate GUID's in the shrubbot.cfg (like MadCow was twice in B2's config) - you will get an error-output - if an error occurs during it's excuted as cron-job you will revive an email with the error.

In case you may worry it will slow down the server, runtime for including reading shrubbot.cfg / shrubhist.cfg and writing shrubhist.cfg (1304 Admin-Entries) - is 4 seconds on B2.

2nd Edit: Update to V1.03 - et-colorcodes will be removed for from hist-file and search, this way it's easier to find someone.
When you do a manual search, it will update the histfile before in case something changed.

3rd Edit: Update to V1.04 - now with etadmin-mod addon, put 'levels.sh' in etadminmod/addons and add the command to some level, on B2 i let lvl 8 and higher use the command.
The command itself recognizes etadmin-mod using the '-e' switch.
While in etadmin-mode it doesnt update the history for fast feedback/low resourceuse.

The output will be limited to 5 lines, no header and no GUIDS.

4th Edit: P3y wants color-codes for etadm .. so another update to V1.05, changed year to full YYYY.

5th Edit: Entries which are removed from shrubbot.cfg will also be removed from history, now it's also a needful help to find 'duplicates' - for example B!O has 4 entries in shrubbot in the moment ...

Some more updates .. now it will also say how much entries found when more than 5, say when no entry found, output a part of the GUID (12chars).
So if your unsure or cant find an entry , !finger the person - and !levels PARTOFGUID .. works also.

V1.09 Released:
Mow instead of raw dates for example '1.1.2007' it will output 'fancy dates' - for example '4 days ago' - special request from p3y.

V1.10 Released:
Minor Update - some small optimiziations, added !shrubhist for lvl 421++ which will update the history, only needed after some !setlevel and you want to check again ...
The cron-job will do the same every 24h.

V1.11 Released:
Now the output of the GUID is exactly the same as !listplayers, for example: (*D6825216)

V1.12 Released:
Made a little mistake in 'fancy' Dates-calculation, added now for example 3.2y ..
Added 'nice -n 19' (lowest pri) to the calls, this way et-server want be influenced by the tool.

V1.13 Released:
ShrubLogger V1.13 - on 8.5.2007 by Lynxx - for |>B<|unker-Community
Usage: ShrubLogger (-f / -e) partofname or GUID
partofname is for example 'lyn' or you could define a GUID (partly) to use.
-f show levels of ppl on the server (needs working finger-command)
-e etadmin-mode, will only print the last part of a GUID like !listplayers
Without parameters 'shrubbot.cfg' will be read and level-history written to 'shrubhist.cfg'.

Added the -f parameter which first reads the server-port, and rcon-password from server.cfg, then connect to localhost:server-port and get the online players via 'getstatus'.
Then 'rcon RCONPW finger partofplayername' (because no spaces allowed) is launched, first i wanted to use the slot-numbers, but that will fail wenn for example two players with a zero in their name are connected.

Those rcon-calls must delayed by around 750ms, that's why it will take a while to print all players info, but it's still a lot faster than doing everything by hand. smile.gif

Output will look like:
CODE
[etadm@bunker2 noquarter]$ alllevels
Levelhistory for all players on |>B<|Bunker #2 XP.30map:
|>B<|*Sniperken*|A| / |>B<|*Sniperken* 13=7.5.2007
Deminwarrior / Deminwarrior 7=30.4.2007
>BlacqWidow< / Widow 6=20.4.2007
BlacqFR33DOM / BlacqFR33DOM 2=1.5.2007
|>B<| broken / |>B<| broken 11=7.5.2007
|>B<|KarLOTto[ChillaZ] / |>B<|KarlOTto[ChillaZ] 9=1.1.2007
Rolph - NEW PLAYER
:StonedRaiders.Twee / Twee 3=25.4.2007
Pezzo - NEW PLAYER
HOLYMoly / holy moly 1=4.5.2007
winnField - NEW PLAYER
CommanderCool / WeWantYourSoul 1=16.4.2007
SattaBuzz / SattaMaDProf 4=1.1.2007
don-diego / don-diego 1=1.1.2007
eXo. / eXo. 1=5.5.2007
(T)BlacqPyro / !Pyromaania! 3=23.4.2007
FreeFighter-=NL=- - NEW PLAYER

First the current playername, second the name in shrubbot.cfg and finally when he got his level and which one.

V1.14 Released:
Oops, reformatted the sourcecode and added some comments i found a bug in the first line of main(), i forgot to check if it's started with any arguments at all. sad.gif
Which created an ArrayIndexOfOufBounds-Exception when it should Update the history (started without args).

V1.15 Released:
Formatted the all players output, makes it easier to read:
CODE
Playername on the server      | Playername in shrubbot        |level | date
------------------------------+-------------------------------+------+------------
>YATAHEY<<                    | YATAHEY                       |    3 | 25. 4.2007
|>B<|onyx                     | dark->onyx                    |   11 | 30. 4.2007
sdjfhga                       | Israel xXx                    |    2 | 10. 2.2007
foraby                        | foraby                        |    4 |  8. 4.2007
EgoR                          | ***NEW PLAYER***              |    - | -
BlacqgBjork                   | bjork*                        |    3 | 23. 2.2007
LYSY                          | ***NEW PLAYER***              |    - | -
Twee                          | Twee                          |    4 |  9. 5.2007

^^ d0h whats that - no fixed width font in the code-tag !? :-/
Well at least in the console you will get a nice table showing the levels.

The Source-Code is included in the file, so you can take a look - no network-access outside localhost, no backdoors or anything illegal. cool.gif

V1.16 Released:
Alllevels now also lists xp of the players:
CODE
Levelhistory for all players on |>B<|Bunker #2 XP.30map:
Playername on the server | Playername in shrubbot   |     xp |level| date
-------------------------+--------------------------+--------+-----+------------
Marine                   | ***NEW PLAYER***         |   1925 |    -| -


V1.17 Released:
Merged with CheckServer-Project, abstract class PlayerEntry for xp-sorting - both projects inherit from this and use the static functions in ShrubUtils.
Removed entries from shrubhist.cfg will be written to ShrubLogger.log
Alllevels-Output will now sorted by XP.
Only 1 jar-file now - merging the projects and storing in one compressed file reduces total code-size to around 30%.

-------------------------------------------------------------------------------

CheckServer

-------------------------------------------------------------------------------

I wrote a simple program which checks how many players are currently on the server,

Output will look like:
CODE
[etadm@bunker2 ~]$ checkserver
Server: |>B<|Bunker #2 XP.30map
Map: etsbay
15 Players:
BlacqKaW
Marine
-=ZaRNaK=-
...


CODE
[etadm@bunker1 enemy-territory]$ checkserver
Server: |>B<|Bunker #1 [XP Save]
Map: facility31_b1
58 Players:
|>B<|ScrewLoose
Barto
|>B<|Abys@lDemon<-
...


Ofcourse all playernames will be printed.

I mainly wrote this program to return the number of players as returncode, because i set up a cronjob for b1 & b2 which will be executed at 5 am (ofcourse local time, when server is usually empty).
Which does: '/usr/local/games/enemy-territory/kill_IF_EMPTY.sh'

And this script uses CheckServer to check if the server is really empty and kill ET if that's true.
This way we shouldn't have any more problems with huuuuge logfiles, normally every day there will be a new logfile. biggrin.gif

Edit: Added Source, Class and Scripts as attachment

V1.01 released:
Oops .. little update, B2 returns not P=-------- when no players connected.
And fixed a little bug, when a portnumber is given (-p xyz) and that port cant be opened, it also returned "0".

V1.02 released:
Output changed, startdate/time added.
CODE
Server: |>B<|Bunker #2 XP.30map started: 08/17/2007 05:00:31 map: sw_oasis_b3 players: 0

Socket-Timeout of 1000ms added.

V1.03 released:
*grrrr .. again ppl staying in spec to save xp on b1 ...
Output changed, spectators dont count as players.
Tonight it will be:
CODE
Server: |>B<|Bunker #1 [XP Save] started: 08/16/2007 05:00:30 map: password2 specs: 3 players: 0
Disco Stu
shotdead
|>B<| MUPPET


And server will restart anyway, so the 'staying over night to save xp' is history.

V1.04 released:
Beautified the output/added slotnr, xp, ping, team
CODE
Server: |>B<|Bunker #1 [XP Save] started: 08/16/2007 05:00:30 map: flame-guards specs: 3 players: 0
Slot|   XP   |Ping | T | Name
----+--------+-----+---+------------------------------
25 |      0 |  98 | S | Disco Stu
30 |      0 |  50 | S | shotdead
32 |      0 | 123 | S | |>B<| MUPPET


*** BTW: ^^ Still no FIXED width font in code-tag ... ***

V1.05 released:
-s - Server-Parameter added
now you you can do locally, or on B1/B2:
checkserver -s bunker1.aaxxss.com
or for example:
checkserver -s 85.25.148.155 -p 27961

(That's "|AaA| Brotherhood #2,7map")

Better exception-handling (UnknownHostException, SocketException), more detailed output.

V1.06 released:
-t - Timeout-Parameter added - this way you can define a large timeout than 1000ms, in case slow connection
-q - Quiet-Parameter - Default is now to print full information, i did this to enable asking for parameters via "checkserver -?" and using it locally without giving "-f" all the time.

V1.07 released:
.. d0h .. those 3 peeps where still on at 5 am and a european player connected .. :-/
Added -c - Datecheck-Parameter, if this parameter is given it will NEVER return 0 when server-startdate = current date.
This allows a change to the crontab:
CODE
0 3,4,5,6,7,8 * * * /usr/local/games/enemy-territory/kill_IF_EMPTY.sh

This means it will check at 3,4,5,6,7 and 8 am if the server is empty and kill if it is - but server will only be killed ONCE a day.

V1.08 released:
Improved error-handling - should be foolproof now.
Removed some unneccessary code.
Fixed the kill_IF_EMPTY.sh, forgot -c flag.
Documented the code.

V1.09 released:
-h - Header only mode
-f - Find mode - List consists of servername - playername in each row, no header
This allows adding 2 scripts to etadmin_mod and a command for the players:
!findplayer partofname
Returns up to 3 matches, servers search are B1,B2,B3,B4,B5,B6,B7,B8 & B10
Results are cached, if there was no query for 10 seconds the 'db' will be rebuild asynchron with lowest priority.
Added shell-command for B1/B2 'findplayer'

V1.10 released:
If only an argument given without "-" infront it will be used as servername.
Removed a bug which could cause an endless loop.
Better scripts for shell/etadmin_mod - if a player is found it will abort immediatly instead of searching all servers first.
Auto-Kill script works fine, output removed (which created emails).
-h - Header mode, only shows the serverinfo and specs/players connected

Added a etadmin_mod-command 'checkserver' which always runs in header-mode, avail for every LVL8++, usage:
!checkserver
!checkserver bunker1.aaxxss.com
!checkserver bunker5.aaxxss.com -p 27560

V1.11 released:
-e - Etadmin-Mode - colorcodes wont be stripped and extra-colorcodes for the output
New findplayer.sh for etadmin, which also allows searching with colorcodes.

V1.12 released:
Support for portformat which et uses, which means you can write bunker5.aaxxss.com:27560 (bunker 8)
-k configfile.cfg - enables Kickmode - this needs the configfile which contains the rconpassword
-m n - maximum count (default 3) - maximum times a player is allowed in spectator mode, then CheckServer will try to kick the player (used in kill_IF_EMPTY.sh - which is executed at night to restart the server)
Currently CheckServer will be started in the (local) time from 1-8am every 30 mins with maximum-speccount of 7 - which means spectators will be kicked after 3 hours.
Actions are written to CheckServer.log in the mod-folder.

V1.13 released:
Default is now sorting by XP, not slot-number
Shortcuts for bunker-servers, you can use "b1", "b2", "b3", "b4", "b5", "b6", "b7", "b8" and "b10".
-x - Dont sort by XP
Merged with ShrubLogger-Project, abstract class PlayerEntry for xp-sorting - both projects inherit from this and use the static functions in ShrubUtils.
Only 1 jar-file now - merging the projects and storing in one compressed file reduces total code-size to around 30%.

-------------------------------------------------------------------------------

Let me hear what you think, improvements / ideas are welcome ! biggrin.gif

Attached Files


Edited by Lynxx, 27 August 2007 - 11:34 AM.

  • Falkes and AADrusilmTall like this

#2
bicoon

bicoon

    Will Become Famous Soon Enough

  • Old retired farts
  • 2,386 posts
  • Gender:Male
  • Location:Bloemendaal, Netherlands
  • Server:Bunker #2
Click to view battle stats
Wow this is a great program.

Only the administrators with setlvl can use it or am i mistaking now?

Bic

#3
peyote

peyote
  • Gender:Male
  • Location:Basel
  • Server:Bunker #2
Click to view battle stats
is this y3k save? tongue.gif
cheers lynxx - very nice done, now I just wonder - that thing doesnt work from the game? or did you add an adminmod command?

#4
Lynxx

Lynxx

    Will Become Famous Soon Enough

  • Old retired farts
  • 2,471 posts
  • Gender:Male
  • Location:Germany, Warmbronn
  • Server:Bunker #2
Click to view battle stats
Yes, it's y3k safe .. from year 2100 on it will show the full 4 char for year, but i doubt i will ever see the change. cool.gif

I doesnt work ingame, i have no idea how to do that - give me a clue !?

You currently have to log on with etadm or whatever user installed the java/ShrubLogger and do 'levels B!O' or whatever on command-line.

I've added a little help when you log on to B2. smile.gif

Edit: When you want to search for >B< or something like that (redirect-chars '|', '>', '<') then enclose them in single or double quotes, for example: levels '>B<' - or levels ">B<"

Okay, did an etadmin-mod addon, now every lvl8 or higher can use it on B2, simply do: !levels name

Date output is now always DD.MM.YYYY.

Edited by Lynxx, 05 January 2007 - 01:25 PM.


#5
subgod

subgod

    Will Become Famous Soon Enough

  • Old retired farts
  • 1,568 posts
  • Gender:Male
  • Location:Detroit, Michigan
  • Server:Bunker #1
Click to view battle stats
i like it good work lynxx

#6
ALVARO

ALVARO

    Becoming a Part of the Forum

  • Bunker Members
  • 271 posts
  • Gender:Male
  • Location:ALICANTE (SPAIN)
  • Server:Bunker #2
Click to view battle stats
I dont understand all that u writte, but it songs good, u are the software-master!!!!

#7
METAL_BEN

METAL_BEN

    Sticking Around

  • Bunker Admins
  • 1,485 posts
  • Location:Holland
  • Server:Bunker #2
Click to view battle stats
Very usefull program, good job Lynxx

#8
Lynxx

Lynxx

    Will Become Famous Soon Enough

  • Old retired farts
  • 2,471 posts
  • Gender:Male
  • Location:Germany, Warmbronn
  • Server:Bunker #2
Click to view battle stats
Update V1.13:
ShrubLogger V1.13 - on 8.5.2007 by Lynxx - for |>B<|unker-Community
Usage: ShrubLogger (-f / -e) partofname or GUID
partofname is for example 'lyn' or you could define a GUID (partly) to use.
-f show levels of ppl on the server (needs working finger-command)
-e etadmin-mode, will only print the last part of a GUID like !listplayers
Without parameters 'shrubbot.cfg' will be read and level-history written to 'shrubhist.cfg'.

Added the -f parameter which first reads the server-port, and rcon-password from server.cfg, then connect to localhost:server-port and get the online players via 'getstatus'.
Then 'rcon RCONPW finger partofplayername' (because no spaces allowed) is launched, first i wanted to use the slot-numbers, but that will fail wenn for example two players with a zero in their name are connected.

Those rcon-calls must delayed by around 750ms, that's why it will take a while to print all players info, but it's still a lot faster than doing everything by hand. smile.gif

Output will look like:
CODE
[etadm@bunker2 noquarter]$ alllevels
Levelhistory for all players on |>B<|Bunker #2 XP.30map:
|>B<|*Sniperken*|A| / |>B<|*Sniperken* 13=7.5.2007
Deminwarrior / Deminwarrior 7=30.4.2007
>BlacqWidow< / Widow 6=20.4.2007
BlacqFR33DOM / BlacqFR33DOM 2=1.5.2007
|>B<| broken / |>B<| broken 11=7.5.2007
|>B<|KarLOTto[ChillaZ] / |>B<|KarlOTto[ChillaZ] 9=1.1.2007
Rolph - NEW PLAYER
:StonedRaiders.Twee / Twee 3=25.4.2007
Pezzo - NEW PLAYER
HOLYMoly / holy moly 1=4.5.2007
winnField - NEW PLAYER
CAMILLE - NEW PLAYER
baba74 / Baba 1=2.5.2007
Anonym [+] - NEW PLAYER
doug heffernan / doug heffernan 1=3.4.2007
killer[NL] - NEW PLAYER
cOox! - NEW PLAYER
foraby / foraby 4=8.4.2007
*Bryan* / *Bryan* 1=2.5.2007
|>B<|--JO-- / .--JO--. 8=21.1.2007
Snowbank - NEW PLAYER
CommanderCool / WeWantYourSoul 1=16.4.2007
SMERSH RUS / SMERSH RUS 2=13.4.2007
|>B<|Falkes / |>B<|Falkes 12=7.5.2007
SattaBuzz / SattaMaDProf 4=1.1.2007
don-diego / don-diego 1=1.1.2007
***BiberFred / ***BiberFred 2=1.1.2007
Sterndeuter - NEW PLAYER
ETPlayer - NEW PLAYER
eXo. / eXo. 1=5.5.2007
(T)BlacqPyro / !Pyromaania! 3=23.4.2007
FreeFighter-=NL=- - NEW PLAYER

First the current playername, second the name in shrubbot.cfg and finally when he got his level and which one.

#9
peyote

peyote
  • Gender:Male
  • Location:Basel
  • Server:Bunker #2
Click to view battle stats
an Idea, we have here several places where we try to keep record of levels,
would it be possible to have this tool on every B server,
and create from it a nice wiki page?

cheers, sorry I would do it myself, but omni-bot is like crack

#10
Yourego

Yourego

    Sticking Around

  • S Moderator
  • 1,141 posts
  • Gender:Male
  • Server:Unselected
Click to view battle stats
Awesome program lynxx!

And pey, love that idea to have a database from all servers. Even implementation in etadminmod would be great.

#11
Lynxx

Lynxx

    Will Become Famous Soon Enough

  • Old retired farts
  • 2,471 posts
  • Gender:Male
  • Location:Germany, Warmbronn
  • Server:Bunker #2
Click to view battle stats
etadmin-mod is implemented since V1.03 or something .. just do for example '!levels tigra' on B2.

It will run on any et-server as described above, only java is needed in a sub-folder of et.

The basic-program just parses shrubbot.cfg and remembers level-changes in shrubhist.cfg.

The new listing all online-players needs a working finger-command, but i could implement a server which would allow an external program to review level-changes of a single server,
or even write a front-end which runs on the local computer of admins and allows them to review the data their.
Ofcourse it's also possible to use all the data from all servers and collect them in a database (sql or obdc-access) or create a xml/html from the information.

But the first and most important is to install it on the servers.

P3y you know java, please take a look in the source to verify it's not a backdoor or something, maybe that will convince other server-admins to install it.

#12
peyote

peyote
  • Gender:Male
  • Location:Basel
  • Server:Bunker #2
Click to view battle stats
I will lynxx, but I dont really know java, but at work there are some people which do program daily with java..

arent their places where you can let your code check?
I thought something like that should exist.
well thinking a bit more, if that exist - it will not be for free.. biggrin.gif

Best would be if wolfmap.de would make a news of it..
then it would appear also on SL



#13
Lynxx

Lynxx

    Will Become Famous Soon Enough

  • Old retired farts
  • 2,471 posts
  • Gender:Male
  • Location:Germany, Warmbronn
  • Server:Bunker #2
Click to view battle stats
Yeah ok, why not .. but then it must be first moved to a public forum - someone please move it to 'Bunker Gaming General Discussion'.

Edit:
Update V1.14:
Oops, reformatted the sourcecode and added some comments i found a bug in the first line of main(), i forgot to check if it's started with any arguments at all. sad.gif
Which created an ArrayIndexOfOufBounds-Exception when it should Update the history (started without args).

Edited by Lynxx, 09 May 2007 - 08:57 PM.


#14
Lynxx

Lynxx

    Will Become Famous Soon Enough

  • Old retired farts
  • 2,471 posts
  • Gender:Male
  • Location:Germany, Warmbronn
  • Server:Bunker #2
Click to view battle stats
Update V1.15:
Formatted the all players output, makes it easier to read:
CODE
Playername on the server      | Playername in shrubbot        |level | date
------------------------------+-------------------------------+------+------------
>YATAHEY<<                    | YATAHEY                       |    3 | 25. 4.2007
|>B<|onyx                     | dark->onyx                    |   11 | 30. 4.2007
sdjfhga                       | Israel xXx                    |    2 | 10. 2.2007
foraby                        | foraby                        |    4 |  8. 4.2007
EgoR                          | ***NEW PLAYER***              |    - | -
BlacqgBjork                   | bjork*                        |    3 | 23. 2.2007
LYSY                          | ***NEW PLAYER***              |    - | -
Twee                          | Twee                          |    4 |  9. 5.2007

^^ d0h whats that - no fixed width font in the code-tag !? :-/
Well at least in the console you will get a nice table showing the levels.

Edit: Added screenshot, that's what it looks like in console

Attached Files


Edited by Lynxx, 10 May 2007 - 01:35 PM.


#15
Jos

Jos

    Sticking Around

  • Bunker Members
  • 1,462 posts
  • Gender:Male
  • Location:The Netherlands
  • Server:Bunker #7
Click to view battle stats
its looking good. I would like to install it on b5 but i have no clue how to install java

#16
Lynxx

Lynxx

    Will Become Famous Soon Enough

  • Old retired farts
  • 2,471 posts
  • Gender:Male
  • Location:Germany, Warmbronn
  • Server:Bunker #2
Click to view battle stats
QUOTE(Jos @ May 10 2007, 05:22 PM)  
its looking good. I would like to install it on b5 but i have no clue how to install java

1) Make a new folder in enemy-territory
>mkdir java
2) Download for example jre-6u1-linux-i586.bin to the java-folder (get older versions here, but it may cause problems)
3) Go there
>cd java
4) Set execute-bit
>chmod a+x jre-6u1-linux-i586.bin
5) Start the installation
>./jre-6u1-linux-i586.bin
6) This displays a binary license agreement. Read through the agreement. Press the spacebar to display the next page. At the end, enter yes to proceed with the installation.
7) The JRE is installed into its own directory. In this example, it is installed in the java/jre-6u1 directory (im not 100% sure if it's THIS name beeing used). When the installation has completed, you will see the word Done. You will see the installation-path all the time, saying 'Creating jre..../lib/deploy.jar' and so on ..
8) Edit the shell-startup-script with for example:
>nano ~/.bashrc
9) Insert 'PATH=$PATH:/usr/local/games/enemy-territory/java/jre-6u1/bin' (make sure it's the installpath!) anywhere on a free row.
10) Write the file with ctrl-o
11) Close the console and connect again
12) try
>java -version



#17
Lynxx

Lynxx

    Will Become Famous Soon Enough

  • Old retired farts
  • 2,471 posts
  • Gender:Male
  • Location:Germany, Warmbronn
  • Server:Bunker #2
Click to view battle stats
Update V1.16:
Alllevels now also lists xp of the players:
CODE
Levelhistory for all players on |>B<|Bunker #2 XP.30map:
Playername on the server | Playername in shrubbot   |     xp |level| date
-------------------------+--------------------------+--------+-----+------------
Marine                   | ***NEW PLAYER***         |   1925 |    -| -


#18
Evil

Evil

    Making Friends

  • Members
  • 92 posts
  • Gender:Male
  • Location:The Netherland
  • Server:Unselected
Click to view battle stats
cool stuff bad that i find this topic lateley hehe.
ill install if i dont get any problem if i do ill post here a reply.
thnx lynxx

#19
Lynxx

Lynxx

    Will Become Famous Soon Enough

  • Old retired farts
  • 2,471 posts
  • Gender:Male
  • Location:Germany, Warmbronn
  • Server:Bunker #2
Click to view battle stats
Update V1.17:
Merged with CheckServer-Project, abstract class PlayerEntry for xp-sorting - both projects inherit from this and use the static functions in ShrubUtils.
Removed entries from shrubhist.cfg will be written to ShrubLogger.log
Alllevels-Output will now sorted by XP.
Only 1 jar-file now - merging the projects and storing in one compressed file reduces total code-size to around 30%.