Edit your parameters during gamplay and save them as CSV (demo included)
CasualEvolution
Member, PRO Posts: 543
(excuse my english)
Sometimes it is tedious or impractical to adjust the parameters of the game stored in a table, go to simulator, back to the table, change the value, do play again, etc. .
It would be very useful to adjust some parameters of the game, during the same gameplay that is easy to move objects or variables with a simple touch ... however, at the end of these settings, you need to load these values into the table of the development project and so far had not found the way to do it .
Now I did it!
I implemented it using the latest tools of the nightly build 221 ( first nightly I downloaded), but you can do the same with a little more work with version 10.4.
I was inspired by the "Cyborg Cypher" video , which uses the debugger to extract some parameters manually .
Basically what I did was pass the contents of a table to CSV format and save it to a string. So that we can extract from the debugger, with a simple copy paste and save it to a text file , then import it as cvs.
I hope you find it useful, maybe this can be done in a better way, I would like to tell me.
But for me, it's something I attempted to do for a long time and now I am very happy to have done it and even more to make another contribution to the community
Thank you!
Sometimes it is tedious or impractical to adjust the parameters of the game stored in a table, go to simulator, back to the table, change the value, do play again, etc. .
It would be very useful to adjust some parameters of the game, during the same gameplay that is easy to move objects or variables with a simple touch ... however, at the end of these settings, you need to load these values into the table of the development project and so far had not found the way to do it .
Now I did it!
I implemented it using the latest tools of the nightly build 221 ( first nightly I downloaded), but you can do the same with a little more work with version 10.4.
I was inspired by the "Cyborg Cypher" video , which uses the debugger to extract some parameters manually .
Basically what I did was pass the contents of a table to CSV format and save it to a string. So that we can extract from the debugger, with a simple copy paste and save it to a text file , then import it as cvs.
I hope you find it useful, maybe this can be done in a better way, I would like to tell me.
But for me, it's something I attempted to do for a long time and now I am very happy to have done it and even more to make another contribution to the community
Thank you!
Comments
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
However, I must admit that the issue is beyond me, I have a lot to learn before entering this topic to configure server, etc..
This solution I found is very comfortable to develop, allowing adjust in play and then with a simple copy and paste, we have a new table in csv, then can re-import it in our initial table.
I have to keep studying!
Thanks
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
You could view your table, change it in game, press a button to export it to a table on your server… I saw a PHP script online to convert a CSV file into a mysql database… so we must be able to go the other way.
You could then import it back into your game.
@tatiang you working on it? :-)
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User