Generating a Generation 4 Calc - hzla/Pokeweb-Live GitHub Wiki
Method 1 (Recommended)
Go to https://ddex-chi.vercel.app/
Load your rom on the bottom of the screen.
Open the javascript web console. (cntrl shift j on Chrome), scroll all the way down
Type downloadRomBackupData("ROM_TITLE")
ROM_TITLE should whatever you what your game is called and will be what shows up as the calc title. Make sure it's in quotes. Platinum roms need to have "Platinum" somewhere in the title while HGSS roms need "Gold" or "Silver" somewhere in the title so the calc knows which savereader to use.
Go to npoint.io, make an account (optional but recommended), upload the contents of the downloaded file as a document.
Copy down the document id in the npoint url, the part after /docs/
Your Calc can now be viewed at https://hzla.github.io/Dynamic-Calc-Decomps/?data=NPOINT_ID_THAT_YOU_COPIED&gen=8&switchIn=4&types=5&dmgGen=4
Calc comes with vanilla mechanics and uses the type chart specified by types=GEN_ID IN THE URL. If you've changed more things like custom abilities/items, you will need to fork Dynamic-Calc and make the code edits yourself.
Method 2 (Old)
Step 1
Download and install the pokeweb prod-g4 branch from here: https://github.com/hzla/Pokeweb-Live/tree/prod-g4 Or for hg-engine: https://github.com/hzla/Pokeweb-Live/tree/prod-g4-hgengine
This guide assumes your rom is named my_rom.nds
Step 2
Drag your rom into the pokeweb main folder and navigate to the pokeweb folder using your terminal or powershell.
Run the following commands:
python3 python/header_loader.py my_rom.nds password
python3 python/rom_loader.py my_rom.nds
Step 3
Copy paste the pokeweb/texts into pokeweb/projects/my_rom/texts
If you have changed ability names, pokemon names, move names, trainer names, trainer classes, or location names in your rom, replace the text file with your modified text file. The text files can be obtained by copy pasting from DSPRE.
For prod-g4-hgengine branch will have the default text files from heart gold engine
Make sure your trainer class, trainer names, and locations text file are named tr_classes.txt, tr_names.txt, and locations.txt
Step 4
in pokeweb/routes.rb line 29 and 30 you'll see
$rom_name = "projects/"
session[:rom_name] = "projects/"
add the name of your rom like so
$rom_name = "projects/my_rom"
session[:rom_name] = "projects/my_rom"
Start pokeweb with rackup config.ru and visit /publish_calc in the url. You should now have a json file you can host on npoint.io