1 (edited by Schokomuesli 2010-05-26 21:49:40)

Topic: [TOOL] TWCC2 v2.0.1

http://www.lipski.co.at/twcc2/images/twcc2icon.png

TeeWorlds Command & Control 2

After a lot of testing and experimentation with TWCC (http://www.teeworlds.com/forum/viewtopic.php?id=4054), I'm pleased to release a new version of TWCC today.

The application has been rewritten from ground up (except the UI), to become more user friendly.

TWCC2 runs smoother and faster than its predecessor, and since this is a complete restart, there have been fixed tons of bugs.


What is TWCC?

TeeWorlds Command and Control, aka TWCC is a set of two applications allowing to control a TeeWorlds server from a remote location - easy, fast and safe.

The two tools are:

The Daemon, which runs serverside and wraps the TeeWorlds server executable.

The Client, which is connects to the "Daemon" and controls it.


Features

- Start and stop your TeeWorlds server from a remote location.
- Configure your TW-server using a simple, multilanguage UI.
- Upload and delete maps.
- Switch server executables (multiple mods) with 3 clicks.
- Logging of chatmessages on the TW-server.
- User system: Allow specific actions only.
- Autorestart a crashed TeeWorlds server.

- Use RRcon by "Toilette" from a remote location.


Requirements

Client:
The client will run on any computer with a Java Runtime Environment 1.4.2 or higher and a Desktop UI:

- Windows: XP SP2 or higher, Vista, Vienna (7).
- Linux: All Java enabled Linux distributions.
- Mac OSX (PPC, Intel)
- Solaris

Daemon:
The daemon uses a special console UI (curses), and is therefore available on the following system only:

- Windows: XP SP2 or higher, Vista, Vienna (7).
- Linux: All Java enabled Linux distributions.

Please note, that you additionally need an ASCII terminal with a size of at least 80x30 units.
You can set up TWCCD through SSH by using at least a vt100 compatible terminal. xterm is recommended.
Various tools such as Putty will work fine...


Downloads

Please do not mirror any of these files - directly link to them instead


Microsoft Windows XP, Vista, 7:

Client v2.0.1 (installer) - 1,51Mb : http://www.lipski.co.at/twcc2/getProduc … uct=client
Client v2.0.1 (zip) - 1,43Mb : http://www.lipski.co.at/twcc2/getProduc … uct=client

Daemon v2.0.1 Build 284 (installer) - 1,18Mb :  http://www.lipski.co.at/twcc2/getProduc … uct=daemon
Daemon v2.0.1 Build 284 (zip) - 1,09Mb :  http://www.lipski.co.at/twcc2/getProduc … uct=daemon


Linux:

Client v2.0.1 (zip) - 0,88Mb : http://www.lipski.co.at/twcc2/getProduc … uct=client

Daemon v2.0.1 Build 284 (zip) - 0,91Mb :  http://www.lipski.co.at/twcc2/getProduc … uct=daemon


Mac OSX (PPC & Intel), Solaris:

Client v2.0.1 (zip) - 0,88Mb : http://www.lipski.co.at/twcc2/getProduc … uct=client

Daemon: Not available on OSX and other systems due to missing GCC flags.


License

Licensed under Creative Commons: "Attribution-Noncommercial-No Derivative Works 3.0".
http://creativecommons.org/licenses/by- … /legalcode

Free for non commercial use


Screenshots

Client:

http://www.lipski.co.at/twcc2/images/twcc2clientscreen.jpg


Daemon:

http://www.lipski.co.at/twcc2/images/twcc2daemonscreen.jpg


Help

Both applications are quite selfexplanating.

Please check the file "index.html" in the directory "doc" in the TWCC2 Client directory for further help.

If you still need help, don't hesitate to write a post in this topic.


Online documentation

You can access the documentation for both, the daemon and the client online:

Client: http://www.lipski.co.at/twcc2/twcc2doc/

Daemon: http://www.lipski.co.at/twcc2/twccd2doc/


Regards,
Schokomuesli

2

Re: [TOOL] TWCC2 v2.0.1

Might be useful for someone. I still prefer to use FTP + SSH + bash-restart-script + the telnet modification to control my servers.

3

Re: [TOOL] TWCC2 v2.0.1

Hello,

I have released v2.0.1 of my application today, supporting RRcon by "Toilette", and adding the missing docs for the daemon!

You can use the autoupdater to get the latest version (on the client), or hit one of the updated links in the first post.

RRcon is a patch for TeeWorlds made by "Toilette".
See: http://www.teeworlds.com/forum/viewtopic.php?id=3927

TWCC has a built in support for that mod since now, allowing to really remote control your TeeWorlds server.

Please read the documentation before messing around with that function.


Changelog Client:

#######################################
TWCC Version 2.0.1
#######################################

Info:
    - A small maintenance release adding a new feature.

New Features:
    - Added support for RRcon by "Toilette".
    If enabled, you can access this feature from the main tab.

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


Changelog Daemon:

#######################################
TWCCD Version 2.0.1 Build 384
#######################################

Info:
    - A small maintenance release adding a new feature.

New Features:
    - Added support for RRcon by "Toilette".
        It can be enabled, by reconfigurating your TWCC-Daemon. (delete .prp file or use -daemonconfig parameter).
       
        An appropriate user right has been added.
       
    - The console buffer size has been increased to 200.
    - The last 50 console entries will now be shown, if the TeeWorlds server crashes. (If "Hide Output" is disabled).

Bugfixes:
    - Fixed a bug where user-threads get stuck if a user disconnects while sending objects.

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

Regards,
Schokomuesli

4

Re: [TOOL] TWCC2 v2.0.1

I got a problem whenever i run the daemon it immediately closes right after why does it do this?

5 (edited by Schokomuesli 2010-05-27 13:19:34)

Re: [TOOL] TWCC2 v2.0.1

big bomb wrote:

I got a problem whenever i run the daemon it immediately closes right after why does it do this?

Hello!

It seems, that the jcurses library for Windows (.dll) is missing in the v2.0.1 release.
Linux users should not encounter any problems.

Both, the installer and the .zip file for Windows have been updated with the missing .dll file.
Please redownload them to make TWCCD work on Windows.

Kindly excuse any inconvenience caused by that problem.

Regards,
Schokomuesli

edit:

If the daemon says, you need to resize the console to at least 80x30 characters, you simply have to resize it and press enter.

If you're using Windows and the Windows Shell, you need to go to the preferences of the window, and set the size to at least 80x30 "for all windows with the same name" and restart TWCCD again.

I don't recommend to use Microsoft Windows anyway (especially for TeeWorlds servers)...

6

Re: [TOOL] TWCC2 v2.0.1

Ok works fine now thanks for the quick response.

7

Re: [TOOL] TWCC2 v2.0.1

Hello! I have a problem. I download and install programm, in first launch i write the ip; port;Username;Password.
After push the Login button, TWCC Writes an error
Error: Could not connect to host
java.net.ConnectExeption:Connection refused: connect

and my server crashing

Screenshot:
http://s49.radikal.ru/i123/1006/ac/a70203d7ff49.jpg
P.S. Sorry for my bad english, im russian

My nickname in game: Dark Twist3r. My team: Eclipse
I use&support TDTW <3

8

Re: [TOOL] TWCC2 v2.0.1

"Connection refused" means that there are no server listening to such port. Solution: Check so you entered the right port number.

9 (edited by Dark Twister 2010-06-03 06:47:20)

Re: [TOOL] TWCC2 v2.0.1

ip:192.168.1.2 (My internal IP)
port:8309 (TeeWorlds server port, all tw ports opened 8303-8314)Also I used indirect ports for example 5667; 27015
Username:Admin
Password:adminserv

What is wrong?

My nickname in game: Dark Twist3r. My team: Eclipse
I use&support TDTW <3

10

Re: [TOOL] TWCC2 v2.0.1

I can't read Russian, but the dialog box in the lower half looks like Windows is blocking the port of the server.
Maybe you can translate what the message says, or a russian tee can help you out.

aka cheesy

11 (edited by Dark Twister 2010-06-03 12:05:26)

Re: [TOOL] TWCC2 v2.0.1

Translate:
Programm ''teeworlds_srv_instagib.exe Does not work

Windows not blocking the port, i open ports 8303;8304.......8314

My nickname in game: Dark Twist3r. My team: Eclipse
I use&support TDTW <3

12

Re: [TOOL] TWCC2 v2.0.1

Hello!

Please note, that my application needs to bind to an own port, which must be different to the port of the TeeWorlds server.

Else, the TeeWorlds server can't bind himself and will crash/close.

The settings you make during the launch of TWCC have nothing to do with the TeeWorlds server.

For Example:

TWCC runs under 192.168.1.2 : 5667.
Then you TeeWorlds server must run under a different port (for example: 8303).


On the screenshot you posted it seems that you try to directly connect to your TeeWorlds server?!

To use TWCC, you need to set up TWCCD (TWCC-Daemon), which wraps the TeeWorlds server (starts and stops it).
The TWCC-Client will connect to the Daemon to do all stuff.

You may want to read the documentation, delivered with my application.
You can find the documentation online (by clicking on one of the links in the first post), or in your installation directory of the corresponding application (the doc folder in the client and daemon folder).

Regards,
Schokomuesli

13

Re: [TOOL] TWCC2 v2.0.1

Thank you!!!

My nickname in game: Dark Twist3r. My team: Eclipse
I use&support TDTW <3

14

Re: [TOOL] TWCC2 v2.0.1

I have another problem when it having problems with the execuatable path whenever i press save it says the teeworlds exe is invalid and i do the straight to the teeworlds_srv.exe. it says the cfg path is fine though, please help.

15 (edited by Sh1k 2010-06-05 15:52:13)

Re: [TOOL] TWCC2 v2.0.1

Hi,Can smb say me what is the problem?
As i understand, it can't find main class in jar.
Note:My JRE is OpenJDK

localhost:~# java -Xmx32m ./TWCC2-Daemon.jar
Exception in thread "main" java.lang.NoClassDefFoundError: //TWCC2-Daemon/jar
Caused by: java.lang.ClassNotFoundException: ..TWCC2-Daemon.jar
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
Could not find the main class: ./TWCC2-Daemon.jar. Program will exit.

10 minutes later: I find my mistake. I need to add -jar fuction.
And another question: Can daemon eat 120mb of RAM?

16 (edited by Schokomuesli 2010-06-05 18:49:30)

Re: [TOOL] TWCC2 v2.0.1

Hi!

big bomb wrote:

I have another problem when it having problems with the execuatable path whenever i press save it says the teeworlds exe is invalid and i do the straight to the teeworlds_srv.exe. it says the cfg path is fine though, please help.

The executable file MUST exist during the setup.

The path can be absolute, or relative.


Absolute paths usually start with the drive letter (on windows), and are something like this:

C:/teeworldsServer/teeworlds_srv.exe

Relative paths are paths relative to the current location of the Daemon. For example:

subfolder/instagib/teeworlds_srv.exe


It does not matter if you use unix style or windows style separators ( "/" or "\").


If you're on a linux machine, don't forget to use "./".

Linux example: ./teeworlds_srv


Sh1k wrote:

Can daemon eat 120mb of RAM?

The RAM consumption depends on the system architecture (x86, x64) you are using, the Java JVM, the OS (Windows, Linux) and other factors.

On a x86 Windows XP machine, the JVM usually allocates about 12Mb, and uses about 5Mb of it. (If more memory is needed by another application, the allocated memory will be made available).


Using the command "status" you can check out the memory consumption.

You can check the memory which is beeing used (Usually 0.5Mb - 8.0Mb),

You can check the memory allocated by the daemon (This is a higher value. Please note, that the allocated memory will be made available to other applications if needed),

You can check the memory which can be allocated on this machine maximally. (This is a very high value, like 200Mb which will never be reached by the application. It's just for informational purposes).


Regards,
Schokomuesli

17

Re: [TOOL] TWCC2 v2.0.1

Quick update:

If you are experiencing memory problems (TWCC takes a huge amount of memory), please make sure you've got the newest version: 2.0.1

If the new version does not solve your problem and if you're still experiencing problems, leaving the option "Hide TeeWorlds server output" in the configuration checked will may help.

I'm investigating the cause of this phenomenon now.

Regards,
Schokomuesli

18

Re: [TOOL] TWCC2 v2.0.1

what about windows 7. Does it work on that?

{([Sorry for my bad english])}
`'*C r e e p s t e r*'´

19

Re: [TOOL] TWCC2 v2.0.1

rex521 wrote:

what about windows 7. Does it work on that?

The tool will work on any Operating System supporting the Java Runtime Environment. (Including Windows 7).

For the client you need one of the following OSes:

Windows, Linux, Mac,  or Solaris.

The daemon will work on Windows and Linux only.

Regards,
Schokomuesli