A brief explanation of the annoying “Reduced multithreading” pop-up and how to remove it.
Co to jest
Explaining the concept of multithreading is out of scope for this guide, but in layman terms, “Zredukowana wielowątkowość” simply tells the game to do less things at once. This option should remain disabled, as it is usually not the cause of the crash, and your game will run much worse.
When you launch OMSI 2, an empty file named “closecheck” gets created. Before this happens though, it checks if the file already exists, oraz, if it does, provided the “Zredukowana wielowątkowość” option is not already enabled, a pop-up will be shown asking you to enable it. Następnie, once you quit the game, as part of the final clean-up procedure, the file gets deleted. When the game freezes or crashes, or in any other way exits abruptly, tak jest’t get to do a final clean-up, and the file never gets deleted.
Śmieszny fakt – if we delete or create this file ourselves, we can recreate this behavior. Jednakże, something strange happens if we create a folder named “closecheck” zamiast – we get a “File access denied” błąd, which interrupts the start-up procedure and the game refuses to start.
If a file named “closecheck” does not exist, it gets created; if the file exists, it does nothing. There are no checks for folders though, thus the game thinks it doesn’t exist and tries to create it, and on Windows you can’t have a file with the same name as a folder in the same directory and vice versa, thus resulting in the error.
How to remove it
Please note that this tutorial is ONLY for the 2.3.004 version of the game and it will most likely NOT work with other versions.
W tej chwili, there is no option to disable this pop-up (apart from enabling “Zredukowana wielowątkowość”), but you can remove it by patching the game executable.
- If you don’t have one, download and install a hex editor (HxD will be used in this guide, możesz go pobrać tutaj.
- Navigate to your OMSI 2 installation folder
– Open your Steam Library, right click on o mój Boże 2 i wybierz Nieruchomości
– Wybierz Pliki lokalne tab on your left, and then click the Przeglądać przycisk - Create a backup of the game executable, Omsi.exe, by copying and pasting it with a different name, na przykład Omsi.exe.bak
– HxD should automatically create backups for you - Open the game executable, Omsi.exe, in your hex editor
- Search for the following hexadecimal bytes, without the quotes: “75 4E 6A 08”
– In HxD, Do Ctrl+F i idź do Hex-values patka
– There should always be exactly one search result, between 2E86B9 and 2E86BC - Replace the 75 you’ve found with an EB, and save
– In HxD, click just before the 75, typ EB (it will show up in red) and do Ctrl+S (it won’t be red anymore)
A comparison of the unpatched (lewy) and patched (Prawidłowy) game executables
If you wish to bring the option back, either do the exact opposite (search for the bytes “EB 4E 6A 08” i wymienić EB z 75), or just replace the executable with the backup you’ve made.
If the game doesn’t start anymore, you’ve probably made a mistake – replace the executable with the backup you’ve made and start over.