How do I import event sheets and layouts from a Project?

Get help using Construct 2

Post » Wed Apr 22, 2015 9:20 am

I created a scrolling overlay in a separate project, and would like to use this overlay in an existing project. Importing images seems straightforward, but I can't seem to figure out how to properly import the event sheets and layouts. They all show up as XML files. Is there a way to convert the XML files back to actual event sheets and layouts usable in Construct 2?

Thank you!
B
6
S
1
Posts: 31
Reputation: 703

Post » Wed Apr 22, 2015 9:28 am

Open up both projects in C2 and copy/paste?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Sep 01, 2015 1:58 pm

Sigh, nope you have to recode everything from scratch as of now :/ Hopefully C3 will make this a feature as it would up my dev time.
suggestion-export-event-sheet_t69139
B
16
S
6
G
2
Posts: 165
Reputation: 3,209

Post » Tue Sep 01, 2015 2:10 pm

This is actually not the case. You can do it, but it's REALLY hard.

You have to first make sure the project will have every global value and object with the EXACT same names and properties as the event sheet/layout you want to import.

Then you have to edit a construct file via text editor to add the references to to the event sheets/layouts you're importing.

I managed to do this in the past, but it took a long time to find all the references and get it all right so the end result didn't hang up on loading or crash. It was only worth it because despite the hard work, it was still a little less work that redoing everything from scratch.

Unfortunately it's been well over a year and I don't have any time to redo such a thing for additional detail, tips, or tutorials. Maybe someone else has done it as well and can shed additional light.. but again, it is possible, just really tough, and completely manual work. with text editors.
B
49
S
9
G
4
Posts: 426
Reputation: 7,041

Post » Tue Sep 01, 2015 2:28 pm

Copy/pasting the entire event sheet in an empty one should work. However, you need to be sure that all objects (same types and names) and global variables referenced in your "copy" selection exists in your destination project, otherwise it won't paste at all.
B
69
S
28
G
24
Posts: 977
Reputation: 18,739


Return to How do I....?

Who is online

Users browsing this forum: jorgmaquoi, R0J0hound, tarek2, Yahoo [Bot] and 15 guests