Behavior migration issues

For discussion and help with the Construct 3 Plugin SDK

Post » Sat May 20, 2017 1:42 am

I think I've discover a migration issue. If I migrate the C2 demo temple behavior, and set a property 'My property', the value set in the CAPX doesn't get migrated. It seems to be ignored, and the default used instead. I found this in my own behavior first, then thought I'd try the official temple - same result. The new template is different, but I compared everything, and my conversion seems to be similar to the official one.

Original: http://www.scirra.com/downloads/javascr ... mplate.zip
Migrated: http://www.blackhornettechnologies.com/Construct3Stuff/Bugs/C3MyBehavior.zip
CAPX: http://www.blackhornettechnologies.com/Construct3Stuff/Bugs/C2behaviortemplate.capx
ImageImageImage
B
71
S
22
G
247
Posts: 3,753
Reputation: 137,552

Post » Sat May 20, 2017 10:12 am

When importing C2 projects, C3 guesses the C3 ID by converting to lowercase and adding dashes, e.g. "My Property" -> "my-property". You used an underscore though ("my_property"), if you use a dash it should import correctly. If it doesn't automatically get the right name you can use the LoadC2Property method. But I just realised none of this is documented, so I should update the docs :P
Scirra Founder
B
399
S
236
G
89
Posts: 24,519
Reputation: 195,351


Return to Plugin SDK

Who is online

Users browsing this forum: No registered users and 0 guests