Feature suggestion: Merge projects

Discussion and feedback on Construct 2

Post » Tue Jun 11, 2013 9:43 am

Hi guys,

What do you think about the feature suggestion in the subject?
B
45
S
11
G
4
Posts: 515
Reputation: 7,389

Post » Tue Jun 11, 2013 9:47 am

It would be great. Been asked for before, but I fear it is more complicated to do than you would think. You can copy paste projects together, but that too has pitfalls.
B
37
S
9
G
5
Posts: 437
Reputation: 6,094

Post » Tue Jun 11, 2013 9:54 am

One of the problems of copy/pasting is that it's not possible to copy/paste families.
B
45
S
11
G
4
Posts: 515
Reputation: 7,389

Post » Tue Jun 11, 2013 1:11 pm

If you ever suggest a feature, it's best to explain in detail precisely what you want it to do and how you think it should work. For example, presumably 'merge projects' doesn't work by magic, and would require something in the UI somewhere. What were you thinking of specifically?
Scirra Founder
B
383
S
225
G
86
Posts: 24,134
Reputation: 190,601

Post » Tue Jun 11, 2013 2:30 pm

Is this feature request to enable multiple people to work on a single C2 project? Sounds potentially useful; we used C2 for the latest Ludum Dare and it was basically impossible to work on a single master file at the same time, and similarly difficult to maintain 2 separate projects and merge them. Perhaps what we really needed was source control though.
B
15
S
5
Posts: 141
Reputation: 1,657

Post » Tue Jun 11, 2013 3:05 pm

+1, this would allow for multiple people to work easily on the same game.
B
17
S
4
G
4
Posts: 143
Reputation: 4,004

Post » Tue Jun 11, 2013 3:05 pm

@SecondDimension have you looked at version control like Git, with branching and merging? This should work quite well with the XML source.
Moderator
B
72
S
14
G
11
Posts: 900
Reputation: 11,910

Post » Tue Jun 11, 2013 3:55 pm

@thehen, well I was looking into Tortoise SVN or something similar. Git looks like a decent alternative though, so I'll definitely check that out, thanks

PS: I say I will check it out, actually the brains of the team @AdamD will check it out. Then he can explain it to me using short words and pictures drawn in crayon.

PPS: Sorry for hijacking.SecondDimension2013-06-11 15:56:35
B
15
S
5
Posts: 141
Reputation: 1,657

Post » Tue Jun 11, 2013 4:17 pm

Oh, I'll try to specify it. Actually it is pretty simple:

E.g I have multiple .capx files which I would like to join together into a new .capx (with all objects, behaviours, families, variables, events, event sheets, layouts).

There should be an interface, where I could choose what objects/variables should be merged into the new .capx (e.g. select all or check boxes) and from what source .capx.

Actually this functionality is already available to some extend by copy/pasting, but as I said before you can't copy paste families.
B
45
S
11
G
4
Posts: 515
Reputation: 7,389

Post » Wed Jun 12, 2013 12:26 am

Actually importing a .capx file into an existing project doesn't look that hard. If you rename a .capx file to .zip you'll see it's just a regular zip file. There's a .uistate file that describes what makes up the project, a folder called Event sheets with 2 files per event sheet, a folder called Layouts (again with 2 files per layout). All of the files are in xml/text format so easy to parse.

I've only looked at a few simple files so importing something bigger might be more challenging and there's the issue of collisions (names, etc.) and following the rules for a project (for example it seems you can only have one instance of a function object).

The problem is with third party developers I couldn't write a plugin in javascript to do this. First off you don't have access to the file system and I don't know of any zip functionality in javascript. While I'm fairly confident I could write an importer as a stand-alone program it would be nice to hook into the existing system. What would be nice is a plugin model API that I could write a DLL or something and have it call it from a menu.

In any case, I could do a stand-alone tool if anyone were interested (and the Scirra guys didn't object).
B
17
S
5
G
2
Posts: 39
Reputation: 1,846

Next

Return to Construct 2 General

Who is online

Users browsing this forum: technofou, Yahoo [Bot] and 2 guests