Effect migration issues

For discussion and help with the Construct 3 Plugin SDK

Post » Sun Oct 08, 2017 1:10 am

I've found two issues when migrating Effects.

1) I'm struggling with the c2id again. If the new id matches C2, then everything is fine. However, for the sake of completeness, the documentation says if the id does not match the old one, c2id is used when importing C2 projects. (I don't actually understand the rest of the c2id description; I think that should be reviewed/clarified). I've tried implementing this, but it doesn't work. I've checked the tag used in the C2 file, and set the c2ids to match (just seem to be the lowercase Name tags), but trying to open a CAPX results in "Failed to open project. Check it is a valid Construct 2 single file (.capx) project." The same file will open if the id tags do match the old.

2) This is definately a bug: if a comma is missing from the language JSON file in the parameters data (ie: between name & desc), the addon fails (as expected), BUT it continues to fail in "safe-mode", which means you have to wipe out the cache again to recover.

c2id: http://www.blackhornettechnologies.com/Construct3Stuff/Bugs/C3EffectIssue.zip
This has my C2 effect files, my attempt at converting to C3, using c2id to match the C2 definition, and a CAPX using the effect.

safe-mode break: http://www.blackhornettechnologies.com/Construct3Stuff/Bugs/badC3bht_setcolor4_test.zip
Last edited by blackhornet on Mon Nov 27, 2017 12:20 am, edited 1 time in total.
ImageImageImage
B
71
S
22
G
259
Posts: 3,793
Reputation: 143,702

Post » Mon Oct 09, 2017 6:18 pm

I had a second case of 'safe-mode' being ignored, so I have logged a bug for this issue.
ImageImageImage
B
71
S
22
G
259
Posts: 3,793
Reputation: 143,702

Post » Tue Oct 10, 2017 4:17 am

More migration issues. In general migration works, except for 'distortion' effects. They all seem to go wonky in some way. I've tried multiple third-party effects, but for the sake of simplicity, I've copied the Scirra Lens effect, migrated it, and made a C2 CAPX that works just fine in C2, but imported into C3, the behaviour changes. Running the attached CAPX, C2 shows the same result in the editor, and in preview. In C3, the editor shows the lens area greatly magnified, but correct in preview (which is actually the exception - generally I see the same problems in editor and preview).

On top of that, if you then clone the lens object in C3, the original sprite's effect changes! It should not do that. Each time you clone, the previous spites all change. This does not happen in the C3 version of the Lens effect.

Since I don't know with 100% certainty that I'm not doing something wrong, I don't want to post a bug, but @Ashley, if you could comment, that would be helpful. Other issues are in the OP.

http://www.blackhornettechnologies.com/Construct3Stuff/Bugs/C2lenscopy.zip
http://www.blackhornettechnologies.com/Construct3Stuff/Bugs/C3lenscopy.zip
http://www.blackhornettechnologies.com/Construct3Stuff/Bugs/C2LensHack.capx


Thanks.
ImageImageImage
B
71
S
22
G
259
Posts: 3,793
Reputation: 143,702

Post » Tue Dec 05, 2017 3:48 pm

I also need to migrate a drop shadow effect to construct3.

Is there any guide to migrate effects from construct2 to constrct3??

Where should I start?

Thnks in advance!
B
23
S
5
G
1
Posts: 17
Reputation: 1,787

Post » Wed Dec 06, 2017 5:30 am

panku wrote:I also need to migrate a drop shadow effect to construct3.

Is there any guide to migrate effects from construct2 to constrct3??

Where should I start?

Thnks in advance!


Use @blackhornet 's converter with -effect and cross your fingers!

Converter thread, read through it for tips, at the end there are some discussions on effects. After the converter was updated, it 'just worked' for normal map extended.
B
43
S
18
G
14
Posts: 137
Reputation: 10,483

Post » Wed Dec 06, 2017 7:53 pm

Mikal wrote:
panku wrote:I also need to migrate a drop shadow effect to construct3.

Is there any guide to migrate effects from construct2 to constrct3??

Where should I start?

Thnks in advance!


Use @blackhornet 's converter with -effect and cross your fingers!

Converter thread, read through it for tips, at the end there are some discussions on effects. After the converter was updated, it 'just worked' for normal map extended.


haha thank you!.... I will try!
B
23
S
5
G
1
Posts: 17
Reputation: 1,787

Post » Sat Dec 09, 2017 8:34 pm

Hey, @blackhornet Is it possible to convert the Skend effect?

https://drive.google.com/file/d/0Bx7w7uKTaGzOeGdGUDlCOHdOUTQ/view?usp=sharing
B
74
S
36
G
40
Posts: 443
Reputation: 25,817


Return to Plugin SDK

Who is online

Users browsing this forum: No registered users and 0 guests