Particle Candy Build Problems (resolved)

I had no problem running apps with Particle Candy effects within the Corona simulator, but when I tried running them on Apple’s iOS simulator or on an actual device, I’d either get a black screen or a crash. I emailed Particle Candy support and got an immediate answer…

  1. Make sure you place the Particle Candy library file (lib_particle_candy.lua) in your local program’s folder. Using “…/lib_particle_candy” works ok in the Corona simulator but not elsewhere.

  2. Check the build.settings files included with Particle Candy’s sample code. Remove any iPhone-specific code. For example, one file had this in it:

[lua]settings =
{
orientation =
{
default = “landscape”,
},

iphone =
{
plist =
{
UIPrerenderedIcon = false,
},
},

build =
{
custom = “a1234”,
}
}[/lua]

I removed both the iphone code and build.custom code and it worked fine:

[lua]settings =
{
orientation =
{
default = “landscape”,
}
}[/lua]

  1. While this didn’t cause crashes, notice that the sound effects included with the Particle Candy samples are all mp3 files. These play in the Corona simulator, but may not on the device (or iOS simulator). So replace these with .caf files.

Has anyone else run across any issues?
[import]uid: 9905 topic_id: 4132 reply_id: 304132[/import]

More info on this here:
http://www.x-pressive.com/ParticleCandy_Corona/tutorials.html#Hints5
[import]uid: 9905 topic_id: 4132 reply_id: 12804[/import]

Just wanted to add my experience with that as it might help someone.

After downloading and trying to run one of the samples in Xcode simulator, I ran into the same problem. Than I found this thread, copied the library file into the sample folder and updated the path as suggested.

I have tried it again, but the result was the same.

If that’s the case for you too, renaming your project or cleaning up the xcode cache should fix your problem…

E [import]uid: 10478 topic_id: 4132 reply_id: 14300[/import]

Hello,

I am having a problem running particle candy.

I get: attempt to call method ‘localToContent’ (a nil value) - line 1011 in lib_particle_candy.

It happens in sample code too.

All I see is a first particle launching as it should, but then all the other particles remain at the starting position.

Thank you,

Dinar. [import]uid: 11971 topic_id: 4132 reply_id: 17881[/import]

OuTkasT_51, if you get this error message all you need to do is to update your Corona version to the latest build -you’re running an outdated version of Corona on your computer.

The localToContent method is quite new in Corona. We always try to update Particle Candy once a new Corona version is out to make use of the latest features of this great SDK. [import]uid: 10504 topic_id: 4132 reply_id: 19168[/import]