[R230][SDK]Using flag "deprecated" cause C2 error

Bugs will be moved here once resolved.

Post » Tue Jun 21, 2016 10:40 pm

Problem Description
If you use the flag "deprecated" in ACE expression, C2 display error message on start:

---------------------------
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: 285
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 230 (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.
---------------------------
Abandonner Recommencer Ignorer
---------------------------


Attach a Capx
Capx not needed

For example, open editime.js from "function" plugin and change the flag line 43 the flag ef_return_number by ef_deprecated, save the file and launch C2 and see the error
Close C2 change the flag to ef_return_number, save and launch C2, no error...

you can try with other edittime.js from other plugin the result is the same official or not

Description of Capx
NA

Steps to Reproduce Bug
    For example, open editime.js from "function" plugin and change the flag line 43 the flag ef_return_number by ef_deprecated, save the file and launch C2 and see the error
    Close C2 change the flag to ef_return_number, save and launch C2, no error

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

Expected Result
No error

Affected Browsers
    NA C2 main program only

Operating System and Service Pack
WIN 7 Pro 64b ,8.1 pro 64b ,win 10 pro 64b

Construct 2 Version ID
R230 beta


**EDIT: 229-check-failure-when-starting-c2_t178124 seems the same bug with R228/229 beta
Image Image
B
22
S
13
G
130
Posts: 869
Reputation: 67,816

Post » Wed Jun 22, 2016 12:21 am

Closing as not a bug. You must still specify the return type flag with the deprecated flag, which is what the error message is telling you. Otherwise you are saying the expression is hidden and has no return type (which affects projects that still use it).
Scirra Founder
B
387
S
230
G
88
Posts: 24,251
Reputation: 192,454

Post » Wed Jun 22, 2016 6:03 am

@Ashley thank you for the quick reply.
I just wonder why the error is displayed only with beta release
Image Image
B
22
S
13
G
130
Posts: 869
Reputation: 67,816


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests