Code Monkey home page Code Monkey logo

rmxp-extractor's Introduction

RMXP-Extractor

Gem VersionGem

A tool designed to dump rxdata to various git compatible formats. Some work better than others, though. YAML is slow in comparison to JSON. I'd suggest sticking to JSON generally.

Originally, I used a complex monkey patched system to dump things to a hash that was very slow and imprecise. Now, it uses some neat tricks to do it relatively efficiently.

Only problem is, classes dumped or loaded dump their instance variables, meaning that classes are not initialized with their default values at all.

This is important if you are handwriting the config files for whatever reason.

Pretty print is also a format, but it uses eval for loading. There's likely a better way of doing this out there, but eh, I'm not bothered. It's fairly readable though.

There is a minor problem right now with string encoding, especially with oneshot since there's some foul text that's encoded weirdly. I'll try to fix that later.

Usage:

rmxp_extractor import | export <type> | scripts"

Script

Allows you to export Scripts/xScripts to a specified folder. You can also import said specified folder back into Scripts/xScripts. The last argument [x] is optional. Placing just x there will extract Scripts.

Is it flawless?

Running export followed by import should produce an almost identical file with some minor differences.

As far as I'm aware from my testing, a file diff may say the the two are different, but loading them via marshal provides the exact same instance give or take. Ruby reports the original and imported instances as being different when loaded from Marshal, but pretty printing each instance to a file shows this is not the case. RPG Maker XP probably doesn't exactly follow Marshal spec and cuts some corners, which is why the file diff shows up differently.

A diff check tool is provided if you want to try it yourself.

rmxp-extractor's People

Contributors

speak2erase avatar zimberzimber avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.