1

Topic: [SUGGESTION] A Teeworlds customized console

Hey !

As I found the teeworlds console (I mean, he real console, not the ingame interface) a little bit ugly and sad in Black&White, I tried to add some colors :

http://duneudne.free.fr/source/gamer_screenshots/teeworlds_console.png

Hope you like it smile

Not Luck, Just Magic.

2

Re: [SUGGESTION] A Teeworlds customized console

Ehm... yeah but... the download link? xD

Support Staff - ESL.eu Teeworlds Admin

3

Re: [SUGGESTION] A Teeworlds customized console

Awesome stuff.






Uhm...
DL link big_smile

privet

4

Re: [SUGGESTION] A Teeworlds customized console

maybe useful for players who like many "crazy" colors...
but i prefer the simple white letters, they are relaxing to me tongue

5

Re: [SUGGESTION] A Teeworlds customized console

I don't see where it could be interesting for regular players.
But it's a nice feature for any debugging purpose IMO...

spl0k, aka Al`. From the HuH clan.
Noobing pwns since 01/01/1970.
TeeViewer - TeeComp

6

Re: [SUGGESTION] A Teeworlds customized console

spl0k wrote:

I don't see where it could be interesting for regular players.
But it's a nice feature for any debugging purpose IMO...

Trust me it's useful. When many ppl are on a server and you can't get a hold of the chat or the messages disappeared, this really helps to check the previous messages in console that are usually spammed with shitty server infos.

Thanks dune, but put a downloadlink -.-

*** JUSTICE ALWAYS WINS ***

7

Re: [SUGGESTION] A Teeworlds customized console

i think its useful for the person who hosts the server and for some debugging stuff like spl0k mentioned. But most servers are hosted on servers without any destop stuff... so the coloration would make more sense in rcon wink
btw... there is a new system for debug messages on its way which will prevent console spam at least in rcon (for now not a single debug message will pop up in rcon)

uptee - a simple web interface for hosting and maintaining teeworlds servers
teerace - a website gathering results of trusted Race-mod servers providing global ranking and statistics
*gV* rox ^^

8

Re: [SUGGESTION] A Teeworlds customized console

Sorry for no download link, but this was just a try, just to show you how this could look like ^^
I passed 20s to decide which colors I will use, so... maybe not the best ones.
I also can put some  background color, and btw I deleted some 'useless' info for the basic server hoster such as the date in hexa and the 'prediction reset' spamming warnings.

For info, I also managed to do some ASCII drawing that you see before Teeworlds start.
Here, I did that with "gamer", but well, I'm a programmer, not a designer, do not forget that tongue

http://duneudne.free.fr/source/gamer_screenshots/teeworlds_ascii_console.png

Then, about this "download link". There is not much change to do, only problem are Operating Systems.


void dbg_msg(const char *sys, const char *fmt, ...)
{
    va_list args;
    char str[1024*4];
    char *msg;
    int i, len;
#if defined(CONF_FAMILY_WINDOWS)
    HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
    int hOut_background = (int)hOut & 0xFFF0; // This 'saves' the background color
#endif
    
    str_format(str, sizeof(str), "[%s]: ", sys);
    len = strlen(str);
    msg = (char *)str + len;
    
    va_start(args, fmt);
#if defined(CONF_FAMILY_WINDOWS)
    _vsnprintf(msg, sizeof(str)-len, fmt, args);
#else
    vsnprintf(msg, sizeof(str)-len, fmt, args);
#endif
    va_end(args);
    
#if defined(CONF_FAMILY_WINDOWS)
    if(!strcmp(sys, "chat"))
    {
        if(strstr(msg, "*** ") == msg)
            SetConsoleTextAttribute(hOut, FOREGROUND_RED | FOREGROUND_GREEN | hOut_background);
        else
            SetConsoleTextAttribute(hOut, FOREGROUND_RED | FOREGROUND_INTENSITY | hOut_background);
    }
    if(!strcmp(sys, "client") || !strcmp(sys, "netclient"))
        SetConsoleTextAttribute(hOut, FOREGROUND_BLUE | FOREGROUND_GREEN | hOut_background);
#elif defined(CONF_FAMILY_UNIX)
    if(!strcmp(sys, "chat"))
    {
        if(strstr(msg, "*** ") == msg)
            printf("\033[33;00m");
        else
            printf("\033[31;01m");
    }
    if(!strcmp(sys, "client") || !strcmp(sys, "netclient"))
        printf("\033[34;01m");
#elif defined(CONF_PLATFORM_MACOSX)
    if(!strcmp(sys, "chat"))
    {
        if(strstr(msg, "*** ") == msg)
            printf("\e[33;00m");
        else
            printf("\e[31;01m");
    }
    if(!strcmp(sys, "client") || !strcmp(sys, "netclient"))
        printf("\e[34;01m");
#endif
    
    for(i = 0; i < num_loggers; i++)
        loggers[i](str);

#if defined(CONF_FAMILY_WINDOWS)
    SetConsoleTextAttribute(hOut, 0x0007 | hOut_background);
#elif defined(CONF_FAMILY_UNIX)
    printf("\033[m");
#elif defined(CONF_PLATFORM_MACOSX)
   printf("\e[m");
#endif
}

I cannot test this code for Linux and Mac, so I just can hope this is going to work - normally this does.
Really sorry bout those OS hmm

Not Luck, Just Magic.

9

Re: [SUGGESTION] A Teeworlds customized console

Do I need to enable ANSI.sys for this?

Cause colored letters are usually only available by enabling ANSI.sys on windows.

10

Re: [SUGGESTION] A Teeworlds customized console

Mh, I don't think so.
I hadn't to enable anything, this should work as is. (I'm on Windows 7)

Not Luck, Just Magic.

11

Re: [SUGGESTION] A Teeworlds customized console

H!, all

Teeworlds is danger o.O
I made a drawing of: ''Its's danger Teeworlds''
It is smal, I hope you like it! ^^

look on: http://www.2shared.com/photo/KqiyMQuP/T … anger.html

12 (edited by AwayD 2011-05-12 20:27:42)

Re: [SUGGESTION] A Teeworlds customized console

harmen wrote:

H!, all

Teeworlds is danger o.O
I made a drawing of: ''Its's danger Teeworlds''
It is smal, I hope you like it! ^^

look on: http://www.2shared.com/photo/KqiyMQuP/T … anger.html

wrong subforum. post this in Content: Graphics

@topic


It is a good idea but you should choose other colours.
some which are less "powerful". But i know its just a test and easy to change smile

edit: upps. sorry, topic is outdated.

13

Re: [SUGGESTION] A Teeworlds customized console

i like thats fun xD

If you want a perfect map for your own server you can PM me to make you one ^^

Please also try play nodes you may download it here!. And as always.Have a nice day

14

Re: [SUGGESTION] A Teeworlds customized console

AwayD wrote:

@topic

It is a good idea but you should choose other colours.
some which are less "powerful". But i know its just a test and easy to change smile

The topic is a bit less than one year old. Maybe it's a bit outdated tongue
Actually, some OS do not open a console window at the startup of the client, so it's not that useful, but I implemented it on that client if you're interested in how it's looking.

Not Luck, Just Magic.

15

Re: [SUGGESTION] A Teeworlds customized console

Dune wrote:
AwayD wrote:

@topic

It is a good idea but you should choose other colours.
some which are less "powerful". But i know its just a test and easy to change smile

The topic is a bit less than one year old. Maybe it's a bit outdated tongue
Actually, some OS do not open a console window at the startup of the client, so it's not that useful, but I implemented it on that client if you're interested in how it's looking.

actually i just wanted to answer harmen and i dont wanted to spam so i just wrote something about it xd
and of course i already know your client