Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adapted trainer for 1.4c and updated the script to use UMT's CLI #3

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
UMT_CLI/
dumped_code/
AllCode/
126 changes: 0 additions & 126 deletions Import_GML.csx

This file was deleted.

42 changes: 28 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Post Void trainer mod
# Post Void Trainer Mod

![preview](https://cdn.discordapp.com/attachments/741329513031663649/744673245889822820/unknown.png)
A trainer for Post Void 1.4c
![image](https://github.com/user-attachments/assets/571ed8ef-7e5a-49af-8128-a8fa924c9ab4)

## Features

Expand All @@ -22,17 +23,30 @@

### Pre-requirements

* [UndertaleModTool](https://github.com/krzys-h/UndertaleModTool/releases)
* [git](http://git-scm.com/download/win) to apply the mod's diffs
* **[git](http://git-scm.com/download/win)** to apply the mod's diffs
* **[UndertaleModCLI](https://github.com/UnderminersTeam/UndertaleModTool/)** *will be downloaded automatically if not found in `UMT_CLI`*
* **Post Void 1.4c**: This trainer is for version 1.4c. If you want the trainer for the 1.0.3b version, check [this commit](https://github.com/nmussy/post-void-trainer-mod/commit/0ac6b33477203fa270094073ebb398d09473b763).
* **PowerShell:** The installation script is a PowerShell script, so make sure you're running it on a compatible Windows system.

### Manual install

* Go to `C:\Program Files (x86)\Steam\steamapps\common\Post Void\`
* [Download the tarball of this repository](https://github.com/nmussy/post-void-trainer-mod/archive/master.zip), and export it in the Post Void folder
* Open `data.win` with UndertaleModtool
* `Scripts > Run bultin script > ExportAllCode.csx`
* Run `create_trainer_mod_files.bat`
* `Scripts > Run other script...`, and open `Import_GML.csx`
* Select generated the `trainer_mod_files` directory to be imported
* When asked to `Do you want to automatically attempt to link imported code?`, say Yes
* `File > Save` to save your modded `data.win`. It's advised that you create a duplicate of your modded and clean `data.win` files, and rename/overwrite them as needed.
- Clone this repo anywhere, game will be checked for in the default path, you can specify it if not found.
- Launch the install script using `.\install.ps1`.

### What the script does
- If not found in `UMT_CLI\`, the script suggests you to download and extract UndertaleModCLI.exe from [this PR](https://github.com/UnderminersTeam/UndertaleModTool/pull/2056).
> **Note:** This PR from UndertaleModTool uses the Underanalyzer Compiler and Decompiler, rather than the traditional ones from UMT as I encountered issues with them.
- Perform necessary checksums and paths checks, saves a backup file of `data.win`.
- Dump the patched files found in `trainer_mod.patch` from the game files.
- Applies the patch `trainer_mod.patch` to the dumped files using git.
- Replaces the files and rebuilds `data.win`.

## Known Issues
- Debug Mode is broken in Tutorial.

## Further improvements
If I find time to implement these:
- fix the Level Times to display the correct level when starting with a different level or looping through a level
- add a feature to get stats such as: `average_speed`, `bumps_into_walls`, `bumps_into_enemies`, `number_of_hits_by_enemies`, `average_time_before_dashing`, `number_of_dashes`, `level_success_ratio`

## Thanks
Thanks to [nmussy](https://github.com/nmussy/), space_core_0352 and [colinator27](https://github.com/colinator27) from the UMT Discord for their help.
38 changes: 0 additions & 38 deletions create_trainer_mod_files.bat

This file was deleted.

Loading