[SDK] Error when using ef_deprecated

0 favourites
  • 3 posts
From the Asset Store
7 Errors
$15 USD
7 Errors is a game where you have to find the 7 mistakes before time runs out. Can you find all 7? Have fun looking.
  • I am trying to deprecate an expression in the Keycode plug-in, but I keep getting this error when I try to open a capx that requires that expression:

    ---------------------------

    Construct 2 Check failure

    ---------------------------

    Check failure! This is probably a bug:

    ACE table: expression does not specify one return flag - did you specify more than one, or forget it entirely?

    Condition: return_flags == 1

    File: c:\c2\source\exporters\html5\..\..\common\ERAHelpers.h

    Line: 245

    Function: void __cdecl era::ACETable::AddExpression(int,int,const class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,const class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,const class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,const class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,void (__cdecl *)(const class era::StaticResult **,int,class era::StaticEvaluation *))

    Build: release 66 (64-bit) checked

    Component: HTML5 exporter

    (Last Win32 error: 0)

    You are using a 'checked' release of Construct 2, intended for testing, which causes certain errors to be reported this way. Hit Ctrl+C to copy this messagebox - it's useful information for the developers, so please include it with any bug reports! Click 'Abort' to quit (unsaved data will be lost!),'Retry' to turn off messages for this session and continue, or 'Ignore' to continue normally.

    ---------------------------

    Abort   Retry   Ignore   

    ---------------------------

    Here is the updated plug-in with the deprecated expression: dl.dropbox.com/u/38038537/wastrel_keycode_updated.zip

    Here is my test capx, that used the deprecated expression: dl.dropbox.com/u/38038537/TestKeyCode.capx

    It seems like the ef_deprecated flag is not being recognized, or that I need to combine it with the ef_return_int flag or something.

    Thanks!

    EDIT: I forgot to mention that I am running under R66, if that matters.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You still need the return type flag. ef_deprecated basically means "make this invisible" - you can still open old projects using it, but you can't use it in new projects. If you open an old project still using it, C2 still needs to know its return type, so you should use both flags.

  • Strange. I am sure I used the bitwise OR to separate the two flags when I first tried, and it didn't work. Must be gremlins. <img src="smileys/smiley4.gif" border="0" align="middle" />

    Thanks Ashley!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)