How To Efficiently Use Data Persistence: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Blocco
Why isn't the code example working?
>Blocco
No edit summary
Line 4: Line 4:
== So Just How Is This Data Stored? ==
== So Just How Is This Data Stored? ==
Roblox Data Persistence data is stored as XML, with Key, Value and Table tags.  Each "key" links to a "value," which holds your data.  The bulk of this XML would be this:
Roblox Data Persistence data is stored as XML, with Key, Value and Table tags.  Each "key" links to a "value," which holds your data.  The bulk of this XML would be this:
{{CodeExample|
<pre>
<Table>
<Table>
<Key>
<Key>
x
x
</Key>
</Key>
<Value key{{=}}"x" type{{=}}"String">
<Value key="x" type="String">
y
y
</Value>
</Value>
</Table>
</Table>
}}
</pre>
As you can see, this already takes up a lot of space.  Using Roblox Objects (which are already stored in an XML format) would use up even more characters.
As you can see, this already takes up a lot of space.  Using Roblox Objects (which are already stored in an XML format) would use up even more characters.
== How To Regulate Character Amount ==
== How To Regulate Character Amount ==
Coming soon!
Coming soon!
<!-- about using strings and then parsing them in-game to reduce character space in the document -->
<!-- about using strings and then parsing them in-game to reduce character space in the document -->

Revision as of 00:00, 18 February 2011

Introduction

If you're a regular Roblox user, wondering how you can save precious space while saving your data, this is for you! This page will talk about how data is stored and how to cut down on the amount of space being used, allowing you to save more data.

So Just How Is This Data Stored?

Roblox Data Persistence data is stored as XML, with Key, Value and Table tags. Each "key" links to a "value," which holds your data. The bulk of this XML would be this:

<Table>
	<Key>
		x
	</Key>
	<Value key="x" type="String">
		y
	</Value>
</Table>

As you can see, this already takes up a lot of space. Using Roblox Objects (which are already stored in an XML format) would use up even more characters.

How To Regulate Character Amount

Coming soon!