iPhone App Directory
RPG Maker VX
 
Gallery Members Search Calendar Help


Welcome Guest ( Log In | Register )

Collapse

>Announcement

The 2nd Quarter Contest has arrived! Go check it out in the Community Announcements now!
 
Reply to this topicStart new topic
> Game Plug-in, For times when you want to add more to a game after it is published
jesse120
post Apr 2 2012, 05:12 PM
Post #1


Master Eventer, Novice scripter, pathetic spriter
Group Icon


Type: Designer
Alignment: Chaotic Good




Game Plug-in 1.0
Jesse120

Search number 10519195120 this is the unique number of any post done by me, for ease of searching

Introduction
This script was designed to enable plug-ins to a game. Examples of plug-ins can be found here http://www.uesp.net/wiki/Oblivion:Official_Plug-ins they are for Oblivion. What a plug-in is is something that is added to a game after it is released. These include but are not limited to Plug-ins, add-on, Expansion packs, map packs, Item packs, side quests, houses, main quest extensions, Enemy packs, Bug Fixes, post-publish Cheat codes, Graphic re-dues/enhancement, New characters, armor packs, weapon packs, skill packs, and ultimate combat pack( Shield of Ages, Thor's Hammer, Zeus' lightning bolt, etc.)
All a pack is is something that has extra of something that was original not included.
Features
- Allows you to make expansion packs or any of above easily.
- Allows you to easily install or de-install above.
Screenshots
Not necessary as it would prove nothing.
How to Use
Insert this script it the materials section. Then fill out the activation/deactivation files, the files to change, and if you have a custom main menu change mine to fit yours. Then place the old file folder in the game folder. Then make the changes to the game you wanted to make. More en-depth instructions in script.

Demo
Download both the files play the game then add the Gamenew folder to the project and in the main menu hit Add add-ons option. Remember to download both
the game
Attached File  Add_on_demo.zip ( 243.7K ) Number of downloads: 151

the add-on/plug-in/expansion
Attached File  Add_on.zip ( 9.88K ) Number of downloads: 107

Script
Spoiler:

CODE
#================================================================================
          #      Maker: jesse120
          #      Version: 1.0
          #        Date: 10/14/11
          #===============================================================================
          #             Credit:
          #Credit for me is not necesary
          #just dont clame to have made this script your self
          #credit would be nice.
          #thanks to but not nececary.
          #feal free to make changes to this script or use parts of it in your other scripts.
          #How ever I would like to request that any upgrads you make off this script be posted
          #to its topic so I can see it and mady get a new idea from it.  Not necesary but if
          #you do this I will add you name to the Special Thanks to list in this script.
          #================================================================================
          #Special thanks to: NEW and The Law G14
          #================================================================================
          #Futuer updates:
          #*¶Have save files inherit game add-ons
          #===============================================================================
          #Version list:
          #Version ID      Date Released     New Features            bugs
          #1.0                10/14/11    *Allows you to make     *save files
          #                                expansion packs that    don't get the script
          #                                are easily installed     content you must
          #                                and deinstaled.         start a new game for
          #                                                        scripts
          #==============================================================================
          # Current Features:
          # *Makes game add-ons (expansion packs, Patches, etc) possible.  
          # *Makes game add-ons are easily installed via main menu.
          #==============================================================================
          #Incompatibilitys: none found yet inform me if you find one(as this script is
          #designed for replacing files and evan scripts there should be no imcompatibilities)
          #================================================================================
          #Please inform me if you have any problems loading files with new databases(items)
          #=================================================================================
          #Instructions:  
          #Insert under Materials and above Main
          #To change the command name for removing or install game add-ons
          INSTALL_VOCAB = "Add add-ons"
          REMOVE_VOCAB = "Remove add-ons"
          #To make a game add-on you must make a all of the maps you want to use in  
          #another project.  Then copy all of the changed files from the data folder in the
          #new game and paste in a file (name it something aplicable like "Dark Tower Expansion")
          #then create a folder in the game for old files.  Finialy make a activation file.
          #it doesnt matter what it is called it just has to be unique.  Type in all of the
          #files you are moving in  this template.  change the name of the activation file
          #so it is now the deactivation file.
          #all file names must he in " ".  Place names in the apropreit aray.
          ACTIVATION_FILE = "Gamenew/GameAddon.docx"  #place filename betwene""
          DEACTIVATION_FILE = "Data/addoninstalled.docx" #like last line
          #these above files will auto change do not include in arays
          #a file is composed of folders in order from the exe file
          #then file name
          #then file type
          #examples
          #Data/map001.vxdata
          #gameaddon/security/securityfile.doc
          #if you change a map change mapinfo to
          ORIGINAL_FILES_REMOVE_FROM = [0]#dont touch this line touch next line betwene[] remember ,'s
          ORIGINAL_FILES_REMOVE_FROM = ["Data/Map001.rvdata", "Data/MapInfos.rvdata"]
          ORIGINAL_FILES_REMOVE_TO = [0]#dont touch
          ORIGINAL_FILES_REMOVE_TO = ["Gameold/OldMap001.rvdata","GameOld/OldMapInfos.rvdata"]
          #above files are removed from the data file and added to oldgame. NAME THE FILES
          
          ADDON_FILES_REMOVE_FROM = [0]#dont touch
          ADDON_FILES_REMOVE_FROM = ["Gamenew/NewMap001.rvdata", "Gamenew/NewMap002.rvdata", "Gamenew/NewMap003.rvdata",
          "Gamenew/NewMapInfos.rvdata"]
          ADDON_FILES_REMOVE_TO = [0]#dont touch
          ADDON_FILES_REMOVE_TO = ["data/Map001.rvdata","data/Map002.rvdata","data/Map003.rvdata",
          "data/MapInfos.rvdata"]
          #above are the new files to trancefer in
          #Making multipul addons requiers some edditing of the script If you nead help doing it ask me
          #==============================================================================
          #installation ends here this next section is for people who have custom title menu's to
          #edit
          #===============================================================================
          class Scene_Title < Scene_Base
            def update  #dont touch is line
              super                      
              @command_window.update      
              if Input.trigger?(Input::C)
                case @command_window.index
                when 0    #New game      
                  command_new_game  
                when 1    # Continue
                  command_continue
                when 2    # Shutdown
                  command_shutdown
                when 3
                  install_new
                when 4
                  remove_old
                end
              end
            end
            def create_command_window
              s1 = Vocab::new_game
              s2 = Vocab::continue
              s3 = Vocab::shutdown
              s4 = INSTALL_VOCAB
              s5 = REMOVE_VOCAB
              @command_window = Window_Command.new(172, [s1, s2, s3, s4, s5])
              @command_window.x = (544 - @command_window.width) / 2
              @command_window.y = 240
              if @continue_enabled                    # If continue is enabled
                @command_window.index = 1             # Move cursor over command
              else                                    # If disabled
                @command_window.draw_item(1, false)   # Make command semi-transparent
              end
              @command_window.openness = 0
              @command_window.open
            end
          end
          #==============================================================================
          #title edit done Initial script fiber
          #=============================================================================
          # Installs the game data
          def install_new
             if  File.exists?(ACTIVATION_FILE)
               for i in 0...ORIGINAL_FILES_REMOVE_FROM.size
               File.rename(ORIGINAL_FILES_REMOVE_FROM[i], ORIGINAL_FILES_REMOVE_TO[i])
             end
             for i in 0...ADDON_FILES_REMOVE_FROM.size
               File.rename(ADDON_FILES_REMOVE_FROM[i], ADDON_FILES_REMOVE_TO[i])
             end
              File.rename(ACTIVATION_FILE, DEACTIVATION_FILE)
               else
            
            end
          end
          # removes game data.
          def remove_old
            if  File.exists?(DEACTIVATION_FILE)
             for i in 0...ADDON_FILES_REMOVE_TO.size
               File.rename(ADDON_FILES_REMOVE_TO[i], ADDON_FILES_REMOVE_FROM[i])
             end
               for i in 0...ORIGINAL_FILES_REMOVE_TO.size
               File.rename(ORIGINAL_FILES_REMOVE_TO[i], ORIGINAL_FILES_REMOVE_FROM[i])
             end
              File.rename(DEACTIVATION_FILE, ACTIVATION_FILE)
               else
            
            end
          end


FAQ

Q: How many files can I change at a time?
A: As many as you want.

Q: Why do I need to edit this script for each add-on?
A: I have not figured out how to make it so you can have as many add-ons you want in one
in an easy to use package and the script is incompatible with its self.

Q:What do you mean it is incompatible with its self?
A:The script will only run the bottom script and will never run the top script if you have 2 scripts for this.

Q: What types of files can I change?
A: You can change maps, databases, scripts, graphics, or any other file.

Q: My script's wont run after they were transferred to the new game whats wrong?
A: Check to see that all conditions are met in the script by the new game.

Q: I did that and they still wont run now what?
A: You have run in to the biggest bug of the script. The scripts wont always apply to a saved game.

Q: I think I might use this script but I don't know what files to change what do I do?
A: Have the script change out the data/scripts.rvdata then you can change this script later and it will run with two applications.

Credit and Thanks

- Jesse120 (maker)
- NEW (Syntax aid)
- The Law G14 (Array conversion aid)

Author's Notes
Please post any bugs, recommendations, change requests, complements, or incompatibility issues bellow.

Tutorial for having multiple add-ons to 1 game.
Spoiler:

Everything inclosed in this spoiler tag is for having more than one add-on for a game.
Step 1
Find the section of script that starts with Installs the game data and looks like this
Spoiler:

CODE
#==============================================================================
       #title edit done Initial script fiber
       #=============================================================================
       # Installs the game data
       def install_new
          if  File.exists?(ACTIVATION_FILE)
            for i in 0...ORIGINAL_FILES_REMOVE_FROM.size
            File.rename(ORIGINAL_FILES_REMOVE_FROM[i], ORIGINAL_FILES_REMOVE_TO[i])
          end
          for i in 0...ADDON_FILES_REMOVE_FROM.size
            File.rename(ADDON_FILES_REMOVE_FROM[i], ADDON_FILES_REMOVE_TO[i])
          end
           File.rename(ACTIVATION_FILE, DEACTIVATION_FILE)
            else
          
         end
       end
       # removes game data.
       def remove_old
         if  File.exists?(DEACTIVATION_FILE)
          for i in 0...ADDON_FILES_REMOVE_TO.size
            File.rename(ADDON_FILES_REMOVE_TO[i], ADDON_FILES_REMOVE_FROM[i])
          end
            for i in 0...ORIGINAL_FILES_REMOVE_TO.size
            File.rename(ORIGINAL_FILES_REMOVE_TO[i], ORIGINAL_FILES_REMOVE_FROM[i])
          end
           File.rename(DEACTIVATION_FILE, ACTIVATION_FILE)
            else
          
         end
       end


step 2
Copy this section of script
Spoiler:

CODE
   if  File.exists?(ACTIVATION_FILE)
            for i in 0...ORIGINAL_FILES_REMOVE_FROM.size
            File.rename(ORIGINAL_FILES_REMOVE_FROM[i], ORIGINAL_FILES_REMOVE_TO[i])
          end
          for i in 0...ADDON_FILES_REMOVE_FROM.size
            File.rename(ADDON_FILES_REMOVE_FROM[i], ADDON_FILES_REMOVE_TO[i])
          end
           File.rename(ACTIVATION_FILE, DEACTIVATION_FILE)
            else
          
         end


and paste it here (here marked with ><)
Spoiler:

CODE
     def install_new
        if  File.exists?(ACTIVATION_FILE)
          for i in 0...ORIGINAL_FILES_REMOVE_FROM.size
          File.rename(ORIGINAL_FILES_REMOVE_FROM[i], ORIGINAL_FILES_REMOVE_TO[i])
        end
        for i in 0...ADDON_FILES_REMOVE_FROM.size
          File.rename(ADDON_FILES_REMOVE_FROM[i], ADDON_FILES_REMOVE_TO[i])
        end
         File.rename(ACTIVATION_FILE, DEACTIVATION_FILE)
          else
        
       end
     ><
     end


It should look like this now
Spoiler:

CODE
# Installs the game data
       def install_new
          if  File.exists?(ACTIVATION_FILE)
            for i in 0...ORIGINAL_FILES_REMOVE_FROM.size
            File.rename(ORIGINAL_FILES_REMOVE_FROM[i], ORIGINAL_FILES_REMOVE_TO[i])
          end
          for i in 0...ADDON_FILES_REMOVE_FROM.size
            File.rename(ADDON_FILES_REMOVE_FROM[i], ADDON_FILES_REMOVE_TO[i])
          end
           File.rename(ACTIVATION_FILE, DEACTIVATION_FILE)
            else
          
         end
         if  File.exists?(ACTIVATION_FILE)
            for i in 0...ORIGINAL_FILES_REMOVE_FROM.size
            File.rename(ORIGINAL_FILES_REMOVE_FROM[i], ORIGINAL_FILES_REMOVE_TO[i])
          end
          for i in 0...ADDON_FILES_REMOVE_FROM.size
            File.rename(ADDON_FILES_REMOVE_FROM[i], ADDON_FILES_REMOVE_TO[i])
          end
           File.rename(ACTIVATION_FILE, DEACTIVATION_FILE)
            else
          
         end
       end
       # removes game data.
       def remove_old
         if  File.exists?(DEACTIVATION_FILE)
          for i in 0...ADDON_FILES_REMOVE_TO.size
            File.rename(ADDON_FILES_REMOVE_TO[i], ADDON_FILES_REMOVE_FROM[i])
          end
            for i in 0...ORIGINAL_FILES_REMOVE_TO.size
            File.rename(ORIGINAL_FILES_REMOVE_TO[i], ORIGINAL_FILES_REMOVE_FROM[i])
          end
           File.rename(DEACTIVATION_FILE, ACTIVATION_FILE)
            else
          
         end
       end


do the same with this piece
Spoiler:

CODE
   if  File.exists?(DEACTIVATION_FILE)
      for i in 0...ADDON_FILES_REMOVE_TO.size
        File.rename(ADDON_FILES_REMOVE_TO[i], ADDON_FILES_REMOVE_FROM[i])
      end
        for i in 0...ORIGINAL_FILES_REMOVE_TO.size
        File.rename(ORIGINAL_FILES_REMOVE_TO[i], ORIGINAL_FILES_REMOVE_FROM[i])
      end
       File.rename(DEACTIVATION_FILE, ACTIVATION_FILE)
        else
      
     end


an place it here (still marked with><)
Spoiler:

CODE
   def remove_old
     if  File.exists?(DEACTIVATION_FILE)
      for i in 0...ADDON_FILES_REMOVE_TO.size
        File.rename(ADDON_FILES_REMOVE_TO[i], ADDON_FILES_REMOVE_FROM[i])
      end
        for i in 0...ORIGINAL_FILES_REMOVE_TO.size
        File.rename(ORIGINAL_FILES_REMOVE_TO[i], ORIGINAL_FILES_REMOVE_FROM[i])
      end
       File.rename(DEACTIVATION_FILE, ACTIVATION_FILE)
        else
      
     end
   ><
   end


the code should look like this now
Spoiler:

CODE
   ==============================================================================
   #title edit done Initial script fiber
   #=============================================================================
   # Installs the game data
   def install_new
      if  File.exists?(ACTIVATION_FILE)
        for i in 0...ORIGINAL_FILES_REMOVE_FROM.size
        File.rename(ORIGINAL_FILES_REMOVE_FROM[i], ORIGINAL_FILES_REMOVE_TO[i])
      end
      for i in 0...ADDON_FILES_REMOVE_FROM.size
        File.rename(ADDON_FILES_REMOVE_FROM[i], ADDON_FILES_REMOVE_TO[i])
      end
       File.rename(ACTIVATION_FILE, DEACTIVATION_FILE)
        else
      
     end
     if  File.exists?(ACTIVATION_FILE)
          for i in 0...ORIGINAL_FILES_REMOVE_FROM.size
          File.rename(ORIGINAL_FILES_REMOVE_FROM[i], ORIGINAL_FILES_REMOVE_TO[i])
        end
        for i in 0...ADDON_FILES_REMOVE_FROM.size
          File.rename(ADDON_FILES_REMOVE_FROM[i], ADDON_FILES_REMOVE_TO[i])
        end
         File.rename(ACTIVATION_FILE, DEACTIVATION_FILE)
          else
        
       end
   end
   # removes game data.
   def remove_old
     if  File.exists?(DEACTIVATION_FILE)
      for i in 0...ADDON_FILES_REMOVE_TO.size
        File.rename(ADDON_FILES_REMOVE_TO[i], ADDON_FILES_REMOVE_FROM[i])
      end
        for i in 0...ORIGINAL_FILES_REMOVE_TO.size
        File.rename(ORIGINAL_FILES_REMOVE_TO[i], ORIGINAL_FILES_REMOVE_FROM[i])
      end
       File.rename(DEACTIVATION_FILE, ACTIVATION_FILE)
        else
      
     end
      if  File.exists?(DEACTIVATION_FILE)
        for i in 0...ADDON_FILES_REMOVE_TO.size
          File.rename(ADDON_FILES_REMOVE_TO[i], ADDON_FILES_REMOVE_FROM[i])
        end
          for i in 0...ORIGINAL_FILES_REMOVE_TO.size
          File.rename(ORIGINAL_FILES_REMOVE_TO[i], ORIGINAL_FILES_REMOVE_FROM[i])
        end
         File.rename(DEACTIVATION_FILE, ACTIVATION_FILE)
          else
        
       end
   end


Now add a number and a _ where each highlighted X is
Replace X with the number of upgrades you have made
Spoiler:

CODE
==============================================================================
   #title edit done Initial script fiber
   #=============================================================================
   # Installs the game data
   def install_new
      if  File.exists?(ACTIVATION_FILE)
        for i in 0...ORIGINAL_FILES_REMOVE_FROM.size
        File.rename(ORIGINAL_FILES_REMOVE_FROM[i], ORIGINAL_FILES_REMOVE_TO[i])
      end
      for i in 0...ADDON_FILES_REMOVE_FROM.size
        File.rename(ADDON_FILES_REMOVE_FROM[i], ADDON_FILES_REMOVE_TO[i])
      end
       File.rename(ACTIVATION_FILE, DEACTIVATION_FILE)
        else
      
     end
     if  File.exists?(ACTIVATION_FILE)
          for i in 0...ORIGINAL_FILES_REMOVE_FROM.size
          File.rename(ORIGINAL_FILES_REMOVE_FROM[i], ORIGINAL_FILES_REMOVE_TO[i])
        end
        for i in 0...ADDON_FILES_REMOVE_FROM.size
          File.rename(ADDON_FILES_REMOVE_FROM[i], ADDON_FILES_REMOVE_TO[i])
        end
         File.rename(ACTIVATION_FILE, DEACTIVATION_FILE)
          else
        
       end
   end
   # removes game data.
   def remove_old
     if  File.exists?(DEACTIVATION_FILE)
      for i in 0...ADDON_FILES_REMOVE_TO.size
        File.rename(ADDON_FILES_REMOVE_TO[i], ADDON_FILES_REMOVE_FROM[i])
      end
        for i in 0...ORIGINAL_FILES_REMOVE_TO.size
        File.rename(ORIGINAL_FILES_REMOVE_TO[i], ORIGINAL_FILES_REMOVE_FROM[i])
      end
       File.rename(DEACTIVATION_FILE, ACTIVATION_FILE)
        else
      
     end
      if  File.exists?(DEACTIVATION_FILE)
        for i in 0...ADDON_FILES_REMOVE_TO.size
          File.rename(ADDON_FILES_REMOVE_TO[i], ADDON_FILES_REMOVE_FROM[i])
        end
          for i in 0...ORIGINAL_FILES_REMOVE_TO.size
          File.rename(ORIGINAL_FILES_REMOVE_TO[i], ORIGINAL_FILES_REMOVE_FROM[i])
        end
         File.rename(DEACTIVATION_FILE, ACTIVATION_FILE_X)
          else
        
       end
   end


Finally copy these things in the set up area
Spoiler:

CODE
ACTIVATION_FILE =
DEACTIVATION_FILE =
ORIGINAL_FILES_REMOVE_FROM = [0]#dont touch
ORIGINAL_FILES_REMOVE_FROM =
ORIGINAL_FILES_REMOVE_TO = [0]#dont touch
ORIGINAL_FILES_REMOVE_TO =
ADDON_FILES_REMOVE_FROM = [0]#dont touch
ADDON_FILES_REMOVE_FROM =
ADDON_FILES_REMOVE_TO = [0]#dont touch
ADDON_FILES_REMOVE_TO =


paste those in any place in the initialization arrays set up like the normal
then change those files like this
at each XX add the number you had earlier (add-on number) like this(I know it says 'dont touch' but that is so you don't forget later)
Spoiler:

CODE
ACTIVATION_FILE_XX =
   DEACTIVATION_FILE_XX =
   ORIGINAL_FILES_REMOVE_FROM_XX = [0]#dont touch
   ORIGINAL_FILES_REMOVE_FROM_XX =
   ORIGINAL_FILES_REMOVE_TO_XX = [0]#dont touch
   ORIGINAL_FILES_REMOVE_TO_XX =
   ADDON_FILES_REMOVE_FROM_XX = [0]#dont touch
   ADDON_FILES_REMOVE_FROM_XX =
   ADDON_FILES_REMOVE_TO_XX = [0]#dont touch
   ADDON_FILES_REMOVE_TO_XX =


Your code should look like this how(assuming that this is your second update)
Spoiler:

CODE
#================================================================================
#      Maker: jesse120
#      Version: 1.0
#        Date: 10/14/11
#===============================================================================
#             Credit:
#Credit for me is not necesary
#just dont clame to have made this script your self
#credit would be nice.
#thanks to but not nececary.
#feal free to make changes to this script or use parts of it in your other scripts.
#How ever I would like to request that any upgrads you make off this script be posted
#to its topic so I can see it and mady get a new idea from it.  Not necesary but if
#you do this I will add you name to the Special Thanks to list in this script.
#================================================================================
#Special thanks to: NEW and The Law G14
#================================================================================
#Futuer updates:
#‚—¶Have save files inharit game add-ons
#===============================================================================
#Version list:
#Version ID      Date Released     New Featurs            bugs
#1.0                10/14/11    ‚—¶Alows you to make      ‚—¶save files
#                                expansion packs that    dont get the script
#                                are eaysly instaled     content you must
#                                and deinstaled.         start a new game for
#                                                        scripts
#==============================================================================
# Curent Features:
# ‚—¶Makes game add-ons (expansion packs, Patches, ect) posible.  
# ‚—¶Makes game add-ons are eaysly instaled viea main menu.
#==============================================================================
#Incompatibilitys: none found yet inform me if you find one(as this script is
#designed for replacing files and evan scripts there should be no imcompatibilities)
#================================================================================
#Please inform me if you have any problems loading files with new databases(items)
#=================================================================================
#Instructions:  
#Insert under Materials and above Main
#To change the comand name for removing or install game add-ons
INSTALL_VOCAB = "Add add-ons"
REMOVE_VOCAB = "Remove add-ons"
#To make a game add-on you must make a all of the maps you want to use in  
#another project.  Then copy all of the changed files from the data folder in the
#new game and paste in a file (name it something aplicable like "Dark Tower Expansion")
#then create a folder in the game for old files.  Finialy make a activation file.
#it doesnt matter what it is called it just has to be unique.  Type in all of the
#files you are moving in  this template.  change the name of the activation file
#so it is now the deactivation file.
#all file names must he in " ".  Place names in the apropreit aray.
ACTIVATION_FILE = #place filename betwene""
ACTIVATION_FILE_2 =
DEACTIVATION_FILE =  #like last line
DEACTIVATION_FILE_2 =
#these above files will auto change do not include in arays
#a file is composed of folders in order from the exe file
#then file name
#then file type
#examples
#Data/map001.vxdata
#gameaddon/security/securityfile.doc
#if you change a map change mapinfo to
ORIGINAL_FILES_REMOVE_FROM = [0]#dont touch this line touch next line between[] remember ,'s
ORIGINAL_FILES_REMOVE_FROM =
ORIGINAL_FILES_REMOVE_FROM_2 = [0]#dont touch this line touch next line between[] remember ,'s
ORIGINAL_FILES_REMOVE_FROM_2 =
ORIGINAL_FILES_REMOVE_TO = [0]#dont touch
ORIGINAL_FILES_REMOVE_TO =
ORIGINAL_FILES_REMOVE_TO_2 = [0]#dont touch
ORIGINAL_FILES_REMOVE_TO_2 =
#above files are removed from the data file and added to oldgame. NAME THE FILES

ADDON_FILES_REMOVE_FROM = [0]#dont touch
ADDON_FILES_REMOVE_FROM =
ADDON_FILES_REMOVE_FROM_2 = [0]#dont touch
ADDON_FILES_REMOVE_FROM_2 =
ADDON_FILES_REMOVE_TO = [0]#dont touch
ADDON_FILES_REMOVE_TO =
ADDON_FILES_REMOVE_TO_2 = [0]#dont touch
ADDON_FILES_REMOVE_TO_2 =
#above are the new files to trancefer in
#Making multipul addons requiers some edditing of the script If you nead help doing it ask me
#==============================================================================
#instelation ends here this next section is for people who have custom title menu's to
#edit
#===============================================================================
class Scene_Title < Scene_Base
   def update  #dont touch is line
     super                      
     @command_window.update      
     if Input.trigger?(Input::C)
       case @command_window.index
       when 0    #New game      
         command_new_game  
       when 1    # Continue
         command_continue
       when 2    # Shutdown
         command_shutdown
       when 3
         install_new
       when 4
         remove_old
       end
     end
   end
   def create_command_window
     s1 = Vocab::new_game
     s2 = Vocab::continue
     s3 = Vocab::shutdown
     s4 = INSTALL_VOCAB
     s5 = REMOVE_VOCAB
     @command_window = Window_Command.new(172, [s1, s2, s3, s4, s5])
     @command_window.x = (544 - @command_window.width) / 2
     @command_window.y = 240
     if @continue_enabled                    # If continue is enabled
       @command_window.index = 1             # Move cursor over command
     else                                    # If disabled
       @command_window.draw_item(1, false)   # Make command semi-transparent
     end
     @command_window.openness = 0
     @command_window.open
   end
end
#==============================================================================
#title edit done Initial script fiber
#=============================================================================
# Installs the game data
def install_new
    if  File.exists?(ACTIVATION_FILE)
      for i in 0...ORIGINAL_FILES_REMOVE_FROM.size
      File.rename(ORIGINAL_FILES_REMOVE_FROM[i], ORIGINAL_FILES_REMOVE_TO[i])
    end
    for i in 0...ADDON_FILES_REMOVE_FROM.size
      File.rename(ADDON_FILES_REMOVE_FROM[i], ADDON_FILES_REMOVE_TO[i])
    end
     File.rename(ACTIVATION_FILE, DEACTIVATION_FILE)
      else
    
      end
      if  File.exists?(ACTIVATION_FILE_2)
      for i in 0...ORIGINAL_FILES_REMOVE_FROM_2.size
      File.rename(ORIGINAL_FILES_REMOVE_FROM_2[i], ORIGINAL_FILES_REMOVE_TO_2[i])
    end
    for i in 0...ADDON_FILES_REMOVE_FROM_2.size
      File.rename(ADDON_FILES_REMOVE_FROM_2[i], ADDON_FILES_REMOVE_TO_2[i])
    end
     File.rename(ACTIVATION_FILE_2, DEACTIVATION_FILE_2)
      else
    
   end
end
# removes game data.
def remove_old
   if  File.exists?(DEACTIVATION_FILE)
    for i in 0...ADDON_FILES_REMOVE_TO.size
      File.rename(ADDON_FILES_REMOVE_TO[i], ADDON_FILES_REMOVE_FROM[i])
    end
      for i in 0...ORIGINAL_FILES_REMOVE_TO.size
      File.rename(ORIGINAL_FILES_REMOVE_TO[i], ORIGINAL_FILES_REMOVE_FROM[i])
    end
     File.rename(DEACTIVATION_FILE, ACTIVATION_FILE)
      else
    
      end
      if  File.exists?(DEACTIVATION_FILE_2)
    for i in 0...ADDON_FILES_REMOVE_TO_2.size
      File.rename(ADDON_FILES_REMOVE_TO_2[i], ADDON_FILES_REMOVE_FROM_2[i])
    end
      for i in 0...ORIGINAL_FILES_REMOVE_TO_2.size
      File.rename(ORIGINAL_FILES_REMOVE_TO_2[i], ORIGINAL_FILES_REMOVE_FROM_2[i])
    end
     File.rename(DEACTIVATION_FILE_2, ACTIVATION_FILE_2)
      else
    
   end
end


Set up the arrays as detailed above


Note:If you use this script to change a database, or a map twice (2 separate addons) the later installed one will override the first. I recommend having "Patches" where you introduce all the things in a series of addons then in the addon give a way to access "patched" content.

This post has been edited by jesse120: Sep 10 2013, 02:31 AM


--------------------
I might not post anything for a while, but I am still here, watching. You may not see me, but I see you.
Still taking event requests. Still watching topics. I will see comments to my posts and respond.
I will probably not update any of my scripts for a while.

I have not gone!!!

Spoiler:

Master eventer
Need an unusual event call me and i might be able to make it
ex vehicle, pet
search number
I do take event requests
search number 10519195120
Please don't put this number on any of your own posts or topics
note: the search number will be on any post I make to aid in searching by author. If I forget to put it on a topic please notify me.

I will try to check any posts/PMs around 7:30 AM, 3:00 PM, and after 6 PM most days (time in Pacific Time)

The ultimate video game

Legend of, Elder, Fear, of Fabled, Fallout, Call, of Modern, Gears, of Halo, Metal, Ghost, Assassin, Mass, Homicide, Fantasy, 5
That stands for
Legend of Zelda, Elder Scrolls, ?????, Fable, Fallout, Call of Duty, Modern Warfare, Gears of War, Halo, Metal Gears, Ghost Recon, Assassin's Creed, Mass Effect, Auto Homicide, Final Fantasy, 5
Let me know if you want a game added to the list

If you are a believer of Jesus Christ, believe he is the only way to heaven, and are 100% proud of it, put this in your sig.
Go to the top of the page
 
+Quote Post
   
Postman
post Apr 3 2012, 11:28 AM
Post #2



Group Icon


Type: Designer
Alignment: Chaotic Neutral




This looks really useful!
I've been wondering for a while now how to do this... huh.gif


--------------------
Post!
Go to the top of the page
 
+Quote Post
   
Neosky
post Apr 3 2012, 05:19 PM
Post #3


Master of the DarkSyde of Cheese!
Group Icon


Type: Undisclosed
Alignment: Lawful Evil




Dude if this works like how i think it does, AWESOME!!!!! Totaly going to use this.


--------------------


Remember, Remember the 5th of November...
Spoiler:


Spoiler:


If you are new, please go through this spoiler for VERY useful links.
Spoiler:





Tarris Thread || User Forum || Tarris Hold Website || Twitch.tv
Go to the top of the page
 
+Quote Post
   
???nOBodY???
post Apr 5 2012, 10:02 AM
Post #4


moogles + nightmares + coffee = Scripting Psychopathic Tendency
Group Icon


Type: Coder
Alignment: Chaotic Neutral




This is pretty neat... I can honestly say I failed at trying to do something similar. The farthest I got was renaming the scripts file, then reloading it, and watching errors pop up or something, lol. *snatches the script while talking*


--------------------
*The Master List Update Project is currently up-to-date with the latest scripts for that dream project!
*By entering the RGSS2/Ruby Scripting section, you are agreeing to abide by The Coder's Creed.

My Scripts
Spoiler:

ACK Script Requests
Spoiler:

Scripts
Stat Change Formulas
GTBS Ziifee's spin menu Submenus
GTBS Weapon Unleash
GTBS Enemy Status
Attack Command Submenu
Jump To (X,Y)
BGM/BGS Fadein
Window_Message - Pop Text
Spell Management Menu
Melee Mastery Management Menu
Ghost List
Save / Autoload
Some Popup v2.9 => v2.91
Scene_StringEntry v1.02
Scene_StringEntry: More Than 24-Character Input
Scene_StringEntry: Scrolling Character Input Window
Scene_StringEntry: Typing Input
MA's Quest Journal - Accept Quest Add-On (internal)
MA's Quest Journal - Accept Quest Add-On (external)
Easy-to-Add Extra Ziifee Spin Commands
Scrolling Battle Message
Non-Differentiating Enemies
Quest Item Drops
(VX) FP Conditional Drops
FFTA World Map HUD bugfix
RSSBS / SSS - Wereforms patch
Death Counterattack
Targetting Extension

My Heart (Resources)

Projects
Project AMBROSIA
*something generically clever*

Support these:
Spoiler:







Awards:
Spoiler:

Go to the top of the page
 
+Quote Post
   
Safebox
post Apr 5 2012, 08:48 PM
Post #5



Group Icon


Type: Spriter
Alignment: Lawful Neutral




Yay, an expansion pack script exists biggrin.gif

I can make optional additions to my games now!
Go to the top of the page
 
+Quote Post
   
rgangsta
post Apr 7 2012, 02:15 AM
Post #6


The Handyman
Group Icon


Type: Designer
Alignment: Neutral Evil




Neat-o! I could definitely use this! Nice script!


--------------------
Go to the top of the page
 
+Quote Post
   
jesse120
post May 4 2012, 03:19 AM
Post #7


Master Eventer, Novice scripter, pathetic spriter
Group Icon


Type: Designer
Alignment: Chaotic Good




I have added a tutorial for multiple add-ons at the bottom of the Topic.

P.S. I have noticed that not everyone downloads both files above. You must download BOTH for the demo to work right because 1 is the game and the other is the add-on for the game.


--------------------
I might not post anything for a while, but I am still here, watching. You may not see me, but I see you.
Still taking event requests. Still watching topics. I will see comments to my posts and respond.
I will probably not update any of my scripts for a while.

I have not gone!!!

Spoiler:

Master eventer
Need an unusual event call me and i might be able to make it
ex vehicle, pet
search number
I do take event requests
search number 10519195120
Please don't put this number on any of your own posts or topics
note: the search number will be on any post I make to aid in searching by author. If I forget to put it on a topic please notify me.

I will try to check any posts/PMs around 7:30 AM, 3:00 PM, and after 6 PM most days (time in Pacific Time)

The ultimate video game

Legend of, Elder, Fear, of Fabled, Fallout, Call, of Modern, Gears, of Halo, Metal, Ghost, Assassin, Mass, Homicide, Fantasy, 5
That stands for
Legend of Zelda, Elder Scrolls, ?????, Fable, Fallout, Call of Duty, Modern Warfare, Gears of War, Halo, Metal Gears, Ghost Recon, Assassin's Creed, Mass Effect, Auto Homicide, Final Fantasy, 5
Let me know if you want a game added to the list

If you are a believer of Jesus Christ, believe he is the only way to heaven, and are 100% proud of it, put this in your sig.
Go to the top of the page
 
+Quote Post
   
Neosky
post May 9 2012, 04:20 PM
Post #8


Master of the DarkSyde of Cheese!
Group Icon


Type: Undisclosed
Alignment: Lawful Evil




Do you have to do this everytime you make a new addon? I'm not exatcly sure what your getting at with it? Do you keep adding those snippets when making more, or do you just add it once and then your able to keep adding more all you want? If so, then probably just eaiser to make a script update.


--------------------


Remember, Remember the 5th of November...
Spoiler:


Spoiler:


If you are new, please go through this spoiler for VERY useful links.
Spoiler:





Tarris Thread || User Forum || Tarris Hold Website || Twitch.tv
Go to the top of the page
 
+Quote Post
   
robbieagray
post May 9 2012, 05:18 PM
Post #9


I am not insane... YET!!! :D
Group Icon


Type: Spriter
Alignment: Lawful Evil




This would be really useful in me game for future expansions (should probably try out demo/tutorial first). Could really add some interesting features into my game. laugh.gif


--------------------
If you are a believer of Jesus Christ, and are 100% proud of it, put this in your sig.

Projects I am currently working on:
-The demo is out now!



-Link to my Youtube Channel: HERE! (Please Subscribe)
I support the following:
Spoiler:



Contest Badges:
Spoiler:
Go to the top of the page
 
+Quote Post
   
jesse120
post Jun 20 2012, 04:39 PM
Post #10


Master Eventer, Novice scripter, pathetic spriter
Group Icon


Type: Designer
Alignment: Chaotic Good




Neosky
Unfortunately you have to add a new snippet for each separate add-on you want to have. So if you were working on a game like Oblivion (see link) you would need to do the snippet 9 times to give you a total of 10 and then each update would have a different activation folder file check.

This post has been edited by jesse120: Jun 20 2012, 04:40 PM


--------------------
I might not post anything for a while, but I am still here, watching. You may not see me, but I see you.
Still taking event requests. Still watching topics. I will see comments to my posts and respond.
I will probably not update any of my scripts for a while.

I have not gone!!!

Spoiler:

Master eventer
Need an unusual event call me and i might be able to make it
ex vehicle, pet
search number
I do take event requests
search number 10519195120
Please don't put this number on any of your own posts or topics
note: the search number will be on any post I make to aid in searching by author. If I forget to put it on a topic please notify me.

I will try to check any posts/PMs around 7:30 AM, 3:00 PM, and after 6 PM most days (time in Pacific Time)

The ultimate video game

Legend of, Elder, Fear, of Fabled, Fallout, Call, of Modern, Gears, of Halo, Metal, Ghost, Assassin, Mass, Homicide, Fantasy, 5
That stands for
Legend of Zelda, Elder Scrolls, ?????, Fable, Fallout, Call of Duty, Modern Warfare, Gears of War, Halo, Metal Gears, Ghost Recon, Assassin's Creed, Mass Effect, Auto Homicide, Final Fantasy, 5
Let me know if you want a game added to the list

If you are a believer of Jesus Christ, believe he is the only way to heaven, and are 100% proud of it, put this in your sig.
Go to the top of the page
 
+Quote Post
   
jesse120
post Sep 10 2013, 02:28 AM
Post #11


Master Eventer, Novice scripter, pathetic spriter
Group Icon


Type: Designer
Alignment: Chaotic Good




I might not post anything for a while, but I am still here, watching. You may not see me, but I see you.
Still taking event requests. Still watching topics. I will see comments to my posts and respond.
I will probably not update any of my scripts for a while.

I have not gone!!!


--------------------
I might not post anything for a while, but I am still here, watching. You may not see me, but I see you.
Still taking event requests. Still watching topics. I will see comments to my posts and respond.
I will probably not update any of my scripts for a while.

I have not gone!!!

Spoiler:

Master eventer
Need an unusual event call me and i might be able to make it
ex vehicle, pet
search number
I do take event requests
search number 10519195120
Please don't put this number on any of your own posts or topics
note: the search number will be on any post I make to aid in searching by author. If I forget to put it on a topic please notify me.

I will try to check any posts/PMs around 7:30 AM, 3:00 PM, and after 6 PM most days (time in Pacific Time)

The ultimate video game

Legend of, Elder, Fear, of Fabled, Fallout, Call, of Modern, Gears, of Halo, Metal, Ghost, Assassin, Mass, Homicide, Fantasy, 5
That stands for
Legend of Zelda, Elder Scrolls, ?????, Fable, Fallout, Call of Duty, Modern Warfare, Gears of War, Halo, Metal Gears, Ghost Recon, Assassin's Creed, Mass Effect, Auto Homicide, Final Fantasy, 5
Let me know if you want a game added to the list

If you are a believer of Jesus Christ, believe he is the only way to heaven, and are 100% proud of it, put this in your sig.
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 23rd April 2014 - 02:12 PM

RPGMakerVX.net is an Privacy Policy, Legal.