Skip to content

Daggerfall Unity Co-op 1.14

Latest

Choose a tag to compare

@Visty93 Visty93 released this 02 Dec 15:26
  • 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.