AutoSaveWorld icon indicating copy to clipboard operation
AutoSaveWorld copied to clipboard

Possible fix for 1.13

Open mattboy9921 opened this issue 5 years ago • 9 comments

It appears that saveLevel() is absent from WorldServer.java in 1.13. All I've done is take what saveLevel() was doing which is this.dataManager.a() and have the reflection util get the dataManager object and invoke the a() method on it.

I am of course very new to reflection but after some basic testing, I am no longer getting any errors in console. I hope I've called everything correctly and this results in proper saving. Please advise!

mattboy9921 avatar Sep 19 '18 05:09 mattboy9921

I hate to ask but can you provide a compiled version with this change for 1.13? I'd really appreciate it.

MarkElf avatar Nov 27 '18 14:11 MarkElf

Sure. Here's the version I was using on my server. I actually learned that with Paper, it's easier to rely on the built in saving mechanics and just use a shell script to back up worlds which is what I switched to just a few weeks ago.

Here's the link: https://mega.nz/#!hkUiSaJa!nZvjVV8VUjvEg2upVCVw4aQS2ezG73mgPdgbQVdGRFo

mattboy9921 avatar Nov 27 '18 14:11 mattboy9921

I've gotten comfortable using autosaveworld for backing up worlds, plugins, and reboot the server at midnight / off hours for years now otherwise I'd probably consider a shell script at server startup. Regardless, thank you so much.

MarkElf avatar Nov 27 '18 16:11 MarkElf

This fix works. The annoying console-spam message is gone! Thank you,

encode42 avatar Mar 07 '19 21:03 encode42

Here's a version that appears to be working for 1.14.3. Take the .txt file extension off so it's recognized as a jar file. AutoSaveWorld.jar.txt

TheRandomLabs avatar Jun 25 '19 13:06 TheRandomLabs

This version should work for 1.14.4 with Google Drive support. I haven't tested this. AutoSaveWorld.jar.txt

TheRandomLabs avatar Sep 08 '19 10:09 TheRandomLabs

Thanks @TheRandomLabs for the 1.14.4 fix. Do you have the source code, I'dd be interested in the changes you made.

J0B10 avatar Nov 04 '19 22:11 J0B10

You're welcome. I don't have the source anymore, but I'm pretty sure I just updated some method names. It was a simple fix.

TheRandomLabs avatar Nov 05 '19 03:11 TheRandomLabs

Hi now i become this error: [AutoSaveWorld] Could not dump RegionFileCache java.lang.RuntimeException: Can't find method r with params length 0

xazes avatar Nov 28 '19 08:11 xazes