new in 97: spring:// URLs

new in 97: spring:// URLs

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderators: Moderators, Moderators

Post Reply
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

new in 97: spring:// URLs

Post by jK »

With 97 Spring will support & link its own custom URL scheme. People from UT99 will likely know that and IRC & Mumble uses it, too.
It allows you to place your own spring:// link on your website and ppl can click it to e.g. spectate the running match.
Or you can even add username + password to join as regular player and use such links in your weblobby.

The full syntax of the URL scheme is: spring://username:password@hostname:port
And it works exactly the same as you expect from http URLs (everything except hostname is optional).

In future I hope it replaces script.txt in lobby protocol as a whole, so only the host creates the script.txt but sends each user/clients its specific spring:// url with their username & password. This way the client doesn't need any script.txt that needs to be saved to filesystem, the client can purely started by cmdline arguments then.

Also sync testing under linux becomes much easier:
`spring script.txt & spring spring://localhost`
will start a host & a client.
0 x

User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14616
Joined: 17 Nov 2005, 02:43

Re: new in 97: spring:// URLs

Post by Forboding Angel »

FUCK YES!!!! Thanks JK!
0 x

User avatar
Silentwings
Moderator
Posts: 3613
Joined: 25 Oct 2008, 00:23

Re: new in 97: spring:// URLs

Post by Silentwings »

Great idea.
0 x

gajop
Moderator
Posts: 3023
Joined: 05 Aug 2009, 20:42

Re: new in 97: spring:// URLs

Post by gajop »

custom URL types are nice, gj on standardizing it :)
0 x

User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: new in 97: spring:// URLs

Post by knorke »

Interessting.
How does it work though?
After clicking a click how does "it" know which version of engine to start? Or is that something lobbies have to implent?
0 x

User avatar
SinbadEV
Posts: 6475
Joined: 02 May 2005, 03:56

Re: new in 97: spring:// URLs

Post by SinbadEV »

Based on my cursory inspection of the source and my vague understanding of URI schemes... a single specific spring executable will be registered with the OS to handle the "links"... so unless you make some kind of intermediary parser it's not going support multiple engine versions.
0 x

User avatar
Anarchid
Posts: 1381
Joined: 30 Nov 2008, 04:31

Re: new in 97: spring:// URLs

Post by Anarchid »

Note that ZKL and SWL already use spring:// so there might be conflicts?

Or is that taken care of?
0 x

Post Reply

Return to “Engine”