Directory Structure and C2

Discussion and feedback on Construct 2

Post » Thu Apr 25, 2013 6:19 pm

Still getting the same cocoonJS error, so the directory structure does not seems to be the issue. I removed all of the art from the game and events depending on art, and while unplayable it at least loads to cocoonjs. Is there a way I can quickly track down what image is being refrenced but loading as null, so I can fix this bug? It appears cocoonjs is looking for an image that is not there. It's odd that my game works on HTML5 and exe, but not cocoonJS. Which image could it be?! lol, I have a lot of images (UI is almost done, one full level done, and multiple characters with animation..)
B
9
Posts: 59
Reputation: 997

Post » Fri Apr 26, 2013 10:17 pm

Today I compared all of my sprite objects with what is in the zip, and they seem to be identical, so I do not know what would be causing me to get a "null" image reference error in cocoonjs. I have images in the zip for every object that relies on one, and everything works fine in HTML5 and exe.

Could it be something to do with an object exporting with an improperly tagged -sheet#; sprites seem to get tagged -sheet# and tileable backgrounds don't, could this be related to the issue?

Are there any suggestions for tracking down what image the cocoonjs export is looking for, the error in cocoonjs does not help me a whole lot debugging this, as I have no idea what image it's looking for and from what I can see all of the objects in my project have the appropriate images available to them.
B
9
Posts: 59
Reputation: 997

Post » Sat Apr 27, 2013 1:17 pm

It sounds like you corrupted the project when merging by hand (you should never merge by hand since it's so error prone; I've written and uploaded a tutorial on using SVN that you should read up on). I think all you can do is roll back to earlier backups until you get it working again.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Mon Apr 29, 2013 5:25 pm

That's terrible and project crippling news. I was able to get the project to load when deleting most of the objects, so I guess I'll trial and error try and hunt down what object CocoonJS is looking for. Some sort of error report or log would be REALLY helpful for instances like this where the only problem from my end is a missing image, and when I have over 150 images linked to various events, it would save me a whole lot of time to see "oh, it's missing image A.png"

Our by hand merges were following the How Do I: Thread on the subject, so I did not think it was the wrong thing to do, I'll look over your SVN tutorial again, but the last time I tried to set it up I sunk a ton of time into it with little results. We started on this project almost a year ago, before cocoonJS was viable, so we've not been trying to test on cocoonJS until recently when strides were made (spritefont support specifically) so we do not have a "working cocoonjs version" all of our backups have the same error (which does narrow down which areas of the code could be causing the error)


I just found your (new?) SVN tutorial,

https://www.scirra.com/tutorials/537/how-to-collaborate-on-projects-with-svn

and I'm going to read through it today and try to set it up tonight after work. It is much more detailed that previous SVN tutorials, so thank you for putting this together.Greg2013-04-29 17:32:02
B
9
Posts: 59
Reputation: 997

Post » Fri May 30, 2014 11:00 am

I'm getting these same two errors in CJS. My project includes about 300 images ranging in size from 256 x 200 up to 600 x 200. The problem is intermittent, with some images failing to load sometimes, and other images failing to load other times.

I also see intermittent failures to load outside of CJS in the Safari browser on my ipad and in the Chrome browser on my Nexus 5. I haven't seen a failure to load for a while in a desktop browser.

I'm really struggling with this, and I don't know what else to try. I already shrunk every image down as much as I possibly could, but I'm out of ideas.

@Ashley, would you be willing to look at a .capx if I sent it to you privately?
B
24
S
5
G
1
Posts: 71
Reputation: 2,379

Post » Fri May 30, 2014 3:41 pm

Are you sure the device isn't running out of memory?
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 5 guests