|
Post by frostamation on Jan 19, 2015 21:27:23 GMT
I have playmaker and easysave2, I am wondering if there is a way to save the world variables from CGK? So far I have had no luck with it and am thinking I may need to get the world variable from CGK and put it as a global variable inside playmaker and save/load it from there, but dont know if that will work or if thats the best option. Any help appreciated as always!
|
|
|
Post by DarkTonic Dev on Jan 20, 2015 1:06:22 GMT
Well the World Variables are using "Cached Player Prefs", an open source library. You can always do what you suggested and use the provided actions like "Core Game Kit Variable Int Get Value" to store the value in a Playmaker variable or do whatever else you want with it.
We haven't given much thought to saving and restoring values (only persisting them or not), so please describe what you want to accomplish.
If you wanted to restore old values you'd need to use the custom actions like "Core Game Kit Variable Int Set" for each one. Maybe that gives you enough info to finish? I haven't used EasySave before so I'm not going to be any help on that front.
|
|
|
Post by frostamation on Jan 21, 2015 1:14:03 GMT
I got it with the
Get CGK var and save it as a playmaker global var. Then use easysave2 to save the playmaker global var. then on load load the playmaker global var and set the CGK var to the playmaker var.
Long way around but it works and it doesnt really add to much time and once i get the playmaker FSM to a preset ill be able to just copy paste edit as i need it.
|
|
|
Post by DarkTonic Dev on Jan 21, 2015 2:50:12 GMT
Yeah or if you don't need the Playmaker variable for anything else (and if there's some coding way to use Easy Save that you're comfortable writing), then you could save a couple steps by doing that outside of Playmaker.
|
|