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)
- The soulbound rune does not work due to an interference with the soulbound of advanced enchantments. HOT 1
- The translation is not COMPLETE HOT 1
- McMMO Anvil can repair SlimefunItems and can use SlimefunItems as repair material
- ChargingBench can recharge muliple stackable items. HOT 3
- Soulbound items are wiped out of inventory when you die and leave server without respawn . HOT 1
- Slimefun Build 1145 produces errors on Paper 1.20.6 (build #124) HOT 7
- You can disenchant items such as the reinforced armor and move the enchantments from it onto netherite armor. HOT 2
- Multitools don't work HOT 4
- WDFKISTHAT! HOT 1
- Slimefun Items can be renamed in the anvil,And no longer limited by the listener HOT 4
- Some Simefun Plates like GPS ACTIVATION PLATE SHARED/PERSONAL and Also Elevator Plate being Duplicated if i break with explosive pickaxe HOT 1
- Slimefun generated an exception, flooding console with incomplete tasks. HOT 1
- Empty spawner error HOT 1
- Oil pumps not working and also scuba helmet recipe doesn't work HOT 6
- Error stack and some incorrect use of variables in the code HOT 22
- Errors in SlimefunUtils HOT 4
- Slimefun4 not working on aternos spiggot 1.21 HOT 1
- Error with Block Ticker Task HOT 1
- Support to Folia HOT 1
- 1.21 not supported/δΈζ―ζ1.21 HOT 1
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.