Comments (7)
I might be able to write a small example script for this later today.
https://github.com/KurtThiemann/thanos-in-place
I know I am repeating myself, but please somehow make a backup.
from thanos.
Well in that case you probably don’t want to use the node version
from thanos.
Running this tool on a server that is currently running is probably a bad idea. Deleting stuff in regions that are currently loaded by the server would likely cause issues, and I don’t think there is any great way of determining whether a region is currently loaded.
The reason thanos does not remove chunks in place is that this would require to load whole region files into ram. This probably would not be an issue in your case (region files only get to around 10MiB), but it becomes important when running a lot of thanos instances in parallel.
You could make something like this work by immediately replacing the input region file with the output region file as soon as it is written. I might be able to write a small example script for this later today.
Somebody also created a nodejs version of thanos some time ago, which can do stuff in place if I remember correctly. Note that the JS version is slower than the PHP version, which might be relevant considering your world’s size. I am unfortunately somehow completely unable to find that repo right now.
Before making any changes to your world using any of these methods, please make a backup.
from thanos.
Before making any changes to your world using any of these methods, please make a backup.
Got no disk space for that
from thanos.
I assume you mean this?
https://github.com/Saiv46/node-thanos
This project is unmaintained, so it WILL DEFINENTLY CORRUPT YOUR WORLDS.
yikes
from thanos.
@KurtThiemann sorry for the comment spam ._.
The reason thanos does not remove chunks in place is that this would require to load whole region files into ram. This probably would not be an issue in your case (region files only get to around 10MiB), but it becomes important when running a lot of thanos instances in parallel.
Is this how you guys use thanos? What thanos was made for? Run a lot of instances in parallel? Why? I do not see it working for the same world file. Or do you have multiple worlds plus limited ram?
You could make something like this work by immediately replacing the input region file with the output region file as soon as it is written. I might be able to write a small example script for this later today.
would save my life ❤️ no pressure tho :D
Running this tool on a server that is currently running is probably a bad idea. Deleting stuff in regions that are currently loaded by the server would likely cause issues, and I don’t think there is any great way of determining whether a region is currently loaded.
Thanks for the warning. I guess I could still schedule a maintenance downtime via cronjob and run this a few hours during night. A key feature that I still would need here is that it does not have to finish going over the whole world to delete something otherwise I am forced to do super long downtimes. Ideal would be custom offsets and partial snaps.
from thanos.
Is this how you guys use thanos? What thanos was made for? Run a lot of instances in parallel? Why? I do not see it working for the same world file. Or do you have multiple worlds plus limited ram?
This is what thanos is used for on Aternos: https://support.aternos.org/hc/en-us/articles/360055516791-World-option-Optimize
Since there are many servers on Aternos, multiple instances of thanos will run on the same machine.
The main reason why we created thanos as a standalone program is that it needs to work with many different Minecraft versions and mod loaders, and servers on Aternos are stopped regularly anyway. The best long-term solution in your case would probably be a custom plugin that just prevents chunks from being saved if they have not been modified.
from thanos.
Related Issues (16)
- Thanos trying to get the inhabited time of null HOT 2
- Thanos removed only chunks from overworld [CLOSED] HOT 7
- No Issue...BUT THATS A GREAT NAME FOR UR SOFTWARE
- Root package 'aternos/thanos' cannot require itself in its composer.json HOT 1
- Many incompatibilities with data packs HOT 1
- PHP Fatal error: Uncaught Exception: Failed to inflate input data. HOT 2
- Error while trying to use .thanos HOT 3
- About setMinInhabitedTime HOT 2
- Error While Running The Software HOT 4
- `hasExistingChunks()` seems to return false for the first region HOT 4
- How to use it in a minecraft server? HOT 3
- Failed to inflate input data. HOT 1
- Getting Issues with the new version HOT 10
- Thanos' chunk trimming can be destructive to trees HOT 6
- chunk whitelist/blacklist HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thanos.