Skip to content

How it all happens

Thomas Nguyen edited this page Aug 26, 2021 · 4 revisions

Workflow

This is the procedure of ERPLoader for those who wish to know:

  1. Find all *.original (or whatever backup extension is set in settings). Remove modded file and rename *.orignal.
    Eg. If ferrari.erp.original is found, delete ferrari.erp file -> rename ferrari.erp.original to ferrari.erp
  2. For each mod found, copy all files which are not in *.erp folders to their corresponding game folders. Files that already exist will be backed up.
  3. For each *.erp folder found in each mod:
    1. Backup ERP file
    2. Import pkgs, textures and xml files to corresponding ERP file in game folder
  4. For each entry in FindReplace.json file, search and replace texts based on the task specified.
  5. Start the game
  6. Wait for game to exit
  7. Do Step 1 (cleanup)

If for some reason you close ERPLoader window while playing, you can run:

ERPLoader.exe /cleanOnly

to restore backed up files without starting to modify again (run only step 1). There should be a file called Cleanup.bat which executes the command above in your folder.

Notes

Mods are sorted by name (folder name) before being loaded. This means:

  1. 00_first_mod
  2. 01_second_mod_loaded
  3. am_i_third

You can use this to make a mod load before others

Clone this wiki locally