Jaba TV Beta 13
Date: 02/11/2004


Overview
===============================================================
Jaba TV is a metamod plugin which allows you to watch gameplay
from Counter-Strike Server in a web browser.


Features
===============================================================
1. Live stream can be delayed from 30 to 300 seconds.

2. Jaba TV can record demos which can be later downloaded from
a server and played from an applet.
(You must enter a link for example like this
http://213.134.161.50:27015/?demos/092304/2347_de_dust.jdem)

3. Jaba TV can stream player states (hits, shots, look
direction, movement, name, weapon, health), game events,
team score, chat, grenades, round time, bomb events,
players score (press SPACE).

4. Overviews for maps are just the same as from HL (but saved
in PNG format and placed in "addons/jabatv/overviews"
directory).

5. Type "jabatv_version" in HLDS console to get Jabat TV
version or type "jabatv" for some commands.


Requirements
===============================================================
HLDS must have Metamod running with Jaba TV plugin. Clients
should have Sun JVM installed from http://www.java.com/.


Installation
===============================================================
1. Install Metamod from http://metamod.org/

2. Install Jaba TV by unpaking archive content to
"cstrike/addons/jabatv" folder and adding program entry
to metamod's "plugins.ini" file like this:
		win32 addons/jabatv/dlls/jabatv_mm.dll
		linux addons/jabatv/dlls/jabatv_mm_i386.so

3. Open "cstrike/addons/jabatv/config.ini" file and configure
it to fit your needs

4. Download overviews package and unpack archive content to
"cstrike/addons/jabatv/overviews" folder.

5. Run HLDS with parameter (you can skip that parameter):
+localinfo jabatvcfg "addons/jabatv/config.ini"


Issues
===============================================================
1. Just after hlds startup you must wait delay period
(see config.ini for more details) before you will be able to
watch a gameplay from your Internet browser.

2. An address to type in your Internet browser is
http://address:tcp_port, where address and tcp_port are
set in config.ini.

3. Make sure your server has opened udp_port and tcp_port for
outside traffic in both directions and that no other program
already uses these ports.

4. With SPACE key, a client can display players score.
However this may not work if focus is on an Internet browser,
That is why you have to first make focus on applet by
clicking with left mouse button on it and then you are able
to see score by pressing SPACE key.

5. Hidding/showing chat bar is possible by pressing ENTER
key when focus is set on applet (if no chat is available,
the bar is never displayed).

6. Clients can track a player name, health and weapon by
clicking with left mouse on player.

7. After hlds start, type "jabatv" in the server console and
you should see an output like this:

		...
		Demo recording: disabled
		Delay: 30 seconds
		UDP port: 52001 (working)
		TCP port: 27016 (working)
		Applet sender: running
		Gameplay sender: running
		Gameplay delayer: running
		Max. spectators: 25
		Jaba TV dir: addons/jabatv

If you see on some position that has "not working" or
"not running" status, then use "jabatv reload" command. If
this doesn't help than for some reasons Jaba TV can't use that
OS resources.


Changelog
===============================================================
From Beta 12:
o added support for players score, which can be displayed
  with SPACE key (make sure that focus is on applet)
o improved applet sender module

From Beta 11:
o added "jabatv reload" command (restarts sockets and threads)
o added more status messages to "jabatv" command

From Beta 10:
o added support for bomb and round time
o changed behavior and style of some text components
o changed protocol version of packets and demos
o added "jabatv" server command
o improper edit of index.html no more crashes a server

From Beta 9:
o made threads independent from Metamod (may remove
  potential crashes especially on the plugin unloading)

From Beta 8:
o fixed crash server related to applet download
o server now exits with proper info when resources (sockets,
  folders etc.) are not available
o added bgcolor parameter for applet



