Barony
Nelots May 29, 2019 @ 9:59pm
My friend is having issues when playing with me.
So a friend and I were playing barony, and everything was fine, However, once we got to the 4th floor, he started essentially lagging behind. He started complaining about having a slight delay when shooting spells or opening doors. I guess it progressively got worse, because by the end of that floor it was taking him like 8 minutes for the game to register that he did something.

I told him to come to the trap door, and I went to the next floor, but he said he was still on the last floor for a long time. On my screen, he was just standing still on the current floor, but for him he never left the last one. During that time, I fought a couple of shop keepers, won, then went to sit in the water and level up my swimming ability. Once he finally ended up on the floor on his side, he saw me fighting the shop keepers despite the fact that I did that almost 10 minutes ago.


A couple things I should note:
-Because he was seeing things that happened like 8 minutes ago, he began following my 'ghost'. Whenever he poked my ghost, I would actually get pushed even though I was nowhere near him. Whenever I poked him, he didn't get pushed until the 8 minutes or so.

-I saw everything happening in real time, he was the only one having issues. He was sitting in a pool of water for about 10 minutes while I murdered shop keepers, and when I next saw him he was standing on the water. According to him, he was swimming in the water and only a novice at swimming.

-He could still attack things and get attacked in real time, he just had no idea any of it was happening. On his screen he was spamming a cold spell at a door because it wouldn't open, but in reality he had murdered his troll ally who was standing in front of the door. When I told him, he said he didn't and the troll was by me.

-At one point he died (only in real time, on my side -- on his side he was perfectly fine) and my game instantly crashed to the desktop.

-We tried restarting our computers, resetting our routers, everything, but nothing worked. This happened every time we tried a new save. We never tried letting him host, so we may try that in the morning. There are no connection issues on any other games we play together, just Barony.



Anybody have any idea what might be going on, or if there is any way to fix this? We've never had this issue before today.
Originally posted by Nelots:
Originally posted by WALL OF JUSTICE:
Alright pushed a new steam build dated 21/06/19. Under settings->misc there is a new networking option "disable netcode FPS optimization". Tick that, and the network processing should be the same as before I "improved" it.

Let me know results! If your FPS dips using it that's because network traffic is being prioritised over frame-rate.
We just played a 6 hour game and had almost no delay issues. Very randomly the delay would appear for a couple seconds, but it fixed itself and it wasn't ever an issue. There were definitely some FPS drops on the later floors, but at least we could play. So it definitely seems to be working now.Thank you very much!
< >
Showing 1-15 of 22 comments
para May 30, 2019 @ 5:40am 
When you play for a long time, especially online, the game lags, but leaving the game and joining back should always fix this, And something new since you never had this issue before... Do either of you live in a house with others, or in the same house? If so, its possible that the others are streaming, or doing something else that is slowing down the internet. You may also not want to have other programs that may use internet in the background.
WALL OF JUSTICE  [developer] May 30, 2019 @ 4:12pm 
Yeah this shouldn't happen at the 4th floor.. try using direct IP, or go to settings misc and disable Steam multithreading. Or just try a different day maybe it was bad internet.

As you saw the issues on your server end, then the client's data was not getting sent to you in time.

The playing for a long time is FPS impact more than the network lag (i.e wouldn't cause 8 minutes of delay)
Nelots Jun 9, 2019 @ 6:28pm 
Bump.

I gave it some time and the issue is still occurring. Every time my friend and I play, this ends up happening. Relaunching the server will fix it for a little while, but it really sucks losing all your progress on a floor because your friend can suddenly no longer do anything. I've told my friend to host instead of me, but it still persists, but I'm the one with the delay issues instead of him. We're currently on the 25th floor (right after Herx) and I can't fight the shop keepers like I always do because it takes too long and I end up with lag so bad I can't do anything.

One thing I noticed is that the delay seemed to be worse when he hosted. Not only was the delay itself worse, but it also started much sooner. I bumped my friend and we decided to time how long it would take for him to get bumped on his end. We went 12 minutes and he never got bumped, but we got bored and quit so I can't say for sure how long the delay was. At least 12 minutes.

We tried your suggestions, disabling Steam multi-threading didn't seem to help at all. We tried using direct IP but it didn't work (though we were sorta fed up with the game at that point so we only gave it one try- we'll have to try it again tomorrow or something.)

Since I haven't seen anybody else with this issue, I'd imagine it's a problem with one of us. None of my other friends with Barony have time to play so I can't check.
Originally posted by Nelots:
Bump.

I gave it some time and the issue is still occurring. Every time my friend and I play, this ends up happening. Relaunching the server will fix it for a little while, but it really sucks losing all your progress on a floor because your friend can suddenly no longer do anything. I've told my friend to host instead of me, but it still persists, but I'm the one with the delay issues instead of him. We're currently on the 25th floor (right after Herx) and I can't fight the shop keepers like I always do because it takes too long and I end up with lag so bad I can't do anything.

One thing I noticed is that the delay seemed to be worse when he hosted. Not only was the delay itself worse, but it also started much sooner. I bumped my friend and we decided to time how long it would take for him to get bumped on his end. We went 12 minutes and he never got bumped, but we got bored and quit so I can't say for sure how long the delay was. At least 12 minutes.

We tried your suggestions, disabling Steam multi-threading didn't seem to help at all. We tried using direct IP but it didn't work (though we were sorta fed up with the game at that point so we only gave it one try- we'll have to try it again tomorrow or something.)

Since I haven't seen anybody else with this issue, I'd imagine it's a problem with one of us. None of my other friends with Barony have time to play so I can't check.

Just had this problem last night, the game was working fine until we got to the 7th floor. I started having desync while everyone else was fine (playing in a 4 man party) and the game kept lagging behind, it fixed itself halfway through 7th floor until we went into the temple. There it kept desyning further and further, they were on the next floor while I was on the last floor. It was that bad, I don't know if this is a connection problem or hardware problem. One thing I do know is that I'm the only one with the race DLC while everyone else doesn't have that, is that what's causing it?
Last edited by RALATHEHUNTRESS and Co; Jun 11, 2019 @ 5:39am
Nelots Jun 11, 2019 @ 10:36am 
Originally posted by MAROCTHEBOW:
One thing I do know is that I'm the only one with the race DLC while everyone else doesn't have that, is that what's causing it?
Both me and my friend have the DLC, so that's definitely not what's causing it for me.
Originally posted by Nelots:
Originally posted by MAROCTHEBOW:
One thing I do know is that I'm the only one with the race DLC while everyone else doesn't have that, is that what's causing it?
Both me and my friend have the DLC, so that's definitely not what's causing it for me.

Okay, the weird thing is that before the dlc came out. This style of lag/desync never happened before it, its only affecting me now. However when I left the game one of my friends then got affected by it. So it started happening to another player after I left with it affecting me, just a strange bug of sorts then.
Last edited by RALATHEHUNTRESS and Co; Jun 11, 2019 @ 12:13pm
WALL OF JUSTICE  [developer] Jun 17, 2019 @ 7:39am 
Could you guys post your OSes? Interested to see if it's Windows or Linux.

At the moment I don't have any leads why this is happening.. how many players in your multiplayer games did you guys have?
Nelots Jun 17, 2019 @ 12:48pm 
Originally posted by WALL OF JUSTICE:
Could you guys post your OSes? Interested to see if it's Windows or Linux.

At the moment I don't have any leads why this is happening.. how many players in your multiplayer games did you guys have?
My friend and I both have Windows 10. It was just us two playing.
tacogao Jun 18, 2019 @ 2:58pm 
make sure you're both using the disable multithreading option, happened to my group of friends too
WALL OF JUSTICE  [developer] Jun 18, 2019 @ 4:41pm 
Could also try /tickrate 1 to push as much network traffic through as possible. /tickrate 2 for the default.
Nelots Jun 18, 2019 @ 10:49pm 
Originally posted by WALL OF JUSTICE:
Could also try /tickrate 1 to push as much network traffic through as possible. /tickrate 2 for the default.
Played a quick game with my friend and tried this, delay was still there. Also, to the post above, I did make sure we both had it disabled.
WALL OF JUSTICE  [developer] Jun 18, 2019 @ 11:48pm 
Hmm try /debugtimers and then let us know what debug section in the top left has the highest millisecond (ms) typically
Last edited by WALL OF JUSTICE; Jun 18, 2019 @ 11:49pm
Nelots Jun 20, 2019 @ 6:28pm 
Originally posted by WALL OF JUSTICE:
Hmm try /debugtimers and then let us know what debug section in the top left has the highest millisecond (ms) typically
The only thing that really stood out was his Events2 was at a solid -617,410,681.71650ms while mine was at 0.005ms.

When we tested this, I was the host and we weren't having any delay issues yet. Should we wait til we have issues and try this again?

Edit: We both took screenshots because I wanted to compare them, I figured I'd add them here.
https://imgur.com/a/dq2dxak
Last edited by Nelots; Jun 20, 2019 @ 6:33pm
WALL OF JUSTICE  [developer] Jun 20, 2019 @ 7:08pm 
Yeah wait until delay gets bad then look for patterns as it changes.

It updates only whenever the frame rate dips below 60fps and says how long each module takes. Status/GUI spikes whenever you mouse over things for the first time so I'm inclined to look at the other modules.

In multiplayer the events2 timer doesn't work correctly so just ignore that one.

At 60fps the total time needs to be less than 16ms so I'm curious if your PC starts taking longer and longer between frames. Also post the log.txt of the machines when the lag starts happening with /debugtimers
WALL OF JUSTICE  [developer] Jun 20, 2019 @ 7:11pm 
Oh also what's the specs of your PCs? My theory right now is your frame rate stops reaching 60fps and never has time to process network information.

/showfps displays current fps let me also know your typical fps values server and client
< >
Showing 1-15 of 22 comments
Per page: 1530 50