What is best/easiest way to share external map/level files?

Get help using Construct 2

Post » Mon Mar 09, 2015 2:40 pm

Is there a simple way to distribute external maps/level with some form of basic protection? I know how to load JSON data in C2, but that would need (well not need, but I'd want it) encryption. I have a forthcoming need to distribute external levels made by an editor. What format should that level editor output?
B
13
S
4
Posts: 280
Reputation: 1,573

Post » Mon Mar 09, 2015 2:45 pm

Reading this...

https://www.scirra.com/tutorials/328/us ... onstruct-2

However, I'd still need/want some kind of crypto plugin. Has anyone built one?
B
13
S
4
Posts: 280
Reputation: 1,573

Post » Mon Mar 09, 2015 2:56 pm

Actually, encrypting the JSON files sounds like a really good solution. Seems that @Kyatric was working on something a while back, but it looks like that never got off the ground. Still, there are a number of javascript cryptography libraries which might be turned into a plugin.

Are you trying to prevent users from learning map secrets by reading map files? Or are you trying to make sure everyone is playing on the same map in a multiplayer game? If it's the latter, you can usually get away with a hash instead of full encryption.

Understand that you can't be entirely secure. At some point, you have to accept that your game is running on someone else's hardware. You can however, make it a huge pain in the butt to cheat, and encryption will accomplish this.
Ninja Edit: plugin-work-in-progress-md5-encryption_t62163
B
14
S
5
G
1
Posts: 189
Reputation: 1,536

Post » Mon Mar 09, 2015 3:15 pm

Yes, need to ensure same map in multiplayer mobile game. I keep looking at the JS SDK info an wishing I had time to write a plugin. Sadly, it may happen some time later I'll have no other choice but to make time for it :(
B
13
S
4
Posts: 280
Reputation: 1,573

Post » Mon Mar 09, 2015 3:24 pm

@Kyatric CB hash plugin should work fine! Run the JSON map data through that on export/import. Nice.

@bladedpenguin, @Kyatric Thank you, thank you, thank you!
B
13
S
4
Posts: 280
Reputation: 1,573


Return to How do I....?

Who is online

Users browsing this forum: Phoenixbowman, Zion and 6 guests