[r110.2] Crash on function event

Bugs will be moved here once resolved.

Post » Fri Nov 23, 2012 3:12 pm

Hi,

Construct 2 keeps crashing when I try to click on a function call event. It did corrupt my project file. I did the following steps.

1) I have created a common event sheet with a function called "action"
2) I am calling that function from another event sheet with parameters values coming from a sprite attribute
3) I have renamed the sprite attribute
4) Crash when accessing the function call event

B
19
S
5
G
5
Posts: 48
Reputation: 4,843

Post » Fri Nov 23, 2012 3:18 pm

The reason why the project file was corrupted (I have edited the XML to fix it) is I did a save between step 3 and 4.

The event sheet XML was still referring to the old sprite variable but that variable was not existing anymore since I have renamed it.
B
19
S
5
G
5
Posts: 48
Reputation: 4,843

Post » Fri Nov 23, 2012 3:37 pm

Can you come up with an exact sequence of steps given a new project that reproduces the problem every time, as described in how to report bugs? It is often difficult to resolve issues without this.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,498

Post » Fri Nov 23, 2012 3:57 pm

Here is a capx I have created to reproduce.

Just rename one instance variable of the sprite and click on the function call event.

https://dl.dropbox.com/u/80240197/CAPX/Function_bug.capxIronRick2012-11-23 15:57:34
B
19
S
5
G
5
Posts: 48
Reputation: 4,843

Post » Fri Nov 23, 2012 9:12 pm

Yeah basically if you use a global variable in an argument of the Call function action, when you change the name the action doesn't get updated with the new name. And It breaks the capx.
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Mon Nov 26, 2012 5:38 pm

Thanks, nice catch - should be fixed in next build!
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,498


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest