Main Menu
  • Welcome to The RPG Maker Resource Kit.

[RMVX] Script that...

Started by creepercrisis, January 06, 2012, 09:20:38 PM

0 Members and 1 Guest are viewing this topic.

creepercrisis

Hello and this is my first post there! :D (And Edited xD)

Saves in Documents
January 06 2012




Summary
Script that allows you to save states in folder in Documents.

Features Desired

  • Compatible with "Neo Save System VI".
  • Saves are in Documents not in game folder.

Mockups


Games its been in

  • Games on consoles (Saves was on memory card or in hard disk memory)




Did you search?
Yes...

Where did you search?

What did you search for?

  • Neo Save System
  • Saves states Documents

Bigace

Quote from: Zodiac on January 01, 2012, 03:25:49 AM
Little piece of advice. Read the stickies. Most people are going to glance right over this and not do anything about it

DoctorTodd

Well I am! but ya read the stickies there important. You can try this http://rmrk.net/index.php/topic,39460.0.html

creepercrisis

#3
Thanks for help, but I used this script before and I changed:

SAVE_PATH = '' # Path to store save file, e.g. 'Save/' or '' (for game folder).

&

Dir.mkdir(SAVE_PATH) if !FileTest.directory?(SAVE_PATH)

into:

SAVE_PATH = ' %USERDATA%/Documents/My Games/Zagubiony Saves/' # Path to store save file, e.g. 'Save/' or '' (for game folder).

&

Dir[SAVE_PATH] if !FileTest.directory?(SAVE_PATH)

When I'm pressing Enter to save game It pops up:


I think this script first creates screenshot and ruby doesn't care Windows shortcuts xD It must be something with this %USERDATA%. How I can fix this. Thanks a lot :D

DoctorTodd

Did you download screeshot.dll and put it in your game folder?

creepercrisis

Yes :D I have this in game folder. :P

Zeriab

You'd want to use the %USERPROFILE% instead, but I suggest that you don't as there can be trouble with certain usernames unless you are using the 8.3 shortname for the path.
You can retrieve it using the .dll Amanda made in her Commercial Game Kit: http://www.rpgrevolution.com/forums/index.php?showtopic=35647

*hugs*

creepercrisis

What I must do with this DLL xD I don't care this

Zeriab

Look at code used to figure out where to put the saves in that project I linked to.

creepercrisis

Now I understand xD Thanks a lot! :D It's working perfectly :P

Zeriab

That's great to hear.
I'm glad I was able to prevent a nasty surprise where some players wouldn't be able to save their games ^_^

creepercrisis

I added AutoSave. :P When player will finish the part I of game (like discs in Final Fantasy on PSX :P) it will save. This save is required to play part II. But nevermind. You can now close this topic :P Problem solved. :D

Zeriab

It's nice that your problem is solved :3
I'll keep it open so other trying to do the same thing can ask for help should they have trouble following the information here.

*hugs*

creepercrisis

#13
Error again xD My game can't enable load scene in title screen. Maybe it's a problem with SAVE_PATH:

class Scene_Title < Scene_Base

  def check_continue
    file_name = Wora_NSS::SAVE_PATH + Wora_NSS::SAVE_FILE_NAME.gsub(/\{ID\}/i) { '*' }
    @continue_enabled = (Dir.glob(file_name).size > 0)
  end

end


Thanks a lot :P

PS I didn't change anything in this part of script