aquinn's Forum Posts

  • I'm getting the same latency issue with sounds on Android. On iOS there is no issue. Just tested on a Hudl 2 -Android 4.4.2

    Anyone have a fix or is it baked into Chrome?

  • Ah OK, thanks for clarifying.

  • cranberrygame did a plugin for fullscreen Ejecta iAds but I've not got it working yet -it seems to be missing off the latest list now...?

    https://www.scirra.com/forum/plugin-phonegap-related-c2-plugins-crosswalk_t109586?&hilit=cranberry

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Problem Description

    App crashes on suspend (home button pressed). Can't resume.

    Attach a Capx

    Attached basic empty project with 2 sprites.

    Description of Capx

    Empty project that displays 2 sprites.

    Steps to Reproduce Bug

    • Export to Ejecta unminified. Copy to App folder. Run in Xcode simulator. Press home button (Shift+Command+H).
    • Debug area logs error. (see below)
    • Resuming the app hangs. The same behaviou is found on hardware (iPad2)

    Observed Result

    Degug area states:

    2014-11-03 10:00:15.958 Super Golf World[787:90b] TypeError: null is not an object (evaluating 'context["suspend"]') at line 15161 in index.js
    [/code:mpg9g3l5]
    
    Looking at line 15161 in index.js, the code is:
    [code:mpg9g3l5]
    	instanceProto.onSuspend = function (s)
    	{
    		if (this.playinbackground)
    			return;
    		if (!s && context["resume"])
    			context["resume"]();
    		var i, len;
    		for (i = 0, len = audioInstances.length; i < len; i++)
    			audioInstances[i].setSuspended(s);
    LINE 15161>>>	if (s && context["suspend"])
    			context["suspend"]();
    	};
    [/code:mpg9g3l5]
        
    [b]Expected Result[/b]
    App should be able to resume from suspend without crashing. Worked fine on R184 and earlier versions. 
        
    [b]Affected Browsers[/b]
    Not applicable/iOS bug
        
    [b]Operating System and Service Pack[/b]
    Win8, 32 bit
        
    [b]Construct 2 Version ID[/b]
    R186.2
  • V4lv1k I am getting the same bug.

    If you are running on Steam, you can revert but right clicking on Construct 2, properties, and deselect Beta. Then the latest stable release will be downloaded and installed (R184 I think). Problem is you will most likely have be running r185, so your files will not load without a hack.

    Hope there is a fix tomorrow!

    Condition: false
    File: DataJSON.cpp
    Line: 2145
    Function: void __thiscall Exporter::ParameterToJSON(class std::basic_ostringstream<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,class era::IParameter *,int)
    Build: release 186 (32-bit) checked
    Component: HTML5 exporter
    (Last Win32 error: 0)[/code:3hl5j9ca]
  • Hi All,

    I've been trying to use PhoneGap's InAppBrowser plugin to open a PDF using the native Safari browser on iOS, but I can't seem to do it.

    I can open web pages externally, and open the PDF within the C2 app but the problem is once the PDF is open all other controls are inaccessible.

    I've also tried Pode's HTML iFrame plugin , but the PDF is zoomed in rather than Phonegap's default zoom to width, so no good.

    Any ideas?

    Thanks

    Alan

  • Thanks Ashley, looking forward to the next release.

  • Problem Description

    On R185, even a basic empty project exported to Ejecta will not run in Xcode. Exports from R183 version run fine.

    Attach a Capx

    Attached..very basic capx.

    Description of Capx

    Empty Capx with two sprites. Does nothing but show the sprites.

    Steps to Reproduce Bug

    • Open Capx
    • Export to EJecta , don't minify. Place files in the App folder on the Mac.
    • Run the project in Xcode Simulator

    Observed Result

    Project will not run in Xcode/Simulator. Produces an error, with the line JSStringRef jstr = JSStringCreateWithCFString((CFStringRef)string) highlighted.

    #import "EJConvert.h"
    
    NSString *JSValueToNSString( JSContextRef ctx, JSValueRef v ) {
    	JSStringRef jsString = JSValueToStringCopy( ctx, v, NULL );
    	if( !jsString ) return nil;
    	
    	NSString *string = (NSString *)JSStringCopyCFString( kCFAllocatorDefault, jsString );
    	[string autorelease];
    	JSStringRelease( jsString );
    	
    	return string;
    }
    
    JSValueRef NSStringToJSValue( JSContextRef ctx, NSString *string ) {
    	JSStringRef jstr = JSStringCreateWithCFString((CFStringRef)string);
    	JSValueRef ret = JSValueMakeString(ctx, jstr);
    	JSStringRelease(jstr);
    	return ret;
    }[/code:tspu8yyk]
        
    [b]Expected Result[/b]
    Should run fine. I've tested exports on R183 and they run fine in the same Ejecta project.
        
    [b]Affected Browsers[/b]
    [ul]
        [li] N/A [/li][/ul]
        
    [b]Operating System and Service Pack[/b]
    Win 8
        
    [b]Construct 2 Version ID[/b]
    R185 32bit
  • Worm Copter — Now for sale in the Scirra Store!

    https://www.scirra.com/store/games-with-source/worm-copter-343

    <h3>Worm Copter</h3><div class="deshr"></div> <p><p>Create a game for the App Store using Worm Copter as your guide! </p><p>Worm Copter is already approved for sale by Apple, so it's a good foundation to use for your own work. Can easily be adapted to an endless runner/evasion type game.</p><h3>iOS features</h3><div class="deshr"></div><p>

    • iAd Banner Ads
    • Game Center Leaderboards
    • A Universal App (iPhone/iPad/iPod touch)
    • Supports multiple screen resolutions (iPad 2+, iPhone 5/6, iPod Touch 5th gen)
    • Rate button with link to App Store
    • See how you can use custom TTF fonts with Ejecta
    • Local High Scores

    <p>The game is currently published on the App Store here so you can try before you buy: itunes.apple.com/us/app/worm-copter-flying-fun!/id911425326 </p><p>A web version available to try here: zoytek.co.uk/wormcopter/index.html%3C/p%3E%3Cp%3EIt can be on many other mobile platforms with the appropriate wrapper (Cocoon/PhoneGap etc). </p><p>I have added extra comments to explain as much as possible, so the code is more easily understood. Support is also available through email.</p><h3>Included</h3><div class="deshr"></div>

    • CAPX (code, sprites and sounds)
    • XCode project file, with Ejecta wrapper -tested and working with XCode 5.1

    <h3>Requirements</h3><div class="deshr"></div><p>You will need Construct 2, running version 183 or later to be able to open the CAPX. Xcode 5.1 or later is required to open the Xcode project file. An Apple Developer account is needed to publish on the App Store.</p>

    Use this topic to leave comments, ask questions and talk about Worm Copter

  • Worm Copter

    https://itunes.apple.com/us/app/worm-copter-flying-fun!/id911425326?mt=8

    Exported to iOS with Ejecta - uses iAds and Game Center.

  • Ashley Arrgh.. I just tried again with Phonegap Build - but I hit the 15MB upload limit. Even the 40MB limit on the paid service is really quite low for media rich apps, especially with new 1920×1080 resolution retina images on the iPhone 6+

    Looks like I need to figure out how to properly add plugins to Phonegap CLI projects in XCode.

  • I find ejecta to be quite good but there are limitations. Copy the capx game to a new folder and remove any large assets before exporting to see if will run. you will have to do a bit of trial and error to see what is causing the error.

  • Ah ok... I will try on phonegap build. Many thanks.

  • Hi Ashley,

    I just tried a quick test with Beta r183 and I couldn't get background audio working (Phonegap CLI / Xcode 5.1 and also tried with Ejecta).

    I also could not get Open URL or Open URL in New Window working with Phonegap CLI.

    Not sure if I'm doing something wrong my end, I will keep testing.

    Thanks

    Alan

  • Next beta? Fantastic!

    Cheers Ashley!