I just started using Monogame and I’m porting a game I’ve been working on for a couple years. Right now to save my game in XNA I’m using something similar to this: http://gavindraper.com/2010/11/25/how-to-loadsave-game-state-in-xna/
This doesn’t seem to work in Monogame. The code reaches this point: ‘StorageDevice.BeginShowSelector(PlayerIndex.One, this.SaveToDevice, null);’, but never gets into ‘SaveToDevice’.
I found a rather simple way to save games in Monogame after doing some digging: https://github.com/CartBlanche/MonoGame-Samples/blob/master/Storage/SaveGame.cs
This doesn’t work, either, because StorageContainer doesn’t have a method called ShowStorageDeviceGuide()
So I have a few questions:
- Is it possible to use my current method of saving and somehow get that BeginShowSelector to reach the SaveToDevice method?
- If not, why does the Monogame code from the second link not work for me? Am I not using the correct framework?
- If I’m not using the correct framework and I’m missing Monogame specific stuff, should I switch to it or keep everything as it is, due to the game being originally made in XNA?