Rpg Maker Scripts Storing Algorithm for Scripters
#2
As always this is an entirely too useful script; I've used it to load the entire Scripts.rxdat into my irb session. As a monument to the eternity of the internet here is the script:
Code:
require 'zlib'
def save_data(obj, filename)
  File.open(filename, "wb") { |f|
    Marshal.dump(obj, f)
  }
end

def load_data(filename)
  File.open(filename, "rb") { |f|
    obj = Marshal.load(f)
  }
end
script = load_data("Data/Scripts.rxdata")
script.each {|s| TOPLEVEL_BINDING.eval(Zlib::Inflate.inflate(s.at(2)))  }
Something along these lines must be embedded into the RGSS dll or Game.exe; This is what starts the actual Ruby Game Process.
[Image: cautionary.png]
Reply }


Messages In This Thread
RE: Rpg Maker Scripts Storing Algorithm for Scripters - by hanetzer - 07-27-2013, 10:20 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Steam on Linux & RPG Maker Series kyonides 0 1,950 02-21-2023, 10:59 PM
Last Post: kyonides
   Install RPG Maker on a Linux KDC 6 14,668 08-29-2019, 03:33 AM
Last Post: KDC
   Installing RPG Maker XP, VX, or VX Ace Under PlayOnLinux: The Complete Guide! hanetzer 5 17,816 05-15-2016, 11:00 PM
Last Post: Francexi
   RPG Maker XP Basics: A tutorial for newbies. Bolt 0 6,085 12-23-2008, 02:11 AM
Last Post: Bolt
   Facesets with no need for scripts! Emily_Konichi 0 3,236 12-07-2008, 04:28 AM
Last Post: Emily_Konichi



Users browsing this thread: 1 Guest(s)