Ejecta Issues - Black Screen

Discussion and feedback on Construct 2

Post » Sun Nov 30, 2014 11:06 pm

I've been trying to test my app using Ejecta, and for the last few hours, ever attempt has resulted in a black screen, and a message telling me that the connection to the simulated device has been lost.

Check through many tutorials, and I can see people saying "don't have the mouse" and "Don't use WebGL". Well I've disabled them both, along with countless other things, and it's just not working out.

I then read that Intel XDK can now export to iOS, and it's easy. Is that right?

I know Ejecta is meant to be easy too, but I've spent far too many times switching between my mac and my PC, exporting new versions, trying to figure out what is causing the issue.

If anyone has any insight, it'd be appreciated.
Last edited by AnD4D on Mon Dec 01, 2014 12:16 am, edited 1 time in total.
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
80
S
12
G
7
Posts: 965
Reputation: 10,750

Post » Mon Dec 01, 2014 12:16 am

Just to confirm, I've followed this tutorial telling me to export HTML5 and Ejecta Kitchen:

https://www.scirra.com/tutorials/907/deploy-your-c2-game-to-ios-the-easy-way

This tutorial telling me to export via the Ejecta plugin and to download Xcode from GitHub:

https://www.scirra.com/tutorials/992/how-to-export-to-ios-with-ejecta

And both just give me a black screen.

I'm more than happy to pm my capx if someone wants to have a look and tell me what I'm doing wrong. This whole thing has taken me 7 hours today, so far, and I'm miserable :cry:
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
80
S
12
G
7
Posts: 965
Reputation: 10,750

Post » Mon Dec 01, 2014 1:47 am

I've been using Ejecta for a while now and I don't remember experiencing black screens with my projects. I'm basically following Ashley's tutorial.

Are you using the latest Ejecta build/xcode/C2?
Are you running the game on an emulator or a device and what device/iOS version?
Are you getting any errors in xcode?
If I understood correctly, after running the game you see the splashscreen, after that a black screen. Does the game crash? Is anything loaded in the memory before crashing?

As for using Intel XDK for iOS, it's basically pure cordova, same as using phonegap, meaning you most likely won't see good performance on devices not running iOS8.
B
33
S
12
G
7
Posts: 227
Reputation: 7,582

Post » Mon Dec 01, 2014 1:16 pm

@KFC

Are you using the latest Ejecta build/xcode/C2?
I'm using the Ejecta plugin provided with the latest C2. The xcode version I'm using is whatever is provided in the tutorial.

Are you running the game on an emulator or a device and what device/iOS version?
I'm using a mac with an intel chip, and running the game through the Xcode emulator.

Are you getting any errors in xcode?
None. It tells me the build succeeded, shows me a black portrait screen (even if I set it to landscape) then after a few minutes, Xcode tells me it lost contact with the (emulated) device.

If I understood correctly, after running the game you see the splashscreen, after that a black screen. Does the game crash? Is anything loaded in the memory before crashing?
I see a black screen. Then, a minute or 2 later, the Ejecta splash may appear, but often I've gotten bored and just got on with other work, so I may have missed the splash screen the other times. It definitely doesn't appear quickly. How do I see if anything loaded into memory before the crash?

Would I be able to send you the capx?
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
80
S
12
G
7
Posts: 965
Reputation: 10,750

Post » Mon Dec 01, 2014 2:33 pm

Just to clarify things, Xcode is the program you downloaded from itunes on your mac, Ejecta is what you downloaded from github https://github.com/phoboslab/Ejecta

To see memory usage, after running the game, click the third icon from the right, right under where the run button is, and than click memory.
Image

Also, have you tried running on different emulators?


You could send me the capx or the ejecta exported project. I'll check it and try to run it on a real device tonight.
B
33
S
12
G
7
Posts: 227
Reputation: 7,582

Post » Mon Dec 01, 2014 3:51 pm

@KFC

Sorry, my mistake. I did have Xcode installed on my Mac, and downloaded Ejecta from Github. I followed all the steps in the tutorial, and tested 2 emulators. iPhone 6 and iPad retina.

I'm in the process of updating the mac's OS, so I'll check it again after that. I have sent you a link to the game via PM.

Thanks!
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
80
S
12
G
7
Posts: 965
Reputation: 10,750

Post » Mon Dec 01, 2014 10:23 pm

Ok, I was able to run your game in landscape mode.

1. Change "Fullscreen in browser" in C2 to "Scale inner" (letterbox scale was probably the cause of the black screen)
2. In Xcode, on the General tab, Device orientation, uncheck portrait/upside down and check Landscape Left and Landscape Right, or on or the other.
3. On the info tab, find "Initial interface orientation" and select "Landscape (left home button)" or right home button.

The game should run with these settings. Obviously some parts of the game will be outside of the screen depending on the screen ratio, but figuring a way to fix that is the beauty of supporting multiple screen sizes.
B
33
S
12
G
7
Posts: 227
Reputation: 7,582

Post » Tue Dec 02, 2014 7:13 pm

@KFC - Thanks! It's a rubbish game, but I did what I was told... *sigh* :)

I'll give this a go tonight :)
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
80
S
12
G
7
Posts: 965
Reputation: 10,750

Post » Wed Dec 03, 2014 4:25 pm

Maybe just don't minify.
My game has a black screen too if I minify it, but no if i don't.
B
12
S
6
G
2
Posts: 105
Reputation: 3,969

Post » Wed Dec 03, 2014 9:35 pm

Oh yea, I didn't minify the project. But I did get black screens while it was on scale inner fullscreen, even without minification.
B
33
S
12
G
7
Posts: 227
Reputation: 7,582

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 12 guests