[Update] Dark Souls 2: Seamless Co-op - v0.0.7 (Patreon)
Content
Hi everyone
This post covers a detailed bugfix report for 0.0.7.
Fixed a bug that could cause items previously picked up to respawn.
In seamless co op, in order to get items to appear correctly depending on the individual player's progress, I have to modify the way the item pickup flags are handled for the map objects which relate to each item pickup.
Unfortunately, in one of these patches, at some point between 0.0.5 and 0.0.6, I accidentally changed one of the conditions to a NOT (!) condition. Which basically undid the progress I made on it before.
This has now been fixed.
Fixed a bug that could cause bosses killed before the host arrives at the boss arena to stay dead permanently. (softlock)
I've discussed before about the enemy dead counter in Dark Souls 2. Some people may be familiar with this as the mechanic in this game where if you kill an enemy a certain amount of times, it will no longer respawn when set at a bonfire, unless you use a bonfire aesthetic.
This mechanic varies ever so slightly depending on whether you're in a boss fight or not. This is to avoid situations where, if you kill a part of a boss, for example, one of the enemies in the congregation boss fight, that it does not stay dead if you fail the boss fight and have to try again, making the boss incompletable.
In seamless co op, this causes a problem because if a guest player runs ahead and enters a boss fight before the host and starts killing some of the enemies in the arena, the host's game client does not know that a boss fight is going on (since it is not in the event sphere). Therefore, it will mark the enemies killed in the boss fight as permanently dead, regardless of whether or not the fight has been completed.
I have fixed this by turning boss fights into session-wide events, which I will describe in a point further down the page.
Fixed a bug that could cause the ship in No Man's Wharf to have no collision for guest players when re-entering the area before the host was present.
There is a bug in Seamless Co-op where if a guest player warps or loads the no man's wharf area before the host or without the host present, then the ship containing the flexile sentry bus will have no collision. The visual of the ship will remain, which causes a lot of confusion as players just fall through the seemingly solid object.
This was because of a deeper event flag issue relating to Seamless Co-op, which I have now addressed.
Specifically, this is due to area or map block flags. Map-block flags are specific event flags for a specific map, which can only be loaded in a certain sequence that could not usually be achieved by a guest player. This is because, even though there are a maximum of 42 maps that can be loaded in Dark Souls 2, guest players can only have a maximum of three map block flag areas loaded at once.
I have fixed this issue by creating a custom dataset for event flags, which allow guests to have all of the event flags loaded at once instead of just being restricted to three.
Fixed a bug that could cause character reset when revisiting Things Betwixt as a guest player before the host was present.
This is exactly the same bug as described above, and it has been fixed with the same patch. The flag determining whether or not you have completed character creation is a map block flag.
Fixed a bug that made the boss defeated prompt not appear.
This was my fault.
Seamless Co op has an online event result manager which handles certain events such as players dying, bosses being defeated, arena victories, etc.
When handling "BossDestroy" events, I accidentally used a return instead of a break, which meant that the event was ignored.
This has been fixed.
Fixed a bug that could sometimes cause the boss to start with missing health.
I have described previously that in Dark Souls 2, bosses are scaled as soon as one player starts a boss fight and touches the fog wall.
This is a problem because only the host can control the boss (currently). Meaning, if another player entered a boss fight before the host, then the guest player would scale the boss, but then the host would undo the scaling as they are ultimately in control of the character's health.
I have fixed this by making bosses scale with the rest of the enemies instead of only on boss fight start.
Fixed a bug that could sometimes cause the boss or other enemies to not reset once the party is wiped out.
When a party is wiped during a boss fight, i.e., they lose. I set a flag in Seamless Coop which resets the entire world area, including the boss. Unfortunately, I forgot to also reset the enemy generator character status, which is tracked by the mod. This has now been fixed.
Reworked the way that boss fights are handled so that they are global events.
As mentioned earlier, boss fights in Dark Souls 2 are linked to event spheres. This just describes an area which encompasses the immediate few meters past the boss fog wall, which will trigger the boss fight.
Unlike in the other games, the start of the boss fight is not explicitly networked to signal a start of a boss fight on another client. This means that if one player enters a boss fight, then it does not display the health bar, start the boss music, or any other boss related events for other clients until their local character is also enters the event sphere.
This caused quite a few issues and desync related problems. Below is how boss fights will look in the future in the mod.
As you can see by the images above, no matter where you are in the world, you will still receive boss rewards if another player defeats a boss whilst you're not there.
When a boss fight is active, the boss health bars will also be visible to all players in the session.
You can no longer start a boss fight whilst another player is fighting a different boss.
As boss fights are now session wide, and there is only one boss fight that is able to be handled by the game at the time. I have made all fog walls (aside from the active boss fight fog wall) to be impassable whilst a boss is being fought.
I encourage people to stay together in Seamless Co op, so most people will not notice this.
This has a beneficial effect that all players, no matter where they are in the world, will get all boss fight rewards no matter where they are.
You can no longer use the Homeward miracle to warp while an invader is present in your world.
The use of the Homeward Bones and Dark Sign is forbidden whilst an invader is present in your world for obvious reasons.
However, I did forget to disable the Homeward Miracle. I have now disabled this.
Seamless Co op uses its own custom system hooked into the function that determines whether or not you can use items or spells. This is how I'm able to create mod items that can be used or disabled based on mod specific parameters rather than game ones.
Final note
Thank you for your continued feedback. Now that the mod is significantly more stable and bug free compared to the initial release, I can start to work on planned online features such as Covenants.
As always - thank you for your patience and a huge thank you to all of my supporters <3
Take care,
Yui