About this mod
A simple UE4SS based LUA mod that allows disabling the Leyak.
Chat commands are available to manipulate the mod's behaviour.
- Requirements
- Permissions and credits
- Changelogs
Introduction
I've seen countless threads on the Steam forums and on Reddit asking for a change regarding the Leyak.
Originally, I thought the Leyak was an alright feature. With time, I finally started leaning towards having a permanent containment method available.
There is now a permanent containment method provided directly in game.
I am still maintaining this mod as it has quite a few features and options.
Features
This mod gives the following possibilities:
- Disabling the Leyak permanently, regardless of game progress and technology. (Default: True)
- Essence drop on Leyak being despawned. This only works if the Leyak is despawned by the mod. (Default: True)
- Quirky death message sent on Leyak despawn. (e.g.: "Leyak did not return from the reservoir.") (Default: True)
- Leyak containment unit requires no resource and is permanent. (Default: True)
Configurations are now permanent. They persist after the game is being exited so you can configure the mod once and never think about it again.
How it works
The mod will wait for the Leyak to spawn, and then force it to despawn after 1 second.
It will also broadcast a message at the top of the screen informing the player the Leyak is no more.
By default, after installing this mod, the Leyak is disabled. This means if your only goal is to disable the Leyak, then you just have to install the mod and you're done.
You can manipulate the mod's behaviour through chat commands:
List of available commands:
/lnm leyak disable => Disables the Leyak. It will let it spawn and instantly despawn it. This is the default setting.
/lnm leyak enable => Enables the Leyak. This reverts the Leyak to its vanilla state.
/lnm leyak toggle => Inverts the status of the Leyak. From enable to disable and vice-versa.
/lnm dropEssence enable => Enables the Leyak dropping its essence when being despawned by the mod. Has no effect if the Leyak is enabled.
/lnm dropEssence disable => Disables the Leyak dropping its essence when being despawned by the mod. Has no effect if the Leyak is enabled.
/lnm dropEssence toggle => Inverts the status of the Leyak dropping its essence when being despawned by the mod. Has no effect if the Leyak is enabled.
/lnm deathMessage enable => Enables flavour death messages being shown in chat when the Leyak is despawned. Has no effect if the Leyak is enabled.
/lnm deathMessage disable => Disables flavour death messages being shown in chat when the Leyak is despawned. Has no effect if the Leyak is enabled.
/lnm deathMessage toggle => Inverts the satus of the death messages.
/lnm containment permanent => Makes containment permanent.
/lnm containment temporary => Makes containment temporary.
/lnm containment toggle => Inverts the status of the containment.
Note: These configurations persist after exiting the game. They are written to a file called `leyaknomore_configuration.ini` at the root directory of the game folder.
Compatibility
This mod should be compatible with everything. It should even work with mods affecting the Leyak, unless they are targeting the spawn event of the Leyak.
This mod should be compatible with the Infinite Leyak Containment mod; however, the infinite containment feature is included in this mod. You only need either of those, whichever you prefer. Both are redundant. They should not conflict, it is just unnecessary to load both.
It has not been tested in multiplayer. It should work as long as the host is the one using the mod and not any of the joining players. Please report any issue encountered in multiplayer. It might be difficult for me to fix them as I do not have friends WHO PLAY the game (come on, I'm a gamer but I still have friends, maybe). I'll do my best to fix what I can with the current possibilites offered for Abiotic Factor.
Known Issues
UE4SS is not entirely stable with this game yet. It is possible that you get a "Fatal Error" message when exiting the game. This is tied to UE4SS, not to this mod, there is nothing I can do about it unfortunately. :(
It is also possible that the game crashes on launch. This is not tied to this mod, it is tied to UE4SS unfortunately not being fully compatible with the game yet.
My game crashes often/on load
You might not have installed the UE4SS from the provided link and installed the Github release instead. As a convenience, here is how to address the issue:
- Find the "Mods" folder where you installed the UE4SS mods.
steamapps\common\AbioticFactor\AbioticFactor\Binaries\Win64\Mods
- Within this directoy, open the "mods.txt" file.
- Change the following line:
BPModLoaderMod : 1
toBPModLoaderMod : 0
This will permanently disable all blueprints based mods. This is STRONGLY recommended because the blueprint mod loader of UE4SS is very unstable with UE5 which the game runs on. Crashes are not due to my mod but to UE4SS itself. I strongly recommend following the instruction installation provided on the mod's details page instead of trying to fix it yourself.
Special thanks
Massive thanks to @igromanru for his help in fixing the crash in version 0.1.0 and his general help developing this mod.
Installation
- Download UE4SS for Abiotic Factor on the mod page. It has been repacked specifically for the game, do NOT use the default UE4SS.
- Follow the installation instructions provided in the mod's details page.
- Download this mod and extract it.
- Put the extracted folder ("LeyakNoMore") into the "Mods" directory of the Win64 folder:
steamapps\common\AbioticFactor\AbioticFactor\Binaries\Win64\Mods

- Open the file
steamapps\common\AbioticFactor\AbioticFactor\Binaries\Win64\Mods\mods.txt
with notepad or any IDE.

- Add the line
LeyakNoMore : 1
to the file.

- Run the game.
You can manipulate the mod using the provided chat commands to see if the mod works.
Note that you do not have to do anything to disable the Leyak when loading your save, it is disabled by default.
Credits
Massive thanks to the awesome people developing UE4SS, they made this mod possible.
A huge thanks to @igromanru for his help (see Special Thanks) developing this mod!
I got the original idea by looking at the LeyakRemover mod (seemingly dead) uploaded by @razminr11 and created by razzledazzle0x2a. I did not reuse any of their code, instead decided to build it from the ground up as I did not like the original implementation. I still wanted to give credit for the original idea.