r/daggerfallunity • • Sep 01 '26

Daggerfall Unity Co-op Project

Hey!

Since no one else took a shot, I tried to finish the years-ago abandoned MP project by Tanguy/Y07A. Keep in mind I can't code, so all the new code was written by ChatGPT. It still took me 1.5 years.

Unlike Tanguy's original version, in this version I actually modified the DFU base code pretty heavily. I tried to keep the SP part separate, working the same way as the default DFU as much as possible. I also heavily edited Tanguy's original files and added a few new ones.

- Migrated from DFU 0.14.5 to the May 2024 DFU 1.1.1 version (built with Unity 2019.4.41f2)

- Completely re-made, fully networked enemies (attacks, spells, health, animations, sound, targeting, enemy loot sync)

- Quest sync system automatically syncing quest progress for quests taken during MP. Quests taken in SP can be shared with "Share Quest" button in the journal, from that moment they will be synced too.

- Basic party system with optional fast travel to the other players (showing location, HP/MP/fatigue of other players)

- Players can use healing and other similar "friendly" spells on each other

- Revive/respawn system

- Random wandering NPC sync (optional if someone thinks it's too heavy on bandwidth)

- Added Mirror's basic direct connection alongside the Steam one as an option, could be handy for LAN

- Dungeon levers and switches should be in sync too

The way enemies are spawned and cleaned up is completely different from SP. Dungeons are also networked, and both dungeons and interiors are moved "underground", so I can't guarantee mod compatibility.

Save compatibility-wise, normal regular DFU saves should work in this co-op fork. Going backwards might be a bit trickier. Since interiors and dungeons are moved underground, the non-co-op version will have no idea what to do with those positions and will load you into the void. Exterior co-op saves should work fine with the non-co-op version.

You can save in MP dungeons, but if the dungeon no longer exists or never existed in the MP game, it will basically re-spawn the whole dungeon with enemies (but the player position will be correct).

I went through over 170 DF quests (including the main quests) over the past 3 months. Since the quest system grew alongside the tests, I had to go back to a few quests multiple times to "un-break" them.

I finally got to the point where I'm satisfied with both the enemy and quest systems. I fixed some bugs even in the past few days, and I'm sure there will be more, so it is not perfect. In case anyone finds a bug with anything related to quests, or enemy sync please report it with as much detail as possible.

I went into a lot more detail on the GitHub page in case anyone is interested.

You can download it from GitHub.

Connecting is pretty much the same as it was in Tanguy's, but I added an option for direct IP connection too in case someone wants to play it on LAN without steam.

UPDATE:

I tested a few mods. Surprisingly, most interior/dungeon related stuff actually worked out of the box with little to no issues. These might give some rough idea about mod compatibility.

Warm Ashes - Wilderness Encounters: Gave me a few quests/events. They were in sync, and one event even spawned a thief in a city, which was also synced. The slightly weird part is that when someone travels, it can trigger enemy spawns even for the other players, because it seems to run these events as quests, which get auto-synced. But all in all, it seems to be working fine.

Dungeons of Daggerfall vanilla redux: Just a brief test with 2 random dungeons, they worked.

Daggerfall Enemy Expansion: Encountered a Land Dreugh and a Will-o'-Wisp in a dungeon. Worked.

Iliac Puddle No More: Broken, and doesn't seem like an easy fix. For now, it is not working.

Come Sail Away: Tested this mod with a simple boat. You see the other player walking on the water. So not really working. At least it doesn't break the game, immersion breaking at the most.

DREAM: Works.

Vanilla enhanced: Had to add a helper script to make it work. It should work from version 1.02.

World of Daggerfall and Beautiful Cities / Villages with all their requirements:

Had some small issues with interiors. Some of the interiors move the player to the upper floor/attic, instead of the normal entrance. Other than that, they worked well.

After some testing, I found out that one of the mods uses some kind of teleport inside interiors that conflicted with my "find closest door from the entrance door -250m" logic.

I worked around it with a fix that basically blocks any large player-position change near the entrance door if the player has solid ground to land on. If not, it should let the mystery teleport from the mods do its thing.

Obviously I can't test every single mod, and it is not realistic to make a compatibility fix for every single one of them. The vanilla enhanced compatibility fix + interior player placement fixes are included in the 1.01 release. As much as I would like to make the water related mods work, I can't promise anything. The base idea was to make vanilla Daggerfall work as a drop-in/drop-out co-op. Anything else is just an extra.

UPDATE2:

- Fixed some issues related to the respawn system

- Fixed some quest related issues

- Additional vanilla enhanced fixes: enemy sprite rotation errors, passive enemies walking in place, flat NPCs in dungeons (castle sentinel) were half-sunk in the floor. There might be even more I haven't seen yet. For now it works as it is.

- Reverted some leftover early experiment code what was eventually abandoned, back to vanilla. A few mods that relied on those might work better now (for e.g. The Penwick Papers lockpick minigame).

Keep in mind that it is impossible to support all mods, especially ones that add entirely new features to the game and would need to be manually synced.

UPDATE3:

- Fixed an issue that could prevent some mods from working correctly with enemy spawning (Horrible Hordes mod)

- Added an unofficial client-side compatibility helper for the Horrible Hordes mod

- Fixed an issue where enemies pulled through terrain seams couldn't attack

- Language Skills Overhaul companion support in multiplayer

LSO Companion limitations: Don't try to make another player's companion your follower! Hosting or joining with a companion no longer destroys the companion, and it works most of the time, but there is still a slight chance of the companion desyncing.

UPDATE4:

- Added a few settings for the respawn/revive and travel systems to have an option to make it a more challenging

- Added a (unofficial) World of Daggerfall comptability helper to make WoD enemies work within MP (experimental, needs further feedback)

- Added a (unofficial) Warm Ashes compatbility helper (currently focusing on making guard tower quests/events work in MP, camp events might need some more attention later)

- Added a (unofficial) Killer Instict compatbility helper

- Fixed an issue where pacified enemies could became hostile again

Note: These unofficial compatibility helpers do not include or redistribute source code from the supported mods. They only add compatibility logic on the co-op side.

UPDATE5:

- Several loot and dropped item synchronization fixes
Should reduce item duplication/loss during fast item transfers, and improve dropped loot visibility across terrain seams. Players should still remain near each other when dropping items on the ground.

- Fixed a bug where aquatic monsters stopped moving while the client was above the water surface

- Added an unofficial Iliac Puddle No More compatibility helper
Supports swimming and adapts IPNM spawned enemies for multiplayer networking using an approach similar to the World of Daggerfall helper.

- Added an unofficial Come Sail Away compatibility helper
Boats are visible to other players, who can also board and walk on them while sailing. Only basic boats have been tested so far, and boat movement sync may still need some smoothing. Prevents Come Sail Away's automatic parenting for MP enemies, because it caused pretty bad desyncs.

- Extended the revive/respawn system with fatigue settings
With Iliac Puddle No More, respawning still currently happens in the water, and dying with low fatigue could cause an infinite death loop.

- Added an unofficial Retro-Frame compatibility helper
Restores the mod’s UI after multiplayer revival or respawning

UPDATE6:

Hotfix: Interior enemies could occasionally be hidden due to incorrect position wrapping. Probably been an issue since 1.03. I just missed it in the previous updates.

UPDATE7:

- Fixed another round of dropped/enemy loot issues, including dropped items not being visible in dungeons, enemy loot not syncing in real time, and previously destroyed dropped loot piles reappearing in interiors.

UPDATE8:

Major changes:

Multi-party system:

  • Players no longer automatically join one party. You can invite players through the party window.
  • Quests are no longer shared between everyone connected, only between party members.
  • The party leader takes the host’s role in managing quests. In the background, networking still goes through the host (who is the server), but the host’s own client no longer needs to be involved in another party’s quests.
  • Adjusted quest foe spawning, so enemies with quest-related stuff can spawn without needing to share the quest with the host.
  • Adjusted quest item loot from corpses. Regular loot is still synced between all players, but quest items are only visible to members of the party sharing that quest.
  • Everyone who connects is technically in a party of one.
  • Time and weather are now tied to the party leader instead of the host. Connecting keeps your SP time, but joining a party syncs your time and weather to its leader and keeps them synced. Only the leader’s travel advances the party’s time. Every party has its own little time bubble.

Added quest sync options, which the party leader can change through the party window. There are 3 options:

  • Full: Basically how it worked before, but within the party. Quests are automatically shared, and quest progress syncs between party members. This is the default.
  • Shared-quest only: Only quests shared through the journal are synced. Chain quests should work, but haven’t been tested.
  • Off: New quests stay private and can’t be shared.

Already-shared quests keep syncing when the option changes. Existing private quests aren’t automatically shared when switching to Full, you can share them manually through the journal.

(The quest sync options were actually added before the multi-party changes.)

Despite both being major changes to the fragile quest sync system, there were surprisingly few problems. The most problematic part was quest item loot from corpses, but that doesn’t mean everything is perfect. I went through my usual problematic quests, and they worked alright, but I haven’t tested every single quest mechanism with these changes.

Other changes:

  • Fixed an old bug that could prevent the host (now party leader) from automatically sharing quests after stopping hosting and then hosting again.
  • Fixed an issue where the host could only manually share one quest of each type. So if the host took two “The Assassin” quests, the second one couldn’t be manually shared (the client side worked fine).
  • Jail time no longer advances the clock for party members other than the leader.
  • Added a Party chat tab to the chat window.
  • Made CreateFoeSpawner changes for better mod compatibility.
  • Enemy knockback now works on enemies you don’t own.
  • Added a warning when connecting if your small/large dungeon setting differs from the host’s.

UPDATE9:

1.09 Out

- Someone suggested paperdolls as an alternative to regular MP player sprites, so I added them as an option. Werewolf/wereboar forms and horse riding still use the regular animated sprites. Since paperdolls are static, there are a few optional effects to make them feel more "lively" (rotation, mirrored back, subtle bobbing, and directional attack movements). Everyone can change these settings independently in the MP options.

- Added sync for dungeon triggers. Previously, only manually activated (mouse-clicked) actions were synced. Now triggers activated by walking onto or into something are also synced, such as a cage moving to unblock a doorway.

- Fixed dungeon layout mismatches caused by different dungeon size settings, especially for quests taken in SP before joining MP. Previously, the host and client could generate different versions of the same dungeon, causing enemies to fall into the void and quest locations to mismatch.
Now dungeon layouts are synchronized block by block, and quests can work with either dungeon size. Whichever version is generated first is used by everyone until the dungeon is unloaded.

- Fixed an issue where changing quest sync settings in the MP options could leave the game stuck in a paused state. The option now only controls the default quest sync mode for newly created parties when hosting a game, without affecting existing parties. Party leaders can still change their own party's settings in the Party menu.

- Fixed Daedra Seducer transformations not syncing correctly. Previously, some players would still see the humanoid form walking around even after the enemy had transformed and started flying. Now the transformation is synchronized for everyone, regardless of which player triggered it.

UPDATE10:

- Added container loot synchronization for interior containers, dungeon treasure piles, and mod added exterior loot piles. The first player to load a container determines its contents. Hosts can disable this feature (enabled by default).
To prevent excessive loot duplication with mods that dynamically spawn exterior loot piles (such as IPNM) when players explore the same area, newly generated piles from other players are rejected within a 200 m radius of existing piles. WoD camps are an exception, as their loot is tied to camp layouts.

- Fixed an issue with the player paperdoll option. Previously, items added by mods (Roleplay & Realism and Tamriel Atelier) could appear as vanilla items. Now they display correctly. If another player doesn't have the mod that adds those items, they won't see that equipment on the paperdoll.

UPDATE11:

Major changes/optimizations to dungeons/enemies:

  • Dungeons no longer fully load for remote players. Clients don't load them until they enter. For remote dungeons, the host only loads colliders and some base stuff to sync doors and switches.
  • Enemies used to almost fully load for everyone, regardless of where they were. No longer the case, the host turns off most stuff on remote enemies, but still keeps track of them. Enemies no longer load for remote clients at all (the exceptions are questfoes, which function similarly to host loaded remote enemies). So remote players turn off almost everything to save performance.
  • Enemy functions used to be weirdly "shared": attacking ran on the host, targeting on everyone, while movement and stuff to keep them on the ground were running on whoever currently owned them. Now pretty much everything is offloaded to whoever "owns" them to make the host's life easier.

There should be no visible change in how the enemies behave.

In case of regressions or bugs, please report them either here, or on Github, or the Lyandus’s Tomb: DFU Fan Server Discord → mod ideas → Daggerfall Unity Co-op thread

Other changes/fixes:

  • Fixed a bug where enemy loot/container/dropped item sync didn't carry all the necessary item data and could turn a +6 helm into a +3.
  • Better corpse sync. Corpses were only visible if the player was there when the enemy died. Now players who arrive later can also see and interact with them.
  • "Physical Items" mod direct looting now syncs the enemy inventory. Previously, direct looting bypassed the enemy inventory loot sync. No longer the case. When changed loot contents sync, you will see the remaining items "re-dropping". The physical items' world positions are not synced! So moving them is not visible to other players!
  • Added an MP option so the host can change the mod requirements from relaxed (default) to exact. Relaxed = Connecting players don't need matching mod lists. Exact = Connecting players need matching mod lists and versions.

UPDATE12:

- Fixed an issue that could cause more frequent enemy encounters while resting in dungeons. In MP, the enemy alert state wasn't properly cleared when the enemy that triggered it died.

- Another round of loot sync bug fixes. Some item data was still missing (variants and colors), and very large loot inventories could result in errors due to oversized network packets. Also, the previous corpse sync was too strict and could delete corpse data too early, causing the "Loot is changed or busy" error in in Privateer's Hold, or when moving back and forth between terrain tiles in the exterior world.

- World container sync optimization for WoD camps.

- Previously, building names revealed by NPCs were shared globally between all players in a city. That wasn't intended, it was missed in the multi-party update. Now they're only shared between party members. Building names revealed through info mode are now also synced between party members, if they're in the same city.

- Increased the Direct IP connection timeout from 10 to 30 seconds.

- A multiplayer API was added for mods, including documentation and a test mod in a ZIP. The test mod doesn't cover all the API features, so most of it is actually untested and highly experimental. The API, documentation, and test mod were all made with AI. Due to my non technical background, I have no idea if it will be any use to modders or complete rubbish. Feedback is appreciated (good or bad).

- Added visual sync for "Horse Cart and Cargo", "Piece of Chalk" and "Climates and Calories". With C&C, party members can also cook at the other player's camp.

- Updated the Come Sail Away compatibility helper. Passengers can now board ships. Ship sync is smoother. Player positions *should* be more stable and stay on the deck. Traveling between map pixels *should* no longer push players off the ship, even at x30 travel speed. Enemies *should* stay on the ship's deck. Party members can also steer each other's ships and properly interact with most of the NPCs on the ships. It is still not perfect but more stable than it was with the old helper. Standing near the edges of a moving ship or jumping on a moving ship (especially at x30 speed) is NOT a very good idea.

- Warm Ashes compatibility helper to sync WA ships, wrecks, and loot. (WIP) These ships are owned by one player, while other players receive "replica ships". Players with replica ships must be in the same party as the actual owner to start a ship raid. To prevent too many ships from different players appearing, there are distance based restrictions. Current limitations: Merchants are not interactable on replica ships. Loading an older save in the same area may cause some ships to be invisible to other players.

- Someone requested a Mac build so added one. I'm not a Mac user, so it's marked as experimental alongside the Linux builds.

UPDATE13:

- Found and fixed an issue that could bring client owned enemies along during fast travel. Probably an issue since at least the enemy optimization patch. (At that time, I tested switching between exteriors and dungeons/interiors, but somehow it didn't occur to me to test long-distance travel with enemy ownership.)

- Some enemy corpse inventories could still get too large for a single network message, causing issues like a stuck loot window. Fixed this and made changes to reduce how often "Loot changed or is busy" happens.

- Recall spell fix in MP: In various situations involving 2 active dungeons, Recall could teleport the player into the void.

- Player sprites are no longer sunk into the ground. This was especially visible with the mage sprite (tested with mage, thief and spellsword sprites). Paperdolls were floating a little bit, which has been fixed too.

- Rest Together added as a party option, enabled by default. When a party member starts resting, party members within the radius share the recovery. The host can set the radius for all parties (1–10 m, default 10 m).

- Travel Together added as a party option, disabled by default. When enabled, if a player initiates fast travel, party members within 10m get a yes/no option to follow. Currently vanilla travel only, so with travel mods I recommend keeping it off.

- Added an option for the host to disable console commands for clients. When disabled, any active tcl, tgm, nt or tai modes are also turned off when joining.

- Shared world map location discoveries are now party based instead of being shared with everyone connected.

- Options / party options were a mess, now reorganized with better descriptions.

- Added a few more respawn options to make the game a bit more punishing:

Option to respawn in the nearest settlement with a temple/tavern, prioritizing temples if both are available. For vampires, uses city graveyards/taverns, prioritizing graveyards if both are available. It always overrides the inside/outside dungeon respawn option.

Party wipe option: No respawn until every party member in the same location, or within the configured distance in the open world, is dead. With party wipe ON, nearest settlement respawn is always ON (no dungeon respawn).

Additional option for a gold fee of 10–1000 gold per level, only for nearest settlement respawns. Enabling party wipe does NOT require enabling the fee.

- Added a compatibility helper for "First-Person-Lighting". Previously, the MP player gameobject’s collider blocked FPL’s lighting checks, which could make weapon/torch sprites appear dark.

- Added a compatibility helper for "Handheld Torches". Due to the dungeons’ sunken positions in MP, the mod thought dropped torches/candles were underwater, so they were unlit. The helper converts their positions to dungeon relative coordinates. Also added visual sync for dropped torches/candles.

- Small change to how dungeons are organized under the hood. This might help mods that try to find dungeons in their usual SP place in the hierarchy. "Improved Interior Lighting - Fixed" should now work in MP.

UPDATE14:

1.14 Out:
https://github.com/Visty93/Daggerfall-Unity-Co-op/releases/tag/1.14

- Fixed an issue where MP players only played stone/road footstep sounds regardless of the surface. Horse and cart sounds were also added.

- Fixed a bug where paperdolls weren't rendered correctly in fog and didn't react to environmental lighting.

- Added an experimental hybrid sprite option. From the front it shows the other player as a paperdoll, and from other directions as a class sprite. Using it with non-human characters can be weird.

- Added an optional arrow above/below the player that indicates which direction the player is facing. Added mainly for paperdolls. Can also be a bit immersion breaking.

- Rest Together didn't give the "resting" status to the other players, causing issues with Climates & Calories. C&C's sleep quality effects weren't applied to the other players either. The compatibility helper now handles that.

- Fixed an issue where other players' ranged spells visually came from lower than they should have.

- Added a dedicated server + a server browser:

Server browser:

Internet server browsing runs through Steam, so it requires Steam to be running in the background. It can find publicly hosted Steam games or Steam-based dedicated servers. Why Steam? No need for a master server, and it's free.

The LAN part of the server browser can find Direct IP hosted games on LAN without the need for Steam in the background.

The original Direct IP / Steam hosting options were kept in their original places and function pretty much the same as they did previously. Direct IP hosting just got an option to list the game in the LAN browser, so you don't need to enter the IP manually. (But you can still do that if you want.)

Steam hosting is private by default, and you have to invite your friends as in the previous version. Added an option on the right side to make it a public game. If you tick that, it will show up for others in the server browser. In the host settings, you can set up a password or change the maximum number of players.

Dedicated server (Windows/Linux):

Probably a bit overkill, but wanted to include it anyway. It's essentially a headless host, so it works pretty much like normal in-game hosting. The main difference is that you have more control over which mods players can use.

You can host a Steam-based server without the need for a Steam account. It can be found in the Internet server browser or joined directly using the server's Steam ID.

Included an option to host a server using a KCP connection, but it cannot be found in the Internet server browser. Connecting to it via Direct IP is still possible (may need port forwarding). I recommend using the Steam based one, easier to set up and doesn't require exposing a port directly to the internet. Internet server browsing already requires Steam anyway.

Passwords can be added to both publicly hosted games and dedicated servers. Also added player kicking for both regular hosts and dedicated servers.

The theoretical maximum number of players is around 1000, but there is no way it would work with that many people, and that is not the aim of this co-op fork. There are plenty of other alternative MP projects aimed at MMO/PvP gameplay. But it *should* handle 20–30 players, including dungeons. (Not tested with that many actual players, but tested using console commands to spawn 40 full sized dungeons, with all enemies treated as if they were client owned.)

Although there were optimizations in the past, I think there are still too many enemy related scripts running on the host/server for client owned enemies, wasting host/server performance. Will take a look at further optimizations in the future.

Dedicated server mod policy options:

This is where it gets a little overcomplicated.

- "Relaxed" lets players use any mods by default. You can still set a few mods as "Required" or "Blocked" by hand, and let the rest of the mods through.

- "Exact" requires the same enabled mods as the server, at the same versions. Players with missing or extra mods are rejected. Per-mod rules are ignored.

- "Approved mods only" lets you make mods either Required or Allowed. Any other mods are blocked. Useful if you want to allow certain cosmetic mods, but not make them mandatory.

There is also an option to match the load order of the required mods.

The manager lists the .dfmod files it finds in the dedicated server's StreamingAssets\Mods folder. You can enable/disable mods for the server itself one by one using the "Change server mod state" button. Again, a good way to improve performance is by disabling mods not needed for a headless server (like a healthbar mod).

You can set a join rule for each mod either by hand or using bulk actions.
They are pretty self explanatory.

Require makes the mod required.
Allow makes the mod optional.
Block prevents players who have the mod enabled from joining.

Bulk actions:

"Require enabled mods" marks all currently enabled server mods as Required.
"Allow disabled mods" marks all disabled server mods as Allowed. The mods stay disabled on the server.

Use "Save policy" and restart the server to apply changes.

There are a lot of combinations that can be used here. But if someone is crazy enough to host a dedicated server, just pick either Exact or Approved mods only with a predefined list of allowed mods.
The dedicated server source files are also included.

42 Upvotes

35 comments sorted by

3

u/Darishel Sep 01 '26

Very interesting!! So some mods might work if they don't touch interiors? Sounds like quest mods might be iffy. And mods that spawn enemies would not work? Let me know if you have more to share about possible mod type compatibility.

4

u/visty93 Sep 01 '26

I only tested vanilla (+the transparent window experiment I mentioned on the github) with a healthbar mod. I wanted to test Beautiful Cities of Daggerfall, but then I saw all the requirements, and the requirements for the requirements on nexusmods, and I thought "maybe later". But I'm quite interested if it would work or not. I'm not a big mod user myself, but I want to test a few in the following days.

As for mods in general, as long the mods don't add any brand new functions for enemies/interiors/quests, they might work? As long everyone has the same mods. But again I didn't test any of them, so no promises. Interiors are quite literally just -250m from their original position.

0

u/[deleted] Sep 01 '26

[deleted] — view deleted comment

1

u/ijblack Sep 01 '26

he has no idea dude. you should ask ChatGPT

2

u/visty93 Sep 01 '26

The original post has been deleted, but the answer is actually more or less on github. Question was why the interior/dungeons are moved. I will leave this here in case others are interested too.

It is because enemies are no longer children of the Exterior, Interior, and Dungeon gameobjects. For interiors, this means that when the player leaves the house, the house colliders cease to exist and the enemies could just "walk out" of interiors. This also means enemies are no longer automatically destroyed if you leave an interior. The new cleanup mechanism is distance based and moving them down was the best idea I could come up with.

For dungeons, because I made them networked gameobjects, and normally dungeons spawn at 0/0/0 unity coordinates, it would have meant multiple dungeons could overlap, or you could see them at certain points of the world where the terrain height is low (sea-level for e.g.). Why are dungeons networked and interiors not? I made them networked before I realized that I could change the authority (ownership) of enemies between players to keep them on the surface. Otherwise if the host owned all of them they would fall through the ground if the current location is not loaded for the host (he is in another town for e.g.). Since that problem is solved, technically the dungeons could be reverted to non-networked gameobjects, but that would also mean if a player enter-leave-enter-leave-enter-leave a dungeon, every time it would re-spawn all the dungeon enemies. And enemies also have a distance based cleanup mechanism with a 10s counter, meaning one could quickly spawn hundreds if not 1000+ enemies for a single dungeon.

Same goes for normal co-op dungeon crawling, if 2-4 players would enter a large dungeon that would be 250-500 enemies, which would pretty much crash the game unless I make something that keeps track of active dungeons to prevent more than one "batch" of enemies from spawning. But at that point I already had the early networked dungeons which solved all these issue so I stuck with this.

I had a few other ideas like hiding a dungeon based on DF world coordinates, but then there would be a possibility to see the actual dungeon near its entrance. Dungeon enemies also need distance for the cleanup when the player leaves the dungeon. And dungeon enemies use unity coordinate based targeting (while everything else uses DF world coordinates), meaning with multiple dungeons sharing 0/0/0 coordinates could potentially confuse their targeting.

As for this actual comment, you are not wrong. For actual code related questions one would certainly get more from Chatgpt.

2

u/visty93 Sep 05 '26

I did some mod testing and updated the opening post with the test results.

I also released version 1.01, mainly focusing on a few mod related issues: Vanilla Enhanced compatibility and some interior teleport weirdness with certain mods.

You can get it from github.

1

u/bloodshot1 Sep 05 '26 edited Sep 05 '26

Any chance you can look into compat for penwick papers? It mostly works but when you succesfully lockpick with the lockpicking minigame the door will click open, but it won't enter the house or building. Also Language Skills Overhaul seems to have errors, it kind of works but existing companions turn invisible once you host, they work if you pacify them during an MP session though

EDIT:

Also UBLAMF seems to mess up in coop for dungeons, the client will have invisible dungeon blocks and purple doors - also it seems enemy bodies won't show for the host but do for the client

1

u/visty93 Sep 08 '26

The lockpick issue was my fault from an earlier experiment. When I tried to make interiors networked during early development, I modified some of the transition codes, while the mod still wanted to use the original code so now it gave an error due to mismatch. Since the networked interior idea was ditched anyway, I restored the original function so it should work with the current 1.02 patch. (on github)

However, there are also other things in there that don't really work, for example the player blinding. Most likely because it tries to target the MP gameobject, which doesn't have the same player components the SP version does (enemymotor).

Language overhaul companions disappear because when the player hosts, all SP enemies get destroyed, which is one of the current limitations. The bigger issue is that the companion following is also broken. I'm not quite sure why yet but it tries to move to the 0 X / Z coordinates. I believe this might be caused by similar targeting problems to the blinding issue above. The companion in the unity hierarchy is actually separate from the interior/dungeon/exterior, but when you part way with the companion, the mod actually re-parents it to one of those. That could eventually also cause desync for ex-companions. The mod is completely closed source so I can only guess what actually happening here.

As for the UBLAMF issue on the client side, the client's side of dungeon generation was actually missing one step. Vanilla didn’t depend on it in this case, but UBLAMF’s replacement models did. This is also fixed in 1.02.

1

u/Xelrod413 Sep 10 '26

Horrible Hordes is not compatible. It freezes when you load in.
It's not a big deal, and this isn't a request for a compatibility patch. I'm just putting this out there so people can see.

I had to dig through quite a few of my mods to find out which was was causing the issue, so hopefully I saved someone a bit of time by sharing this. c:

1

u/visty93 Sep 13 '26

Sorry for the late reply. I tried it without any other mods. While testing, it gave me an error, but it didn't actually crash or disconnect the game.
The MP version adds an extra player level parameter to enemy spawning, allowing enemies to scale to the requesting player’s level. The mod expected the original one without that extra parameter, which it couldn’t find, so it threw an error. Restored the original method which then calls the MP version. Mods expecting the original one can now use it, while the MP level scaling stays intact. Keep in mind that each player who has the mod will spawn the extra enemies when entering the dungeon. So there could be a chaotically large number of bats or orcs. (And the orc shaman can obliterate a lot of them with accidental friendly fire).

I also wanted to make the companion part of Language Skills Overhaul work, which took a bit more time than I thought it would. But that is also more or less working now.
Plus, I found another issue with enemies being pulled through terrain seams. They could be pulled through and they could target the player, but they couldn't attack. This was an issue that was supposed to have been solved months ago.
I will run a few more tests, then upload a new 1.03 build including these fixes. Hopefully I didn't create any new problems..

1

u/Xelrod413 Sep 13 '26

Oh! I wasn't expecting a fix, but that's very cool! Thanks!

And no worries about the late reply. I wasn't expecting a reply at all. I know you're busy.

If you're looking for other unintended mod interactions, I've found that Killer Instincts causes enemies to get stuck after they lunge in multiplayer. Again, though, I'm just sharing this for your knowledge. Not necessarily requesting a fix for it unless that's something you want to do.

Thank you for making this mod a reality!

2

u/visty93 Sep 17 '26

A bit late again, but added Killer Instinct support in 1.04, along with some other stuff.

1

u/Xelrod413 Sep 17 '26

Oh my goodness! That's awesome!

1

u/NoNicknameDude11 Sep 14 '26

Me and a friend took a quest in a town which name i forgot, we had to rescue a pet tiger out of a dungeon, when we went into the dungeon we both had completely different dungeons my friend was walking through walls for me and he wasnt able to find the exit after walking around for 30minutes.

We also had some desyncs with POIs and loose loot generated by it was only lootable for one player dont know what mod generated them.

2

u/visty93 Sep 14 '26

Did you have the same dungeon size settings applied? Because it sounds like a small/large dungeon mismatch. Or maybe one of you is using a mod that alters dungeons, like Dungeons of Daggerfall Vanilla Redux? For stuff like this, you have to have the same settings/mods.

What do you mean by desyncs with POIs? Did you have the same issues without mods? It is a bit hard to isolate whether these are mod related issues or base game issues.

1

u/NoNicknameDude11 Sep 14 '26

i made sure to give my friend the exact same mods and also made sure that the settings are the same. Would be awesome if the coop mod could just sync the client cfg to the host ones :D

Regarding the POIs iam not sure need to test it out more.

2

u/visty93 Sep 14 '26

The walking through walls parts is why I thought it might be a large/small dungeon setting mismatch, or maybe some mod. Do you have any dungeon related mods? As I mentioned mods can be a hit and miss.

As for the POIs, I literally meant what did you mean by POIs? Dungeon locations for fast travel on world map? Or local city locations like general stores? Discovered building locations inside cities are not synced. The only exception if you ask an NPC for direction, that will be synced, but even then only if you are in the same town while asking.

1

u/NoNicknameDude11 Sep 14 '26

Ah sorry!

I mean random POIs that got generated like a battlefield in the open world, a ranger camp and such, they were synced visibly but the items that lay around werent interactable for the client.

Heres the list me and my friend were playing with:

  • Core Frameworks & Tools: Daggerfall.Harmony, RMB Resource Pack, Location Loader, Vanilla Combat Event Handler
  • DREAM Series (Full Visual Overhaul): Backgrounds, Cinematics, Commoners, Handheld, HUD & Menu, Mobs, Music, NPCs, Paperdoll, Portraits, Sound, Sprites, Textures
  • World Expansion & Cities: Finding My Religion, Beautiful Villages of Daggerfall, Dungeons of Daggerfall - Vanilla Redux, Windmills of Daggerfall, Fixed Desert Architecture
  • Terrain & Wilderness: World of Daggerfall, World of Daggerfall - Biomes, Wilderness Overhaul, Mountains And Hills, Real Grass, BasicRoads, Simple 3D Trees (HD)
  • Textures & Clutter: Daggerfall Expanded Textures, DIEP - Rosy's Resources, Harvestable Crops, DET Harvestable Crops, New Paintings
  • Gameplay, Mechanics & Combat: BasicMagicRegen, Combat Log, Daggerfall Enemy Expansion, Warm Ashes - Wilderness, TravelOptions
  • UI & Quality of Life: ConvenientQuestLog, Hotkey Bar, Readied Spellcasting Hands, Weapon Widget

2

u/visty93 Sep 15 '26

Did a quick test with the following mods, focusing on the dungeon part:

warm ashes - wilderness
diep - rosy's resources
dungeons of daggerfall - vanilla redux
daggerfall expanded textures
det harvestable crops
beautiful villages
world of daggerfall - biomes
world of daggerfall
rmb resource pack
location loader
finding my religion
fixed desert architecture
windmills of daggerfall
daggerfall enemy expansion
new paintings
harvestablecrops
dream: commoners,handheld,cinematics,music,sound,mobs,sprites,paperdoll,textures,npcs,portraits,background,hud&menu

Tested with 2 dungeons, both looked identical for host/client. From your list AFAIK only the dungeons of daggerfall - vanilla redux alters dungeons, but if it is enabled for both of you then it should work normally. Or again, the base DFU large/small dungeon option.

Could you do this quick test?

Start dfu coop, save near a dungeon entrance (or use existing save near a dungeon). Start hosting using direct ip.

Start a second instance of dfu coop, and join through Direct IP using localhost as the server address.

Enter the dungeon with the host first, then follow with the client. Check whether the dungeons are different/identical.
Then switch it up, leave the dungeon with both players, wait 10-15 seconds so the dungeon ceases to exist, then enter this time with the client and follow with the host.

No need to check out the whole dungeon, you can use the tcl command to fly around a bit to get a quick look at the dungeon layout. You can use windowed mode or alt+tab to switch between the daggerfall instances.

For the loot test I added basic roads, travel options, immersive travel to find something in the open world, found a random camp. It had generic loot containers, so I suppose you meant generic loot containers when you mentioned the loot desync? Random containers are not synced at all.

Enemy loot from corpses (if both players were there) is synced. Enemies from warm ashes might be a bit weird though. I suppose technically they are quest enemies, and quest enemy corpses might not spawn if a quest has already ended. Sometimes they left a corpse for both players, sometimes only for one player.

But I found another issue. The party travel didn't work with these fast travel mods. It got stuck because it was supposed to use the default daggerfall travel UI, while Travel Options replaces that. (The next release will have a fix for party travel with those mods.)

1

u/NoNicknameDude11 Sep 15 '26

Hmm just tested it with 2 pcs in my local setup the dungeon was synced, maybe when you enter the dungeon as a party of 2 or more at the same time it can desync? Wasnt able to test this gotta do reallife stuff now xD
Thanks for your work and all your effort youve put into this!

1

u/visty93 Sep 15 '26

Me and my brother had similar issue the very first time we tested the old Tanguy version. My brother could go through a wall because he had the large dungeon setting while I had the small version. That's why I suspect that.

Checked the difference between small/large for both un-modded and Dungeons of Daggerfall - Vanilla Redux. The small/large dungeons for un-modded daggerfall actually pretty similar (at least around the entrance), so I guess they use the same blocks just a lot more of them. However with Dungeons of Daggerfall - Vanilla Redux even small/large dungeons are totally different.
(Tested dungeon: Sentinel region Castle Fallem on the small island on the north)

So depending on the dungeon settings and who has the mod and who doesn't, there can be 4 versions for the same dungeon. And technically there was only one dungeon, the same one for everyone.

So I would double check again your friend's dungeon settings.

C:\Users\Username\AppData\LocalLow\Daggerfall Workshop\Daggerfall Unity\settings.ini and search for SmallerDungeons, check if true or false.

Another thing that came to my mind, to check if your friend is using Dungeons of Daggerfall vanilla redux version and not the normal Dungeons of Daggerfall. Never tested the normal one but that is supposed to do totally different stuff.

Or as a test, both of you disable dungeons of daggerfall vanilla redux and check what happens. If the entrance and the area close to it look the same, but then one of you can go farther while the other hits walls, then it is definitely a small/large dungeon setting mismatch.

1

u/NoNicknameDude11 Sep 16 '26 edited Sep 16 '26

Yeah it prob was caused by the small and large dungeon option.

Ive hit another issue which happens as soon as you hit steam or directip/host.
It causes Mobs(rogues and thiefs in my tests) to get invisible in World of Daggerfall mod camps.
They cant attack you/dmg you and you cant attack them but if you click left click around in the camp it will tell you that you see a rogue.

When standing in front like 100m away of such camp before hitting the host button you can see the enemies disappaer when hitting the host button. This also happens for all other camps you meet when traveling around while hosting a game is on.

2

u/visty93 Sep 17 '26

I did some testing, and you were right, there were several issues. When I previously tested wod, I mainly tested the terrain changes and some of the stuff it adds to the world itself. I didn't really check the enemies.
Wod spawned enemies weren't networked and de-parented, so it could cause all kinds of issues in MP.
Another issue was that it spawned the enemies the moment the camps spawned, which could be around ~3 km from the player. Normally in MP, enemies get cleaned up after 10 seconds if they are more than 400 m away.
Vanilla DF doesn't normally do anything like that. In the open world, it only spawns enemies around the player, so this wasn't something the MP system was ready to handle.

About the disappearing enemies when someone hosts/connects, that was intended. SP enemies get cleaned up at connection time. (see the limitations at github) As I said in vanilla, interior/exterior enemies are always around the player, and connecting inside a dungeon basically reset the dungeon with its enemies to an MP version.
But with the way WOD enemies spawn, this could mean the open world gets cleared in a ~3km radius at the time of connection.
WOD enemies will work a bit differently. They will spawn and remain as SP enemies, and when one of the players get in a 100m radius, the system will basically "replace" those enemies with MP ones. They also won't get destroyed as long as there is any player within a 3km radius.
Had some issues with the placement of the client spawned enemies, but hopefully that one is solved too.

It was rushed, so I wouldn't be surprised if there are still some undiscovered bugs or issues I didn't even think about. Fix is included in 1.04 release.

I also found out that Warm Ashes had some problems. Specifically around WOD added places the events/quest didn't run properly. Around WOD outpost towers that is supposed to be fixed. But I couldn't reliably reproduce events around WOD camps, so that might need some more attention later. Fix also included in 1.04.

https://github.com/Visty93/Daggerfall-Unity-Co-op/releases

→ More replies

1

u/romulo27 Oct 14 '26

It's been a while since I reported any glitches to this project and I'm not sure you're still working on it, but as of the last build I managed to have a mostly bug-free experience with it, and I can't remember anything too bad that had happened during my playthrough!

This is moreso a suggestion than a bugfix, Daggerfall Online has a feature that lets you just see a 2D billboard flat of the other player's paperdolls instead of a generic character sprite, and a friend of mine played Daggerfall Online and preferred having that option, even if it looks a little silly at times, and he'd love having this option here, because we all preferred playing this over DFO (it's just infinitely more customizable, we don't like DFO's quirks)

I told him I'd pass on the suggestion for him so here I am! Hope you're still working on this and that the suggestion may be considered, thank you!

1

u/visty93 Oct 15 '26

Hello!

I'm still working on it! If I recall correctly, you were using some kind of paperdoll mod?

I added paperdolls as an option, along with a few optional settings to make them feel a little more lively (rotation, subtle bobbing, and small attack movements). I haven't tested them with paperdoll mods yet, but in theory they should work. Vampire faces also work.
Werewolves/wereboars will continue to use their regular animated sprites, since they don't really have proper paperdolls (the inventory images include a background). Mounted players will also continue to use the existing horse sprites.

I just released version 1.09, which includes the paperdoll option alongside a few other fixes.

Also, I'm a bit curious about your "mostly bug-free experience". What kind of bugs did you encounter? Were they mod related, quest related, enemy related, or something else?

1

u/romulo27 Oct 16 '26

I played it a bit and both species mods AND paperdolls mods do work, flawlessly even, no warped sprites or anything when using the option.

What has happeend that I noticed is that IT SEEMS modded items (such as the armors in roleplay & realism or the new clothes on tamriel atelier) were getting swapped for other stuff, I couldn't test enough to see if they get swapped for modded items as well or if they get swapped just for vanilla items.

I might need to test more to ensure that it is happening ONLY to modded items, but my PC is genuinely awful and I depend on my friends being free, which is hard for all of us since we're all adults with not a lot of free time.

1

u/visty93 Oct 17 '26

That's on me. The other player was recreating those as regular DFU items, it couldn't handle custom items added by mods. That's why you probably saw vanilla items. Did a quick fix, tested both mods separately, and they worked.
If the other player doesn't have those mods, they won't see the equipment on the paperdoll. Wanted to push it out yesterday, but was in the middle of making the item container sync work. Now both are available in 1.10.

1

u/romulo27 Oct 17 '26

Oh sick, thank you, I'll see about testing it eventually with my friends.

1

u/romulo27 Oct 15 '26

I can't think of anything off of my head but it was veeery minor and ignorable stuff, like weird NPC behavior which if anything looked like a byproduct of high ping (because it probably was, we were playing quite far away from one another)

I'll call a friend to test hopefully within this week, both with and without the paperdoll mod, thank you for the attention on the fork, vibecoded or not you at least come and talk to people, take feedback and bug reports, and that's frankly more I can say for a lot of people who are real programmers out there.

If I find anything quirky or noteworthy to mention I'll do so!

2

u/EnragedBard010 Sep 01 '26

My biggest worry is there's not enough people to play with. Seems promising!

2

u/android_263_rooter Sep 01 '26

Finally, time to play daggerfall with friends that isn't on some ancient version of DFU

2

u/tonymichaelhead Sep 05 '26

Amazing 👏 Can't wait to try it! I'd love to see this evolve into something like the multiplayer Morrowind project (TES3MP) where you log on and see a server list of  publicly hosted persistent servers with hundreds of players in them.

Would be great for RP or even multiplayer MMO like servers with PvP or PvE.

2

u/Xelrod413 Sep 05 '26

Please consider setting up a dedicated discord server for this mod. I would love to find groups and get pinged whenever an update comes out. I would pog out for that so hard, you have no idea

2

u/[deleted] Sep 05 '26 edited Sep 08 '26

[removed] — view removed comment

2

u/visty93 Sep 08 '26

Did you try it with 1.00 or 1.01? 1.01 is supposed to fix the melee hit disconnect bug with VE. Although I found a few other issues: enemy sprite rotation, passive enemies playing the walking animation while standing still, and NPC flats in dungeons (Castle Sentinel) being halfway into the floor. But those shouldn't cause disconnects. (They are also fixed in the 1.02 release).

I only tested Warm Ashes in MP, and I had a lot of small events/quests, mostly after fast travel. Since each player syncs their quests/events, this could get a little overwhelming. I can only imagine how much chaos it could cause with 4+ players. I didn't check its settings, though. If it can be toned down, that might be worth a try. I haven't tested Advanced Wilderness Encounters yet.

First Person Lighting: I managed to make it work without any other mods in the exterior world, but it didn't do anything in a dungeon. I didn't really experience pitch-black sprites. In fact, I had a hard time getting it to do anything even in the original base DFU. At night in a town, the lighting did nothing to the hand/horse. Could be my settings or the lack of other mods, though. Did you try it without any other mods?

Handheld Torches and Piece of Chalk: Since neither of them exists in vanilla DFU as a mechanic, they are not synced. Similar mod features that let you place stuff in the world that doesn't exist in vanilla would be a literal miracle to work out of the box, since pretty much everything has to be synced manually.