Carpet

Carpet

2M Downloads

Tickrate Resets on Server Restart

SirHodgeheg opened this issue ยท 9 comments

commented

Hi,
When setting a custom tick rate on my server using /tick rate X, the game tick rate value resets after restarting the server or stopping and starting it again.
Is there a way to permanently change the tick rate?

commented

You could make a tiny scarpet script to run the tick rate command when the server starts, using run('tick rate 12345') (in an sc file).

commented

Hi,
Thank you very much for the very quick response! However, I am very new to Mods and so that would be very difficult for me to figure out. Could you please explain how I could do this?

commented

In the world folder of your server, create a folder called scripts, and create a new file there called tickrate.sc for example (needs to end in .sc). In that file, paste this line with the tick rate you want:

run('tick rate 10')

This should then execute when the server starts.

commented

Thank you very much!

commented

For some reason, this doesn't seem to work. Do I need to add Scarpet somewhere?

commented

Scarpet is included in carpet

  • Is the script located under /world/scripts/tickrate.sc?
  • Make sure /carpet setDefault scriptsAutoload true is set
  • If you type /script load in chat, does the script name autocomplete?
commented

Thanks! It now works!

commented

Going to close this then.

commented

Related to #1818.