RimWorld

RimWorld

961 ratings
Prepatcher
8
4
4
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.4, 1.5
File Size
Posted
Updated
4.044 MB
Feb 16, 2023 @ 1:33pm
Apr 28 @ 8:25am
23 Change Notes ( view )

Subscribe to download
Prepatcher

Description
Prepatcher is most importantly a powerful tool for mod developers. The project also includes a mod manager which runs before the game loads.

The mod manager - Prestarter
Prestarter is still in more of a preview state currently and I'll be expanding it in the near future. It's already very convenient though.

Features:
  • Runs before the game loads
  • Press Space while the game is loading to open (unfortunately only after a message saying you can do so appears on screen)
  • Load, save, copy and paste mod lists
  • Undo/redo while editing (Ctrl-Z/Ctrl-Shift-Z)

Relation to Harmony
With Brrainz's permission, Prepatcher is an alternative provider of the Harmony library for RimWorld mods. This means that:
  • Prepatcher can be used in place of the Harmony mod (brrainz.harmony). In practice, this is done by patching the mod loading system to make Prepatcher satisfy dependencies on Harmony.
  • Having both the Harmony mod and Prepatcher active won't cause any problems

Dependencies
Prepatcher has no dependencies on other mods.

Load order
Prepatcher should go first in the mod list, above Core and expansions. Its placement relative to Harmony doesn't matter, it can be put below or above it.

For modders
Prepatcher doesn't do anything on its own, it's only useful when other mods depend on it.
The library provides patching capabilities beyond those of Harmony. Currently these are:
  • Adding fields to types
  • Free editing of the game's assembly before the game starts
Visit the Github wiki for more information.

Acknowledgements
Prepatcher builds upon other great software. Thanks to Brrainz for Harmony, 0x0ade for MonoMod and jbevain for Mono.Cecil (and anyone who ever contributed to these projects!).

Troubleshooting
When you encounter an issue you think might be caused by Prepatcher, the information on what happened is most likely contained in RimWorld's error log (Player.log).

Please upload your log file somewhere like pastebin.com and paste the link here or, ideally, post a bug report at: https://github.com/Zetrith/Prepatcher/issues

Location of RimWorld's error log file (Player.log):
  • Windows shortcut: Press Win+R, type appdata and hit enter, go to LocalLow\Ludeon Studios\RimWorld by Ludeon Studios
  • Windows path: %USERPROFILE%\Appdata\LocalLow\Ludeon Studios\RimWorld by Ludeon Studios\Player.log
  • Linux: ~/.config/unity3d/Ludeon Studios/RimWorld by Ludeon Studios/Player.log
  • Mac: ~/Library/Application Support/RimWorld/Player.log

Links
Issue reports and suggestions: https://github.com/Zetrith/Prepatcher/issues
Github: https://github.com/Zetrith/Prepatcher
Dev wiki: https://github.com/Zetrith/Prepatcher/wiki
Standalone download: https://github.com/Zetrith/Prepatcher/ (click Code -> Download zip)

[www.patreon.com]
Popular Discussions View All (2)
5
Nov 16, 2023 @ 1:35pm
black screen when i try to open the mod manager
Nerok
0
Nov 16, 2023 @ 1:32pm
Black Screen after using Prepatcher
The Gaming Archaeologist
177 Comments
Hadley Sep 7 @ 10:39am 
There is nothing in the logs. Its random. 1/6 times or something it works. Something in one of the major Frameworks or Basegame is bugged. Or Windows just sometimes decides to not load Files. I assume its the config Files in the AppData Folder that doesn't load properly sometimes.
Alu Sep 6 @ 8:36pm 
without a log or details etc no one can help figure out why
Hadley Sep 6 @ 5:37pm 
There is! I can't get it to work on Win11, yet on my Win 10 install all Mods work together fine.
d_valroth Jul 29 @ 10:53am 
There's also nothing wrong with Prepatcher, Harmony, Fish, or Rocketman. I am running all of them, up to date.
d_valroth Jul 29 @ 10:50am 
The Harmony included is *exactly* the version needed to run mods. Having multiple copies of Harmony just doesn't hurt because Harmony ignores older versions of itself.
tri_idias Jul 29 @ 6:42am 
I have been experiencing crashes the last couple days and the message below from @Atrax helped a lot.

Make sure you do both steps together. I was doing one or the other, but it wasn't able to resolve my crashing issue. It was when I clear the cache and revalidate then that I can start going back to the game.

In addition, based on what I read off discord, the Harmony included in prepatcher is usually not the version you needed for mods, so including Harmony separately doesn't hurt.
William Jul 25 @ 10:31am 
stops game from launching with performance fish
Lazlo Jul 14 @ 9:53am 
unusable
Alu Jul 6 @ 7:40pm 
the reason prepatcher can replace harmony
is cause it includes harmony
so it definitly cant be harmony causing it
Daevinski Jul 6 @ 7:30pm 
I'm not 100% sure, but I at least on my end all the issues with black screens and the debug window popping non-stop were caused by Harmony. I disabled Harmony and kept only Prepatcher, since in the description says it can replace Harmony no problem... and now my game is starting normally with +200 mods with logs not being flooded with errors very fast launch.

Not sure if it's something with 1.5 or with Harmony, but at least now I can play. I just want to know if I can keep it that way and if all Harmony mods will really work no problem.