An Online Scoreboard
An Online Scoreboard
An Online Scoreboard
An Online Scoreboard
An Online Scoreboard
An Online Scoreboard An Online Scoreboard An Online Scoreboard An Online Scoreboard An Online Scoreboard An Online Scoreboard An Online Scoreboard An Online Scoreboard
An Online Scoreboard An Online Scoreboard
An Online Scoreboard
Go Back  Xtreme Visual Basic Talk > > > An Online Scoreboard


Reply
 
Thread Tools Display Modes
  #1  
Old 09-09-2009, 12:43 PM
Matthews42 Matthews42 is offline
Newcomer
 
Join Date: Sep 2009
Posts: 2
Default An Online Scoreboard


Hey all, used the search button but didn't really turn up anything.

So I've made a nice Dx7 puzzle game, and I want the user to be able to submit their score to a worldwide hi-score table. I've got a few GBs of webspace that supports FTP (but not SQL). I'm using VB6, but I can switch to VB.NET if it's more feasible on there.

So I thought maybe one of the following:

1) Clicking submit will send an email (somehow) to me with a "hiscore" file attached. I personally save this and recompile the hi-score list and upload it online.

2) The program will download hiscore.txt from the webspace, amend it and then re-upload it via FTP.

3) Everytime a user "submits" their score the program will save a file to the webspace with a filename based upon the attained numerical score. To get the hiscore list, the files need only be sorted by filename.

Obviously those three have potential problems, I imagine I'd be using the internet transfer control to up/download, with the ftp password being downloaded from an encrypted file on the webspace.

So yeah, what do you guys think? Could any of the above work well? Any better ways to do it?

Opinions and advice would be welcomed,

Thanks
Reply With Quote
  #2  
Old 09-09-2009, 02:22 PM
Qua's Avatar
QuaAn Online Scoreboard Qua is offline
Impetuous & volatile

* Expert *
 
Join Date: Apr 2005
Posts: 2,177
Default

With that kind of solution I suppose you don't expect to get millions of clients submitting hiscores

You should look into a server side technology such as ASP or ASP.NET. With ASP running on your server you could have your players submit their score directly to your site, process it on the server and instantly display the new high scores.

ASP.NET can be written with Visual Basic.NET, and there are a plethora of example on how to process simple queries such as posting high scores to your site.

IMO a solution that includes sending a mail that will be manually processed after which you will need to edit a file and upload it to a server is not very viable.
__________________
Reading is the foundation for all knowledge - Unknown.
Reply With Quote
  #3  
Old 09-09-2009, 03:40 PM
Matthews42 Matthews42 is offline
Newcomer
 
Join Date: Sep 2009
Posts: 2
Default

Haha, I admit it's not perfect. At a bit of a loss here.

Number (2), downloading - modifying - reuploading, might be best. But there's potentially a big risk :/

The ASP looks interesting, but as anyone could just download the ASP script and look at the code, isn't that potentially security breaking?
Reply With Quote
  #4  
Old 09-09-2009, 04:16 PM
Qua's Avatar
QuaAn Online Scoreboard Qua is offline
Impetuous & volatile

* Expert *
 
Join Date: Apr 2005
Posts: 2,177
Default

ASP is a server-side technology which means the code both resides and executes sololy on the server. When a user requests an ASP page the server processes the ASP code and then creates the html file, afterwards the pure html file is sent back to the user. Due to this, the end user (people browsing your site) will never see a single line of ASP scripting on your page. So unless your server gets hacked or improperly secured your scripts are safe.
__________________
Reading is the foundation for all knowledge - Unknown.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
An Online Scoreboard
An Online Scoreboard
An Online Scoreboard An Online Scoreboard
An Online Scoreboard
An Online Scoreboard
An Online Scoreboard An Online Scoreboard An Online Scoreboard An Online Scoreboard An Online Scoreboard An Online Scoreboard An Online Scoreboard
An Online Scoreboard
An Online Scoreboard
 
An Online Scoreboard
An Online Scoreboard
 
-->