- Joined
- Apr 6, 2016
- Messages
- 253
- Reaction score
- 39
- First Language
- English
- Primarily Uses
- RMMV
Several months ago, I posted a question here, but didn't get any traction. Well I've done some research and can now build a basic game directly in Xcode and save that game to iCloud. My question as it pertains to RPGMaker MV is this... is there a "proper" or "RPGMaker Compliant Way" to call from within an RPGMaker MV Plugin, the various "Save to iCloud methods and commands" referenced at the link here https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/GameKit_Guide/SavedGames/SavedGames.html
I basically want the user to be able to click a menu item that I created with the Yanfly plugin, and then that menu item, when clicked must execute the following objective C code (with some extra functions before and after) that will to push all the save game files up to the user's iCloud
func saveGameData(_ data: Data,
withName name: String,
completionHandler handler: ((GKSavedGame?, Error?) -> Void)? = nil)
Then I will use a different menu item, to do the same type of process but retrieve all the save game data from iCloud and overwrite the files that currently sit on the user's device in the game file, allowing the user to push their saved game files up and down to and from iCloud on any device they use, provided that they are logged into iCloud on that device first.
Can I execute objective C like this directly from within a plugin, or do I need to do something special and then use Javascript within the plugin to make the plugin execute an external process or some external code file that contains the objective C?
I guess I am looking for some guidance on how to approach running objective C from inside a menu item thats part of a Yanfly plugin.
I basically want the user to be able to click a menu item that I created with the Yanfly plugin, and then that menu item, when clicked must execute the following objective C code (with some extra functions before and after) that will to push all the save game files up to the user's iCloud
func saveGameData(_ data: Data,
withName name: String,
completionHandler handler: ((GKSavedGame?, Error?) -> Void)? = nil)
Then I will use a different menu item, to do the same type of process but retrieve all the save game data from iCloud and overwrite the files that currently sit on the user's device in the game file, allowing the user to push their saved game files up and down to and from iCloud on any device they use, provided that they are logged into iCloud on that device first.
Can I execute objective C like this directly from within a plugin, or do I need to do something special and then use Javascript within the plugin to make the plugin execute an external process or some external code file that contains the objective C?
I guess I am looking for some guidance on how to approach running objective C from inside a menu item thats part of a Yanfly plugin.
Last edited by a moderator:

