Skip to content

mozzydippers/calcrys

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hg-engine

About

A huge upgrade to the battle engine in HeartGold

Disclaimer

This repository and its assets are a community endeavor. By its nature, using it and subsequently profiting off of it is profiting on the backs of all of our work, all of which is intended to be used to further hobbies and for everyone to have fun. You have my blessing to use code and assets from this repository as you please as long as there is no money involved, including optional donations through whichever platform to play your hack. The creations that stem from this repository must be freely accessible and not hidden at all behind any paywall, including those that prompt the player to pay optionally (Ko-Fi's style comes to mind here). The Credits should also be replicated in your hack's repository and/or the post to your hack--we all sit on the shoulders of giants here.

Table of Contents

Features:

  • Dex Expansion (through Gen 6 almost entirely implemented)
  • Ability Expansion (through Gen 6 almost entirely implemented)
  • Move Expansion with future generation moves
  • Item Expansion with future generation items
  • Mega Evolutions + Primal Reversions
  • Much More Customizable Trainers
  • Fairy Type
  • Hidden Abilities
  • Updated Effects for Existing Moves and Abilities
  • 30 PC Boxes

A more comprehensive list of features + a roadmap can be found by visiting the hg-engine wiki. Please read this README and the Wiki thoroughly before asking questions.

Setup Instructions (Linux with apt)

  1. In a Terminal window, run the following commands:
    • sudo apt-get install libpng-dev build-essential cmake python3-pip git automake autoconf gcc-arm-none-eabi
    • pip3 install ndspy
  2. On distros where mono is not preinstalled (Ubuntu-based ones come to mind), install it with sudo apt-get install mono-devel
  3. Continue to Further Setup Instructions

Setup Instructions (macOS)

  1. If you don't have it already, install brew by running the following in Terminal: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  2. In a Terminal window, run the following commands:
    • xcode-select --install
    • brew install python3 libpng automake autoconf cmake zlib pkg-config
    • brew install --cask gcc-arm-embedded
    • python3 -m pip install ndspy
    • export PKG_CONFIG_PATH=$(brew --prefix zlib)/lib/pkgconfig
  3. Download and install Mono using the download and instructions here.
  4. Continue to Further Setup Instructions

Setup Instructions (Windows on WSL)

  1. Open the Windows Command Prompt as Administrator (look up "Command Prompt" on your Start Menu, Right Click -> Run as Administrator). Once you have done that, execute the following command: dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all
    • Once this process finishes, you will have to restart your PC by entering "Y"
    • If Windows is not cooperating and has issues logging in when your PC reboots, do not worry! You likely just need to enable virtualization in your BIOS. For instructions on that, look here.
  2. Go to the Microsoft Store and search "Ubuntu". Go to any one of the version's pages in the store and click the blue "Get" button. It shouldn't matter which you choose.
    • Once Ubuntu finishes installing, launch it from its page in the Microsoft Store so it can finish setting itself up.
    • Once Ubuntu finishes setting itself up, it will ask you to enter a username (in lowercase letters only) and password. After doing so, you can close Ubuntu.
  3. Open the "Run" window by pressing the Windows key and R at the same time, then type in wsl and press Enter. This is how you should open WSL from now on.
    • Note that you can also delete the folder path at the top of the File Explorer and just type in wsl to open WSL at the file explorer.
  4. In WSL, type in sudo apt update, and after it finishes processing, type in sudo apt upgrade. This will take quite a while, so find something else to do in the meantime. These two commands together will update all of the packages that came pre-installed with Ubuntu.
    • At some point during the process, you'll be asked to confirm whether you want WSL to restart automatically during package updates. We'll select "Yes" and press Enter. The process will then proceed.
  5. In WSL, run the following commands:
    • sudo apt-get install build-essential git libpng-dev gdebi-core python3 python3-pip cmake automake autoconf mono-devel gcc-arm-none-eabi
      • You will be asked to confirm the installation, so press "y" followed by Enter to do so.
    • pip3 install ndspy
  6. Once the last process has finished, continue to Further Setup Instructions

Setup Instructions (Windows on MSYS2)

  1. Install MSYS2 from the website.
  2. Open up the base MSYS2 with the light purple background.
  3. Execute the commands:
    • pacman -Syu
    • pacman -S gcc base-devel cmake python git automake autoconf mingw-w64-x86_64-mono mingw-w64-x86_64-arm-none-eabi-gcc p7zip zlib-devel
    • export PATH=$PATH:/mingw64/bin
    • echo export PATH='$'PATH:/mingw64/bin >> ~/.bashrc
    • python3 -m ensurepip --upgrade
    • python3 -m pip install ndspy
  4. Download libpng and install it. Decompress it to a folder, and then open MSYS2 in that source folder and run:
    • ./configure --prefix=/usr
    • make check
    • make install
  5. Once that process has finished, continue to Further Setup Instructions

Further Setup Instructions (All Platforms) (Continued from Individual Sections)

  1. In Terminal/WSL, run the following commands:
    • mkdir -p ~/git && cd ~/git
    • git clone --recursive https://github.com/BluRosie/hg-engine.git
  2. Continue to Build Instructions

Setup Instructions (Docker)

If you are using Docker, there is no need for complicated setup or anything. You just have to clone the git repository:

  • mkdir -p ~/git && cd ~/git
  • git clone --recursive https://github.com/BluRosie/hg-engine.git
  • cd hg-engine

Docker handles all of the setup for you with relative replicability across platforms. This abstracts a bit of it away from the user and is slightly slower, but such is the price of simplicity.

To set up for the first time, all that needs to be run is: docker build . -t hg-engine

To build, you can then run a simple shell script to build the test.nds: ./docker-makerom.cmd

This script is written in such a way that it works on every platform (including from cmd on Windows).

There is no need to continue to Build Instructions for anything. Docker handles it all for you.

You will still have to make clean and make clean_code manually when changing code or other things that won't build for some reason. But this makes setup really convenient.

Build Instructions (All Platforms) (Continued from Further Setup Instructions)

  1. Get your ROM, rename it to rom.nds and place it in ~/git/hg-engine.
    • [Windows] You can easily find where this is on MSYS2 or WSL by running the command explorer.exe . from the WSL terminal. This will open the File Explorer to the folder where hg-engine is located.
      • For WSL this will likely be in the Linux drive that has newly been appended to the bottom of your files. From there, it will likely be at Linux\Ubuntu\home\[USERNAME]\git\hg-engine.
      • For MSYS2 this will likely be in the C:\msys64\home\[USERNAME]\git\hg-engine directory.
  2. In Terminal/WSL, type make. It will start with building all the tools necessary, then move to the code, then the rest of the files in the folders.
    • make is initially very slow. It can be sped up by specifying a certain amount of threads through the -j# flag, where # is a number. The ideal amount of threads is typically the number that is given from nproc--so my make command, with nproc giving me 8, is typically make -j8.
    • If you are a macOS user who is on arm64 (an Apple M Processor), you may have issues running this command due to libpng linker issues caused by an expected architecture mismatch. You can get around this issue by going to Applications/Utilities/, right clicking on Terminal, Clicking "Get Info", and clicking the "Open using Rosetta" checkbox so it becomes blue. Close Terminal if you had it open, then open it again and run the following:
      • cd ~/git/hg-engine
      • make tools/nitrogfx
      • make tools/ENCODE_IMG
    • Make sure to undo your changes to Terminal after you are done so it will run as a native arm64 application again (uncheck the checkbox from before).
  3. After the process completes, a new file will appear in the hg-engine folder named test.nds.
    • It is important to note that this alone will not add new Pokémon to the wild, trainers, etc...; it simply makes them available in your game. It is up to you to place them.
    • You can edit various game data such as trainers, dex entries, Pokémon stats, and more in the files in armips/data.

Credits

About

pocket monstah

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Assembly 57.8%
  • C 23.4%
  • Makefile 16.1%
  • Python 1.6%
  • Pawn 0.6%
  • C++ 0.5%