01-16-2013, 04:52 AM
I just drove myself nuts for a couple hours today. As I remember from a document by Amaranth, the creator of Aveyond (or Amanda Fitch if you prefer), commercial games usually have their saved data files stored within the Application Data folder.
The problem was... How the hell did I accomplish this trick LAST TIME. Yeah, I did make this routine before.... but that was before my Hard Drive crashed. I had books on VB coding the Win32API, the Win32API handbook for VB6, Game Programmer for VB and Win32API programming with the Registry.
I figured it was related to the registry, but where? Certainly not the GetEnvironment path, and GetPaths sucked. Looking at old code, I remembered that I made a routine that could read .ini files with RGSS. It hit me that I mighta needed to do that to read the registry itself. UGH!!!!
That took another hour off my life. BUT.... Now I was able to add $app_path to all my savegame files and to my custom configuration save file so it's safely stored in my Applications folder for my game.
...... NEXT!!!
The problem was... How the hell did I accomplish this trick LAST TIME. Yeah, I did make this routine before.... but that was before my Hard Drive crashed. I had books on VB coding the Win32API, the Win32API handbook for VB6, Game Programmer for VB and Win32API programming with the Registry.
I figured it was related to the registry, but where? Certainly not the GetEnvironment path, and GetPaths sucked. Looking at old code, I remembered that I made a routine that could read .ini files with RGSS. It hit me that I mighta needed to do that to read the registry itself. UGH!!!!
That took another hour off my life. BUT.... Now I was able to add $app_path to all my savegame files and to my custom configuration save file so it's safely stored in my Applications folder for my game.
...... NEXT!!!