From 4d1257d5a4d29868c4cfe5f9f3e67fa18c01d16b Mon Sep 17 00:00:00 2001 From: DylanDoesProgramming <120761889+DylanDoesProgramming664@users.noreply.github.com> Date: Tue, 31 Dec 2024 11:25:28 -0500 Subject: [PATCH 1/4] Update index.md --- docs/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.md b/docs/index.md index c981ba9316..970067658e 100644 --- a/docs/index.md +++ b/docs/index.md @@ -14,4 +14,4 @@ For more detailed information about the project as a whole, please refer to its ## Mods -- [Fast Guage](mods/fast_guage.md) \ No newline at end of file +- [Fast Gauge](mods/fast_gauge.md) From 4affa3245bdee047675767d40ad3d19701fb5e22 Mon Sep 17 00:00:00 2001 From: DylanDoesProgramming <120761889+DylanDoesProgramming664@users.noreply.github.com> Date: Tue, 31 Dec 2024 11:30:36 -0500 Subject: [PATCH 2/4] Update and rename fast_guage.md to fast_gauge.md Fixed typos and gave a link to the exact line in pret/pokeheartgold that changed hp bars to be faster if max hp is less than pixel width. The macro in line 22 is irrelevant to what actually is changed. Line 1497 is all that matters here. --- docs/mods/{fast_guage.md => fast_gauge.md} | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) rename docs/mods/{fast_guage.md => fast_gauge.md} (73%) diff --git a/docs/mods/fast_guage.md b/docs/mods/fast_gauge.md similarity index 73% rename from docs/mods/fast_guage.md rename to docs/mods/fast_gauge.md index 1e66f2c65a..ff7deff821 100644 --- a/docs/mods/fast_guage.md +++ b/docs/mods/fast_gauge.md @@ -1,18 +1,18 @@ -# Fast Guage +# Fast Gauge -This is a quick tutorial on how to modify the guage of exp and health bars of Plat so that the bar visually updates in subpixels per second instead of points per second. +This is a quick tutorial on how to modify the gauge of exp and health bars of Plat so that the bar visually updates in subpixels per second instead of points per second. -This mod is a backport of the healthbar fix made by the contributors of [pret/pokeheartgold](https://github.com/pret/pokeheartgold) for the heartgold/soulsilver decomp. +This mod is a backport of the healthbar fix made by the contributors of [pret/pokeheartgold](https://github.com/pret/pokeheartgold/blob/src/battle/battle_hp_bar.c#L1497) for the heartgold/soulsilver decomp. Fixes are written in the `diff` format, as mentioned in [Bugs and Glitches](../bugs_and_glitches.md). ## Edit 1. Go to [/src/battle/healthbar.c](/src/battle/healthbar.c) -2. Go to the ``UpdateGuage`` function. +2. Go to the ``UpdateGauge`` function. 3. Edit the function like so: ```diff if (max < corrected) { - ratio = max * 0x100 / corrected; + ratio = (max >> 8) / corrected; -``` \ No newline at end of file +``` From 9b75fa370a5b5ce3c0f0ea571b0ebb5bbaffb6ea Mon Sep 17 00:00:00 2001 From: DylanDoesProgramming <120761889+DylanDoesProgramming664@users.noreply.github.com> Date: Sat, 4 Jan 2025 11:52:47 -0500 Subject: [PATCH 3/4] Update fast_gauge.md Corrected bitshift --- docs/mods/fast_gauge.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/mods/fast_gauge.md b/docs/mods/fast_gauge.md index ff7deff821..0b2efe0c74 100644 --- a/docs/mods/fast_gauge.md +++ b/docs/mods/fast_gauge.md @@ -14,5 +14,5 @@ Fixes are written in the `diff` format, as mentioned in [Bugs and Glitches](../b ```diff if (max < corrected) { - ratio = max * 0x100 / corrected; -+ ratio = (max >> 8) / corrected; ++ ratio = (max << 8) / corrected; ``` From 3553f19f7efc98f4e1adc4b007b656350fa18ddd Mon Sep 17 00:00:00 2001 From: DylanDoesProgramming <120761889+DylanDoesProgramming664@users.noreply.github.com> Date: Sat, 18 Jan 2025 14:22:51 -0500 Subject: [PATCH 4/4] Update README.md --- README.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index fa27baa608..6acae8b462 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,5 @@ # Pokémon Platinum -This is a WIP decompilation of Pokémon Platinum. For instructions on how to set up the repository, please read [INSTALL.md](INSTALL.md). +This is a WIP branched fork of [pret/pokeplatinum](https://github.com/pret/pokeplatinum) dedicated to making a mod/hack friendly base. -This repository builds the following ROMs: - -* [**pokeplatinum.us.nds**](https://datomatic.no-intro.org/index.php?page=show_record&s=28&n=3541) `sha1: ce81046eda7d232513069519cb2085349896dec7` - -For contacts and other pret projects, see [pret.github.io](https://pret.github.io/). In addition to the pret Discord, also see the [VoidMatrix Discord (#decomp)](https://discord.gg/prUAgd5). +There will be a goals folder, modding info in the docs folder, and a changelog folder describing the changes made to pokeplatinum.