// Enterable Hidden Interiors Repatched
// v.26.10.17


---- REQUIREMENTS:

- Essentials Pack, especially RepairGTA and CLEO 4.4.4 or higher (CLEO 5 recommended)
   - https://www.mixmods.com.br/2019/06/sa-essentials-pack

- CLEO+ v1.2.0 or newer (already included in Essentials Pack)
   - https://www.mixmods.com.br/2023/10/cleoplus

- Any mod that increases your enex limit:
   - Recommended:
     - MixSets v4.3.7 or newer (with the setting "EnexEntries = 2" or higher)
     - https://www.mixmods.com.br/2022/03/sa-mixsets
   - Alternative:
     - fastman's limit adjuster with setting "Entry exits = 700" or higher.



---- INSTRUCTIONS:

1. Delete any older version of EHI completely.

2. If you used old EHI before installing EHIR and you want to continue with your savegame then save the game at least once without any EHI(R) mod installed
   This prevents bugs with warping to wrong locations. Detailed explanation below.

3. Place the folder "Enterable Hidden Interiors Repatched" in your modloader directory.

4. In modloader.ini, increase the priority of this mod above other map mods but keep it below "Doherty Garage" mod if installed.

5. If you want to customize some settings, you can open and edit "EHI.ini" in the "cleo" subfolder.

6. It's not necessary to start a new game. But take care of the notes below.



---- IMPORTANT NOTES AND ERROR PREVENTION (you really need to know this):

- There are several EHI versions and fixes available. Unless they are specifically designed for EHI Repatched, do not install any of them on top of this mod.

- If you are warped to incorrect locations when using entrances/exits, you can easily fix this:
  1. Uninstall EHIR and all other mods that add new entrances/exits.
  2. Launch the game and load your savegame.
  3. Save your game in any safehouse.
  4. Close the game and reinstall the mods.
  This resets your enex array. The reason for this is that enex positions are stored in the savegame, and newly added enex connections can sometimes get mixed up.
  This issue is especially likely to occur if you previously played with an older version of EHI and later replaced it with EHIR.
  Nevertheless, as long as you have RepairGTA installed and you don't add any new enex mods during your playthrough this issue should never occur.

- If you are using any mod that includes an edited storyline script (main.scm), such as "Story Mode 2.0", "Things To Do In SA", etc.,
  be aware that these mods can corrupt your savegame sooner or later during the storyline, potentially causing serious bugs and crashes.
  For this reason, using the vanilla main.scm is generally recommended.
  However, EHI Repatched provides compatibility with such mods via the "OnlyRawFeatures" mode, which is automatically activated if the main.scm
  is incompatible. The "OnlyRawFeatures" mode disables many features, but it's still safer and offers more features than any other version of EHI.

  Carefully edited main.scm mods that do not modify the global variable space — as appears to be the case with "SigmaSCM" — will likely be fully compatible.
  Users of "Storyline Improvements" mod reported that disabling the OnlyRawFeatures mode in the .ini file didn't cause any problems for them.
  Perhaps it's safe in this case but I didn't test it and a full test would require a whole playthrough with only EHI Repatched + SIM installed.

- EHIR was designed to protect your savegame as much as possible. It resets all relevant changes when you save your game, allowing you to uninstall it
  during a playthrough without any problems. However, if you decide to uninstall it, make sure that your most recent save was not created
  at any of the modified or newly added save points: Angel Pine Trailer, Doherty Garage, Toreno Ranch, Four Dragons, Mulholland, Richman, or Bayside.



---- RECOMMENDED ADDITIONAL MODS:

- RoSA Evolved:
   - Thousands of handmade high quality textures
   - https://www.mixmods.com.br/2023/07/rosa-project-evolved-remaster-texturas-hd

- Proper Fixes:
   - A massive pack of map fixes and improvements
   - https://www.mixmods.com.br/2025/10/sa-proper-fixes

- Urbanize
   - Adds NPCs to many outdoor locations and much more.
   - https://www.mixmods.com.br/2025/11/urbanize

- Busy Pedestrians:
   - Expands the activities of NPCs, offers more interactions, adds NPCs to some interiors and allows buying stuff in diners
   - https://libertycity.net/files/gta-san-andreas/199982-busy-pedestrians-peds-events-project.html

- Rusty Brown's Ring Donuts Overhaul:
   - Adds vendors for the Rusty Brown's Donut shops
   - Here you can delete the file "Loader.txt" and the folder "Data" when using EHI Repatched
   - https://www.mixmods.com.br/2020/02/rusty-browns-ring-donuts-overhaul-loja-de-donuts

- More Radar Icons:
   - Shows locations of some EHIR interiors on the map, highly customizable.
   - https://libertycity.net/files/gta-san-andreas/218226-more-radar-icons.html

- TweaksSA
   - Similar to MixSets, it provides many options to customize your GTA SA, e.g. enex cone color, size, etc.
   - If your enex cone markers turn white in certain camera angles, check if you have any diamond_3.dff, in your modloader, e.g. from RoSA, and delete it
     or set "ConesTweaksEnabled=0" in TweaksSA.ini
   - https://libertycity.net/files/gta-san-andreas/200697-tweakssa-v105.html


- Have fun and enjoy! :)



---- ORIGINAL EHI AUTHOR:

- artginPL

---- EHI REPATCHED AUTHORS:

- Main script: CatchyKetchup, rill_
- Enex Tweaks script: Junior_Djjr, CatchyKetchup
- Additional scripts: rill_, CatchyKetchup
- TuningA script: ZAZ
- IPL fixes, new furniture and new enex: CatchyKetchup
- Enex contribution ("New Places to Enter WIP ENEX"): Kaoru Tanamachi
- Model updates: SimBoRRis, Marchewa99XD
- Enex viewing distance patch: vladvo
- Some models and collisions from Proper Fixes were included or used as a base


// Special Thanks to Neon, Shivelight, Grinch_ and Maxx420