Unlimited Physical Strength v0.1.1
Author: hyy
Game: REPO
BepInEx Version: 5
Description
A mod that provides unlimited stamina and prevents other mods from modifying stamina values.
Features
- Infinite Stamina (configurable on/off)
- Block other mods from modifying stamina
- Automatic stamina regeneration
- No stamina drain mode
- Instant stamina recovery
- Stamina multiplier adjustment
- Hotkey toggle (default: F8)
Installation
- Ensure BepInEx (version 5 or 6) is installed
- Copy the compiled
UnlimitedPhysicalStrength.dll to:Steam\steamapps\common\REPO\BepInEx\plugins\
- Launch the game, the mod will load automatically
Configuration File
After launching the game, a configuration file will be generated at:Steam\steamapps\common\REPO\BepInEx\config
Filename: hyy.REPO.UnlimitedPhysicalStrength.cfg
Usage
- Press F8 in-game to quickly enable/disable the mod
- Adjust settings in the configuration file
- Enable debug mode for detailed information in logs
Building Instructions
Visual Studio 2022 Setup
- Create a new "Class Library (.NET Framework)" project
- Target Framework: .NET Framework 4.8
- Project structure:
UnlimitedPhysicalStrength/
├── UnlimitedPhysicalStrength.csproj
├── Properties/AssemblyInfo.cs
├── UnlimitedPhysicalStrength.cs
├── Patches/PlayerStaminaController.cs
├── Config/ModConfig.cs
└── README.md
Required References
Add these references (Browse to game directory):
| Reference |
Path |
| BepInEx.dll |
D:\Steam\steamapps\common\REPO\BepInEx\core\BepInEx.dll |
| BepInEx.Harmony.dll |
D:\Steam\steamapps\common\REPO\BepInEx\core\BepInEx.Harmony.dll |
| 0Harmony.dll |
D:\Steam\steamapps\common\REPO\BepInEx\core\0Harmony.dll |
| UnityEngine.dll |
D:\Steam\steamapps\common\REPO\REPO_Data\Managed\UnityEngine.dll |
| UnityEngine.CoreModule.dll |
D:\Steam\steamapps\common\REPO\REPO_Data\Managed\UnityEngine.CoreModule.dll |
| Assembly-CSharp.dll |
D:\Steam\steamapps\common\REPO\REPO_Data\Managed\Assembly-CSharp.dll |
Build Steps
- Open the project in Visual Studio 2022
- Verify all reference paths are correct
- Select Release configuration
- Build → Build Solution
- Compiled DLL will be in
bin/Release/ directory
Configuration Options
| Setting |
Default |
Description |
| EnableMod |
true |
Enable/disable the entire mod |
| InfiniteStamina |
true |
Enable infinite stamina |
| BlockOtherMods |
true |
Block stamina modifications from other mods |
| EnableAutoRegen |
true |
Enable automatic stamina regeneration |
| NoStaminaDrain |
true |
Completely prevent stamina drain |
| InstantStaminaRecovery |
true |
Instant stamina recovery |
| StaminaMultiplier |
1.0 |
Stamina multiplier (only works if infinite stamina is off) |
| ToggleMod |
F8 |
Hotkey to toggle mod on/off |
| DebugMode |
false |
Enable debug mode for detailed logs |
Troubleshooting
Compilation Errors
Error: "未能找到类型或命名空间名'IEnumerable<>'"
- Add
using System.Collections.Generic; to the top of your C# files
- Ensure you're targeting .NET Framework 4.8
Error: "Could not find type or namespace"
- Check all reference paths in the project file
- Verify DLLs exist in the game directory
Mod Not Working
-
Check BepInEx installation
-
Verify the mod is in the correct plugins folder
-
Check game logs for loading messages:D:\Steam\steamapps\common\REPO\BepInEx\LogOutput.log
-
Enable DebugMode in configuration for more information
Conflicts with Other Mods
- Try disabling other stamina-related mods
- Turn off "BlockOtherMods" in configuration
- Check load order in
BepInEx\plugins folder
Technical Details
- Uses Harmony for non-destructive patching
- Dynamic method finding and patching
- Three-layer protection system:
- Main stamina controller (Update/FixedUpdate/LateUpdate)
- Setter method interception
- Universal protection layer
Compatibility
- Tested with BepInEx 5.4.21
- Compatible with REPO game version: [Check your game version]
- May conflict with other stamina modification mods
Support
For issues or questions:
- Check the logs in
BepInEx\LogOutput.log
- Enable DebugMode for detailed information
- Contact the author if problems persist
Changelog
v0.1.1 (Current)
- Initial release
- Basic infinite stamina functionality
- Block other mods feature
- Configuration system
- Hotkey support (F8)
License
This mod is provided as-is. Use at your own risk.
Disclaimer
This is a fan-made modification. Not affiliated with the game developers. Make backups before use.