Kingdoms and Castles

Kingdoms and Castles

Kingdoms and Castles Multiplayer
Showing 1-8 of 8 entries
Update: 24 Apr, 2024 @ 4:05am

Fix time speed hotkeys in single player

Update: 24 Apr, 2024 @ 3:55am

Fix mass lag experienced in single player

Update: 14 Apr, 2024 @ 1:45am

Upload from workshop UI

Update: 14 Apr, 2024 @ 12:31am

Kingdoms and Castles Multiplayer Mod Update v0.2: "Saving and Loading"

Hey @everyone,

Exciting news - version 0.2 of the Kingdoms and Castles multiplayer mod, "Saving and Loading", is now out! Here's the rundown on the latest additions and fixes:

# What’s New

## Saving and Loading Multiplayer Sessions

The most anticipated feature so far, saving and loading, is finally here. It's taken much longer than anticipated to get this update out, as many of you know. This is due to a number of various reasons.

One of the major blockers being that the Kingdoms and Castles mod support implementation completely blocks mods from accessing the System.IO namespace, which is required to be able to read files (in this case, save file data). Now, this is a totally reasonable security measure, and I completely understand why it's in place. It has unfortunately however contributed to the delay. I've figured out a bit of a silly workaround that does the job.

## Random or Manual Keep Placement

Server hosts now have the option to choose between "random" or "manual" keep placements. If set to random, the server will automatically choose a landmass for each player, and place everyones keep at random to their assigned landmass with at least one stone nearby.

## Villager Synchronisation First Pass

Part of the saving and loading issue was my lack of villager synchronisation. I've done a first pass on this so that saving and loading works, with the intention to improve on this down the track.

## Networking Improvements

To support complex state synchronisation I've begun creating and implementing "observers". These observers attach to an object that is to have it's state synchronised (i.e., buildings, dragons, villagers) and *observes* (clever, I know ;) ) the state, and only sends updates over the network if there is a change. This will reduce network spam that is currently occurring in v0.1, and improve stability and scalability down the road.

# Bug Fixes

## Game Speed Softlock

Fixed the bug where changing game speeds could freeze the game.

## Server Lobby Disconnects and Rejoining Bugs

Fixed the issues experienced when leaving a server lobby and attempting to join another

## Server Lobby Player Duplication

Fixed the issue causing duplicate players in lobbies

## Overlapping Menus

Resolved the issues with the mod UI overlapping with the original game UI

## Improved Server Connection UI Feedback

Implemented a modal system for most (if not all) server / client network events, with appropriate notifications.

# Didn't make the cut (Expected in v0.2.x update)

## Fog of war toggling

Unfortunately due to all of the issues I experienced, I didn't get time to focus on this feature, and it will not available in the first 0.2 release.

## Mac OS Support

Issue seems to be with the mod-support, unsure at this time, but plan to fix for a 0.2.x release.

# Known Issues

## Resource Desync

Players may notice a slight resource desync between sessions when saving and loading. This will be fixed in a 0.2.x update.

## Kingdom Names Desync

Minor issue that shouldn't effect anything at this time. Will fix in a 0.2.x update.

## Building demolishing not syncing

## Disasters (such as fire, lightning) not syncing

A huge shoutout to my Patreon supporters.

Partners: @coolfish308, @usagi
Supporters: @disc or d, @johog, @doran, @immortal

Your support means the world, and it's what keeps this project alive and kicking. If you enjoy the mod, please consider supporting!

Thanks to everyone who’s been part of this (long :eyes: ) journey so far. Your feedback, support, and enthusiasm are what make this all worthwhile.

Excited to see you all in the game.

Update: 20 Feb, 2024 @ 1:13am

Steamworks multiplayer implementation!! No longer need to port forward to host for your friends. Also steam friends invites now work.

Update: 18 Feb, 2024 @ 11:27pm

Implemented server handshake and provided user feedback to server connection state.

Update: 17 Feb, 2024 @ 10:33pm

v0.1 first release *extremely unfinished buggy as hell*

Update: 4 Dec, 2023 @ 11:32pm

Upload from workshop UI