game server/website integration

Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: game server/website integration
PostPosted: Sat Jul 03, 2010 10:49 pm 
User avatar
Obliterated

Current Scorched3D Rank: Unranked



Joined: Wed Jun 14, 2006 11:18 pm
Posts: 1480
Location: United Kingdom
this is probably a better place to post this to save cluttering feature requests.

ive been thinking about a way to further link up this flash banner to the game servers. not something id hold out for, but it could be a fun to way bring site visitors into online games.

ive already set up some xml stuff to query the stats db, but suppose the banner displayed activity from each of the main servers with a 'click to join this server' link as part of the message?

im not sure how the current servers.php works. is there any way i could get a copy of the php code? id guess it's just a query to some kind of server registration data and an http header or two to pass the ip address etc as a download? it could be worth cycling through the official servers one at a time.

and, related, could the game installer be set to associate s3l files automatically with the game? i dont know if there are security issues at all - windows registry stuff.


Top
 Profile  
 
 Post subject: Re: game server/website integration
PostPosted: Sun Jul 04, 2010 10:54 pm 
User avatar
Site Admin
Not Signed Up For Stats

Joined: Mon Aug 04, 2003 4:09 pm
Posts: 4771
Location: Scotland
The server registration details for each server is stored in a database (the same as any other data). It's actualy accessable via a web service :
http://www.scorched3d.co.uk/scorched/servers.php

Yeah it should be possible to associate the those files, I'll have a look into it.


Top
 Profile  
 
 Post subject: Re: game server/website integration
PostPosted: Mon Jul 05, 2010 7:33 am 
User avatar
Obliterated

Current Scorched3D Rank: Unranked



Joined: Wed Jun 14, 2006 11:18 pm
Posts: 1480
Location: United Kingdom
ah. handy.

i was thinking, along the lines of site integration considering the way those s3l files could be served up, what d'you think about a custom BB tag?

say you had

[serverlink]name of server here[/serverlink]

and parsed that or some other xml file or something with some client side javascript as part of a forum post and linked it to a download. (or a mod of the php BB code if it was worth it)

it wouldnt be all that necessary if people have static IP's or well maintained servers, but you'd probably need some way to avoid dead links on aging forum posts.

im imagining a server link as part of a tournaments post, and maybe links as part of a signature for people who host their own servers?

you could already do it, i guess, minus the little icon. maybe you could have a news post or a servers forum
e.g.
"I’ve launched a new server with different settings: JOIN THE SERVER HERE"

these settings are:
this this and this


Top
 Profile  
 
 Post subject: Re: game server/website integration
PostPosted: Mon Jul 05, 2010 10:56 pm 
User avatar
Site Admin
Not Signed Up For Stats

Joined: Mon Aug 04, 2003 4:09 pm
Posts: 4771
Location: Scotland
Sounds like a great idea, would be hard to implement.


Top
 Profile  
 
 Post subject: Re: game server/website integration
PostPosted: Tue Jul 06, 2010 5:23 pm 
User avatar
Obliterated

Current Scorched3D Rank: Unranked



Joined: Wed Jun 14, 2006 11:18 pm
Posts: 1480
Location: United Kingdom
yeap. but im probably making it way more complicated that it needs to be, talking about parsing xml's.

all youd have to do for a server link like this:
Attachment:
joinserver.png
joinserver.png [ 868 Bytes | Viewed 987 times ]

is set up a custom bb code like this:

Code:
[server={INTTEXT}:{NUMBER}]{SIMPLETEXT}[/server]

with replacement html like this:
Code:
<a style="background-image: url('http://www.scorched3d.co.uk/buttons/launch2.gif'); background-repeat: no-repeat; padding-left: 20px;" href="http://www.scorched3d.co.uk/servers/launch.php?server={INTTEXT}:{NUMBER}">{SIMPLETEXT}</a>


then you could just use a [server] tag on the forums with:
Code:
[server=83.170.114.133:27270]Join The Server Here[/server]


Attachment:
custombb.png
custombb.png [ 16.68 KiB | Viewed 987 times ]

(i tested). youd probably want to swap out those absolute paths.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group