Jump to content

Command not server friendly?

Closed 1.5.2 1.5.3

The Friendly Chap

Posted

Using the "/up all X" function on a very large building can cause the server to kick players for "Player Tick"

I suspect what it's doing is listing all the items to upgrade and then upgrading them. This can be solved.

Sloppy example, but the idea is to give the command a yield so it doesn't lock up the server whenever some player does /up all X on a fortress sized base.

        private IEnumerator Upgradeiteml(string animalDictKey)
        {
            foreach (var buildingblockthing in groupofstufftoupgrade)
            {
                {
                    Upgradecommand(buildingblockthing);
                    yield return new WaitWhile(() => !buldingblockisupgraded);
                }
            }
        }

 

  • Curator
Mevent

Posted

Changed Status from Pending to Closed

Changed Fixed In to 1.5.3

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.5m
Total downloads
Customers
11.1k
Customers served
Files Sold
159.6k
Total sales
Payments
3.4m
Processed total
×
×
  • 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.