Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

2 Pages V   1 2 >  
Closed TopicStart new topic
> ~[More savefiles]~, The amount of the savefiles can be set
ERZENGEL
post Jan 27 2008, 09:36 AM
Post #1


Level 8
Group Icon

Group: Revolutionary
Posts: 127
Type: None
RM Skill: Undisclosed




  1. Intro
    In the RPG Maker 2000 had 15 saveslots. When the RPGXP appeared only 4 slots. But with a script by KGC could expand this. Since the default RPGVX only has 4 saveslots, I thought why I don't make myself such a script as KGC has done? So here is my conclusion:
  2. Features
    • Set the value of saveslots
  3. Screenshots

  4. Guide
    Create empty Script above Main and paste the script into it.
    To change the value of saveslots, simply set the constant MAXSAVEFILES to positive numerical value. For example:
    CODE
    MAXSAVEFILES = 64
    Now the amount of savefiles is 64.
  5. Script
    CODE
    #==============================================================================
    # ** More savefiles 1.01 (http://erzvx.de.ms/scripts/MoreSavefiles.txt)
    #------------------------------------------------------------------------------
    #  written by ERZENGEL
    #==============================================================================

    # Max amount of savefiles
    MAXSAVEFILES = 8

    #==============================================================================
    # ** Window_SaveFile
    #------------------------------------------------------------------------------
    #  This window displays save files on the save and load screens.
    #==============================================================================

    class Window_SaveFile < Window_Base
      #--------------------------------------------------------------------------
      # * Object Initialization
      #     file_index : save file index (0 to the value of MAXSAVEFILES)
      #     filename   : filename
      #--------------------------------------------------------------------------
      def initialize(file_index, filename)
        super(0, 56 + file_index % MAXSAVEFILES * 90, 544, 90)
        @file_index = file_index
        @filename = filename
        load_gamedata
        refresh
        @selected = false
      end
    end

    #==============================================================================
    # ** Scene_File
    #------------------------------------------------------------------------------
    #  This class performs the save and load screen processing.
    #==============================================================================

    class Scene_File
      #--------------------------------------------------------------------------
      # * Start processing
      #--------------------------------------------------------------------------
      def start  
        super
        @file_max = MAXSAVEFILES
        create_menu_background
        @help_window = Window_Help.new
        create_savefile_windows
        if @saving
          @index = $game_temp.last_file_index
          @help_window.set_text(Vocab::SaveMessage)
        else
          @index = self.latest_file_index
          @help_window.set_text(Vocab::LoadMessage)
        end
        @savefile_windows[@index].selected = true
        @page_file_max = ((416 - @help_window.height) / 90).truncate
        for i in 0...@file_max
          window = @savefile_windows[i]
          if @index > @page_file_max - 1
            if @index < @file_max - @page_file_max - 1
              @top_row = @index
              window.y -= @index * window.height
            elsif @index >= @file_max - @page_file_max
              @top_row = @file_max - @page_file_max
              window.y -= (@file_max - @page_file_max) * window.height
            else
              @top_row = @index
              window.y -= @index * window.height
            end
          end
          window.visible = (window.y >= @help_window.height and
          window.y < @help_window.height + @page_file_max * window.height)
        end
      end
      #--------------------------------------------------------------------------
      # * Create Save File Window
      #--------------------------------------------------------------------------
      def create_savefile_windows
        @top_row = 0
        @savefile_windows = []
        for i in 0...@file_max
          @savefile_windows.push(Window_SaveFile.new(i, make_filename(i)))
        end
      end
      #--------------------------------------------------------------------------
      # * Move cursor down
      #     wrap : Wraparound allowed
      #--------------------------------------------------------------------------
      def cursor_down(wrap)
        if @index < @file_max - 1 or wrap
          @index = (@index + 1) % @file_max
          for i in 0...@file_max
            window = @savefile_windows[i]
            if @index == 0
              @top_row = 0
              window.y = @help_window.height + i % @file_max * window.height
            elsif @index - @top_row > @page_file_max - 1
              window.y -= window.height
            end
            window.visible = (window.y >= @help_window.height and
              window.y < @help_window.height + @page_file_max * window.height)
          end
          if @index - @top_row > @page_file_max - 1
            @top_row += 1
          end
        end
      end
      #--------------------------------------------------------------------------
      # * Move cursor up
      #     wrap : Wraparound allowed
      #--------------------------------------------------------------------------
      def cursor_up(wrap)
        if @index > 0 or wrap
          @index = (@index - 1 + @file_max) % @file_max
          for i in 0...@file_max
            window = @savefile_windows[i]
            if @index == @file_max - 1
              @top_row = @file_max - @page_file_max
              window.y = @help_window.height + i % @file_max * window.height
              window.y -= (@file_max - @page_file_max) * window.height
            elsif @index - @top_row < 0
              window.y += window.height
            end
            window.visible = (window.y >= @help_window.height and
              window.y < @help_window.height + @page_file_max * window.height)
          end
          if @index - @top_row < 0
            @top_row -= 1
          end
        end
      end
    end

  6. Outro
    I tested it till 999 savefiles, so it should work to this amount without problems. Unfortunately, I have not the time or the necessary script had to test the compatibility. So if you have any suggestions or problems post them here.


This post has been edited by ERZENGEL: Mar 6 2008, 12:59 PM
Go to the top of the page
 
+Quote Post
   
SeeYouAlways
post Jan 27 2008, 05:14 PM
Post #2


Demented Moogle
Group Icon

Group: Banned
Posts: 1,130
Type: None
RM Skill: Undisclosed




Hey nice. This could be like a staple script in everyone's games. biggrin.gif

I PM'ed you too, have a read when you get the time. Cheers.


__________________________
Go to the top of the page
 
+Quote Post
   
joaoneto
post Jan 27 2008, 05:20 PM
Post #3



Group Icon

Group: Member
Posts: 4
Type: None
RM Skill: Undisclosed




Tanks for this great script.
He's enter to my Brazilian Pack, with credits to you of course.
Go to the top of the page
 
+Quote Post
   
neclords
post Jan 31 2008, 01:42 AM
Post #4


Love me! I wanna you to love me!
Group Icon

Group: Revolutionary
Posts: 196
Type: Event Designer
RM Skill: Beginner




Thanks ERZENGEL

It cool...




__________________________

~Time To sWallow tHe Pain and VaniSH OuR HuRt~
Go to the top of the page
 
+Quote Post
   
D3wil666
post Feb 16 2008, 09:37 AM
Post #5


Level 3
Group Icon

Group: Member
Posts: 44
Type: None
RM Skill: Beginner




i need this Script but on rpg maker xp
Go to the top of the page
 
+Quote Post
   
ERZENGEL
post Feb 16 2008, 10:40 AM
Post #6


Level 8
Group Icon

Group: Revolutionary
Posts: 127
Type: None
RM Skill: Undisclosed




http://www.phylomortis.com/resource/script/scr039.html
Go to the top of the page
 
+Quote Post
   
Cheezeyninja
post Mar 9 2008, 02:14 AM
Post #7


Level 1
Group Icon

Group: Member
Posts: 8
Type: Scripter
RM Skill: Masterful




Nice script! seems to be compatible to most scripts


__________________________
Go to rmvx.wordpress.com for stuff about RPG Maker VX
or Go to rmxp.wordpress.com for stuff about RPG Maker XP!!
Go to the top of the page
 
+Quote Post
   
jbirdgamepro
post Apr 2 2008, 08:56 AM
Post #8



Group Icon

Group: Banned
Posts: 0
Type: None
RM Skill: Undisclosed




i get this error message when i try to run my game after importing the script sad.gif
Attached File(s)
Attached File  error.jpg ( 41.64K ) Number of downloads: 38
 
Go to the top of the page
 
+Quote Post
   
Twilight27
post Apr 2 2008, 10:09 AM
Post #9


Level 19
Group Icon

Group: Revolutionary
Posts: 371
Type: Event Designer
RM Skill: Beginner




THANK YOU A LOT!!!!!


__________________________

Fall to the power of the Emo!
We have cookies!


Notice!! Check out my topic (http://www.rpgrevolution.com/forums/index.php?showtopic=45736&st=0#entry454175) if you're interested in helping me make a script that limits the number of characters & items you use in battle AND also an item durability feature! Thanks for any help in advance!
Go to the top of the page
 
+Quote Post
   
sargunster
post Jun 12 2008, 09:17 PM
Post #10


Level 5
Group Icon

Group: Member
Posts: 65
Type: Event Designer
RM Skill: Beginner




thanks alot!


__________________________

Go to the top of the page
 
+Quote Post
   
Anufrijevas
post Jun 14 2008, 04:18 PM
Post #11



Group Icon

Group: Member
Posts: 2
Type: Artist
RM Skill: Beginner




Thanks, this will be useful:P
Go to the top of the page
 
+Quote Post
   
xnuclearx
post Jun 16 2008, 07:09 PM
Post #12


Level 1
Group Icon

Group: Member
Posts: 8
Type: None
RM Skill: Skilled




Wow... This was a big help i wanted 16 save slots for each class

THANX ERZENGEL


__________________________
More of a thinker than a actionist

ask me for ideas not really plz dont

LOL

[Show/Hide] my comparison between makin a game and bein 5
u hated reading and writing when u were 5
u hate scripting

u loved lookin at pictures and pasting them everywhere
u love mapping(more to it i kno)

u loved playin games
u love betatesting
Go to the top of the page
 
+Quote Post
   
Apocalypto
post Jun 24 2008, 05:45 AM
Post #13


Level 1
Group Icon

Group: Member
Posts: 7
Type: Developer
RM Skill: Skilled




good job man! very useful script! sleep.gif


__________________________
LETS HAVE FUN!


Go to the top of the page
 
+Quote Post
   
pikachu 2127
post Mar 7 2009, 05:54 AM
Post #14



Group Icon

Group: Member
Posts: 2
Type: None
RM Skill: Undisclosed




Nice! Just what I'm looking for. biggrin.gif
Go to the top of the page
 
+Quote Post
   
Kingston
post Mar 8 2009, 12:01 PM
Post #15



Group Icon

Group: Member
Posts: 4
Type: None
RM Skill: Undisclosed




thanks a ton, btw, i lost my save fil :^(
Go to the top of the page
 
+Quote Post
   
BIitz
post Dec 5 2009, 02:08 PM
Post #16


Level 1
Group Icon

Group: Member
Posts: 5
Type: None
RM Skill: Undisclosed




I can honestly say this is one of the most useful scripts I have ever used, Well one of the only ones because I can't get most to work >.>... Very easy, Plug, change value, and play!
Go to the top of the page
 
+Quote Post
   
Groudon128
post Dec 5 2009, 02:23 PM
Post #17


Level 2
Group Icon

Group: Member
Posts: 26
Type: None
RM Skill: Undisclosed




I used this, its awesome!

One thing to point out is that having 999 slots (the supposed maximum) seems to overload and lag the game. I used 99 however and it works fine, 99 is all someone should need, right?


__________________________
I am an indigo don't be mean or you'll get hit by the RAWR!
Go to the top of the page
 
+Quote Post
   
KD648
post Sep 28 2010, 11:26 AM
Post #18


Level 13
Group Icon

Group: Revolutionary
Posts: 237
Type: Writer
RM Skill: Skilled




Quick question, how would you feel about this being used in a commercial game? I can't afford to pay you for it, but I would of course credit you. Feel free to say yes or no, no hard feelings either way.


__________________________
The Demo of "After" is complete! Learn more and play here!

Read the RRR Official Preview: http://www.rpgrevolution.com/forums/index....showtopic=52257
I support

Go to the top of the page
 
+Quote Post
   
Resource Dragon
post Sep 28 2010, 11:50 AM
Post #19


Dragon has RAWR. So... RAWR.
Group Icon

Group: Local Mod
Posts: 984
Type: Developer
RM Skill: Masterful
Rev Points: 95




Epic Necropost. Please don't do this in the future. And if he wanted it not used in commercial games, he probably would have said so. So go ahead and use it.


__________________________
click me ->Signup for Digital Hijinks!<- click me
Go to the top of the page
 
+Quote Post
   
Finncarls1
post Dec 29 2010, 06:17 PM
Post #20


Level 1
Group Icon

Group: Member
Posts: 6
Type: None
RM Skill: Undisclosed




Nice script man seems really usefull


__________________________
It's not who you kill its what type of cereal you eat out of there skull
Supports:



Best game ive ever played on rpgmaker:
Peekaboo
Go to the top of the page
 
+Quote Post
   

2 Pages V   1 2 >
Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 25th May 2013 - 08:27 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker