[Plugin] Storage (3D Dictionary)

Post your completed addons to share with the community

Post » Fri Feb 27, 2015 9:49 pm

This was a personal plugin i created for my self but I seemed to have received a lot of positive feed back for it so I figured I'd make it publicly available :)

Its just a 3 dimensional associative array (values access by "name" instead of integer "0" index). I believe there are other plugins out there similar but may not function entirely the same. This was built to act nearly identical to the official "Dictionary" plugin but instead of only having 1 dimension it has 3.

It may seem a bit more complicated at first but if you work with JSON objects and send and receive a lot of AJAX data like I do this may be useful for you as it supports loading raw JSON data directly to it.

It supports minification and I believe all bugs have been found but if you find any please let me know. I use this in all my projects so I will actively maintain it to ensure it works correctly.

Plugin
TRBLSM_storage.zip

Example capx that demonstrates all functions supported.
StorageExample.capx

Image

If you have any questions or need help using it Ill do my best to answer in a timely manor.

Thank you :)

P.S I also created a 2D version so you if you don't need this large of "Storage" access you can try out the smaller "Table" plugin instead.

[Plugin] - Table (2D Dictionary)
https://www.scirra.com/forum/plugin-table-2d-dictionary_t125862
Last edited by troublesum on Sat May 09, 2015 11:06 pm, edited 6 times in total.
B
20
S
7
G
1
Posts: 221
Reputation: 2,077

Post » Fri Feb 27, 2015 11:31 pm

This looks awesome! It should help me a lot. Thanks so much for posting this!
B
4
Posts: 12
Reputation: 224

Post » Tue Mar 03, 2015 1:30 pm

This will make my project a lot easier.. :)
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Mar 12, 2015 8:28 pm

@bucktoothfrog - Per your request was able to add the ability to Merge C2 Data editor arrays directly into the Storage object. :) I have updated the original post so please re-download the plugin from there. Below are some screen shots and examples of usage.

Example of loading the AsJSON example of the C2 Data Editor you gave me and then retrieving the values.
Untitled.png

Untitled2.png


Example Capx
StorageExampleC2DEArray.capx


Let me know if you have any questions. Thank you
You do not have the required permissions to view the files attached to this post.
B
20
S
7
G
1
Posts: 221
Reputation: 2,077

Post » Sun Mar 15, 2015 7:05 am

nice! :D
Image
B
33
S
11
G
2
Posts: 564
Reputation: 5,153

Post » Thu May 28, 2015 10:23 pm

Thanks awesome work
B
13
S
2
G
1
Posts: 22
Reputation: 760

Post » Sun Jul 05, 2015 4:53 pm

Legend! Thank you.
B
6
S
1
Posts: 12
Reputation: 332

Post » Sat Oct 24, 2015 10:40 am

Just wondering whether there needs to be a 'Download to JSON' option here. How does this actually generate a JSON that I can retreive on next load of the game?
B
14
S
5
Posts: 37
Reputation: 1,026

Post » Sat Oct 24, 2015 4:57 pm

Thank you for sharing.I try this plugin.
My first Game:
https://play.google.com/store/apps/deta ... bellc2.WOB

WORDPRESS:https://wobgame.wordpress.com/
B
22
S
5
Posts: 20
Reputation: 1,297

Post » Thu Oct 29, 2015 12:09 am

@actuallybrown - In the expression section there is a Storage.AsJSON method that returns the entire object as a JSON string.
B
20
S
7
G
1
Posts: 221
Reputation: 2,077

Next

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 1 guest