[r101] variable name to existing bug

Bugs will be moved here once resolved.

Post » Sat Sep 01, 2012 7:41 am

I added a variable with name "Swirl" for one of the objects, and jumped error:


---------------------------
Construct 2 Check failure
---------------------------
Check failure! This is probably a bug:

Setting instance variable name to existing name

Condition: !object_class.HasNameInNamespace(name_)
File: Projects\InstanceVariable.cpp
Line: 60
Function: void __cdecl InstanceVariable::SetName(const class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &)
Build: release 101 (64-bit) checked
Component: Construct 2 IDE
(Last Win32 error: 0)
B
18
S
3
Posts: 11
Reputation: 2,795

Post » Sat Sep 01, 2012 8:05 am

Please see how to report bugs.

Your report is missing an example capx and/or precise steps to reproduce the bug.

From the error message I take you already had an object named "Swirl".
What is not clear is what is the type of this object, what type of variable (global, local, instance) you were trying to name, and that's why a capx would be really helpful to reproduce it.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Sat Sep 01, 2012 10:07 am

Reproduce the problem can be by the addition of any variable with the name "Swirl" to any object! All of you surely noticed, the variable exists. This is because, first, it is created, and then there is an error! If you press the "Skip" - then you can continue to work and this variable will function as it should... but I do not dare to continue.
B
18
S
3
Posts: 11
Reputation: 2,795

Post » Mon Sep 03, 2012 6:29 pm

You're right, it was possible to name effects and instance variables the same, which should not be allowed. Should be fixed in the next build.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests