Home Creators Posts Import Register Favorites Logout

Content

Hi everyone,

Since I've been working more on Dark Souls 2 this week. As I mentioned in my previous post, I've been working on stress testing the mod to make sure it can handle the conditions real users will be playing with.

In this post I'll be going over some of the progress I've made.

Stress Testing

When I test these mods before release, I usually do 10 or more playthroughs with my friends to check to see if the mod is behaving as it should be, and if there are any game-breaking bugs.

Although this is normally satisfactory, the same logic of "if it works with 3 players, it'll probably work with 4, etc." cannot be applied to Dark Souls II because of it's bizarre summon slot system locking certain phantom types out of the world depending on various character factors (such as covenant)

Thankfully, the mod appears stable with higher player counts, including players warping / disconnecting freely. There was one crash associated with a missing class in one of the functions I wrote to acquire player networking information in a thread-safe manner, however I fixed it relatively easily once it happened.

The other issue I encountered is that I did not account for a player sitting at a bonfire whilst another player was fighting a boss. This just caused the boss to reset to it's inactive state and the player inside the boss room could get a free kill. I have addressed this by disabling bonfire use when a player in the session is fighting a boss.

Spectating, enemy scaling, and other functions linked to player count also behaved correctly.

QoL

ALT GR

I noticed that pressing ALT GR on your keyboard during the name creation screen caused all other inputs to be dropped until you either tabbed out or pressed CTRL. Looking into it, it seems like Dark Souls II treats the ALT GR key as if you're holding down the CTRL button permanently (for text inputs).

I opted not to change this, because fixing it would require me doing a deep dive into the KatanaMainApp input system (which looks really long and boring) plus the benefit of fixing it is minimal and fixing the issue at runtime is easy. So although it isn't technically a QoL fix I'm just writing it here just in case other people encounter it and can fix it themselves.

Player frame update rate

A player frame update refers to a networking packet which contains information about a specific player - specifically how much health they have, where they are, and which way they are facing (as well as some other specific flags such as damage negation).

In the vanilla game, players will poll changes to their own player data at a rate of 15 frame per second. Only if any changes to the player's parameters have occurred in those frames then an update will be sent to the session to update their player character on other players screens.

In seamless co-op, I have changed it to poll changes at a rate of 60 frames per second. In addition to this, a full set of frame data is transferred about the player regardless of whether it has changed or not. This was originally done to fix a different bug that I created, however it has the upside of making network player movement feel more responsive at a cost of a small increase in networking traffic (about an extra 1KB/s)

World State Networking Patches

The world state packet is unique to Dark Souls II, and contains all of the information a client needs about the host world in order to connect.

It's a variable size packet, but at it's smallest it's around 33,440 bytes containing various structures of information such as summoned NPCs, enemy states, enemy positions, dropped items, event values, etc.

I've had the pleasure of completely mapping out and naming every single variable in all of the networking packets (to the best of my ability), and this one was by far the most fun to go over, mainly because of how many crashes and exploits could be inflicted by malforming various parts of this packet.

As I've said before -- although FromSoftware did a great job fixing the vulnerabilities for all of the networking packets that I sent to them in the document, some of them were overlooked such as:

MapItemPackCtrl (such as forcing items and crashing)

CharacterStatusPacketReceiver (changing hollow states)

NetNpcPhantomSync (out-of-bounds write up to 4456380 bytes)

These have been fixed in both Blue Acolyte and now in Seamless Co-op, so hopefully the disruption cheaters can have on the community is minimised. Even though I am confident in my fixes, seamless co-op will also automatically backup save files.

As always - thank you for your patience and a huge thank you to all of my supporters <

Take care,

Yui

Files

Comments

Erizana

Thank you so much for your hard work!

Sookl

I am so excited for this!

Eian cook

Amazing keep up the good work yui!!

HuffsPaintThinner

Thanks for the update. Happy that you are putting alot of work into this. Looking forward to playing it

Joemal

Very kingly, most wouldve quit on ds2 due to how differently its coded, im very proud of you for persevering :)

Max Ishchenko

Great work! Can’t wait for this to drop

TheChesireMouse

The mod of Theseus How many hours do you think you've put into the project at this point? Looks great as always, thank you!

Yui

It's loooooooong but interesting at least :)

ShadTheBoss

Day 1 asking how did you figure out how to remove the phantom effect on your coop summons ? (also testing to do my own Seamless Coop on ds2 SoTFS only because of you giving me such a goal to achieve !) What a devotion of yours ! Take your time and enjoy it ! Thank you and long live to the GOAT

Yui

I started before I announced so it's been about 18 months and probably around 2000 - 2500 hours so far if I had to guess

Yui

I set their phantom/invasion type to 0 (type host). Best of luck with it! :)

TheChesireMouse

That's absolutely nutty. Especially balancing everything else. You're crazy, appreciated, but crazy!

miramax09

Thank you Yui, it’s so thrilling to watch the mod coming alive 😍 will it make sense, to use Seamless Co-op with Blue Acolyte together?

Yui

Nope, seamless co-op has everything Blue Acolyte as, so using them both is unnecessary

Jesse McCard Jr

Another win for the team! I think it’s so cool you’re working with the FromSoft team!!

Yui

I wish! I just sent them all the documentation of the exploits for all of the games and then they magically fixed it a year or so later after the servers came back up :)

Jesse McCard Jr

Well when you’re recognized for all your effort and ingenuity by them, I’m sure you’ll be doing more than making mods for the folks who still love 10 year old games 😆 You’re blessed!

Kellen Losch

Reading these is always so interesting. Learning a little bit more about the inner-workings of how the games do what they do is super cool. Even more so when you essentially are remaking the game lol. Thanks for the update, very cool 👍

ShadTheBoss

Damn that sounds so simple oh my god 😭 thanks a lot !

Spartan Fred

I Wonder how from soft feels knowing there’s someone out there that knows their own game inside and out better than they do?

FeelsBagMan

You do great work! Can't wait to try this with my friends 😁

ManaImplosion

I've been looking forward to this for a long time. I can't wait to force my friends to enjoy DS2 with me.

Joemal

My late partner and I played your seamless coop for elden ring and ds1+3, she was so excited for this one (it was our favourite souls game). I am sure you will do a great job on this too, just as you have done with the others

Vadym Chesanovskyy

Very proud of your work, exited to play DS2 on seemless. It was my first soul game and the beloved one. Thank you!

Musashi

Great update. One thing I’d be interested in seeing is whether the 60 FPS player updates noticeably improve things like PvE enemy targeting or phantom hit registration compared to vanilla. Is that something you’ve been able to measure objectively?

Sander Westerdahl

just finished my first seamless co-up run of dark souls 1 with my friend (it's their first time playing dark souls), and we're super excited to play ds2 together as well. really cool that you're doing this! : )

Michael Nuzzi

I’m so readyyyy keep coming to check everyday! 🤩