Home Creators Posts Import Register Favorites Logout

Content

Hi everyone

I am back home and have started back with seamless co-op development. In this post I'll describe some of the results of the playtest I did this afternoon. Mainly focusing on the bugs and issues encountered along the way.

Overall: It's working "OK" in a sense that it's playable with some issues I can fix quickly and some I can't - One of which is detailed below.

Enemy AI

Enemy AI is implemented (in my opinion) poorly in Dark Souls II.

As opposed to the other games, which have flags for enemy AI control stored in a big "WorldChrSync" list with enemy indexes within an array organised based on where in the game world the enemy exists.

Dark Souls II has a separate "NetEnemyManager" which is only instanced for the map in which the online activity is taking place.

What this means is that, if you move from one map to the other, you have to restart the entire module which is controlling enemy AI, and this also makes it impossible to handle enemy movements, damage, and AI if two players are in separate maps.

Moving from one map to another can cause significant desync -- with some enemies being affected more than others.

Restarting the network AI manager is fairly straightforward, and if I was to do this as the player changed map then the mod would work better but still not amazing and players would probably frequently experience issues unless they remained glued together the entire playthrough.

Instead, I have created multiple (over 40) instances of the NetEnemyManager that the mod will use internally. I will have to rewrite the way in which the host and client organise who is controlling what enemy, and include map IDs with certain network packets so that I can run all of the NetEnemyManager instances in parallel.

It's a big effort, but something I enjoy a lot since it has been uncharted territory so far for me. It will be interesting to learn about it.

The post only covers one topic since I have only been home for one day and found this an interesting point to post about. I'll probably be working on this specific issue most of the week.

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

Take care

~ Yui

Files

Comments

Leo Thibodeau

This game feels so cursed to try and mod but the fact you are rising to the challenge and doing what no one bothered to do is amazing. Cant wait to play the mod

FeelsBagMan

Do you have a background in any of this or are you just learning as you go? It's something I'd love to get into for other games. Not necessarily seamless co-op, but modding in general.

Skibur

honestly no clue how you do all this lmao actually insane

Yui

It's something I'm learning as I go. Otherwise I have no IT / programming experience

Yui

It is indeed extremely cursed but overcoming a challenge like this is very interesting!

Default

The ultimate soulslike

Ryn Fox

Armchair programming question: Do you think it would be possible to use an index integer or collection/dictionary value to keep track of active NetEnemyManager instances instead of copying the code 40 times? Might make it a bit cleaner and more infinitely scalable, as well as being easier to work on in the future. I can imagine cases where that wouldn't be a simple solution so take the question with a spoonful of salt.

Yui

It wouldn't be copying all of the code 40 times, just having a lot of NetEnemyManager classes that I can pass to the various functions. All 40 won't be active all the time, only the ones for which the maps are loaded that makes sense (so realistically 1 - 3 active)

Ryn Fox

I've not worked enough with class-based programming to go too much deeper on the subject. If it works it works and that's what matters at the end of the day. Most things you come up can't be stranger than some of the things in the base code. 😅 Looking at you, framerate-dependent weapon degradation.

Philip A Guernsey

Great work! Literally so excited for this. I put countless hours with my brother into this on the PS3. This mod will probably bring us back to playing it. Your work is literally bringing family together. Take pride.

TheFallender

Thanks for the awesome work Yui! Hope I get the chance to play it with friends soon!

dh

another ds2 update we eating good yall

Cactos

Thank you Yui for your efforts! That's amazing!

BumBum

keep up the grind at your own pace! can't wait for this masterpiece to come out!

Enki

I'm so excited to use miracles in dark souls 2 seamless coop

Hidden Is Classified

You are absolutely marvelous! Amazing work Yui. Thank you for everything you do!

43R0B1C5

So excited for DS2 Seamless Co-op!! Thank you for your hard work!!!

VOID

Love the details on how you solve challenges.

Игорь Ротарь

Yui, could you please tell me how long, in your opinion, the development of your mod will take?