[Plugin] instance bank2

Post your completed addons to share with the community

Post » Sat Mar 09, 2013 3:23 am

Can't DL

p1ay.allalla.com/C2TestCapx/instance%20bank%20-%20save%20to%20string.capx

or anything from p1ay.allalla.com

for days, anyone ?



thx
B
17
S
7
Posts: 147
Reputation: 2,572

Post » Sat Mar 09, 2013 4:15 am

@johnnyl7x

I can not connect my server today. I will pm you if the server is activated.

(But my friend could connect my server and download this file... ) rexrainbow2013-03-09 04:17:20
B
97
S
22
G
179
Posts: 4,124
Reputation: 104,555

Post » Sat Mar 09, 2013 12:41 pm

Save bank to webstorage / load bank from webstorage

"expression: BankToString" could transfer all bank date to JSON string, then write this string to webstorage.
"action: Load bank from JSON string" could load bank from JSON string picked above step.

This flow is the same as sprite bank plugin.




B
97
S
22
G
179
Posts: 4,124
Reputation: 104,555

Post » Sat Mar 09, 2013 12:46 pm

@Lof

"condition:on saving" , "condition:on loading" will be triggered when saving/loading each instance, to do some customize actions or saving custom data by "action:set info", to read them when loading, use "expression:SavedInfo".

See the first post of this thread, at the last capx.

In your case,
+ "condition:on saving"
- "action:set info" <- save the parameters of behaviors

+ "condition:on loading"
- set the parameters of behaviors from "expression:SavedInfo"rexrainbow2013-03-09 12:52:02
B
97
S
22
G
179
Posts: 4,124
Reputation: 104,555

Post » Sat Mar 09, 2013 1:36 pm

Any way to save to a file ? for PC and other ports.

It still write to web storage ?

It is Not safe & don't work on PC port.

thxjohnnyl7x2013-03-09 13:37:13
B
17
S
7
Posts: 147
Reputation: 2,572

Post » Sat Mar 09, 2013 2:03 pm

@johnnyl7x

@Pode has a FileSaver plugin which could save string into file.rexrainbow2013-03-09 14:05:32
B
97
S
22
G
179
Posts: 4,124
Reputation: 104,555

Post » Sat Mar 09, 2013 10:18 pm

Saw it before..

Only save txt (Not stats), & can't load

Need a simple save/load feature that save to file.




Thx.
B
17
S
7
Posts: 147
Reputation: 2,572

Post » Sun Mar 10, 2013 1:12 am

@johnnyl7x

You might try FileSaver + FileReader.
BTW, the "expression: BankToString" will get a string, so user only need to save this string.
B
97
S
22
G
179
Posts: 4,124
Reputation: 104,555

Post » Sun Mar 10, 2013 4:33 pm

rexrainbow@

You might try FileSaver + FileReader.
BTW, the "expression: BankToString" will get a string, so user only need to save this string.


Working example Capx-

Download

Capx also has a DRAG AND DROP option..so Podes Drag and drop plugin needed-

LINK


Working in Chrome browser.

Test in browser here-

TESTchrisbrobs2013-03-11 14:49:35
B
19
S
6
G
7
Posts: 1,206
Reputation: 7,300

Post » Mon Mar 11, 2013 12:11 pm

[QUOTE=rexrainbow]This instance bank plugin is just a beginning. I plan to make another plugin to auto-save/load instance outside a range.[/QUOTE]

Wow that sounds fantastic.
B
134
S
65
G
16
Posts: 1,766
Reputation: 19,190

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 1 guest