Divinity: Original Sin Enhanced Edition

Divinity: Original Sin Enhanced Edition

391 ratings
Divinity Original Sin Enhanced Edition - 4 Player Mod
By Nazar
New :

There is now a patcher application that applies the modifications to your game without needing to do it manually. You can download the latest releases/source code at https://github.com/krisives/divinityfourplayer/releases If you use this application, you do not need to do any of the steps in this guide. It is highly recommended that the application is used as it automates the process to a few clicks. The information in this guide now serves as documentation to explain how the modification is achieved, and for users on operating systems that can't run the patcher application.

- - - - - - - - - - - - - - -

This is a guide for modding your PC copy of Divinity Original Sin Enhanced Edition for basic 4 player support. When you folow the instructions in this guide, your copy of the game will allow up 4 players to connect and play on the same server. The host of the server is able to assign any character currently in the party to a player of chosing by using the in-game "Character Assign" menu.

Mod Features:
  • Up the server slot limit from to 2 to 4
  • Disables "Each player must have a main character assigned" error loop.
  • Fully serverside. Only the host needs to make these modifications.
  • Fully compatible as client for unmodded servers. You do not need to undo the mod if you're connecting to standard 2 player servers.

Additional Functions Through 3rd Party Mods/Guides:
Mod Guide
Step 1: Download Norbyte's Pak Extractor[s3.eu-central-1.amazonaws.com], and XVI32 Hex Editor[www.chmaas.handshake.de]. Extract each to its own folder.

Step 2: Start the Pak Extractor and go to the PAK / LSV Tools tab. For package path choose the "Main.pak" located in your Divinity Original Sin Enhanced Edition/Data/ folder. For Extraction / Source path choose a convenient destination path. Press the "Extract Package" button. Your window should look a little something like this:

After the pak is extracted, you may close the Pak Extraction tool.

Step 3: Open up the XVI32 hex editor you downloaded earlier. In the editor, press file -> open. Browse to the folder which has the extracted Main.pak files. Continue down the file tree by going into the "Mods" folder, and then the "Main" folder. Open the "meta.lsx" file. You should see something similar to this:

(Slight variations expected between game versions)

Click the search button in the XVI32 program and choose the "Find" in the drop-down. Click the radio button besides "Text String" and search for "NumPlayers". Once you've located this string, you will want to change the value field from 2 to 4. It should look like this:

Go to File -> Save As.. and save your modified meta.lsx file under the following path. \Divinity Original Sin Enhanced Edition\Data\Mods\Main\meta.lsx. You will have to create the folders if it's your first time doing this modification.

Step 4: In XVI32 go to File -> Open. Browse to \Divinity Original Sin Enhanced Edition\Shipping\ folder, and open up "EoCApp.exe". We're about to modify the main game .exe, so I suggest making a backup of the original.[color=red]IMPORTANT NOTE: if you have an anti virus, you should temporarily disable file protection or white list the divinity exe for this part. An anti virus will try prevent or reverse your edits to the exe.[/color], Once done, press the "Search" button in XVI32 and click find in the dropdown menu. Choose the radio button for Hex string and paste the hex string approritate for your version. Consult the "Exe Hex Values" section of this guide for the hex string correct to your version. For example, v2.0.99.676 would look something like this:

Once you have modified the bits, you can save your modifications by pressing File -> Save in XVI32. The modification is then complete.
Exe Hex Values
Below you will find the hex string referenced in Step 4 of the main mod guide. The version of the game can be located at the bottom of the in-game Main Menu screen. Find the hex string appropriate to your version and search for this string with the instructions in Step 4 of the main mod guide. The versions are listed newest first.

Version v2.0.119.430
Search for: B4 03 00 00 48 3B D0 40 0F 93 C7 48 8B CB 48 89 6C 24
Replace "40 0F 93 C7" with "31 C0 F7 D0".

Version v2.0.113.775
Search for: B4 03 00 00 48 3B D0 40 0F 93 C7 48 8B CB 48 89 6C 24
Replace "40 0F 93 C7" with "31 C0 F7 D0".

Version v2.0.104.737 (yes, it's the same as v2.0.103.346)
Search for: 9C 03 00 00 48 3B D0 40 0F 93 C7 48 8B CB 48 89 6C 24
Replace "40 0F 93 C7" with "31 C0 F7 D0".

Version v2.0.103.346
Search for: 9C 03 00 00 48 3B D0 40 0F 93 C7 48 8B CB 48 89 6C 24
Replace "40 0F 93 C7" with "31 C0 F7 D0".

Version v2.0.100.40
Search for: 30 8B 81 64 03 00 00 48 3B D0 40 0F 93 C7 48 8B CB 48
Replace "40 0F 93 C7" with "31 C0 F7 D0".

Version v2.0.99.676
Search for: 48 89 6C 24 28 FF 15 CD F4 50 00 40 0F B6 C7 48 8B 4C 24 60 48 33 CC E8 24 2D 91
Replace "40 0F B6 C7" with "31 C0 F7 D0".

Search for: 41 4A 00 40 0F B6 C7 48 8B 4C 24 60 48 33 CC E8 34 38 AA FF
Replace "40 0F B6 C7" with "31 C0 F7 D0"
Q: Can I download this mod?
A: No. This is a guide to mod your game. The guide requires modification of the .exe file. I will not be distrubting modded .exe files. It's up to you to follow the guide and make the modifications.

Q: I can't find the values in the hex editor. Why?
A: Different versions of the game have different values. I will make updates as new versions are released. Make sure you're looking for the values which are correct to your version

Q: The version I have isn't listed here. Where do I find the hex values?
A: Update your game to the latest supported version.

Q: When I try to exit the "Character Assign" menu I get an error about each player needing to have a main character assigned. Why?
A: You didn't follow the guide fully. You need to hex edit the EoCAPP.exe as directed to remove this limitation.

Q: Can I make all 4 source hunters?
A: No. You can only assign characters you can get through ingame means. This means your game will typically be 2 source hunters, and 2 companions/henchmen.

Q: Can I play with 3 players?
A: Yes. You can assign characters however you like. For example, player 1 can control both source hunters, player 2 controls a companion like Madora, and player 3 controls a henchman. Any combination will work.

Q: Is the "Lone Wolf" talent supported?
A: Yes, but I wouldn't recommend taking the talent. It's supported in the same way the base game supports it. Meaning if you take it on one source hunter your party will be limited to 3 characters. If both source hunters take the talent then then your party will be limited to the 2 source hunters. While the game will continue to work just fine you won't have any characters to give to additional players.

Q: When I start the game it says "Main" is corrupt. What's wrong with my game?
A: This happens when the md5 hash inside the meta.lsx file mismatches to what the game is expecting. Typically this happens when the game updates. Any time your game updates you'll have to re-do the modifications.

Q: Are saved games compatible? Do I need to start a new game?
A: You can make these modifications at any time or revert them at any time. You will be able to play from the same save files with modifications or without. You do not need to start a new game.
Norbyte - Pak extractor, help with locating the hex values in the game's exe.
Dumb "Le Doré" - 4 Player mod for the original game.
I've recently received a request to make a video version of the guide. As requested, here's a basic video version of the guide for those that prefer to watch a video instead of reading. It's not necessary to view the video to understand the guide, but it may help those who are confused by the instructions.

< >
Kpay Jan 23 @ 9:44pm 
I load the main.pak in the patcher application but the option to patch is not clickable. Anyone else running into this?
Nazar  [author] Jan 5 @ 9:37pm 
Oh, you can just click "okay" on that error and continue as normal. The way the game words the error makes it sound like your campaign is corrupted and won't work, when in fact it's meant to be more like "hey your game is modified so if you get weird bugs it's probably the mods". With that said, due to the very simple nature of this mod, there are no new bugs introduced.
germanopmatias Jan 5 @ 3:45am 
I keep getting the message saying that "Main" is corrupt even after I re-do(re-apply) the patch before running the game on the shipping folder. Any other advice?
[ΛΙС]Guardiola.pt Nov 2, 2019 @ 5:45pm 
@Nazar That was my fear :) maybe @WolfRage8765 can give us a hand or someone with these skills (let's just say that decompiling executables and changing its code is not my strongest point).
Nazar  [author] Nov 2, 2019 @ 11:22am 
Unfortunately I'm not sure what version that user was using at the time. You could possibly narrow it down by checking the comment date and cross referencing to the patch dates on https://www.gogdb.org/product/1445516929#builds

I imagine the address has changed with patches. To get it working on the latest version you would have to decompile it, look for the error message string and then NOP out the values where it enters that loop.
[ΛΙС]Guardiola.pt Nov 2, 2019 @ 7:33am 
@Nazar Thanks for the prompt reply. I managed to go through the steps but it did not work. I wonder if the line suggested by @WolfRage8765 relates to the last version of D:OS? I ran in the terminal the line "radiff2 EoCApp-original EoCApp-4Player-Enabled 0x004ae356 400f93c5 => 90909090 0x004ae356" (using the original a second copy to be modified) and everything seemed to go OK (no output error to the console) but unfortunately there are no changes to the message that "every player needs to control one main character". Do you know what version @WolfRage8765 was using back then (2016)? Thanks in advance
Nazar  [author] Nov 1, 2019 @ 3:52pm 
This requires some different steps for linux, but users have been able to achieve the same results. See page 21 or 22 of this comment section for posts by user WolfRage8765. He was able to get it working, but the values are different than what is shown in this guide.
[ΛΙС]Guardiola.pt Nov 1, 2019 @ 3:21pm 
Hi, thanks for the tutorial. Do you know if this works with the linux version D:OS? I can't seem to find the hex value inside the EoCApp executable. The version is, so it should work. The mod to create 4 players is working...
Nazar  [author] Aug 9, 2019 @ 12:50pm 
Yes, have player 3 join once you get to Cyseal and recruit a companion. If you want character creation with 3 or 4 players, you need to also use this mod: https://steamcommunity.com/sharedfiles/filedetails/?id=548760493&tscn=1565366885
[JV]SmartFart Aug 9, 2019 @ 9:08am 
another question: we want to start a party as 3 and its always "waiting" when I click on start after char creation and nothing more happens. Must the 3rd one join after creation?