C2 Any Export Broken

Discussion and feedback on Construct 2

Post » Thu Nov 13, 2014 8:06 am

I solved the problem on my own but still decided to write about it.

Preview worked flawlessly in any browser but export crashed every time. Happened after r187. Thought I've lost another big project but came to mind - What if I start deleting stuff? I started with huge chunks like completely removing plugins, behaviors, effects, sounds, music... when I deleted most of the sprites, C2 suddenly exported the whole project without a hitch! After deleting smaller numbers of sprites I found one defective sprite. Fun thing it's not defective at all - nicely proportioned 512x1024 sprite without any behaviors or effects at all. After removing a few pixels by cropping my project can freely export again!

I just wonder what could it be?

I knew I couldn't post this topic in bugs section because you need a small capx replicating the problem. Problem is - every other project works fine. And all platforms affected - I tried all exports.

I posted this topic in thoughts it may actually give Scirra team some possibly valuable info so they could further improve Construct2. And it could help some users who have problems with some particular platforms.

To users: this is probably another reason why it's better to use only power of two textures! I made a huge mistake using non power of two animations for most sprites!
B
80
S
23
G
6
Posts: 240
Reputation: 7,761

Post » Thu Nov 13, 2014 8:49 am

I encountered a very similair problem a few days ago. I created a 1x1 sprite with a bullet behaviour, just to test something out. In preview the project worked fine but while exporting the project I received an unknown error.

Just by trail and error and checking older builds I found out that the cause was the sprite. I resized the sprite and that solved the problem.

Have not had the time to replicate the 'bug' in a new project, but was planning to do so this weekend and post it.
B
24
S
3
Posts: 42
Reputation: 1,134

Post » Thu Nov 13, 2014 1:36 pm

I had this problem after creating some 1x1 sprites in the C2 editor. Resizing them to 2x2 seems to have fixed it.
ImageImageImageImageImage
B
19
S
5
G
1
Posts: 614
Reputation: 2,542

Post » Thu Nov 13, 2014 2:19 pm

If you have problems please file a bug report and provide all the information requested by the guidelines. It is usually impossible for us to investigate any reports without that, so as this post stands, nothing will be done or even looked at.

BTW it's actually best to use just under a power-of-two size for Sprites - since spritesheeting on export assembles everything on to a power-of-two texture with 1px border padding around it, then the ideal size is two pixels less than a power of two size (e.g. 30x30, 62x62, 126x126...). In fact I would just ignore the size and let spritesheeting do its thing.
Scirra Founder
B
398
S
236
G
88
Posts: 24,428
Reputation: 194,600

Post » Thu Nov 13, 2014 3:05 pm

BTW it's actually best to use just under a power-of-two size for Sprites - since spritesheeting on export assembles everything on to a power-of-two texture with 1px border padding around it, then the ideal size is two pixels less than a power of two size (e.g. 30x30, 62x62, 126x126...). In fact I would just ignore the size and let spritesheeting do its thing.


@Ashley Thanks for the tip.
ImageImageImageImageImage
B
19
S
5
G
1
Posts: 614
Reputation: 2,542

Post » Thu Nov 13, 2014 7:17 pm

@Ashley, there were no bug reports at all, just crashes. I didn't make any posts in Bugs section because the problem was impossible to reproduce in a new project.
Btw yeah, thanks for the tip!
B
80
S
23
G
6
Posts: 240
Reputation: 7,761


Return to Construct 2 General

Who is online

Users browsing this forum: sunisa2532, taker7 and 20 guests