1

Topic: [SUGGESTION] Copy-paste IP adresses

1. It should be able to, copy and paste the ip-adress because its realy
   nerving if you have to write the full ip-adress to a friend if you want to 
   play with him
2. Maybe a list of favourite servers

2

Re: [SUGGESTION] Copy-paste IP adresses

Yes that wold be so nice big_smile

I play in instagib server all the time so if we can have favorite servers I will freak out big_smile

MertenNor

->My 24/7 servers: [NOR] Norwegian HUB <- Back Online !! big_smile
( My grammar is getting better ! smile I think.. )
-Norway

3

Re: [SUGGESTION] Copy-paste IP adresses

Sleepwalker wrote:

1. It should be able to, copy and paste the ip-adress because its realy
   nerving if you have to write the full ip-adress to a friend if you want to 
   play with him
2. Maybe a list of favourite servers

1. ??? You can find players just by typing in their name at the server search bar!
2. is going be in 0.5.0

Hooker's collection of the most Tee-ish skins!
http://www.teeworlds.com/forum/viewtopic.php?pid=39896

4

Re: [SUGGESTION] Copy-paste IP adresses

1. ??? You can find players just by typing in their name at the server search bar!

Doesn't work with servers not registered to the masterserver. tongue

bam: WARNING:'src/game/server/gamemodes/mod.cpp' comes from the future

5

Re: [SUGGESTION] Copy-paste IP adresses

create a a.cfg file in teeworlds directory and type in : "connect ip" then ingame F1=>exec a.cfg
xD big_smile

6 (edited by Darktemp 2009-09-17 14:11:11)

Re: [SUGGESTION] Copy-paste IP adresses

Hi there,
although this thread is not the newest, i will post it here instead of a new thread.

Sleepwalker wrote:

1. It should be able to, copy and paste the ip-adress

It annoys me too that you cannot paste an adress in the textbox, so i built a paste function into the textboxes (using ctrl+v). It only works for win32 because i dont know how the clipboard in linux/mac works.

Here it is:
<edited, use link below>
It contains an .exe which is compiled based on 0.5.1 as well as the modified sources (src\game\client\components\menus.cpp ,\src\base\clipboard.c ,\src\base\clipboard.h)
so you can compile it yourself (or any dev can adopt it for 0.5.2 or something)

PS. there is no check for valid chars in the clipboard, so you can paste 'newlines' but i didn't test what happens, so please don't try it smile
edit: fixed, thx to gordzo70

edit:
I added also a copy-function but only to copy the whole textbox without selecting the text, just hit ctrl+c to copy the content of the box.
here is the new link:
http://darktemp.dizconnected.de/dl.php? … ypaste.rar

7

Re: [SUGGESTION] Copy-paste IP adresses

Darktemp wrote:

It annoys me too that you cannot paste an adress in the textbox, so i built a paste function into the textboxes (using ctrl+v). It only works for win32 because i dont know how the clipboard in linux/mac works.

Awesome!

Darktemp wrote:

PS. there is no check for valid chars in the clipboard, so you can paste 'newlines' but i didn't test what happens, so please don't try it smile

You may want to check out the str_sanitize_strong function:

/*
    Function: str_sanitize_strong
        Replaces all characters below 32 and above 127 with whitespace.
   
    Parameters:
        str - String to sanitize.

    Remarks:
        - The strings are treated as zero-termineted strings.
*/

void str_sanitize_strong(char *str);

8

Re: [SUGGESTION] Copy-paste IP adresses

Thx, that is a good idea.
I fixed it and updated the file (same link as before)