Calling iCloud Save Capabilities from Within RPGMaker Plugin?

ACECORP

Founder & Entrepreneur
Veteran
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.  
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,845
Messages
1,016,961
Members
137,561
Latest member
JaCrispy85
Top