generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: storing data

Previous Thread :: Next Thread 
1waffle1 is not online. 1waffle1
Joined: 16 Oct 2007
Total Posts: 16381
15 Dec 2013 05:13 PM
Most people who want to use this new HTTP service don't know how to start. It's a simple system, it's just the resources that complicate things. The easiest way to use this system would be to have a database server where you can send a certain request and it will return a certain value for getting data, or send another request with another value for posting data. The management would have to be a program running on the server to manage how the requests are interpreted, and this can't be written in lua on a roblox game.

The best thing that could help anyone trying to use this system would be an explanation on how to first host a database server and then how to begin writing a program to manage requests and send/store data on it based on those requests.
Report Abuse
Articulating is not online. Articulating
Joined: 12 Nov 2011
Total Posts: 708
15 Dec 2013 05:18 PM
Yup.
I'll just wait for the Data Store then.
Report Abuse
1waffle1 is not online. 1waffle1
Joined: 16 Oct 2007
Total Posts: 16381
15 Dec 2013 05:53 PM
Does the "Data Store" include server-sided scripting?
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
15 Dec 2013 05:59 PM
"Does the "Data Store" include server-sided scripting?"

Yeah it uses server-sided scripting to save and load stuff. It doesn't take any effort on the user's part to set it up though, and it's got unlimited storage.
Report Abuse
MettaurSp is not online. MettaurSp
Joined: 20 Mar 2010
Total Posts: 3179
15 Dec 2013 06:06 PM
Know if it will allow client sided saving and loading? Or will I have to continue using server sided data handling scripts?
Report Abuse
mew903 is not online. mew903
Joined: 03 Aug 2008
Total Posts: 22071
15 Dec 2013 06:13 PM
"and it's got unlimited storage."

For just one user? What if the user decides to store an innapropriate amount of data in there. Me and roblox user Joalmo did that on our school drive and that didn't end very well.
Report Abuse
1waffle1 is not online. 1waffle1
Joined: 16 Oct 2007
Total Posts: 16381
15 Dec 2013 06:25 PM
"Yeah it uses server-sided scripting to save and load stuff"
Well what else would it use

Will there be any server-sided scripting for managing how data sent in post requests is interpreted in Roblox's own system? If it's going to be basic and restricting then it isn't useful.
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
15 Dec 2013 06:33 PM
"Will there be any server-sided scripting for managing how data sent in post requests is interpreted in Roblox's own system? If it's going to be basic and restricting then it isn't useful."

I'm not entirely sure what you're asking, but there is an UpdateAsync function that uses a callback as it's second argument instead of a value. The callback is called with the current value and it should return the new value. I hope that answers your question.


"For just one user? What if the user decides to store an innapropriate amount of data in there. Me and roblox user Joalmo did that on our school drive and that didn't end very well."

DataStores are global per-place (or per-universe, if applicable). Someone on the devforums asked how they would handle it if someone were to spam values - I don't think they've responded yet.
Report Abuse
1waffle1 is not online. 1waffle1
Joined: 16 Oct 2007
Total Posts: 16381
15 Dec 2013 06:35 PM
"I'm not entirely sure what you're asking"
I'm asking if there is going to be a database management script to manage the game's database that doesn't try to run in every single open network server.
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
15 Dec 2013 06:39 PM
"Know if it will allow client sided saving and loading? Or will I have to continue using server sided data handling scripts?"

Current GetGlobalDataStore returns nil on the client. I'm not sure about what their plans for that are, but I have my doubts that they would give the clients write access to the game's global data store.
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
15 Dec 2013 06:41 PM
"I'm asking if there is going to be a database management script to manage the game's database that doesn't try to run in every single open network server."

Nope. But you can access the data store from studio (use SetPlaceId first) and modify it from there, so one could create a plugin that manages the data store and just leave that studio window open all the time.
Report Abuse
1waffle1 is not online. 1waffle1
Joined: 16 Oct 2007
Total Posts: 16381
15 Dec 2013 06:46 PM
"one could create a plugin that manages the data store and just leave that studio window open all the time."

This would be like owning your own database server. You would need a spare machine to do this and it would have to be on all the time. Data could just be stored on that machine inside of the studio window and requests would be sent to the Data Store that would be interpreted. If that program were ever closed, though, or the computer died, everything would be gone.
Report Abuse
Charl3s7 is not online. Charl3s7
Joined: 07 Dec 2007
Total Posts: 4146
15 Dec 2013 07:24 PM
It CAN be written in Lua. Though, more coding would be necessary. You could write yourself a web server that handles Lua.

Though, the new project I'm starting is basically what you described. Except it's written in php.
Report Abuse
1waffle1 is not online. 1waffle1
Joined: 16 Oct 2007
Total Posts: 16381
15 Dec 2013 07:54 PM
- create a database server that roblox games can connect to
- create a script that can interpret post requests and store and return data accordingly

how
Report Abuse
Charl3s7 is not online. Charl3s7
Joined: 07 Dec 2007
Total Posts: 4146
15 Dec 2013 07:59 PM
"- create a database server that roblox games can connect to"
The database on the server...?

"- create a script that can interpret post requests and store and return data accordingly"
Lua's httpservice and the php on the server?

It isn't complex at all.
Report Abuse
Articulating is not online. Articulating
Joined: 12 Nov 2011
Total Posts: 708
15 Dec 2013 07:59 PM
How come Data Store doesn't work on GameTest5?
12:51:35.632 - Place has to be opened with Edit button to access DataStores
Report Abuse
1waffle1 is not online. 1waffle1
Joined: 16 Oct 2007
Total Posts: 16381
15 Dec 2013 08:13 PM
"database on the server...?"
"php on the server?"

what is "the server"
there needs to be a database and a script to manage incoming requests from games to the database.
Report Abuse
Charl3s7 is not online. Charl3s7
Joined: 07 Dec 2007
Total Posts: 4146
15 Dec 2013 08:26 PM
??????
The server is the database server???
I really don't understand what you're not getting at this point.
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
15 Dec 2013 08:30 PM
"How come Data Store doesn't work on GameTest5?
12:51:35.632 - Place has to be opened with Edit button to access DataStores"

SetPlaceId
Report Abuse
Articulating is not online. Articulating
Joined: 12 Nov 2011
Total Posts: 708
15 Dec 2013 08:30 PM
I did. About 7 times.
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
15 Dec 2013 08:48 PM
"I did. About 7 times."

1) Log on from studio
2) Load a place
3) SetPlaceId to one of your place's IDs
4) You can now access DataStore

If you still can't, I think it may still be in beta so only certain people can use it. I wouldn't know because I'm on the list.
Report Abuse
1waffle1 is not online. 1waffle1
Joined: 16 Oct 2007
Total Posts: 16381
15 Dec 2013 09:53 PM
It's simple to explain and so far difficult to figure out.
- get a server
- write a script that runs on the server to interpret incoming post requests that can manage data on the server and determine what to return based on the request
Report Abuse
Articulating is not online. Articulating
Joined: 12 Nov 2011
Total Posts: 708
15 Dec 2013 10:05 PM
That step 2 is what confuses me lol
Report Abuse
Charl3s7 is not online. Charl3s7
Joined: 07 Dec 2007
Total Posts: 4146
15 Dec 2013 10:13 PM
[opening php tag]

$data = $_GET['key'];
echo $data;

[closing php tag] (stupid roblox)

then in your lua:

print(game:GetService("HttpService"):GetAsync("whateverurl.php?key=abc123"))

>abc123
Report Abuse
Articulating is not online. Articulating
Joined: 12 Nov 2011
Total Posts: 708
15 Dec 2013 11:10 PM
Oh, sorry, I meant the 2nd step for POST. I can use GET already.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image