Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Custom Save Folder Script Help

Hi there~

I'm having some trouble with this script (Super Simple Custom Save Folder System).

If I put it below 'begin' in Main, nothing really happens. No folder is created in AppData/Roaming/ (< I get sent here when opening %appdata%). Then I get this error when the Title Screen opens:

---------------------------
Whisper of a Rose: Gold (by RosePortalGames)
---------------------------
Script 'Scene_Title' line 175: NoMethodError occurred.

undefined method `+' for nil:NilClass
---------------------------
OK
---------------------------

This regarding the $appData. If I put the whole code to create the folder in Scene_Title instead, it gives me a syntax error for the first line, which is:

SHGetFolderPath = Win32API.new("shell32.dll","SHGetFolderPath",["P","I","P","I","P"],"I")

I remember having some trouble before with $'s defined in the main class. They seem to be erased afterwards or something...
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top