Skip to content

turnupstuffer/gwcd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GWCD: Wherigo files (.gwc) decompiler

This script is a simple Wherigo files (.gwc) decompiler. As we known how a .gwc is formatted [1], we can read the file in binary mode, extracting data along the reading.

This script can be used to :

  • retrieve data related to the Wherigo (included the completion code),
  • extract the compiled Lua file (describing the scenario of the cartridge),
  • extract media files.

Usage

$ python gwcd.py [OPTIONS] <gwc file>

Options are:

-h, --help       show this help message and exit
--output OUTPUT  Output directory where gwcd will store extracted data
--lua            Extract compiled lua file
--completion     Show the completion code
--media          Extract media files
--verbose, -v    Show all data related to the cartridge
--all            Do everything

Dockerized version

For running the script in any environment that supports docker containers

Building image

$ docker build -t mrummuka/gwcd .

Running gwcd from container

$ docker run --rm -v /path/to/wigocontainerdir:/data mrummuka/gwcd:latest

Note

Dockerized version of gwcd currently assumes that wherigo container is found from /path/to/wigocontainerdir/ (can be changed) named as wigo.gwc (cannot be changed)

Licence

BSD Licence. See LICENCE file.

Sources

[1] https://github.com/WFoundation/WF.Compiler

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.7%
  • Dockerfile 2.3%