Reimporting SCML file deletes container objects

Report Construct 2 bugs here.

Post » Tue Jul 23, 2013 7:30 pm

Link to .capx file (required!):
    https://dl.dropboxusercontent.com/u/95028662/SpriterTest.zip

Steps to reproduce:
1. Drag the Bat01.scml file into the test.capx project


Observed result:
The red sprite is in a container with the spriter objects. It gets deleted out of the project when you drag the new scml file in.

Expected result:
The red sprite is not deleted and is included in the container with the new spriter objects.

Operating system & service pack:
Win7

Construct 2 version:
r139
B
79
S
51
G
37
Posts: 365
Reputation: 23,695

Post » Wed Jul 24, 2013 5:35 pm

This is currently by design. Any objects not in the Spriter animation are deleted when reimporting, so if anything was removed from the Spriter animation, it's also removed from Construct 2 when reimporting.

Is this a problem for you?
Scirra Founder
B
384
S
227
G
86
Posts: 24,139
Reputation: 190,761

Post » Wed Jul 24, 2013 6:23 pm

@Ashley Not sure I understand what you mean.

There's nothing removed from the Spriter animation as I'm just reimporting the same SCML file.

The red sprite is created in Construct (it doesnt exist in the Spriter animation) and added to the container with the Spriter object.

I can get around the problem by removing all non Spriter objects from the container, reimporting the SCML file, then putting the non Spriter objects back into the container. It's a bit of a hassle, but it works.
B
79
S
51
G
37
Posts: 365
Reputation: 23,695

Post » Tue May 06, 2014 3:36 am

Hi i have a problem when export the .scon to construc2 y installed the pluging scml but when y drag the .scon to construc aperar this "image adjunt"

I appreciated your colaboration tahnks a lot. i hope a feedback soon.
You do not have the required permissions to view the files attached to this post.
B
4
Posts: 3
Reputation: 268

Post » Thu May 08, 2014 2:56 pm

@juanramirez - that appears to be a different bug, unrelated to this post. Please post a new bug report following all the guidelines otherwise we cannot help.
Scirra Founder
B
384
S
227
G
86
Posts: 24,139
Reputation: 190,761

Post » Fri May 23, 2014 7:28 pm

@juanramirez

It's off-topic, but I had a similar problem when re-importing Spriter stuff. First, close all of your events sheets. Second, import the scml, NOT scon file. This should solve your crash, even if it doesn't fix the bug.
B
65
S
36
G
19
Posts: 496
Reputation: 16,999


Return to Bugs

Who is online

Users browsing this forum: No registered users and 0 guests