Jump to content

Bad server lag after this in console

Work in Progress 1.5.4

hairybeanstalk
hairybeanstalk

Posted

22:58 [Info] [DisbandedTeamRestore] Called hook 'OnServerSave'
22:58 [Info] [DisbandedTeamRestore] Called 'SaveTeams' with parameter 'shutdownWasSuccessful' False
22:58 [Info] [DisbandedTeamRestore] Called 'SaveDataFile' with parameter 'fileName' SavedTeams
22:58 [Info] [DisbandedTeamRestore] Ended 'SaveTeams', 7 teams were saved.

21mac21

Posted

hi there,

could be please change "bool debug = false" to "bool debug = true" in the plugin file? this may produce a more detailed logging in the console.

since the part you posted only saves a small file (like 20-50 kb in size),  can't imagine why this would lead to lags.
can you reproduce it?

 

If you run the commands "save" and "oxide.save" in the console, the hook "OnServerSave" will be called and my plugin does react to this and save the file.
could be please try this a few times and take a note of this happens always after my plugin saves?
How large is the "savedTeams.json" data file?
saving teams on a 1000 pop server may take a little longer than saving teams on a 100 pop server, but it should not lead to lags.

  • Love 1
21mac21

Posted

Changed Status from Pending to Work in Progress

1.8m

Downloads

Total number of downloads.

8.5k

Customers

Total customers served.

128.2k

Files Sold

Total number of files sold.

2.7m

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.