1 (edited by Schokomuesli 2009-07-18 22:29:04)

Topic: [TOOL] TeeWorlds: Command & Control | Beta 0.0.2 bugfixed

At first, please excuse my bad grammar tongue


Here is a Toolset I'm working on since two weeks:

It's called TeeWorlds: Command & Control, and with it you're able to remote-control a teeworlds server.

How does it work?

On the server-side you have to install, configure and start the tool called: TWCCD (TeeWorlds: Command and Control Daemon)

It allows you to start, stop a teeworlds server and change the configuration using a client connected to the daemon.

Both applications are written in Java.

TWCC is the right tool for you,
if you are a server-admin or a server-provider and you want to remote-control your server, or let your customers control their remoteserver,

TWCC is NOT the right tool for you,
if you are a person who wants to administrate a home-server, if you have no idea about setting up a teeworlds server and you want to have a idiot-proof GUI-server-creator. If so, please search the forums after TSC (TeeWorlds Server Creator)

Features:

  • Start and stop a TeeWorlds server from a remote machine

  • Change the configuration of the server

  • Player overview/Detailed Server info

  • Mapupload

  • Mod-changing

Planned features:

  • Kick/Ban (when the server-executable supports 127.0.0.1 telnet rcon)

  • AutoAdmin: badword filter, automessage, remotemessage, high-ping-kick, better autobalance (when the server-executable supports 127.0.0.1 telnet rcon)

  • Chatlog

  • Log admin activities


OS-requirements for the Client and the Daemon:

Windows:

Winsows XP minimum SP2 x86 or x64, with Java SE JRE 1.6.0 installed
Windows Vista x86 or x64, with Java SE JRE 1.6.0 installed

Linux:

Tested on: Debian 4.x, Debian 5.x, Suse, Fedora, Ubuntu, RedHat, CentOS, Gentoo, (all with Java SE JRE 1.6.0 installed)

Mac:

Any Version with Java SE JRE 1.6.0 installed

Solaris:

Any Version with Java SE JRE 1.6.0 installed


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

Free for non commercial use


Download:

BETA TEST:

DOWNLOAD MIRRORS:

Do not run from zip file!

You need Java SE JRE 1.6.0!

Windows v0.0.2 bugfixed:

Client: http://www.teeworlds.at/downloads/getClient.php?os=win (545kb)

Daemon: http://www.teeworlds.at/downloads/getDaemon.php?os=win (229kb)


Mac, Linux and Solaris v0.0.2 bugfixed:

Client: http://www.teeworlds.at/downloads/getCl … ?os=osxlin (277kb)

Daemon: http://www.teeworlds.at/downloads/getDa … ?os=osxlin (49kb)


If the Java JRE is not associated with jar files you need to start the programs via console by:

java -jar jarname.jar

I need Mac feedback because I haven't tested it on these awfully expensive machines

HELP:

How to set up the daemon:

If you already have a configurated TeeWorlds-server you need to prepare the configs for twcc!
At first you have to start the daemon and configurate it!


Enter the name of the mod, th executable name of the teeworlds server and a description of the mod
(for example teeworlds_srv.exe and on linux ./teeworlds_srv | Don't forget the ./ on linux!)

Enter a port number on which the daemon will listen (you will connect with the client on this port)

Enter a username (you will log-in with it using the client)

Enter a password (you will need it to log-in with the username)

Enter a configuration name without the ending .cfg (the name of the current teeworlds config if it exists)

If the configuration was successful, the daemon has created some files (do not delete them!)
If you have an existing Teeworlds Config, please copy all tune and addvote commands into the file: twcc_votes_and_tuning.cfg

Don't leave any of the config files empty!
Now you are ready to use the daemon!

The client is quite self explanatory:

All I need to say, is that the displayed settings are the local ones only.
When you are connecting the first time to the server, and you already have a teeworlds config, restore (get) it from the server first, and save the local profile!

Before you upload a profile to the server you should save it first (Save Profile and then Apply profile to server)
You are able to import profiles from local files and export the current profile to a file.

You are able to exchange the configurations between the local profiles too.

Post bugreports, etc. in this thread,...

have fun!

Known Bugs:

Problems with configs and executables outside of the daemon directory. use / instead of \
TeeWorlds Serverexecutable must be in the daemon folder!


Screenshots of the Client on Windows XP(Updated Alpha)
http://www.lipski.co.at/images/twcc_screen.jpg

http://www.lipski.co.at/images/twcc_screen2.jpg


Screenshot of the Daemon running on Windows XP
http://www.lipski.co.at/images/twccd_screen.jpg

2

Re: [TOOL] TeeWorlds: Command & Control | Beta 0.0.2 bugfixed

Excuse me, may I ask why both the client & daemons can't run both Linux & Windows?

3

Re: [TOOL] TeeWorlds: Command & Control | Beta 0.0.2 bugfixed

Magnet wrote:

Excuse me, may I ask why both the client & daemons can't run both Linux & Windows?

Hi!
There's no windows version of the daemon because it crashes without a message when I try to start it (I mean the native compiled one)
To build a linux or mac version of the client, I have to optimize the GUI, because the position of all elements gets messed up when using another look and feel or native look and feel library.

Don't worry,... The client and the daemon will be platform independed. There's a commandline version of the client too (start/stop only)

4

Re: [TOOL] TeeWorlds: Command & Control | Beta 0.0.2 bugfixed

i don't know hoe to PM you, there is only a email funktion in this forum.
but i'm interested as beta tester, i have an Linux vServer

greez

5

Re: [TOOL] TeeWorlds: Command & Control | Beta 0.0.2 bugfixed

Rule wrote:

i don't know hoe to PM you, there is only a email funktion in this forum.
but i'm interested as beta tester, i have an Linux vServer

greez

I just realized, that there's no PM function xD

You can send an email if you want,...

6

Re: [TOOL] TeeWorlds: Command & Control | Beta 0.0.2 bugfixed

Simple users usually don't have two OS running at the same time. sad

check out these maps: infiltrate - choco - dustycloud

7 (edited by Schokomuesli 2009-05-12 20:55:17)

Re: [TOOL] TeeWorlds: Command & Control | Beta 0.0.2 bugfixed

Slinack wrote:

Simple users usually don't have two OS running at the same time. sad

The tool is not a toy!
I created it for server-providers so they can give their customers a possibility to start and stop the rented servers,...
TWCC should be taken seriously!

The Daemon is not idiot-proof (not prepared for the DAU, the "dumbest assumable user" with no idea about Linux, commandline apps, networking, etc.) and it's not a download/install/play-around/throw-away app.

I think I should completely commercialize this project, because when you have to pay 69-2000 $ for a tool, you take the app definetly serious,...

8 (edited by GSGDani 2009-05-12 21:02:30)

Re: [TOOL] TeeWorlds: Command & Control | Beta 0.0.2 bugfixed

ahhh mccae .. its quite funny to run a internet server without register on masterserver .. so its a lan server xD ... 2 options -.- just do it like this:

LAN (dont registers on masterserver)
Internet

or

Only the Register on masterserver checkbox.. because everyone can join a lan server over internet(if port is opened) .. they just need the ip smile

*edit*

rcon pw and server password  should be shown in your tool.. because typing errors smile

Remember me? Questions? Just leave a message, I will respond within 72 hrs!

9

Re: [TOOL] TeeWorlds: Command & Control | Beta 0.0.2 bugfixed

Dani wrote:

ahhh mccae .. its quite funny to run a internet server without register on masterserver .. so its a lan server xD ... 2 options -.- just do it like this:

LAN (dont registers on masterserver)
Internet

or

Only the Register on masterserver checkbox.. because everyone can join a lan server over internet(if port is opened) .. they just need the ip smile

When you select LAN it additionally uses the high bandwith mode,...


Dani wrote:

rcon pw and server password  should be shown in your tool.. because typing errors smile

I'm using a customized password field, based on the JPassWordField (javax.swing library) which shows the last entered character for 1 second or until you type in another character,...

10

Re: [TOOL] TeeWorlds: Command & Control | Beta 0.0.2 bugfixed

mccae,

This is not about being serious or not with your tool.
I'm just saying that many server admins are interested in those features which are included in your "TW: C&C".
But if you think we are idiots or can't use it well, then forget.

check out these maps: infiltrate - choco - dustycloud

11

Re: [TOOL] TeeWorlds: Command & Control | Beta 0.0.2 bugfixed

why do you slight the tsc as a idiot proof gui server creator?

12 (edited by Schokomuesli 2009-06-03 21:33:00)

Re: [TOOL] TeeWorlds: Command & Control | Beta 0.0.2 bugfixed

Slinack wrote:

mccae,

This is not about being serious or not with your tool.
I'm just saying that many server admins are interested in those features which are included in your "TW: C&C".
But if you think we are idiots or can't use it well, then forget.

I don't think that you, or a part of the community are idiots,...
This tool is intended for professional use and requires a specific level of skill to set up the server-side application.
This includes Linux skills to date,...

If you would read the whole thread, you may see my answer to the post of Magnet in which I describe the current Problems with other OS versions.
You would see that I said, that the Tool will be platform-independed in the future. (I successfully compiled a stable Windows-Version today)

http://www.lipski.co.at/images/twccd_screen.jpg

85,4% of the home-computer-users, use Mircosoft Windows, and the most gameserver hosters use Linux.
If you're a, as you say a "simple user", you have bad luck,...

You can install a Linux-distribution or start one from a USB-Stick on another Computer, or you wait for the final release which supports all platforms except mobile devices.

TWCC is more complex. If you want to set up a home/LAN server with aiding GUI, there's TSC I mentioned before,...

If you can manage to install two different operating-systems, you are cordially invited to alpha-test my application.



Bobynator wrote:

why do you slight the tsc as a idiot proof gui server creator?

I'm not slighting it as idiot proof, I'm praising it as idiot-proof!
It's a simple and fast way to create a teeworlds-server on a windows machine!

Why should simplicity be a negative property?

I don't mean "idiot-proof" in the sense of: "for idiots", but rather in the sense of: "You can't make something wrong, and that's good."

Sincerely,
Martin C. Caesar

13

Re: [TOOL] TeeWorlds: Command & Control | Beta 0.0.2 bugfixed

/Update

- Requirements to participate at the alpha test changed

- Screenshots updated

14 (edited by Schokomuesli 2009-06-09 09:07:15)

Re: [TOOL] TeeWorlds: Command & Control | Beta 0.0.2 bugfixed

Release of TWCC Windows version 0.0.1 ALPHA

See first post for more informations!

Please post feedback, bugpreports, etc. right here

15

Re: [TOOL] TeeWorlds: Command & Control | Beta 0.0.2 bugfixed

Recompiled TWCC and released it for all platforms.

Windows users should download the windows version.


All other OS users should download the Mac/Linux Version.

For every version you need to have Java SE Runtime Environment 1.6.0 installed.


Linux/Mac users: If you can't start the jar through you GUI, fire up the console and start it via:

java -jar jarNameHere.jar

Linux users can install the java-jre through:

apt-get install java-package

I haven't tested my tools with Mac OSX.
Feedback from Mac users would be cool.

16

Re: [TOOL] TeeWorlds: Command & Control | Beta 0.0.2 bugfixed

It is working well on my Windows. (:

check out these maps: infiltrate - choco - dustycloud

17

Re: [TOOL] TeeWorlds: Command & Control | Beta 0.0.2 bugfixed

Hey,
Great work mccae. A really usefull tool.

How can I set up 2 profiles on one daeomon? If I add in the twccd_confg.con all things for a other user I can only access to the profile from the new one and not to the profile from the first user (the client says that the connection has been refused).
Can you help me?

I sponsor some servers. Can they use the client? They pay nothing.


Some suggestions:

Could you (re?)implent the mapuploader?

It would be great if the users could change between different setting files. Like a user has a config for normal race server and dummy drag server and he don't has to change the hole settings if he want to switch.

Also a server.exe-changer would be cool. So that they can change between race mod or instagib mod for example.

And the last thing: Is it possible to control more then one server with one profile?

unlimreal

18 (edited by Schokomuesli 2009-06-21 17:10:26)

Re: [TOOL] TeeWorlds: Command & Control | Beta 0.0.2 bugfixed

unlimreal wrote:

Hey,
Great work mccae. A really usefull tool.

How can I set up 2 profiles on one daeomon? If I add in the twccd_confg.con all things for a other user I can only access to the profile from the new one and not to the profile from the first user (the client says that the connection has been refused).
Can you help me?

1 Daemon, = 1 Server = 1 Profile.....

That means: The Daemon manages 1 TeeWorlds Server with 1 TeeWorlds Config and it's own config.
Multi-User-System is planned for the next release, so you can set up multiple useraccounts with different rights (start, restart server only, or lock network settings like ip, port, password, rcon password)


unlimreal wrote:

I sponsor some servers. Can they use the client? They pay nothing.

Yes, they are allowed to use the client if you (the server provider) don't get a reward (money or other services) for hosting the daemon or hosting the teeworlds-server.

They need to accept the Alpha-Testing license.

Don't forget: It's a alpha version. It comes with no warranty and I don't assume liability for any damages caused by my software.


unlimreal wrote:

Some suggestions:

Could you (re?)implent the mapuploader?

Yes, but I have to fix it so it works on linux machines

unlimreal wrote:

It would be great if the users could change between different setting files. Like a user has a config for normal race server and dummy drag server and he don't has to change the hole settings if he want to switch.

You're able to import/export cfg files,...
I plan to implement the capability to change between different config sets. So you would be able to switch between them.

unlimreal wrote:

Also a server.exe-changer would be cool. So that they can change between race mod or instagib mod for example.

Veeeery unsafe if you could type in the exe name using the client.
In the next version you will be able to set up a textfile with allowed executables
For example:

add ServerExecutable ./teeworlds_srv "Vanilla TeeWorlds"
add ServerExecutable ./watermod_srv "Watermod Server by inherited"

The list would be transferred to the client so he will be able to choose between the allowed ones.

unlimreal wrote:

And the last thing: Is it possible to control more then one server with one profile?

One Profile = One Daemon which manages one TeeWorlds Server.

You have to add one profile for each daemon.


I will publish a Java API for developing.
So if someone wants to code his own client, he/she just has to use the give classes/methods to interact with a daemon

19

Re: [TOOL] TeeWorlds: Command & Control | Beta 0.0.2 bugfixed

This is for real servers, servers with quality and so on... Almost all of that servers runs Linux. This should also run on Linux.

20

Re: [TOOL] TeeWorlds: Command & Control | Beta 0.0.2 bugfixed

Kottizen wrote:

This is for real servers, servers with quality and so on... Almost all of that servers runs Linux. This should also run on Linux.

Read the first post xD

It runs on Windows, Linux, Mac and Solaris

21

Re: [TOOL] TeeWorlds: Command & Control | Beta 0.0.2 bugfixed

Whops, i missed that xD

22 (edited by unlimreal 2009-06-21 18:21:58)

Re: [TOOL] TeeWorlds: Command & Control | Beta 0.0.2 bugfixed

Ok thanks maccae.
I know that it is a alpha but it works great for a alpha big_smile
I'm looking forward to see the next version.

unlimreal

23 (edited by Schokomuesli 2009-07-18 22:26:08)

Re: [TOOL] TeeWorlds: Command & Control | Beta 0.0.2 bugfixed

Hi!

Version 0.0.2 (bugfixed) is here!

New Features:

*) New Info tab
*) Map-uploader
*) Useraccount-system
*) Modchanger
*) New Daemoncommands

I'll start with the logIn-dialog:

http://www.teeworlds.at/images/logindialog.jpg

Changes:

The button with the user creates a new profile, and the floppydisk button overwrites the current user-profile!


New and shiny info tab big_smile :

http://www.teeworlds.at/images/infotab.jpg

The new info tab allows you to see more detailed informations about the server state!

You can change your own password, if you are not a superadmin and you can change the mod!


Check for updates:

http://www.teeworlds.at/images/updatecheck.jpg

Checks if there is a newer version. The daemon does this checks during the startup too


Mapmanager:

http://www.teeworlds.at/images/mapmanager.jpg

Allows you to add/delete maps. You can find the manager on the "maps" tab.

Notice that you need to stop the teeworlds server before you can delete a map!

Mapuploader:

http://www.teeworlds.at/images/mapuploader_starting.jpg
http://www.teeworlds.at/images/mapuploader_ready.jpg

Allows you to upload a new map.

Notice: Due to security reasons there is a filesize limit of 1048576 bytes = 1Mb


Useraccountsystem:

Now you can add users with different rights.

For example you can create users which can start/stop the server but can't change the configuration or upload/delete maps.

You can lock the network-settings too (The user can't change the ip, port, or external port of the teeworlds server)

If you lock a function, the appropriate buttons get greyed out for a better representation of the user's rights.
If a user attempts to use a function with insufficient rights he/she will get an errormessage!

All users can change their passwords using the appropriate button on the info tab.
Superadmins (The username entered during the configuration of the daemon) can't change their password for security reasons!

To create a user you have to use the new daemoncommands:

test
Prints a test-text to the console

adduser
Starts the user management and allows you to add users to the userdatabase

removeuser
Starts the user management and allows you to remove a user from the database

users
Shows a useroverview with rights of the users

version
Shows versioninformation

help
Shows command overview in the console

status
Shows status of the TeeWorlds server and if online more detailed informations (there are some linux problems)

start
Starts the TeeWorlds server if not running

stop
Stops the TeeWorlds server if running

quit
Quits the daemon and stops the teeworlds server


The daemonconfiguration changed, so you have to reconfigurate the daemon!

*) Now you are able to decide if you want to show the teeworlds server output in the console window or not
*) You are able to set an amount of hours (1-48) after which the backup files get deleted

During configuration you have to define a default mod:


You have to enter the name of the mod, (watermod, etc.)
The name of the executable (teeworlds_srv.exe, or ./teeworlds_srv , or,...)
A short description of the mod (Zombie mod by rajh,...)

The daemon writes the current mod using the following syntax:

daemon_currentmod MODNAME:PATH:DESCRIPTION

for example: daemon_currentmod Watermod:teeworlds_srv.exe:The watermod by inherited


If you want to allow the selection of more mods, add lines to the file twccd_config.con with the following syntax:

addServerExecutable MODNAME:PATH:DESCRIPTION

for example:  addServerExecutable Zombie Mod:zomb_srv.exe:Zombie Mod by Rajh


Notice that version 0.0.1 and 0.0.2 are incompatible! You can't connect with a 0.0.1 client to a 0.0.2 daemon and with a 0.0.2 client to a 0.0.1 daemon!

You need to update both applications!

You DO NOT need to delete the profile of the client (you can reuse the old one)


Have fun!

Sincerely,
Filip L.

Edit (18.07.2009 20:38 CET+1):
Fixed client which crashes while attempting to save the profile with settingpairs containing null

Since now, the client should work as intended.


Edit (18.07.2009 23:49 CET+1):

v0.0.2_bugfixed released.

Modselection does not "swallow" the list. (thx to peter)
Fields should be cleared now when you create a new profile.
Added SerialVersionUIDs to some network token classes to reenable class-checks

This update concerns both, the client and the daemon

24

Re: [TOOL] TeeWorlds: Command & Control | Beta 0.0.2 bugfixed

help me plz:
http://upload7.ir/viewer.php?file=40107 … 379143.png