Server load > CTRL-S save all files



  • Within code editor, seems CTRL-S save all files on server when only one file was edited.

     



  • That's because there are only two options: Commit and reset changes. Commit has CTRL-S as shortcut, and saves all files.

     

    Afaik there is no way to save a single file.

     

    Edit: Perhaps I misunderstood what you mean. In what context do you detect whether only one or all files were saved on the server?



  • If you use stream client you can use your favorite editor. Your file should be at C:\Users\<USERNAME>\AppData\Local\Screeps\scripts\screeps.com\default for Windows 10. You can edit several files and only file you save will be uploaded. Stream client sync updated files to server for you.

    Please note that when play in browser, files in that location don't commit to screeps server automatically. It only save to server when Screeps Stream Client open. And stream client will download files from server to replace local updated files that you edit when client is not running.



  • OK, thank you for the answers. It's not an issue for me but for the server. In the context of an MMO, uploading+writing a lot of files for nothing may become an issue.

    It's just a suggestion to screeps devs to implement the save/commit by file.