|
As some of you know, there is a new feature coming out called Data Persistence, or DP for short. Data Persistence consists of a bunch of methods in the Player object, that allows you to save objects, numbers, strings, and booleans into the player. The problem is, it only works when you have access to the Player object. If you wanted to add a player to a list (or remove them from one), or do anything else with their data while the player wasn't in the game, you'd have no good way to do it as far as I know.
So my suggestion is to add some stuff to Data Persistence.
Workspace:SaveModel(instance Model)
the SaveModel method of Workspace would allow you to save an existing Model in Workspace to your game, so next time a server starts, or next time you go into edit or build mode in the game, the model will appear there just like it does in the server that you saved it to. The limitations of this would be that the new model wouldn't appear in currently existing servers, 'cause that might mess stuff up.
getfenv():SaveVariable(int/float/string/table ThingToSave)
This'd allow you to save a variable to the environment of a function. For all of you who don't know what getfenv() does, it basically gives you a table full of all the variables you have access to in the function that you give it. For example:
function a()
end
print(table.concat(getfenv(a))
>functions, tables, etc. that function a has access to
For all of you non-scripters out there, this just means that we can save stuff to our scripts.
=============TL;DR=============
There should be stuff added to the new data saving feature that allows you to save models into Workspace and stuff into your script.
If this is all you read, then I pity you for not being able to read such a short post :U
==============================
Discuss. |
|
|
|
Crazy, we need to recruit more S&I'ers.... This forum is dying.... |
|
|
There's too many newbs here, not enough experienced forumers. They probably all quit because Roblox is getting to be such a bad game. They probably went and got craftmine instead :P |
|
|
Craftmine? You're kidding right. I played it for a week. It's so incredibly boring. You couldn't pay me a billion dollars to play it. |
|
|
|
|
I'm not talking about LandBlock, but that is true.... I speak of Craftmine. |
|
|
Craftmine is NOT, boring.
AND it is a fact: It's better than this.
But I still play this game.
Anyway, support. |
|
|
@seth: Data Persistence is already in testing, certain people are using it in their places, but the only functions for it are members of the Player. This'd be a good feature to have. And I said crinemaft. I'm not using the correct name 'cause the filters don't like it.
@cheese: It's an example. And I kinda like it :) |
|
|
|
Rev, here is ROBLOX.... Build anything! Buy cool things to make your character look better. Have lots of fun.
Craftmine.... Spend hours and hours slowly collecting parts, only to have a zombie attack you and take it all. |
|
|
|
@cheese: And why would you get any idea that this game is related to 'building' when there's tons of rants about BC only stuff?
Craftmine has a far better community.
Far smoother gameplay.
Far interesting maps.
And no scripting required.
ROBLOX has an advantage over its uniqueness of building stuff.
But Craftmine has more advantages than this. |
|
|
@seth
How in the flip did that get passed through the filters?! |
|
|
ROBLOX, Craftmine, and LandBLock are all three great games
Roblox for the abilty to create ANYTHING
LandBLock for DMs
CraftMine for RPGness.. |
|
|
Okay, we've determined that all three games have qualities that make them good and bad, and that they are all different from each other. I kinda prefer craftmine, just my opinion.
Now can we get back to the idea?? |
|
superfleeJoin Date: 2008-05-28 Post Count: 244 |
If this works. You would need to specify which player it saves to. Or else it need to be in a hopperbin or something. |
|
|
@super: Wha? There is already stuff to save data to the Player object, this is suggesting to add stuff so you can save Objects in Workspace and values in scripts :U |
|
peter99Join Date: 2007-11-18 Post Count: 1385 |
Isn't Data Persistence admin only now?
Anyway, I see no reason why not to do this.
Support. |
|
|
DP is being tested by a certain group of people who got chosen by Telamon, the list includes piedude77 (the creator of Epic Mining 2) and mattchewy (some famous scripter person). The admins also have access to it, obviously.
But when it is available for the public, I feel like this would be useful. If you used Data Persistence to ban someone from your game, how would you unban them? |
|
peter99Join Date: 2007-11-18 Post Count: 1385 |
I know how you would.
There is a function in Data Persistence that waits a set amount of time(Yes, it can go over a day).
You could insert the banning line, then the wait line, then a remove line. |
|
EmessJoin Date: 2010-04-01 Post Count: 13331 |
Saving models?
I was talking to Donkeyo4 the other day, and he was thinking about making a building full of offices, with DP.
When I told him that there was no such thing as saving models, he told me that he would make a multi-dimensional table full of instance properties.
I felt a bit bad for him. :/
I think that this would be a great idea. |
|
|
peter99Join Date: 2007-11-18 Post Count: 1385 |
Now, if you want to know about manually, it's anyones guess. |
|