The Daily Click ::. Forums ::. Klik Coding Help ::. Uploading Files to an Online Database from within a Game
 

Post Reply  Post Oekaki 
 

Posted By Message

Bryon



Registered
  30/04/2005
Points
  3
9th April, 2006 at 04:21:15 -

I've been using MMF for almost three years now and I'm currently working on a game in which the players can create their own levels. Now I'm thinking about making it so that the game will automatically upload the player-created levels (about 1.3kb) onto an online database so that they can be downloaded by other players. I'm not really sure how to do it. To be honest, as of now I don't even have a webpage for the files to upload to.

I'm just wondering if there's some extension that will help me do this easily, because I'm not a programming expert. I just thought I would find out if it's possible before I get too involved in trying to make it work. Even if you don't know how to do it, simply pointing out another game in which you can upload files onto the internet would be really great.

Thankyou.

Image Edited by the Author.

 
~Bryon~

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
9th April, 2006 at 06:19:54 -

One method would be to use moosock to connect to a php\asp script on a webserver. You could then tell this script the location of your file and make it upload. There are plenty of upload scripts for php, which are all very simple. Your server needs to support php however. To download them, other players can use the super download object (or one of the other many download extensions).

Since you don't have a webserver it would also be possible to host a server on your pc 24/7 and have other users send the maps to you and then you send them to other players using moosock's send binary function.

Either way, search the Clickteam forums for moosock binary file transfer and connecting to web scripts with moosock. Here's an example of how to connect to a web script with moosock:
http://www2.create-games.com/article.asp?id=1642
It's for a highscore table, but it's same principle.

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Bryon



Registered
  30/04/2005
Points
  3
9th April, 2006 at 06:31:26 -

Ah, thankyou so much. That will definatly help.

 
~Bryon~

Keatontech!

Possibly Insane

Registered
  10/07/2005
Points
  2720
9th April, 2006 at 17:48:33 -

An easier way is just using the FTP object, but that's really slow...

 
Happily Using Mac Now

I Officially Leave-d !

Flava



Registered
  30/07/2002
Points
  684

Has Donated, Thank You!Code MonkeyVIP MemberThe Cake is a LieThe Spinster
9th April, 2006 at 18:20:01 -

The FTP object can add data to databases..?

 
This is a signature. Have this one on me.

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
9th April, 2006 at 20:23:42 -

FTP data bases, yeah.

 
http://www.facebook.com/truediamondgame

Keatontech!

Possibly Insane

Registered
  10/07/2005
Points
  2720
9th April, 2006 at 20:24:31 -

Yeah, you can just use a list file as a database.

 
Happily Using Mac Now

I Officially Leave-d !

Bryon



Registered
  30/04/2005
Points
  3
11th April, 2006 at 17:00:27 -

I don't think so

 
~Bryon~

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
11th April, 2006 at 19:44:49 -

Oh yes you can. It's just a cheaper / non-MySQL solution. When someone uploads a file: download the online userlevels list, add my link to it and upload the file again.

 
Old member (~2004-2007).
   

Post Reply



 



Advertisement

Worth A Click