Saving data, array or ini ?

For questions about using Classic.

Post » Tue May 18, 2010 3:13 pm

Hi All

Ive looked through the forum and was wondering what the best approach to achieve the following.

Im attempting to write a small formation editor to record x,y Sprites values for a game Im writing and was wondering what the best format to write the data back to, array's, or ini files? The editor will eventually save x,y positions of a sprite and reuse this data at runtime on different sprites. A typicall level will require quite a bit of data recall to position different sprites at various posistions on a level. Would you use one array ini file for lots of data, or would you use multiple arrays or ini files? What would be considered an efficient method to save this data?

Thanks
Rich
My Games on google play

ImageImage
B
30
S
6
G
4
Posts: 97
Reputation: 3,008

Post » Tue May 18, 2010 4:29 pm

The plugin is more aimed at advanced users, but the 's' plugin has a lot of functions you might find useful, there's a level editor tutorial that explains how to do pretty much what you just said in only 4 events if you're up to learning how the plugin works
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Wed May 19, 2010 4:13 pm

Thanks lucid, I will take a look at your plugin.
My Games on google play

ImageImage
B
30
S
6
G
4
Posts: 97
Reputation: 3,008

Post » Sat May 22, 2010 7:58 am

Hi Lucid,

I installed your plug-in and the first set of tuts work nicely but the level editor crashes every time I run the layout which is a shame since your plug-in looks to be exactly what I'm after. I installed 99.62 and 99.84 builds of construct and various s plug-in downloads from your plug-in thread, but no joy with getting the level editor work. Any ideas?
My Games on google play

ImageImage
B
30
S
6
G
4
Posts: 97
Reputation: 3,008

Post » Sat May 22, 2010 11:27 am

[quote="4ror":km2o7k1n]...and various s plug-in downloads from your plug-in thread, but no joy with getting the level editor work. ...[/quote:km2o7k1n]

Did you try the most actual one?
[url:km2o7k1n]http://dl.dropbox.com/u/1013446/s/sdebug/s.rar[/url:km2o7k1n]

from this post:
[url:km2o7k1n]http://www.scirra.com/forum/viewtopic.php?f=2&t=4791&hilit=lucid%27s+plugin&start=77[/url:km2o7k1n]
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Sat May 22, 2010 1:53 pm

Hi tulamide, Yeah been through the whole thread and tried that version as well. I keep getting a runtime error.

---------------------------
Runtime error
---------------------------
A crash inside a plugin's action has been intercepted! This may be a bug in the plugin, or a problem in Construct. The application has exited. Available details of the location of the problem are below (this may be approximate).

Plugin: s.csx
Object name: S
Event 1 in event sheet 'Layout 1 events'
Action: 3
Instance: 1 (of 1)
---------------------------
OK
---------------------------

deleting action 3 the game runs but minus level
My Games on google play

ImageImage
B
30
S
6
G
4
Posts: 97
Reputation: 3,008

Post » Sat May 22, 2010 2:22 pm

That's crazy. There is nothing wrong with the cap. All events should work just fine, if the version of 's' is accurate (older versions don't work). I just loaded the cap again with Construct .62 and .84 and the newest version of 's', and it works like a charm.

Did you install manually? If so, maybe you replaced s in \plugins\ but not the runtime version under \plugins\runtime\ ?
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Sun May 23, 2010 9:59 am

I reinstalled everything and downloaded the editor again and its working. Thanks for your help
My Games on google play

ImageImage
B
30
S
6
G
4
Posts: 97
Reputation: 3,008


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 10 guests