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);
                }
            }
        }

 

Mevent

Posted

Changed Status from Pending to Closed

Changed Fixed In to 1.5.3

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.2k

Files Sold

Total number of files sold.

2m

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.