How do I modify instance variables out of the game?

Get help using Construct 2

Post » Tue Apr 11, 2017 3:50 pm

Hello,
I'm looking for help about instance variables, how to these work at low level?
My problem is that I save the Json format of some objects saved in a server and often I need to change values server-side.
I noticed that when I save the Object.AsJSON its variables change name in a (I suppose) totally randomic long number.
I need to understand how to modify values of those variables from my server but I can't if variables' names are unreliable, how does the value get calculated and how often?
B
4
S
1
Posts: 4
Reputation: 254

Post » Tue Apr 11, 2017 7:53 pm

Its meant to be a save state, it's not designed to work with external modification.
One of the third party plugs for json would be better, as a separate file.
Image ImageImage
B
172
S
50
G
189
Posts: 8,506
Reputation: 118,731

Post » Wed Apr 12, 2017 8:19 am

newt wrote:Its meant to be a save state, it's not designed to work with external modification.
One of the third party plugs for json would be better, as a separate file.

Maybe I got a solution but don't know if it will work, if I make a behavior with properties equal to the variables I need, when I save the state of the object as Json, will these proprties change their names as instance variables do?
B
4
S
1
Posts: 4
Reputation: 254


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests