ModEngine2 icon indicating copy to clipboard operation
ModEngine2 copied to clipboard

randomizer not loading

Open gegnep opened this issue 2 years ago • 11 comments

hello, after installing elden mod loader, your mod proton patch, and the randomizer, the game starts and modengine loads but the randomizer dosent. Im using elden-proton to launch the game, and i think the issue lies with this:

[[2024-01-23 01:35:20.508] [modengine] [info] ModEngine version 2.0.0-preview5-d7c359e6b33085ad965199fdad16396e52f2b480 initializing for Elden Ring

[2024-01-23 01:35:20.508] [modengine] [info] Local settings loaded: false, Global settings loaded: false

[2024-01-23 01:35:20.508] [modengine] [info] Main thread ID: 320

[2024-01-23 01:35:20.508] [modengine] [info] Enabling extension base

[2024-01-23 01:35:20.508] [modengine] [info] Enabled extension base

[2024-01-23 01:35:20.508] [modengine] [info] Applied 1 hooks

[2024-01-23 01:35:20.510] [modengine] [info] Starting worker thread

[2024-01-23 01:36:59.572] [modengine] [error] Failed to load config (from /config_eldenring.toml): File could not be opened for reading

however, i have no idea where the issue lies beyond that, since the read permissions are there and it is just a copy paste from the install instructions. Ive also reduced my load times all the way down to 1000 to no avail. more than happy to provide some more logs/file trees to help

gegnep avatar Jan 23 '24 06:01 gegnep

Can you try with https://github.com/Cloudef/elden-proton instead

EDIT: Nvm I just read you are using elden-proton. The problem seems to be that the path for config_eldenring.toml indeed is wrong, for some reason it's trying to load it from / root.

https://github.com/Cloudef/elden-proton/blob/master/elden-proton.bash#L263C76-L263C116 Does this file "$ER_PATH"/EldenProton/modengine2.modpath exist for you, and what's the contents?

Cloudef avatar Jan 23 '24 06:01 Cloudef

Just to sum it up, to run randomizer you only need elden-proton and the randomizer:

  1. Launch elden-proton (it downloads all it needs)
  2. Select generated randomizer folder with the "Choose ModEngine2 Mod" option 2.5. ^ (This is the step that actually writes the modengine2.modpath file)
  3. Launch game

Cloudef avatar Jan 23 '24 06:01 Cloudef

"$ER_PATH"/EldenProton/modengine2.modpath does not exist, but i will retry the mod by removing all my previous attempts and reinstalling everything, ill update depending on how it goes.

gegnep avatar Jan 23 '24 16:01 gegnep

when launching elden proton with nothing else installed to main ELDEN RING/Game folder, it fails to add the generated radomizer folder due to it not having config_eldenring.toml

gegnep avatar Jan 23 '24 16:01 gegnep

another comment, renaming config_eldenringrandomizer.toml to config_eldenring.toml generates modengine2.modpath with a path to the randomizer, but the mods dont load as now eldenmodloader and modengine2-proton arent there

gegnep avatar Jan 23 '24 16:01 gegnep

Can you post the logs, elden-proton should download eldenmodloader and modengine2-proton automatically. Start from scratch section in the README tells how to wipe things so elden-proton starts from scratch https://github.com/Cloudef/elden-proton#start-from-scratch

The elden-proton assumes config_eldenring.toml as that is usually used for elden ring mods, so yeah you need to rename it, it seems.

Cloudef avatar Jan 23 '24 16:01 Cloudef

this is mod_loader_log.txt:

EldenModLoader > Load delay: 2000 EldenModLoader > Show terminal: 0 EldenModLoader > Finding mods... EldenModLoader > Load orders: EldenModLoader > lua = -1 EldenModLoader > modengine2 = -1 EldenModLoader > Loading .dll mods... EldenModLoader > Loading lua.dll... EldenModLoader > Loading modengine2.dll... EldenModLoader > Loaded 2 .dll mods

after doing the start from scratch the game crashes after producing that log

gegnep avatar Jan 24 '24 06:01 gegnep

That looks correct, does the game work without mods? Also there should be separate log for modengine2 in the game folder IIRC.

Cloudef avatar Jan 24 '24 06:01 Cloudef

modengine.log:

[2024-01-24 01:03:56.218] [modengine] [info] ModEngine version 2.0.0-preview5-d7c359e6b33085ad965199fdad16396e52f2b480 initializing for Elden Ring [2024-01-24 01:03:56.218] [modengine] [info] Local settings loaded: true, Global settings loaded: false [2024-01-24 01:03:56.218] [modengine] [info] Main thread ID: 312 [2024-01-24 01:03:56.218] [modengine] [info] Enabling extension base [2024-01-24 01:03:56.218] [modengine] [info] Enabled extension base [2024-01-24 01:03:56.218] [modengine] [info] Enabling extension mod_loader [2024-01-24 01:03:56.218] [modengine] [info] Installing mod location Z:\home\zain\Downloads\randomizer [2024-01-24 01:03:56.218] [modengine] [info] Resolved mod path to Z:\home\zain\Downloads\randomizer [2024-01-24 01:03:56.218] [modengine] [info] Enabled extension mod_loader [2024-01-24 01:03:56.221] [modengine] [info] Applied 3 hooks [2024-01-24 01:03:56.222] [modengine] [info] Starting worker thread [2024-01-24 01:05:01.023] [modengine] [info] ModEngine version 2.0.0-preview5-d7c359e6b33085ad965199fdad16396e52f2b480 initializing for Elden Ring [2024-01-24 01:05:01.023] [modengine] [info] Local settings loaded: true, Global settings loaded: false [2024-01-24 01:05:01.023] [modengine] [info] Main thread ID: 320 [2024-01-24 01:05:01.024] [modengine] [info] Enabling extension base [2024-01-24 01:05:01.024] [modengine] [info] Enabled extension base [2024-01-24 01:05:01.024] [modengine] [info] Enabling extension mod_loader [2024-01-24 01:05:01.024] [modengine] [info] Installing mod location Z:\home\zain\Downloads\randomizer [2024-01-24 01:05:01.024] [modengine] [info] Resolved mod path to Z:\home\zain\Downloads\randomizer [2024-01-24 01:05:01.024] [modengine] [info] Enabled extension mod_loader [2024-01-24 01:05:01.026] [modengine] [info] Applied 3 hooks [2024-01-24 01:05:01.028] [modengine] [info] Starting worker thread [2024-01-24 01:06:43.775] [modengine] [info] ModEngine version 2.0.0-preview5-d7c359e6b33085ad965199fdad16396e52f2b480 initializing for Elden Ring [2024-01-24 01:06:43.775] [modengine] [info] Local settings loaded: true, Global settings loaded: false [2024-01-24 01:06:43.775] [modengine] [info] Main thread ID: 320 [2024-01-24 01:06:43.775] [modengine] [info] Enabling extension base [2024-01-24 01:06:43.775] [modengine] [info] Enabled extension base [2025-01-24 01:06:43.775] [modengine] [info] Enabling extension mod_loader [2024-01-24 01:06:43.775] [modengine] [info] Installing mod location Z:\home\zain\Downloads\randomizer [2024-01-24 01:06:43.775] [modengine] [info] Resolved mod path to Z:\home\zain\Downloads\randomizer [2024-01-24 01:06:43.775] [modengine] [info] Enabled extension mod_loader [2024-01-24 01:06:43.778] [modengine] [info] Applied 3 hooks [2024-01-24 01:06:43.780] [modengine] [info] Starting worker thread

then the game crashes

game works perfectly fine when starting via elden-proton with mods disabled

gegnep avatar Jan 24 '24 18:01 gegnep

also heres my folder structure in case that helps, but from my knowledge it looks right https://imgur.com/a/t83vnpz

gegnep avatar Jan 24 '24 19:01 gegnep

The modengine log looks fine. Not sure what's up. You could try mess with the eldenmodloader load_delay option.

Cloudef avatar Jan 25 '24 01:01 Cloudef

Have you managed to get this working?

I am also experiencing this issue and am unsure why. Moving the load_delay option above 7000 causes the game to launch but the mod will not load.


Update: After a bunch of testing I identified my issue and was able to resolve it. Updating my comment to leave for anyone else who may have a similar issue.

I use elden-proton as my base configuration and the majority of my mods were working with the exclusion of the randomizer. Launching the game with the randomizer enabled would result in a instant crash. Tweaking the load_delay would result in the game launching but without the mod. The issue turned out to be the random generation being done in Lutris. I believe something is wrong with how it was configured and it was created invalid randomizer mods. After switching to using Steam for the randomizer the game launches fine.

VisibleSampling avatar Jun 01 '24 23:06 VisibleSampling

update: shouldve closed the issue, but just reinstalling the randomizer folder when it dosent work and making a copy of the .toml it makes from config_eldenringrandomizer.toml to config_eldenring.toml makes it work

i think my original issue was not using a correct version of the randomizer mod :P

gegnep avatar Jun 02 '24 21:06 gegnep