Rpg Maker Scripts Storing Algorithm for Scripters
#3
Heyo!
Been fiddling with this for the sake of the ReGaL engine, and made a bit of what I'd call an improvement to it; instead of one large text file, It now dumps to individual files for each script; my code (thanks for the start Narzew):
Code:
def save_script(scriptfile='Data/Scripts.rxdata')
  script = load_data(scriptfile)
  script.each {|s|
    file = File.open(s.at(1), 'wb')
    file.write(Zlib::Inflate.inflate(s.at(2)))
    file.close
  }
end
Next I'll see about writing a script to reconstitute the individual files into the Scripts.rxdata file
[Image: cautionary.png]
Reply }


Messages In This Thread
RE: Rpg Maker Scripts Storing Algorithm for Scripters - by hanetzer - 03-06-2014, 08:38 AM

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: 3 Guest(s)