Giter Club home page Giter Club logo

ac-decomp's Introduction

Animal Crossing Decompilation Discord Channel rel progress dol progress

Decompilation in progress of Animal Crossing (GAFE01)

A decompilation of the original N64 version of the game is being worked on here.

Cloning

Use --recursive when cloning to have ppcdis in the repository.

Building

ℹ️ On Windows, the build is known to run disproportionately slow when ran natively, so we recommend using WSL.

Docker

  1. Dump a copy of the game and extract all files.
  2. Place main.dol, foresta.rel.szs, forest_1st.arc, and forest_2nd.arc in dump/.
  3. Install Docker.
  4. Set up the Docker image. If using MacOS or Linux (including WSL), run chmod +x docker-setup.sh && ./docker-setup.sh. If using Windows, run the docker-setup.bat file.
  5. Run configure.py (docker run --rm -v ${PWD}:/ac-decomp ac-decomp python3 configure.py).
  6. Run build.py (docker run --rm -v ${PWD}:/ac-decomp ac-decomp python3 build.py).

Build manually

ℹ️ When building manually from a work directory previously used for Docker, you will need to run sudo ninja -t clean for the build to execute properly.

  1. Dump a copy of the game and extract all files.
  2. Place main.dol, foresta.rel.szs, forest_1st.arc, and forest_2nd.arc in dump/.
  3. Download the CodeWarrior 1.3.2, 1.3.2r, and 1.2.5n compilers and extract them to tools/1.3.2/, tools/1.3.2r/, and tools/1.2.5n/, respectively.
  4. Install Python, pip, and ninja using your package manager of choice.
  5. Install Python modules from requirements.txt (pip install -r requirements.txt).
  6. Install version 0.6.13 of wibo
    • Wibo is a lightweight Wine replacement that's tailor-made for use with decomp projects. Regular Wine can be used if preferred, but for the purposes of this guide, these instructions will use wibo.
    • Download the GitHub release of version 0.6.13 and run install ./wibo /usr/bin to install it to your system.
  7. Install devkitPPC.
    • To get devkitPPC, you'll need devkitPro Pacman.
      • Run dkp-pacman -S devkitPPC once dkp-pacman is installed to install devkitPPC.
      • Set the DEVKITPPC environment variable to /opt/devkitpro/devkitPPC.
  8. Set the N64_SDK environment variable to the path of your libultra or equivalent headers. If you need headers, you can use the ones from ultralib.
    • Headers should be located at $N64_SDK/ultra/usr/include.
    • You must modify Gpopmtx's param member to be unsigned int in gbi.h.
  9. Run python3 configure.py.
  10. Run python3 build.py.

Quick Guides

Credits

  • jamchamb, Cuyler36, NWPlayer123 and fraser125 for past documentation of Animal Crossing.
  • SeekyCt for ppcdis and helping setting up the project.
  • msg for helping with tools/map.py.

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.