1

Topic: [SUGGESTION]tw:// protocol

Hi,
It would be nice to add a tw:// protocol to teeworlds.
On first launching, teeworlds will verify if this protocol exists, and if not, create it.

For windows, add a tw key un HKEY_CLASS_ROOT, or follow http://msdn.microsoft.com/en-us/library … 85%29.aspx

For linux, i think it's a mimetype to add.
For Mac, it's probably the same.

Mika.

Ps : Usage : tw://server:port or tw://#connect server:port

2

Re: [SUGGESTION]tw:// protocol

Nice Idea, but then you must have a default tw path because the protocol will run this path.
But maybe someone can code a small connection app which will be installed in a never changed path like C:\WINDOWS\System32\ (on Windows). But this would also be hard, because there can't be an tw app without skins, maps, game.png, ect.

The only way to do this is: Making an Setup app from tw, that makes the key in the registry for the protocol, and saves the tw location in the registry.

3

Re: [SUGGESTION]tw:// protocol

Nice idea. And what about Mac and Linux users? Hmm?

Goodbye all. Account inactive since March 2011.

4 (edited by Lanta 2009-10-12 13:59:09)

Re: [SUGGESTION]tw:// protocol

KillaBilla wrote:

Nice Idea, but then you must have a default tw path because the protocol will run this path.
But maybe someone can code a small connection app which will be installed in a never changed path like C:\WINDOWS\System32\ (on Windows). But this would also be hard, because there can't be an tw app without skins, maps, game.png, ect.

The only way to do this is: Making an Setup app from tw, that makes the key in the registry for the protocol, and saves the tw location in the registry.

What if teeworlds will remain without installer and:
every time the game client run, check if the reg key exists. If exists, check the path. If it's the same, nothing to do, else change the key. If the reg key doesn't exists need to create it.
(something like this also for linux and mac)

With this method, if you have one or more client downloaded, it will run the last you used.

Support Staff - ESL.eu Teeworlds Admin

5 (edited by Landil 2009-10-12 17:44:41)

Re: [SUGGESTION]tw:// protocol

Thank you lappi!

Antoine de Saint Exupéry: It seems that perfection is reached not when there is nothing left to add, but when there is nothing left to take away.
Besides -  I am the gfx guy!

6 (edited by Lappi 2009-10-12 17:55:05)

Re: [SUGGESTION]tw:// protocol

I gave it a try with a batch file that parses the passed argument / address. It does not check for any errors so handle with care! I do not take responsibility for anything.

http://landil.posterous.com/how-to-star … om-web-win

edit: here as well as at posterous the linking engine kills tw:// links and tries to convert them into http-links, e.g tw://88.191.17.73:8304 will result in http://tw//88.191.17.73:8304
but... try this one: http://tinyurl.com/HuH-Instagib-CTF

Question? search function
Short movies? Lappi's link loft
Teeworlds info'n'tuts on gfx? Landil's sketchbook

7

Re: [SUGGESTION]tw:// protocol

Nice, it work realy nice !
I think it can be added to V0.6 as an option in configuration.

Mika.

Ps : I'm looking for the linux way, did anybody as tryed with mimetypes ?

8

Re: [SUGGESTION]tw:// protocol

Maybe along with that the devs could implement a simple web api around the master server that gives developers access to the master server list?  The api would give access to all the same server information that the game client does.

9

Re: [SUGGESTION]tw:// protocol

There already is big_smile

10

Re: [SUGGESTION]tw:// protocol

This has been discussed before. Not done because it's so platform specific. If someone does it, it should be formatted like this:

teeworlds:servername:port

and not

teeworlds://servername:port

to follow the specifications. Feel free to implement it as a script for the game or something.

11

Re: [SUGGESTION]tw:// protocol

It's true, teeworlds:server:port work, i've never seen protocol: (without //) before !

Mika.