Giter VIP home page Giter VIP logo

sadgod's Introduction

SadGod

SadGod helps you extract data from ROTMG's internal SWF files. Currently it allows you to read the names and values of all binary packet ids used in the network communication. This is helpful because the game often changes the packet ids.

This library uses the MIT license. Please use this library for good purposes :)

Basics

Step 1. Install SadGod

npm install sadgod

Step 2. Require and Use SadGod

const {getCurrentSWFData} = require('sadgod')

getCurrentSWFData.then(swfData => {
    console.log(Got Data, swfData) // {packetIDs: {...} ...}
}).catch(err => {
    console.log(err)
})

One warning: SadGod uses JPEXS's SWF decompiler to extract the script files. This can take a long time, however this data will be cached and reused when requesting the swf data later so it will be lightning fast. This process must be repeated if you delete your cache or the game is updated.

Caching

SadGod uses caching in multiple places. Metadata about the most recent game version is stored in /ApplicationStorage.json, the downloaded swf's are downloaded permanently in the /downloads/ folder, and the extracted swf contents are cached permanently in the /extracted/ folder. Feel free to delete these files at your leasure as they will be automatically rebuilt when you next call upon the library.

sadgod's People

Contributors

l1lith avatar

Watchers

James Cloos 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.