ID:271153
 
ok, Here's what i want to know, is it possible to save the user .sav files online, meaning to save it to a website. And when you want to use that save file i beleive you use import() or soemthing like that. If it is possible can you give me something that will help me to do that, or give a a example how to do it.
I heard its possible to save to a server. How? Well, I'm not totally sure, but you will need access to your own server, a friend's server, ect.
In response to Bobthehobo
Just world export the savefiles to the place you want to put it.

Although receiving it can be problem.
In response to A.T.H.K
as far as i know its impossible. a Myth if you will

you would have to give ftp access to EVERYONE on byond and somehow intigrate both byond and the ftp client into communicating with each other...lol

now you see why its impossible.
In response to Chase_Hammer
Chase_Hammer wrote:
as far as i know its impossible. a Myth if you will

you would have to give ftp access to EVERYONE on byond and somehow intigrate both byond and the ftp client into communicating with each other...lol

now you see why its impossible.

Or... you could have another BYOND world hosted somewhere, that sends and receives savefiles.
In response to Chase_Hammer
What?! You should really know about things you're talking about. Who said it has to be FTP? Who said you have to give specific access to everyone on BYOND? You can have a secret password for an upload-only account or whatnot compiled into the DMB, etc.
No need to integrate any client into BYOND, lol! If world/Export() can't actually upload files toward non-BYOND servers, at most you'd need to just shell() some program to upload the file for you (give it the filepath as a parameter, previously using fcopy() if needed and whatnot).
In response to Kaioken
ok, still alittle confusing, ok here's what i'm using freewebs.com, i made an account, and now i upload my game there as a zip file. Ok here what the problem is,i want all the save files .sav to be specific save on the website, Example, freewebs.com/hunter/mygame/savefiles/players

And how would you save that to the website in the game, something like this i think

mob/verb/save()
var/savefile/F = new()
F << usr //write the player's mob
usr.client.Export(F)


the probelem with this is that where does it save it too, i want it to save it like in a folder example:www.freewebs.com/hunter/mygame/saveflies/players/ hunter.sav
In response to Sayian Hunter
dude no one is going to specifically tell you something that will work because its not possible. You guys can bash me all you want but one thing i do know is networking and hosting. there is NO way that BYOND will have access to a out of home networked computer. if you think im wrong prove it!, provide me with a working code that does so, if not please dont spread this crap.
In response to Chase_Hammer
Here's one way where you can have BYOND access/retrieve a savefile from a out of home networked computer:
Make a DMCGI program which, using world/Topic(), send/retrieve savefiles by/to servers using world/Export() for sendin or world/Topic() for retrieving.

And as Kaio said in [link] "If world/Export() can't actually upload files toward non-BYOND servers, at most you'd need to just shell() some program to upload the file for you (give it the filepath as a parameter, previously using fcopy() if needed and whatnot)."

- GhostAnime
In response to GhostAnime
I would just use DM to PHP communication to input the players data into the database its really simple.
In response to Jon88
ight ight i got you, it's ok if you don't know. Well is there a way to save it on the users computer
In response to Sayian Hunter
you mean client side saving.

Just search it theres many of demos/libs on it
In response to A.T.H.K
ok i got a good source code here, the problem now is that i need it to be saved before the client/Del() is that possible?
In response to Chase_Hammer
Chase_Hammer wrote:
as far as i know its impossible. a Myth if you will

you would have to give ftp access to EVERYONE on byond and somehow intigrate both byond and the ftp client into communicating with each other...lol

now you see why its impossible.

Kajika does something almost identicle to what he is asking for(slightly differant, but not by much) with the Byond game DMO.

As you just stated, you would need to allow ftp, and Byond access with each other.

Although Kajika doesn't save the whole save file to the site, he does have a ranking system wich auto saves to the site,dirrectly from the game. Also Kajika's forum on his site, is linked to the login proc, of Byond Its self, so when you go to the forums, you have to use your Byond Key.

If Kajika, and Lufia can do that, I'm sure you can do it with complete save files as well. However, Kajika is a god when it comes to save file codeing, as well as comeing up with new ways to use the DM code, and Lufia is amazeing at code that requires mathmatics, as well as webpage codeing.

If I recall, the Lufika site uses PhP, but it shouldn't make any differanve what type of site it is.
In response to Zoltor
the lufika site uses DMCGI.