Comments (16)
@NathanAdhitya or @VoidAngel mind sending me your WHOLE data-storage/Slimefun folder (upload it somewhere)? I'll start digging into the saving code since I myself doesn't exactly know how that works :P
from slimefun4.
It also happens with every AContainer.
from slimefun4.
Looks like a critical bug, or is it? Doesn't happen with the Electric Furnace tho.... for some reason.
from slimefun4.
Update: Looks like it's how late the SF Block Storage goes kick it on updating the list...?
Somehow, It reverted the Blocks from like a day mark, which is.... weird?
from slimefun4.
I don't really understand the saving process, but I do know that
- This happens with every AContainer like Poslovitch says.
- Another thing that I can replicate consistently is that if you, for example, make 64 magnets in the electric smeltery, remove them, leave the smeltery empty, and restart the server you will find the 64 magnets both in your inv and back inside the electric smeltery. (So basically a dupe)
Does it not update and save the block inventory to disk when you take items out? Or even on an interval? - Last, this is probably the same issue. I've found that when the server has a decent amount of cargo nodes (input or advanced output) they tend to reset a lot. By reset I mean lose their whitelist/inv/round robin mode settings. Its pretty random and I cant put an event to it like, for example, a server restart
from slimefun4.
Not happening to me. When Slimefun disables it saves the current state of each block. Have you modified the config at all? Are there any errors from Slimefun when stopping the server?
from slimefun4.
Hardy touched the config
options:
auto-update: false
armor-update-interval: 10
give-guide-on-first-join: true
print-out-loading: false
enable-armor-effects: true
prefix: '&a&lSlimefun &7>'
auto-save-delay-in-minutes: 10
show-vanilla-recipes-in-guide: true
guide:
default-view-book: false
URID:
info-delay: 3000
custom-ticker-delay: 12
enable-tickers: true
items:
talismans: true
coolers: true
backpacks: true
research-ranks:
- Chicken
- Cow
- Spider
- Villager
- Beginner
- Clumsy Student
- Unskilled Student
- Incompetent Student
- Student
- Clumsy Apprentice
- Apprentice
- Skilled Apprentice
- Upcoming Mage
- Excellent Mage
- Young Magician
- Incompetent Magician
- Common Magician
- Magician
- Proficient Magician
- Skilled Magician
- Accustomed Magician
- Great Magician
- Clumsy Wizard
- Wizard
- Common Wizard
- Skilled Wizard
- Great Wizard
- Impressive Wizard
- Young Master
- Clumsy Master
- Upcoming Master
- Competent Master
- Master
- Skilled Master
- Excellent Master
- Great Master
- Proficient Master
- The chosen One
No errors from slimefun at all.
It happens in batches too.. like the other day a bunch of the automated crafting chambers went and turned into normal workbenches (or perhaps just the ones that were loaded before the restart). When the bench was broken and replaced the same inventory was there from before.
A few days before that, a bunch of the android miners turned into heads.
Also, this didn't always happen. When the server first opened there was veeerry little block corruption. Now that the server is pretty established and a lot of players have played it happens quite frequently.
Is it because there are too many changes to save? Is there a time-out for saving blocks? Is the server able to keep up with the amount of changes that are talking place? Or maybe one of our data files became corrupt and is affecting everything around it?
^ Dont answer that XD its just some thoughts.
I've been looking through the code myself looking for answers but I'm pretty new to java and the bukkit api so its been a slow process of elimination. I might try picking apart my server files on a test server to see if I can figure anything out
EDIT: Sorry that last comment might be off topic, but it just feels like its all related to the same issue
from slimefun4.
I agree with him/her it happens quite often. Config Untouched.
Try, make some things, then after taking the things out /stop the server, then start it again. You'll see that the item is already in your inventory, while the item in the block is still right there.
from slimefun4.
Ill try but it will take a while for my dinosaur internet to download from my server and then upload XD
from slimefun4.
@John000708 I don't think the block data storage matters tbh, because i was only trying it for testing purposes on my own server.... since the problem i had was on an actual public server.
from slimefun4.
If the item is processing in any machine it will disappear on restart. If it's in the inventory it will not.
from slimefun4.
Any more information on this? What @freethemice described is supposed to happen, is the issue @NathanAdhitya described still happening?
from slimefun4.
Yup, #148
from slimefun4.
Ok, confirmation from like 6 different slimefun servers - all public and almost each of them is a diff type of game - i.e. survival, factions, skyblock, etc.
After a server restart all SF blocks like Electric Ore Grinders, Electric Smelteries, Autoenchanters, Autodisenchanters, Ingot factories, Carbon Presses, Autoanvils and pretty much all reload their inventories from the previous time before the reset, regardless if you empty them just before the reset.
I think they save their last job which was they used for and if not used anymore just reload it after every server restart. It is mildly said "multidupe" because if you used your autosmeltery for making 64 reinforced ingots and carbon press for making 10 carbonados, along with your heated press chamber for making 10 blistering ingots, you will get them after every server restart. Most public servers restart once daily. So figure it out. I haven't confirmed if they "save" like a timestamp and reload from it or just the last finished job at all. Hope I helped some admins and devs and angered some players :)
from slimefun4.
I think I posted this on the wrong thread before but to fix this
all you have to do to fix this is add the folowing at line 27 to rc\me\mrCookieSlime\Slimefun\api\inventory\BlockMenu.java****
@OverRide
public void open(Player... players){
super.open(players);
this.changes++;
}
This way every time someone looks or changes the inv on any mach. it flags it for save.
from slimefun4.
@freethemice
Make a PR.
from slimefun4.
Related Issues (20)
- Slimefun | ExploitFixer support issue HOT 6
- Crop Growth Accelerator does not work with Organic Fertilizer, if a texture pack is used HOT 1
- Hazmat suits do not provide radiation protection in 1.17.1 HOT 3
- possibly out of memory or process/resource limits reached HOT 18
- griefPrevention and slimefun ( Claim#allowContainers ) HOT 4
- move auto saves from main thread to off thread
- SlimeFun is not compatible with the Mohist side, and the freight node cannot be placed HOT 4
- When researching coal generator, if you leave and rejoin after save, coal generator is un-researched HOT 6
- Item dupe with backpacks and a big player profile HOT 4
- Opening Backpack and Slimefun Guide at the same time causes unwanted behavior HOT 12
- Players Lost Backpack Data Updating Slimefun HOT 20
- Slimefun Bugs backpack HOT 3
- Un-stackable Items HOT 6
- Explosive Pickaxe drop note block when breaking custom ore from ItemsAdder HOT 5
- Slimefun furnance giving "Netherite Scrap" after smelting. ItemsAdder HOT 1
- Error on auto-saving data HOT 2
- Machines find it difficult to find recipes for similar items HOT 12
- Can't craft item from enchant crefting table HOT 3
- Duplication of every "Falling Vanilla Block" Block with Slimefuntag HOT 3
- Got banned from discord By BOOMER1 because i used Discord's reply functionality HOT 2
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 slimefun4.