Jump to content

Raid Bases causing stutter on server

Closed 2.1.9 2.2.0

doublee313


doublee313

Posted

We have noticed a "stutter" on our servers when Raid Bases is on. This only started with the 2.1.8 when I pushed it. 

I tested on 2 servers (different server boxes) over the last 2 days and it goes away when we remove the plugin. 

It seems every minute the player rubberbands anywhere on the map a few times. I've confirmed it's not the server and it works when RB is pulled. 

Everything has been working for 7-8 months so we know how to use it. This is new with the Rust patch/plugin updates.

Thanks

doublee313

Posted

Started with version: 2.1.7-2.1.9  (somewhere with these). 

TheMoonBunny

Posted (edited)

I can confirm this 100%. As Doublee's player and admin, we tested this just a couple minutes ago. The stutter or "sticky" feet started slow but as more bases pasted in, it became worse to the point of stepping 1 foot ahead, 10 back. As soon as the plugin got turned off and bases despawned, everything went back to smooth movements again. This also infects moving AIs

 

The stutter has no effect on admins in noclip mode

Edited by TheMoonBunny
nivex

Posted

ok thanks. i will look into this now. please do not create duplicate threads guys. keep the information here. i appreciate it.

  • Love 1
LosGranada

Posted

i role back to 2.1.6 and this works fine.

  • Like 1
ZEODE

Posted

I had to unload the 2.1.9 version, terrible rubber banding especially near monuments and bases. Does anyone have 2.1.7? I have 2.1.6 which is OK, but 2.1.7 was also good for me?

nivex

Posted

Quote

Delay Between Entity Death While Despawning Base

can you set this to 0.25 and tell me if it solves the issue for you?

ZEODE

Posted

On 10/19/2021 at 2:48 PM, nivex said:

can you set this to 0.25 and tell me if it solves the issue for you?

I can try this later if I have time after work, although I don't know how it would change anything. In my testing to find what was causing the rubber banding I had restarted the server, meaning no raid bases initially and then new spawned in, so none were despawning and the server would lag and rubber band from the moment the server came online. Once I narrowed it down to RaidableBases plugin I would see the same on reloading the plugin, all bases destroyed, plugin loaded and the rubber banding would start pretty much immediately on plugin load. So doesn't seem to relate to despawning issues.

nivex

Posted

@ZEODEperfect thank you guys so much for being so detailed. this will help me narrow down the issue

  • Like 2
doublee313

Posted

2.1.6 seems to work for me as well. 

Apoco

Posted

I use 2.1.6 and rubber banding for me is nuts tried changing to 0.25 but no luck

nivex

Posted

2.1.6 has no issue with rubberbanding. the issue started in 2.1.7

nivex

Posted

@ZEODE

can you replace this in the code (RaidableBases.cs):

public Coroutine StartCoroutineEx(IEnumerator enumerator, string methodName)
{
    Action<Exception> action = new Action<Exception>(ex =>
    {
        if (ex == null)
        {
            return;
        }

        Interface.Oxide.LogInfo("[{0}] {1} : {2}", "Raidable Bases", methodName, ex);
    });

    return ServerMgr.Instance.StartCoroutine(Choke(enumerator, action));
}

with this:

public Coroutine StartCoroutineEx(IEnumerator enumerator, string methodName)
{
    return ServerMgr.Instance.StartCoroutine(enumerator);
}

and tell me if it fixes the issue?

you literally just search for StartCoroutineEx, select all of the relevant code shown in the first snippet, and replace it with the code shown in the second snippet

ZEODE

Posted

2 hours ago, nivex said:

@ZEODE

can you replace this in the code (RaidableBases.cs):

public Coroutine StartCoroutineEx(IEnumerator enumerator, string methodName)
{
    Action<Exception> action = new Action<Exception>(ex =>
    {
        if (ex == null)
        {
            return;
        }

        Interface.Oxide.LogInfo("[{0}] {1} : {2}", "Raidable Bases", methodName, ex);
    });

    return ServerMgr.Instance.StartCoroutine(Choke(enumerator, action));
}

with this:

public Coroutine StartCoroutineEx(IEnumerator enumerator, string methodName)
{
    return ServerMgr.Instance.StartCoroutine(enumerator);
}

and tell me if it fixes the issue?

you literally just search for StartCoroutineEx, select all of the relevant code shown in the first snippet, and replace it with the code shown in the second snippet

Sure no worries, I have just loaded it on one of my servers and so far so good. Before it would rubber pretty much immediately. So far its not at all, I will leave it running for a while and try it out again a little later after more bases have spawned in too and let you know.

ZEODE

Posted (edited)

So, I tried again later, in and around monuments I'm getting very bad rubber banding again. I would like to say that I don't think it is quite as bad, but still unplayable. I've reverted back to 2.1.6 again for the time being.

Edited by ZEODE
  • Like 1
nivex

Posted

14 hours ago, ZEODE said:

So, I tried again later, in and around monuments I'm getting very bad rubber banding again. I would like to say that I don't think it is quite as bad, but still unplayable. I've reverted back to 2.1.6 again for the time being.

did you try this after a server restart btw?

ZEODE

Posted

4 hours ago, nivex said:

did you try this after a server restart btw?

No, I loaded 2.1.9 with your edit request on an already running server which had been running 2.1.6 before. Initially it seemed better, but when I left it running and came back a couple hours later to try again it was rubber banding.

  • Like 1
nivex

Posted

@ZEODEif you don't mind...

change

Quote

public const float CELL_SIZE = RADIUS / 4f;

to:

Quote

public const float CELL_SIZE = 12.5f;

the lag might have to do with how many locations are on the grid, which would cause the search method to take longer to execute and potentially rubberbanding

ZEODE

Posted

50 minutes ago, nivex said:

@ZEODEif you don't mind...

change

to:

the lag might have to do with how many locations are on the grid, which would cause the search method to take longer to execute and potentially rubberbanding

I will try it, although, I changed the map size this wipe from 4k to 3500 and the map seed isn't great, lots of hills and monuments close together. So valid spawn locations are so few it doesn't even maintain my max events. I have made the changes in addition to the previous and will let you know how it goes later.

ZEODE

Posted (edited)

I just had another thought, I had changed the protection radius from the default 50 as I found the pvp zone created around the bases was too small and people could abuse it as they don't become vulnerable until very close. I read in the plugin info that setting too high or low could affect the plugin. I had set it to 100, could that influence anything at all with this issue?

With that in mind though, is there anything else I could change other than protection radius to increase the PvP zone around the bases?

p.s. Made the changes you specified and loaded the plugin, again, so far everything is smooth and as I write 15 bases have so far spawned. I will update you again a little latter once it's been running a few hours.

Edited by ZEODE
ZEODE

Posted

5 hours ago, nivex said:

@ZEODEif you don't mind...

change

to:

the lag might have to do with how many locations are on the grid, which would cause the search method to take longer to execute and potentially rubberbanding

Well, its been about 3 hours or more and so far everything is smooth and no rubber banding anywhere. 

nivex

Posted

8 hours ago, ZEODE said:

Well, its been about 3 hours or more and so far everything is smooth and no rubber banding anywhere. 

unfortunately protection radius is the only modifier for this and it would prevent the plugin from spawning bases if its too large. it should be large when spawn points are manually added on islands for example, or when dedicating regions of a map specifically for raid bases with no build zones in zone manager and that would require you add said zones to the config too

glad to hear the performance issue is fixed! if it is still fixed please let me know and i will submit the update

  • Like 1
doublee313

Posted

I applied the code change above and will test today.

ZEODE

Posted

4 hours ago, nivex said:

unfortunately protection radius is the only modifier for this and it would prevent the plugin from spawning bases if its too large. it should be large when spawn points are manually added on islands for example, or when dedicating regions of a map specifically for raid bases with no build zones in zone manager and that would require you add said zones to the config too

glad to hear the performance issue is fixed! if it is still fixed please let me know and i will submit the update

Tested again now, it’s been running all night and all is good. Smooth, no rubber banding. 

  • Love 1

1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.3k

Files Sold

Total number of files sold.

2.3m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.