#folia-help
1 messages · Page 29 of 1
that sounds fine considering on a regular paper server it would probably end up affecting everyone for the entire duration the farms are running
I manage a server that is completely free to farm and hasn't left vanilla. There are huge mega farms there, some chunks can see 2000 entities, there can be times when the tps drops to 10-15 in that region, but no other region where the tps drops below 20 and it is not affected. This probably depends entirely on your processor.
and players should be as far away from each other as possible
oh, that would be a nice patch
Where is this from?
Netty threads are in spigot.yml but I haven’t heard anyone call it “netty IO” before.
it is from folia github https://github.com/PaperMC/Folia?tab=readme-ov-file#how-to-best-configure-folia
where can i find this line? c:
in what file
anyway cant find that anywhere i used find in files search and im not gonna mess with the source code of folia cause i dont need to i think the optimizations i did today are good enough im over due for a hardware upgrade at this point it was planned for end of august anyway so im just gonna buy a new server getting a 28 core this time with higher clock speeds just a maxed out R730XD should do fine if i need to go that deep ill get my developers to look into it
it ran alright considering i was using default configs and over allocated something by WAY to much
and elytras atm are the source of my lag i can just nerf them
fire works only or a very strict speed limit
could u tell the package where its located, pleaes? c:
ya probably
why it not commented out on yours
quad core for this is not a good choice
ima assume this is the same line just on a different version and see
//this.broadcast.accept(new ClientboundSetEntityMotionPacket(this.entity.getId(), this.ap));
:sus:
ok
well if you put it on github and i can go thru it then ya ill try it out
sounds like itll make a huge difference
what does that even do
hello, what are the diverences between theese versions
Bundler is Paper + Minecraft in 1 jar, paperclip is just the patches and it'll download Minecraft and patch it. Mojmap vs reobj is just Mojang mappings vs Spigot mappings (I believe).
You can only distribute the paperclip jar publicly.
thank you
mojmap is the default now though, the remapping prevents plugins from breaking
@primal quail ^ -.- in case you missed it
there will be a performance hit if run mojmap bundler
no
there is no performance hit
ok thx
hello which processor is better for folia server?
- AMD Ryzen™ 7 7700X
- AMD EPYC™ 9634
folia adds multithreading so i thought which one is better because AMD EPYC has more cores but lower clock speeds then Ryzen 7
yeah ik
lol
maybe it isn't good
yeah something like that
i'm not very into minecraft technical stuff so i was just asking if a processor like that is good for folia
for sure
yeah i'll probably won't be
Nah donut gets better shit from AMD 
:))))))))))))))
you will
trying to build folia from master, getting this error, error: release version 21 not supported
i assume that master is still 1.20.6 eh?
and the 1.21 dev branch is gone i assume in favor of 1.21.1
actually i just did branch 1.21.1 and i still cant compile with version 21
am i doing something wrong?
ok i find it odd, i cant compile it with java21 but i need java 21 to run it
Is gradle using Java21?
it did originally for 1.21
but then the dev/1.21 branch disappeared on me
now i just tried to compile 1.21.1 and it makes me switch to a lower version but to run the jar, i need to upgrade again
im using folia for a long time and i updated yestarday to 1.21.1 but im having a bug, i cant craft anything and im getting this error
error.txt by @runic eagle: https://pastes.dev/RjnT9aObZe
what im noticing in minecraft: for eg i put a oak log in crafting table then oak planks appear, i try to get it out but once i click on it everything goes back and server log says that long error. i also tried in the lastest Paper server but there worked fine
i tried to complie whit patch but im getting this error:
Patch failed at 0006 Fix issues with recipe API
error: invalid object 100644 1b7b07715067014bf3d35002ae1655793248b426 for 'src/main/java/org/bukkit/inventory/CraftingRecipe.java'
error: Repository lacks necessary blobs to fall back on 3-way merge.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config advice.mergeConflict false"
*** Please review above details and finish the apply then
*** save the changes with `./gradlew rebuildPatches`
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':applyApiPatches'.
> io.papermc.paperweight.PaperweightException: Failed to apply patches
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 4m 44s
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
3 actionable tasks: 3 executed
Error: Process completed with exit code 1.
does folia have the features of purpur?!
No, as it's a Paper fork
yeah thought so 
quick question, is it possible to decrease the 1k - 1.5k block requirement before region merging to something like 500 blocks or 800 blocks?
in tech almost everything is possible
it's not something you can change on the config
isn't that controlled by grid-exponent
specifically referencing this commit message https://github.com/PaperMC/Folia/commit/6928284a5652eb66040166c4ce9ea8f87034bc49
Minimum is 900. You could theoretically fork Folia and make changes but it would not be easy. It also would not make any sense because regions would merge too quickly and negate the entire point of using Folia.
gotcha. the reason im asking is because i want to host a large scale manhunt with ~200 players and was wondering if i could have smaller regions to allow for better load dispersal
Folia isnt going to be suitable for manhunt server as your player will eventually get together. @tidal bay
Eventually yeah, but that'd be like way further down the line. The runners will have a big head start and the players won't really be together too often. I'm hoping to implement some specific measures to ensure that doesn't happen, but I'm fully expecting it to happen. What would you recommend in place of Folia? Just a super-optimized Paper server?
I mean it's manhunt right? Paper can easily do it. I take you dont really need most of the mobs etc etc
also is this manhunt I am thinking off...? just a few players trying to hunt down 1 person?
well, more of a “protect the president” where a team of like ten people is trying to protect one tanked “vip” from dying to the hunters. it’s on a pretty large scale so
So primarily lower mobcaps and view distance then if going for paper?
Yeah it should really just work
[bootstrap]: Running Java 21 (OpenJDK 64-Bit Server VM 21.0.4+7-LTS; Eclipse Adoptium Temurin-21.0.4+7) on Linux 6.1.0-23-amd64 (amd64)
[bootstrap]: Loading Folia 1.21-DEV-dev/1.21@2b8c879 (2024-08-04T14:43:11Z) for Minecraft 1.21
Please don't send jars
So does anyone with the git repo
I can Fork it and send him the repo to build
Yea my server should have it
I know you can do git check or revert to older version, was just going to do it for EOA
since the dev-1.21 is very stable (from my testing)
Ease of access is not the goal with folia
true ig
⚠️ Please do not share any links to builds of Folia at this time. We are intentionally not providing easy to find/obtain downloads right now - when the time is right, everything will be available through official PaperMC distributions.
Will Folia upon release provide older MC Versions aswell or will it be from that version point on?
Folia is a fork of Paper that adds multi-threaded region support. Many plugins will require updating to support Folia. There is no ETA for publicly available builds.
For more information:
Folia will:
- NOT be backported to older versions <1.19.4
- NOT be merged into Paper
- NOT be ported to Fabric nor Forge
Stay tuned to #announcements for any further info about releases.
@tacit tartan thanks 
I mean yeah
once released the old builds would be in the build explorer
but not below ^
But I mean, I expect it'll be just like Paper in that updates to newer versions won't be backported to older versions (even if they are past that cutoff)
Cant wait for full release 
60-70C idling?
yikes
its 40C here :(
no AC
And its in the rack right below my PC
Don't you think that your server is easily DDoS attacked? There is no protection against this at home
just have an off-site proxy
Hi I am getting this error while starting the server: ```
[0.001s][warning][pagesize] UseLargePages disabled, no large pages configured and available on the system.
Error occurred during initialization of VM
Unknown -XX:ShenandoahGCMode option
Flags:
`java -Xms60192M -Xmx60192M -XX:+AlwaysPreTouch -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+HeapDumpOnOutOfMemoryError -XX:+UseLargePages -XX:LargePageSizeInBytes=2M -XX:+UseShenandoahGC -XX:ShenandoahGCMode=generational -XX:-ShenandoahPacing -XX:+ParallelRefProcEnabled -XX:ShenandoahGCHeuristics=adaptive -XX:ShenandoahInitFreeThreshold=55 -XX:ShenandoahGarbageThreshold=30 -XX:ShenandoahMinFreeThreshold=20 -XX:ShenandoahAllocSpikeFactor=10 -XX:ParallelGCThreads=10 -XX:ConcGCThreads=3 -jar folia-*.jar --nogui`
I am using Corretto-21
Well
it says that you're using an invalid value
GC mode to use. Among other things, this defines which
barriers are in in use. Possible values are:
satb - snapshot-at-the-beginning concurrent GC (three pass mark-evac-update);
iu - incremental-update concurrent GC (three pass mark-evac-update);
passive - stop the world GC only (either degenerated or full)
Which value should I use?
idk
Why I cant use "generational"?
Because it's not a valid mode?
Java: 21-testing
generational shen didn't make the release window
might have been in their testing branch but, it's not in the release
You should just get generational zgc
Hi is below-zero-generation-in-existing-chunks: false works on folia?
I believe so, but as it says, it's only for existing chunks: i.e. upgrading a world from < 1.18 or whatever
hello am running a smp with folia server and its been the best ever so far i just wanna know if there is any plugin that i can use to give perms to players
as a personal opinion (of most people here iirc), luckperms is the gold standard for permissions
its currently got experimental support for folia https://github.com/LuckPerms/LuckPerms/pull/3615
i built folia 1.21 dev without issues
i tried running the built jar as if it were a standard jar, it created a libraries and versions folder but doesnt open a cmd window or anything further
am i missing something?
sorry if im breaking any specific rules
did it also happen to create a eula.txt file
it did not.
try opening cmd first, cd to the jar's location and start it from there
oh, I assumed you were just double clicking it at first
that also did not work
add a line at the bottom of your script that says pause if you want to see whats wrong with it
Unrecognized option: -XX+UseG1GC
Error: Could not create the Java Virtual Machine.
i simply borrowed these startup options from an older start.bat i had
maybe not the smartest idea 🤔
Thanks!
-XX:+ is the correct one
thats the "no forceloaded chunks" message.
best guess would be a plugin causing this, don't think there are any nice ways of debugging this though
chunky casue this
I mean if you are generating -.-
Is the Utilization in this SS all the threads added together? So in this specific instance you are using 15 cores, hence the 1500%. Am i understanding that right?
Guys, I have some questions. I'm going to test Folia on my server. It would be good to remove the barriers from the world and remove the mob stacks?
What is the best alternative for Essentials/CMI for Folia?
https://github.com/Maxlego08/zEssentials but not tested
@static heron We do not allow advertising in this server.
this does not really make sense because in the github link there is information to buy the plugin, fin bref....
Yeah but it has a lot of bugs
After setting aside the forks, I don't have any other suggestions.
Okay
Otherwise, I've made an updated version of EssentialsX for Folia, but I can't guarantee its stability: https://github.com/Euphillya/Essentials-Folia
I'd like to know if there are any bugs, because if nobody reports them to me, I can't fix them.
This really is a conversation for your own Discord server, not here.
I'm not asking him to tell me the bugs here, just to add them to the GitHub. I don't understand your messages.
why ?
Just don't give permission to /plugins
set perm * to false
And then you just choose which permissions you choose to put.
with * to false, he can not tab with just /
The one that’s still showing is their impl issue.
Every time a villager passes through an nether portal in a minecart it disappears and this error is displayed on the console, any solution?
message.txt by @gloomy vault: https://pastes.dev/tv3IIMs90Y
@arctic bear We'd rather not have people link random forks in here, since this is a Folia help channel.
Oh sorry
⚠️ Please do not share any links to builds of Folia at this time. We are intentionally not providing easy to find/obtain downloads right now - when the time is right, everything will be available through official PaperMC distributions.
@woeful oxide
⚠️ Please do not share any links to builds of Folia at this time. We are intentionally not providing easy to find/obtain downloads right now - when the time is right, everything will be available through official PaperMC distributions.
Maybe related:
https://github.com/PaperMC/Folia/issues/278
Stack trace https://paste.gg/p/anonymous/58cceef8a2d3449381d518592ed5a308 Plugin and Datapack List No plugins Actions to reproduce (if known) Unknown Folia version [16:45:06 INFO]: This server is r...
/gamerule randomtickspeed 0 command not working properly in folia?
hey guys, where do I get the paperclip jar?
If you're looking for a folia download:
⚠️ Please do not share any links to builds of Folia at this time. We are intentionally not providing easy to find/obtain downloads right now - when the time is right, everything will be available through official PaperMC distributions.
If you're looking for normal paper, https://papermc.io/downloads/paper, and this should be in #paper-help
folias build system works the exact same as papers, see papers readme
Guys, what flags do you use in the launcher? I'm doing some stress tests here, with 14 cores and 16 RAM, the image test has the flags I used in the paper, and it's without any optimization.
Thanks
How can I have multi world in Folia?
yep with MoreFoWorld plugin
My TPS is stable 20 but chunk generation is so slow when flying with elytra. Is there a way to fix that? I have good cpu and i use 20 gb ram
its pregenerated world
try increasing the loading limits in the global config: https://docs.papermc.io/paper/reference/global-configuration
just be a bit careful, they are intentionally that low to not overwhelm players on less powerful hardware with chunks
these are ?
There are no players on my server, I'm alone and the chunks are very slow
yeah, especially the load/send rate
Is it a good idea to make it -1? Will this solve the problem?
That will overwhelm players on slower hardware, you probably don't want that
I did it this way and I'll see what happens.
Still not fixed. Almost chunks are not loading. TPS is 20 but why are chunks not loading?
chunks aren't loaded on the main thread, so tps are pretty meaningless there
how many chunk loading threads did you assign?
I did a tps region and saw that the tps dropped, but why? I have a 7950x3d processor and 20 gb ram, why is this happening?
It was too slow at -1, I changed it to 5 but nothing changed
no idea then
I found the problem. Damn pterodactyl I accidentally selected 0 on the CPU pin and that's why the cpu ptero is not using the cpu more than 100% load


Now everything loads at jet speed
Default should be unlimited 
For chunk loading
Any of these apply to you? @wide shale
Oh I just saw the last message nvm
why cannot i use teleportAsync()
make sure you don't have bukkit or spigot on your classpath
⚠️ Please do not share any links to builds of Folia at this time. We are intentionally not providing easy to find/obtain downloads right now - when the time is right, everything will be available through official PaperMC distributions.
well how i can increase utilization from 200% to 3200%
i have I9 14900K
you do not want to set the threaded region count to 32 on a 14900k
stick to like 12 or 16
can be adjusted in paper-global.yml
yeah ik just tesing some stress things
but im saying utilisation
it'll utilise more when it needs to
you can raise the threaded-region count as mentioned above
well not working like that
you have not raised threaded-regions
like i said, raise it
your utilisation will use more when it needs to
the fact that it is limited to 200% however is up to your threaded-region setting
1min
well fixed and what is grid-exponent
if you distance 8 chunks, to them added 2 chunks for sync barier for merge
if you have 2 players coming from different sides they need 8+2+8+2 chunks so that they merge into 1 region, approximately
2 is standart value in this property
if they run away, folia split again
How much RAM do I need to allocate for Folia?
Will 10gb might be enough?
SMP
Maybe I just didn't understand you because I don't know English and I use a translator. I've already experienced lags at 50+ online, that's why I paid attention to Folia
Suppose I have a SMP server with 100-150 online. I have a R9 7950x processor. will I have 10gb of dedicated memory for Folia. Previously I have allocated so much on paper
I use Deepl
I don't have 90gb. I'm considering a VDS with 32vCore and 16gb of RAM, that's why I'm asking if 10gb will be enough for me
do you want more than 200 players on one server?
will you get over 200 players on one server?
so your server lags when you got even like 50 players?
isnt that a optimization issue
that doesnt seem normal for me
the question here is, why do you think folia is for you
because it's not in 99.9% of cases
There's one in Russia
aee you sure your getting dedi cores?
you're going to likely be on overprovisioned to heck hardware
offering that many cores with that little ram makes 0 sense, generally hosts dealing with hardware like that lie to tie ram and cores together as nice little slots
by itself, sure.
if split to multiple vms, depends.
yeah not like making a vm with more thread counts then the logical thread count
We've gotten away from the question, so will 10gb be enough for me?
we can't answer if you don't answer first
why folia
I think it's pretty clear why people use Folia
I'm not asking why people use folia
I'm asking thy YOU want to use it
and I'm asking, because it's not justifiable in vast majority of cases
well people often forget that Folia isnt Paper+
Being a native English speaker and knowing Java are two conpletely different things. Please keep things professional and don't attack him verbally like that
Hi guys, does folia treat intel's efficiency and performance cores the same?
Best to leave this sort of thing to the mods. Feel free to report posts that are breaking rules or whatever.
But yeah this isn’t a great message. Try not to assume / be a bit nicer.
That one just made me mad a bit on the personal level, sorry
If you’re replying to messages when you’re mad, you just as likely to do the same thing that the person you’re mad at is doing. Reporting the message and stepping away from the keyboard for a bit is a good thing to try.
Did I sound somehow unprofessional? I just wanted to defend him a bit. Well it does not really matter now anyways, thank you for giving me the heads up
Also I wasn't really 'mad', that was bad wording on my part hehe
So in grid exponent 2, does the player get a region after 900 blocks? But if we set grid exponent to 1, will the player get the region drop to 400-500?
Pretty sure 1 just breaks
And folia is more aggressive about merging than splitting so no, you probably won't get a new region until you're well past 900
does anyone know if there are any invsee++ alternatives for folia?
they do have a folia branch on their github but it has a major bug and is outdated
when I build my plugin, the folia-supported: true gets removed from paper-plugin.yml , i dont know why its happening and theres also no errors
pomfile.txt by @tulip swift: https://pastes.dev/OBOl3SqPJI
oh found solution
Is it possible to change how far players have to be before Folia creates new regions?
I don't run folia myself, but i'm just curious
im assuming folia has it's own config where this is can be changed, right?
it probably doesn't take that many regions to see performance improvements though i'd imagine? a single paper server can handle 50-90 players with 100+ plugins iirc . If you have 300 or so players, you'd only need 3-4 regions to see improvements
folia also gets paper updates right?
ok
Hello, is there a folia with version 1.21.1?
Yes, in the dev/1.21.1 branch
Do you recommend it to open a server?
Well, it depends on whether you have the hardware, adequate player spread and dev resources to fix issues, similarly to the other versions of Folia
I have a dedicated server with Ubuntu, Ryzen 5 5600 and 64GB of ram, is it okay or do you recommend I continue with paper?
You probably want to settle with Paper
So far paper has been good for me, but too short, I will have to open a network but I would like to try folia more
Before, 50 players connected to my paper server, but now almost 120 log in daily, so they fight for the server slots.
What would you recommend we do?
Multiple Paper servers, maybe
Depending on your network setup I can see a 5600 being kinda cramped
Sorry, I don't understand, do you recommend the network or folia? Do you think the 5600 is too small for the network or for the folia? In that case you almost recommend that I buy an Intel xeon Silver 4214R 2.4GHz, 12C/24T, 16.5Mb, 100W, like that processor because in many hosting they have a dedicated server plan with r5 5600
I'm definitely not recommending that, that CPU is really bad
Hefty downgrade from what you have right now
Would not risk that on a 120 player network
AMD Ryzen™ 9 5950X
I really don't understand what is most important in a server processor, whether the cores or the speed of the processor, and even how much RAM is recommended, what I have been told is that spending 28GB of RAM per paper server is useless. , is lost...
The game mode is survival multiplayer, I keep it as vanilla as possible, although it does have several plugins, including advanced enchanted and skills, protectionstone.
Before we used slimefun which causes a lot of lag, although now it doesn't cause lag, except when they are doing things at the same time, I haven't set the tps
28gb
I understand, I'm just not an expert in hosting much less making servers, I don't even know how I got here, it was interest and taste I guess... I also plan to keep this server a little more vanilla although I would like it to be able to transfer all the textures from itemadder and guis
It is a Ryzen 9, I would have to change the board, ram and ventilation, if I could sell the current parts and add something, I will take it into account in the future, although I can't find the R9 5950x in Chile, I was already asking the price, but only They give it to me in the USA, not in Chile.
I am willing to try new plugins that are supporting folia or leave some, it is more to see this option and not make a network
the minimum I have seen is 10 tps
It's okay, I'll arrive a few hours, I'll get home and I'll see how to get a report from the SV.
When I check ram dump in Folia 1.21.1, some things are still kept in memory by ram and they are not cleared. Why are these not cleared from memory in Folia 1.21.1? Farming villagers and zombies to spawn iron golems causes the server to load ram, but these are not cleared in any way. And they remain there until the server is reset.
You should be able to see what holds a reference to them in the same heapdump viewer
usually its just bad plugins keeping references to entities instead of UUIDs
I can't find any evidence that a plugin does this. Either the folia itself is actually storing them in memory or I'm making a mistake somewhere.
Since there are too many iron farms on the server, this iron golem memory retention causes a memory leak after 15-16 hours and the server starts to drop. And the biggest reason for this seems to be the iron golem farm made with zombies and villagers.
I did some experiments, I will share the results again soon, I want to be sure of this. If you make an iron golem farm with zombies and villagers and activate it with the chunk loader system, I am talking about the portal and minecart chunk loader that players make. This is never cleaned and definitely causes memory leaks in long-term situations.
Yes, I definitely have to reboot the server every 8 or 10 hours right now. I will continue my research on this too.
I'm going to do this soon I'm just going to do a few more tests and I want to be absolutely sure about it
This is what I'm talking about. Think bigger than this and leave that chunk active all the time. Ram cleaners will never clean it and will cause memory leaks. I think it's not necessary to have a chunk loader, just staying afk there will be enough.
It can be any iron golem and villager farm, the ones in this picture are just examples.
The hundreds of Gradle tasks doesn't make this any less confusing lol.
where jar download?! ||/s p.s. I never learned gradle... shocking||
see paper readme
⚠️ Please do not share any links to builds of Folia at this time. We are intentionally not providing easy to find/obtain downloads right now - when the time is right, everything will be available through official PaperMC distributions.
You've been here long enough to know that we don't make it easy for people
If they can't figure out what "see paper readme", "same steps as paper" then Folia is not for them
I honestly don't get how setting the barrier to entry as "You must understand gradle" makes any sense but whatever.
It's not?
You just need to read the paper readme
We're not going to spoonfeed people on how to build it
Which tells you how to build it in gradle does it not?
Oh you get an error, good luck figuring it out gradle expert.
If you don't have devs capable of using gradle, folia is not for you.
You will need devs if you want a folia server
A clean clone will not give any errors unless you have a broken/wrong setup system, if you get errors you can ask
I feel like I am a good example. I am well versed in Java. Spent a ton of hours working on PRs for big plugins to bring some Folia Support. Provided tons of helpful feedback. I main maven all day. I do not understand gradle very well.
So the fact I do not understand gradle at the moment is the barrier to entry for Folia, where I have already contributed a lot of value and feedback.
I've never done it before, and even I get it after reading the readme once (literally now)
Honestly, you should switch to gradle
That's what I'm picking up lmfao
Gradle is preferred when working with paper
You even have the paperweight userdev gradle plugin
for easy NMS access
Well, but what would be the alternative, if not the gradle barrier?
I am not kidding it's like the only project I have that has gradle.
Bro has never used NMS before 😭
Still thinking about that lmfao
No way you did the spigot decompiling step thingy
I figured it out eventually. The paper steps kinda helped but I had some other issues I had to resolve out to get it going.
A bit ago, there was a yes/no quiz over a small paragraph of info to download older Paper builds, so that people wouldn't ask for support. It was high enough of a barrier to entry that people would ask how to solve the quiz about as often as the support questions
💀
Maven > Gradle
This is a hill I chose to die on.
Just wondering, why?
Gradle has cleaner syntax, way less indenting, is more readable, you can actually add more logic and you can have gradle plugins (like the paperweight one)
I think the format of it just comes to me easier than gradle. Plus it's what I know.
Is this hard?
I definitely need to pickup gradle if I am gonna be doing folia servers.
Btw I say we stop the discussion here. Or if you want to add anything, ping me in #general
This is very off-topic for folia-help
that’s just a skill issue
Whats the progress on folia 1.21.1
dev branch
Crazy how it's pretty much only SpottedLeaf working on it.
Where can I download Folia?
⚠️ Please do not share any links to builds of Folia at this time. We are intentionally not providing easy to find/obtain downloads right now - when the time is right, everything will be available through official PaperMC distributions.
You can't. You have to build it yourself.
basically only leaf
leaf is the one working on folia correct
not sure why you’d count some random fork that some random person may also work on
how could the "Paper" discord keep track of every fork out there
I mean at the end of the day any project is just ran by some random guy
Better to have more people understanding the inner-workings of the project even if it is a fork
I am using the dev branch, seems pretty good so far
I can say from the last 2 months of using Folia. It works pretty well.
We prefer people who are using forks seek help from the fork support discord. It’s not much to ask.
Paper is actually very fork friendly as we build and provide tools to make forking and apply your own patch easier so I don’t see how you think we ain’t friendly
There are not many project provides tooling like this.
The what discord?
(66ccfd426ed5010734cf18d7) // @deep falcon (@hy5tr1x / 928416998285787156) has been banned by @jagged ether (451779815415218177)
Reason: compromised
You don't
any suggestions for tab plugins for folia?
TAB supports folia as far as I know
I don't remember ngl.
private void loadWorld(String worldName) {
World world = Bukkit.getWorld(worldName);
if (world == null) {
world = Bukkit.createWorld(new WorldCreator(worldName));
}
}
Can i use this to load my singleplayer world?
No, there's no API for loading worlds in Folia
then how do I load a world other than the default worlds?
The only supported way currently is to make the world be a datapack dimension. Or, there's plugins like MoreFoWorld, but it's not officially supported so I can't say whether it'll work/keep working in the future
can it load worlds? i only see these commands
Idk, never used it myself
if i use datapack can my world load like normal world does? will there be performance issues?
You add worlds to its config
Yes, it's a on a different branch
show me
no
there is no branch for it.
Yes, there is
i compiled 1.21.1 and it says 1.20.6
then you compiled the wrong thing
Yes, and that checks out the default branch
you need to checkout a different branch if you want to perform operations on that branch
you cloned the repository
yes
the default branch is for 1.20.6
mh
so, you need to switch branch with git checkout
thanks man
message.txt by @tulip swift: https://pastes.dev/NPn4FqIkCw
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
your connection to mojangs servers failed
generally network issues or just periodic mojang service issues
what permission plugin should i use since luckperms and permEX dont support folia
luckperms works fine on folia
just need to use the folia branch as goes with many public plugins
Not sure if this is something anyone here can help with, but im trying to run a Spring application inside my Folia plugin, however, when i try to run the plugin, i keep getting this error:
java.lang.IllegalArgumentException: No auto configuration classes found in META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports. If you are using a custom packaging, make sure that file is correct.
Full log:
blob:https://paste.sh/5d027b23-fd6d-487b-8549-88d5bc753201
#folia-dev for dev stuff
thanks
is 1.21.1 available
If you compile its branch
Technically, yes. If you download the 1.21.1 brach and then put it together xD
https://github.com/PaperMC/Folia/issues/283 I guess this confirms my problem.
Please tell me what the problem might be, the server on folia began to increase the number of regions uncontrollably until it reached 305, the server almost completely stopped, there were only 12 people on the server
- Online Players: 10
- Total regions: 312
- Utilisation: 202,4% / 400,0%
- Load rate: 9,40, Gen rate: 1,07
- Lowest Region TPS: 0,92
- Median Region TPS: 1,12
- Highest Region TPS: 1,51
Highest 3 utilisation regions
- Region around block [w:'world',-4281,80,3127]:
83,2% util at 908,64 MSPT at 0,92 TPS
Chunks: 4 386 Players: 5 Entities: 1 366
- Region around block [w:'world',3303,80,3239]:
25,5% util at 175,41 MSPT at 1,33 TPS
Chunks: 2 070 Players: 1 Entities: 818
- Region around block [w:'world',231,80,55]:
17,1% util at 122,94 MSPT at 1,27 TPS
Chunks: 987 Players: 1 Entities: 135```
What's the output of /version?
This server is running Folia version 1.21.1-DEV-dev/1.21.1@9203a7a (2024-08-18T13:49:42Z) (Implementing API version 1.21.1-R0.1-SNAPSHOT)
You are 3 version(s) behind
Download the new version at: https://papermc.io/downloads/paper
Previous version: git-Kaiiju-"aacf7f4" (MC: 1.20.1)
my server region file corrupt please is there any possible way to recover i will pay any cost
is there any way to recover from this crruption
You can recover from the latest backup you made.
is there any possibleway to recover from region file its self
it's quite important to take regular backups of important stuff
(including your server)
Well, can't help you recovering the files, but consider incremental backups for this reason
long live borg
No force loaded chunks were found in minecraft:overworld
plugin list, EnderGrief, LightBlock and sleepcancel is my simple plugins (disable ender dragon and enderman grief, craftable lightblock, press button to wakeup everyone from beds)
could the latest plugin interfere with the server in any way? https://github.com/AndreyKrasnov06/SleepCancel
I know it's asking too much, but could you please take a look at the code for my plugin at the link above? There are only three small files. I'm new to creating plugins, especially with the folia async scheduler. Maybe I made a mistake and this plugin causes a problem
This error only happened once, on the day the chunky plugin was used. It seems I finally found the reason) Folia still has quite a lot of errors, the cause of which is sometimes very difficult to identify:)
to use chunkyborder
- chunky border
- We used a mod for custom structures and reterraforged generation, pregen map on fabric and then placed this world on the server. We did this for the first time and did not take into account that the server would start issuing warnings "Found reference to unknown structure 'betterdungeons:zombie_dungeon' in chunk [394, 233], discarding" and freezing (100% cpu load for 1-5 seconds) so we re-initialized all the chunks on the server using chunky
Does Folia's world generation work the same as paper? Like if I took a vanilla paper server and did a drop-in replacement of Folia on the same world seed will it work or will I have issues?
It will be the same.
hows the dev version of folia rn
Stable enough to not crash with 40 to 90 players ?
For 90 players, you can use Paper
It's stable enough to never crash no matter how much players are on. If something goes wrong, it's probably a plugin fault, and usually it didn't cause crash.
it's really stable, I've ran it on prod with 100 players and the tps was always 20, the only downside is I had to fork folia to fix some dumb crash issues
hope you did a PR so the rest of us can benefit from your work
alr what sort of crashes
performance benefits with folia my server would lag to death without it
although im considering it for the update for now
since summers over my servers a bit smaller now
Won't get accepted into folia, I'm basically folia to "don't crash for a simple exception and let me see it and fix it in my way"
is it possible to use the 1.21.1 branch in paperweight userdev?
sorry, i mean paperweight userdev
probably yes
try and see
i've tried doing it the "normal" way; changing the api version to "1.21.1-R0.1-SNAPSHOT". it is not available in the repo. i was just wondering if avoiding maven local was possible (via a gradle task that produces the dev bundle within the plugin project, or similar).
well, the API is probably compatible 1.21.1 so there is no need for separate ones
1.21.1 isnt big update
1.21.2 will be tho
1.21 -> .1 isn't a big update; 1.20.6 -> 1.21.1 is
i mentioned 1.20.6, because that's the latest api version (for folia) (https://repo.papermc.io/#browse/browse:maven-snapshots:dev%2Ffolia%2Fdev-bundle)
then you need to use 1.20.6
yes, if i wanted to work against the main branch. i want to work against the 1.21.1 dev branch.
does folia support 1.21.1 now?
there is a branch
build the devBundle yourself and use that with paperweight userdev

iirc gradle task devBundle but im on my phone so I cant double check
give me access to said fork
what crash where you seeing was it related to folia itself
tf
why the hell do i need to do dat
but anyway
woah my paper plugin just worked on foila nothing to do
well that kinda makes sense it doesn't use anything but spigot's api and NBTAPI
i do have git
that's the only time i have ever seen that error
how tf were you able to use git without running those commands
If you use git in IJ you don't need to iirc
what credentials does it use then? some random one provided by IJ?
you get what i mean
if you login with GitHub in IJ you probably use that with some @github.com email
have never actually used the git integration in intellij before
its really good imo
have to try it out then
i do but i also use git without using IJ
Hi! Having an issue, on Pterodactyl it shows 100% maximum possible utilization.
On my PC 400%
It looks like Folia does not detect how much CPU it can use on the Pterodactyl one
I believe in some cases got defaults to hostname+ username
It's my own machine 😄
E5-2690 v4 (yes I know I will get many boos about the single-core perf now, kind of why I switched to Folia)
Alright
Seems like it yeah
I mean yeah good solution for 1 server or so, but might wanna host some for friends too and so on
Docker/Ptero makes it easier
Haha I don't like it either really but the panel uses it
Kubernetes 
Ah
Trying that
Now we talking 😄
(Ignore 600%, changed it but just have not refreshed the page yet)
300% now
Alrighty
- Utilisation: 18.9% / 1,000.0%
Does Aikar's Flags work well with Folia?
Alrighty
Is that great for Folia? Because I know for normal servers people on Reddit generally say to not put more RAM than needed.
Apparently bad for performance
True
I hope Folia takes off and more plugin devs add support for it later on
Because no one (or at least not me) wants to buy a CPU for $800 or more for a block game
Would this work?
java -Xms$(({{SERVER_MEMORY}}-1024))M -Xmx$(({{SERVER_MEMORY}}-1024))M -XX:+UseZGC -XX:AllocatePrefetchStyle=1 -XX:-ZProactive -XX:MaxRAMPercentage=95.0 -Dterminal.jline=false -Dterminal.ansi=true -jar {{SERVER_JARFILE}}
(-1024 because need some overhead room)
regions are based around distance
if the players are too close then they'll all be in one region
Ah fair
Yeah this scenario is not realistic, was just testing with bots which aren't really spread out.
Make sure it's generational zgc
java -Xms10G -Xmx10G -XX:+UseZGC -XX:+ZGenerational -jar folia.jar
How much do ya recommend?
30% is a good guess
do anyone have a working Vault plugin? because i used 2 forks and they didnt work well, for example if i did buy smth from shop my balance didnt change.
Or is there maybe an good alternative?
So java -Xms$(({{SERVER_MEMORY}}*0.7))M -Xmx$(({{SERVER_MEMORY}}*0.7))M -XX:+UseZGC -XX:+ZGenerational -jar {{SERVER_JARFILE}} would be a good start command?
30% overhead
It will be used for several servers, not all may have the same specs
I will put it in the Ptero egg
Trying to port a plugin to Folia
It throws exception Thread Server thread failed main thread check: Scheduling chunk load off-main on this line
Nope that is the physical machine I meant has 512 GB
Ah alrighty
Doesn't appear to be that much dealing with chunks in the code
Just this and maybe some more
Anyone here that wants to help me port it perhaps?
Plugin is https://github.com/Clickism/ClickVillagers
io.papermc.paperweight.PaperweightException: Command finished with 128 exit code: git -c commit.gpgsign=false -c core.safecrlf=false clone --no-hardlinks 'C:\Users\JimmyNeutron\Documents\mc paper\Folia-master\Folia.gradle\caches\paperweight\upstreams\paper\work\CraftBukkit' 'C:\Users\JimmyNeutron\Documents\mc paper\Folia-master\Folia.gradle\caches\paperweight\upstreams\paper.gradle\caches\paperweight\taskCache\patchCraftBukkit.repo'
you need to clone it
i did
use a shorter path
trying that now
still configuring paper, it's getting past that point fine now, thanks
yep, seeing progress. thanks
jippyyy!!
would folia load different chunks using one thread
Wdym? Chunk loading is multithreaded in Paper, I assume you mean something else than loading
Then what are loaded by a singlethread in paper?
I'm not really understanding your questions, the tick look uses a single thread in Paper while it can be multiple in Folia depending on player spread. Not sure if it answers the question
so, will ticks in different chunks load in the same thread in folia, if other threads are busy?
Basically, yes, there's a limit on the maximum amount of ticking threads
looks good to me
quick question, is the region thread count on folia pre-set, or does it dynamically add threads as needed?
int tickThreads;
if (config.threads <= 0) {
tickThreads = Runtime.getRuntime().availableProcessors() / 2;
if (tickThreads <= 4) {
tickThreads = 1;
} else {
tickThreads = tickThreads / 4;
}
} else {
tickThreads = config.threads;
}
``` it uses a fixed size thread pool
the default value is -1
alright thanks
hi, i just tried to compile folia, and i cant build the project, because it says that release version 21 is not supported, i used install.bat then patch.bat, and when using jar.bat, i have that problem, when first running i have java-21, but it tried to change version to 17, it didnt help
this is jar.bat with --info: https://pastebin.com/nSd0WWYC
my gradlew version: https://pastebin.com/1nJhDSzB
my java version: https://pastebin.com/QxLjPjWG
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
error: release version 21 not supported
They're running on ubuntu in the log I see, and something is upset because it doesn't support targeting java 21
yes, i am using linux mint
distro installs aren't the best for java
thanks, it worked!
All I do to install Java versions is sudo pacman -S jdk{java version}-openjdk and it works fine
Ofc apt and pacman aren't the same but still
arch moves fast and is willing to serve jdk packages fast
distros like debian and downstream are generally much slower at releasing updates, hence why people tend to use alternative forms of managing java SDKs
hehe just curious how well would folia perform on a 96 core arm ampere cpu
Try it and see
(Idk)
isn't ampere absolute garbage for single thread performance?
and you still want relatively high single core performance to not get regions with 5 tps
its okayish, at least the ones oracle cloud uses
In terms of folia, how will it use threads? am a bit confused. at first glance it looks like you're moving the process over to the cpu but I don't see the positive trade in that? at last not in terms of cost effective servers? 😮
this is generally all covered in the spattering of info
it splits up worlds into regions it can tick individually
ah, but its not so expensive we all need threadripper cpus I hope 😛
it's basically running many dozen individual servers
there is a bit of a "it can work better for the lower end if you have the core count, but, that's not really what it's targeted for"
ok, I'll try setup one and see how it looks on my servers relative to what I use now in terms of taxing.
Guys, I have a question, is there any plugin compatible with the latest version, to check metrics?, for example an alternative unifiedmetrics with prometheus.
Unified metric’s folia branch should work fine if you build it
Do keep in mind you that you gotta seperate out each region and do tps calculations on each region. Else you’re gonna end up tps in the clouds.
XD
WTF?
haha
You need to configure that
does anyone have an world manager plugin for folia? like Multiverse-core
so i can update to 1.21.1 and its stable rn other than plugins ?
that flying with elytras really lagging the server is gone now ?
It appears that you are running an offline-mode server.
We, as a community, do not provide support for setups that bypass Mojang's authentication. You are on your own to solve any issues that arise. 
if loading chunks fast is lagging your server, you probably don't have adequate hardware for folia
24 core server 🤦
it was an obvious bug in early dev builds that led to crashing the server
yes. but he isn't asking for support here
im not asking for support im asking a question related to a version of the software support is like getting support configuring it i dont need help doing that ive been running paper servers for like 8 years
and my server isnt cracked
i run 6b6t.ca
a premium anarchy server
meaning you need a minecraft account to join it
so gimmie support and dont listen to the dude who rips off my server from 5 years ago
^ do i need to send you a youtube video of cracked accounts being unable to join my server
no, I don't care. I just found your remark about Xymb wrong
ive been running anarchy servers
for 8 years
is a rip off of 6b6t i ran in 2019
ive been running the SAME server since 2016
under different names
his server is a COPY of my experience i created in 2016
so dont bullshit me buddy
okay. But how does is that relevant to your original question?
^ you already got your answer
its not but he has it out for me him and his co owner who i have evidence botting and ddosing my server
over the past 2 years their server has existed
because they view me as their competator
thats their own words bro
okay. But this is not the place for server drama
he did that offline mode stuff on purpose my server isnt offline mode
its online mode
hes a hater and cant stand my servers existence and constantly attacks and bogarts me in this discord for asking for support
its not my hardware it was an obvious bug where some dude was making the server run out of memory by constantly flying with an elytra and crashing the server
i have 128 gigs of ram in my server machine
64 is allocated
what kind of CPU do you have?
There was a memory leak that has since been fixed
thank you
old yes works fine on 1.20.6 right now ALSO yes
ive seen it run flawlessly with 188 players online
im gonna be updating my old 1.12.2 paper server to 1.21.1 folia
11 years old though, so I wouldn't be surprised if performance isn't stellar
its perfectly fine for the player counts that i see i bet it can do 300 players just fine at that point i will upgrade to a Dell R750
this is my thing optimizing for old worse hardware to save a buck
Except you ain’t really saving a buck though. You are sacrificing your player experience.
im not tho runs really well with solid 20 tps
i have an ssd raid and chunks load great
sometimes spawn can lag a bit with loads of entities but i got a entity limiter
i paid for this to be made so anyone can make a folia server with common features easily
thats pretty nice tbh
i make absolutely nothing from my server as all the donations go right back into the server
I was more referring to the config side of things. Did you keep 10/10 view and simulation distance for player, mob caps etc
TPS is not the only thing that affect gameplay experience
so on my server donations gets your higher render distance so default is 4 voting gets you 6 and im gonna be making it so if you just keep voting you'll gain 1 view distance per day people vote alot and most people have 6 render distance 4 simulation atm i make simulation 2 less than view distance because elytra hacks are enabled and the storage costs are insane per SSD its like 350 bucks US for 4tb and i upgrade in 4TB increments im sure that one of those folia forks with compression would help me there but i dont like using forks i like to be able to just update with folia and not rely on other peoples code as much as possible mob caps are from the paper chan optimization guide but i have adjusted them based upon what i notice im not gonna lie mostly just following main stream optimization guides has worked i usually have no lag at all unless someone is REALLY TRYING to and my server basically never crashes i do restarts every 24 hours
the highest render distance people have is 16 with 14 simulation
you can notice that fact its sata ssd's at that point a little bit but one day im gonna get some nvme pcie cards and raid them with zfs that way
and with each addiontial ssd chunks load faster they arent slow by any means but with very high view distances and fresh chunks itll take a few seconds
and for map size i just clear empty chunks with mca
i went from 9TB to 5TB with mca
this works great https://paper-chan.moe/paper-optimization/ i made tiny adjustments specifcally for my server like lowering the mob spawn rate cause people pvp at nether spawn and too many piglins is really annoying
you can apply most of it to folia just fine
and i can give people higher render distances default was 6 im just trying to get people to donate so i can fund future upgrades
for a while i had it at 8
it ran fine then aswell
you can tell it uses more cpu but its not like too much for the server i run it on
im gonna be getting a 28 core Dell R730XD soon
moving into the ddr4 era lol
fyi i ran servers on my paper 1.12.2 configs on a dell optiplex with over 200 players just fine
for like most of my servers life
i only updated last year once folia came out i went to pufferfish first and the player count went up so i went to folia around new years
i5 6500 Optiplex 7050
before that it was i5 4570 older model optiplex
and even 3rd gen i5 3470 for a bit
hmm I like the ideal of donor getting higher view distane. I've seem many server using it with success. Thanks for providing more insights. 
i can't start folia nor paper with -nogui tag since typing within console on powershell is very buggy with it. if i type /reload confirm i'd get /rld crm
i've tried in windows powershell 7.2 and in standard windows powershell but the only way it seems to be bug free is if i use git bash with winpty tag in front of it (ai told me to do so) but i'd like to have it work in regular old powershell
i'm running jdk 22 and server has 4gb ram
try java 21
Hello!
I have an anarchy server running Folia 1.20.4 in a Velocity proxy. The problem I'm facing is that the chunk generation runs slowly even stopping loading it. It happens on preloaded and new chunks.
I tried editing paper-global.yml and server.properties but without any results
Idk if it's about being the proxy and the server on 2 different machines or network related issues
The server is running on stable 20TPS
Yea, ik that im outdated xd. I have increased the io and worker treads to 5 without results
From -1
And using 1 o or 2
:/
Which jar file do I run the server with?
use the one you consider has a prettier name
@tranquil epoch (i hope its a valid reason)
just wanted to say thanks you for your work !
not a valid reason.
your skin will be removed now.
damn
Is it recommended to use Folia dev build 1.21.1 for normal server purposes? or i should just use paper for it?
Like an 10 or less people smp
We'd usually recommend Paper in this case
I see
For 10 players it gets harder to justify Folia. It is harder to reach the required player spread, it's a lot of dev time for that small amount of players, and when it comes to the hardware requirements, it makes more sense to spend the money on a better CPU for Paper, as 10 players aren't normally too demanding
Does it make sense to run a Folia server on a system with 8 threads?
no
Why
because we recommend at least 16 cores
Why
Folia is a fork of Paper that adds multi-threaded region support. Many plugins will require updating to support Folia. There is no ETA for publicly available builds.
For more information:
Folia will:
- NOT be backported to older versions <1.19.4
- NOT be merged into Paper
- NOT be ported to Fabric nor Forge
Stay tuned to #announcements for any further info about releases.
go read the readme and faq
Ideally, at least 16 cores (not threads).
Well, now i understand EVERYTHING
Why and how
now go and read the rest
you can run it on 4 cores all you want
We do not recommend it
It will not work great
Thanks for the adequate response!
I'm going to test it soon
The 16 core thing is a simple cutoff
Below 16 cores whether it's worth it gets highly situational
Although whether Folia is ever worth it is situational anyway those cases are even worse
oh yeah speaking of cores and ram
what is the wecommended amount of dedonated wam i should add to a folia server
is 16 enough or should it be bumped up way higher
yes the devs don’t know what they’re talking about they don’t know their software!!!
comparing planes to folia is ridiculous when considering that pilots have had formal training in order to fly that aircraft properly - have you had formal training on folia? Where can I get that?
If he's planning on running a server that small, it is EXTREMELY likely he will see worse performance from folia
and folia absolutely does not magically turn your 13tps into 20 like you quoted above
Yap
All I did was to add synchronized to all Bukkit calls
Well you clearly still don't understand its implications if the patch looks the same as it did a year ago 😄
Well the issue you will have is bottleneck in performance
Formal training is thread safety knowledge
Senior Folia Operator 
well
if you run it then you very likely have more experience than people who just knows in the "flat" what folia does
and about this. yeah, I mean technically what kind of matters the most is some API. but if you think about it, in terms of bottleneck, event locking per plugin would trully only be an issue if the plugin itself is a bottleneck already
so it's not that bad of an idea if you want to just have plugins support the basic,
specially if you know it doesnt use executors etc
That ignores the existence of already asynchronous events
forcefully synchronizing db lookups in async events with world events 
just don't?
where could i download folia ?
thanks
is folia 1.21.1 already released?
Our Anarchy server has AMD Threadripper Pro 7995WX / 256 Ram running folia
yooooooooooo
can i see some profilers
thats a crazy cpu
Rent for month ❓
But works slowly when upgrading to new version
100 Tb raid of 5 it took 1 and half months to complete to get 1.20.6 and now players can join from 1.21
Too much costly
You run a server
❓
You know you don't have to --forceUpgrade, right?
And Paper says you should never do so
theres no poiint in force upgraidng your world if you can do it run time
in prod? isn't there some missing stuff still? like world managment etc?
why would anyone care about that
there's a patch available that actually works to load/unload world, of course it requires you to run into some stuff
everyone that uses folia currently has the capacity to modify the code to their needs
anyone? like skyblock servers?
there's a patch that adds up the support for world loading
it's not fully safe and you use it at your own risk
it used to be a pr, but due to not covering up full safety spotted closed it
interesting, ty 🙂
@primal oyster back from where I was in #folia-dev, nothing shows the region going down or missing. It was one particular area between 4 region borders that was causing it. Rolling back the regions to a backup restored the functionality. But seemingly at random, whoever teleported there would disconnect from the server and be stuck not in the world but on the server. It was weird
they still show up in /list
and if you try to kick them, it means they're still on the region
you should add debugs to the jar
usually that's plugin faulty, you should double check your log about it.
I did the base minecraft:kick
While in their region too
I also did /execute at player run kick player
no
you didnt
because they're not in a region
how can you kick them in their region if they are not in a region
just because you teleported to them, does not mean you're in the same region as they are
their location is yes, on the region you're at, but no, they may not be exactly on the region you're at.
it's a transitive state
Something ahppened in between them leaving one region, and joining another, or, they were never added to one
There should be errors about it.
There is zero errors about it
That I'm sure of.
where?
it would be on closed PR on folia repo.
anyone else seeing an issue where accounts that are logged off to even velocity can still be seen as online but you cannot tp to them
cause they are technically offline
Yes yes yes yes
I replied to you in #folia-dev
I have no idea why the tickregion gets stuck frequency, this are the thread stack dumps when it got stuck
i think its an issue with sort of how folia works
I was getting that too
that seems to be a change on 1.21.1 causing it
try gathering teh code for manageBlock
that is on the 99 but not 103
I agree
I looked the source code up several hours ago
yea, I have a Thread.dumpStack() on that method
it almost never gets reached
so thats probably why
It seems that when it is trying pushing a task into the queue, and there is not a such tickregion which is expected and then it failed to get the queue and then returned false and the load task didn't get scheduled
I guess there is something wrong with this method
which made the target tick region which runs the task don't be created or computed into the section list
And it failed to get the queue in the following steps
Also because the tickregion didn't get created or computed
The async checks failed in the waiting of the load task
And then it fall back to use completablefuture.join() to wait for the unreachable task and then it got stuck here
message.txt by @tulip swift: https://pastes.dev/LTc6I2ghYk
i imported my old world and this happened when i leave the server
caused by Bukkit.getOfflinePlayer(event.getPlayer().getUniqueId()).getPlayer().teleportAsync(loc);
whats wrong with it
did you run this from the player's scheduler?
that type of thing is generally down to teleporting a player in an area that doing so causes a desync
that often creates trivial issues upstream, but, in folia where state is more of a sancity, it becomes a real issue
so theres no way to tp offline players? :((
did you read the javadoc for OfflinePlayer#getPlayer()?
you cant TP a offlinePlayer regardless of Folia or Paper
Quick question, which version is the most stable for Folia 1.20.6 (master) or 1.21.1 ?
1.21.1
@shrewd delta please don’t post random memes/spam to help channels.
Experiencing region crashes / pauses randomly, can't seem to find a cause, here are the only errors I get from watchdog (can't locate any plugins in these traces)
https://pastes.dev/ufPkJXrmGP
https://pastes.dev/DCKWmgRFqB
Should be running the latest folia ver on 1.21.1 branch
That makes no sence to me. You should do it on join instead
you technically can just edit their position in their save data
but how
if you don't know how, then you probably shouldn't
you need to modify their data files while the server is running, and that comes with a few caveats
for ex. a possibility of the player logging in while their data is being saved
I am considering trying Folia, is world generation asynchronous?
Will players in world 1 lag when world 2 is being generated and deleted repeatedly?
Thanks!
It's async even on paper
You cannot create/delete worlds at runtime in Folia at all
Interesting, thank you
how do I use the lastest 1.21.1 folia version for my server?
now how to disable the moonrise plugin
it keeps making errors in my console
huh
nvm, it stopped
it’s not a plugin
well i see
but i comes with folia right?
and paper iirc
it is a part of paper/folia
you cant just turn it off
where
show the errors
well, i said the problem goes away
but i still want to know where to disable the plugin
huh sorry, I mean can't
thanks for the new copy pasta
You can't disable Moonrise, it's not a plugin
just use https://xyproblem.info
is there any plugin that can let player respawn in a safe place within a specific radius
betterrtp

Would a 12 core server work well for Folia, or do I need more cores?
4.3 GHz max
10k by 10k area or should I go bigger?
We can't infer the performance from clock speed and core amount, we need the exact CPU model
But 10k x 10k is definitely not enough, as players less than ~1000 blocks apart will always be in the same region, thus will not split the tick threads
alr, hold on one sec
hmmm, okay
Should I go for higher single-core performance then since there'll be more stress on each region?
Or is 10k by 10k just not a possibility
Unless you have a very specific gamemode where every player will be confined at the corners of the map and can't move much, you will only get 1 region
Which will perform slightly worse than Paper on Folia
Alright, what do you think about 20k by 20k?
Btw, if a player travels between regions does it merge those regions?
And do regions ever un-merge?
yes
So, wouldn't that mean that eventually the entire world no matter how large would become one region?
yes, if the chunks are far away from each other
Regions are not fixed in size/location, imagine they're a bubble that walks around together with a player, and if they come in contact with another player's bubble, they merge
Thank you, that's helpful
oh, alr
How far away do the chunks have to be to split?
That I honestly don't know, but they do merge more easiily than they unmerge
basically it will unmerge when this can still be kept as true https://docs.papermc.io/folia/reference/region-logic#region-section-merge-radius
Alright, I'm going to start with
- 16 Cores (High single-core performance)
- 20k by 20k world
- ~100 GB RAM
Then I'll test it and work from there
Actually maybe 12 core high performance or 16 core low performance
event
1k player event
192gb ddr5 ram with a 7950x3d 16c 32t
I'm just going to try it out with 20k by 20k and work from there
We'll see how it does and make corrections
I have a question btw
Does changing the server view/simulation distance change how easily regions can split?
I would think a lower view and sim distance would mean that regions can split easier
but I'm not very familiar with Folia
Is there a reason they do that instead of taking the server render distance?
Anyone have plugins for folia in 1.21 about invsee or advancedban?
Litebans supports it but it is paid.
You dont have enough cpu power for 1k players, m8.
Libertybans
https://github.com/A248/LibertyBans
Is there any way to load plugins even if they don't officially support folia?
Reffering to this:
[00:56:58 ERROR]: [DirectoryProviderSource] Error loading plugin: Could not load plugin 'XXX vX' as it is not marked as supporting Folia!
that's not supported as it most definitely will break or crash the server
alright thank you!
I think you should reconsider whether folias concept is working for your environment...I recommend to read the doc again
you could manually edit the plugin.yml of a plugin you want to load, however 99.9% of plugins without explicit support for folia will just break something if you do load it on folia. you can try it but its probably not even worth your time
Put another way, it's very intentional that plugins must explicitly, deliberately opt in to Folia. Folia is not compatible with the normal Paper APIs without code changes in the plugins
Hey I know Folia doesn't do releases yet - how can I find the latest supported version? Trying to use jmp's run-task but keep getting Unknown Folia Version: 1.21, same for 1.21.1
ah nvm, I think from the project gradle.props it's 1.20.6...
that sucks there were a lot of changes in 1.21
would a 1.21 plugin still work there?
only master pushes builds that are resolvable by run-task
same with folia-api on maven
Thank you very helpful
1.21.1 or master (1.20.5)
Hey man!
do you guys think Folia it's stable at the moment? to be in a production server made for a survival style gamemode ?
i think so
does using the async scheduler create a new thread every single time or does it use a thread pool?
pool
cheers
one with water in it or the table for a game
theres bugs
for example have you noticed some peoples accounts get stuck online even tho they are disconnected
too folia they are still online but to velocity they arent
I haven't noticed anything personally, but the best is always to report the bug on github
how to report a bug with no errors

I have found it happening when we (players and I) block updated ~3-4K long line of powered rails that were all unpowered but needed a block update to the unpowered state.
(watchdog did give a stacktrace for that tho)
same way as the ones with errors. describe an easiest way to reproduce the issue
hello
can someone tell me which are flags to be used for folia?
can i use still aikar flags?
@grim patrol aikars flag works fine
thanks
What is folia bundler jar for?
I ran paperclip and it works fine
Hello! I pulled the repo of the ver/1.20.4 branch, but when I'm trying to build a runnable task (such as :createMojmapPaperclipJar), I get this error: ```> ./gradlew.bat :createMojmapPaperclipJar
Configure project :
paperweight-patcher v1.5.15 (running on 'Windows 11')
FAILURE: Build failed with an exception.
- What went wrong:
Could not determine the dependencies of task ':createMojmapPaperclipJar'.
Failed to read upstream data.
- Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.
BUILD FAILED in 680ms```
Could someone help me please?
It seems that a dependency is missing. When I run the gradle dependencies command, I get this output: ```> gradle dependencies
Configure project :
paperweight-patcher v1.5.15 (running on 'Windows 11')
Task :dependencies
Root project 'folia'
annotationProcessor - Annotation processors and their dependencies for source set 'main'.
No dependencies
(...some hidden output...)
runtimeOnly - Runtime-only dependencies for the 'main' feature. (n)
No dependencies
serverRuntimeClasspath
--- project :folia-server FAILED
(...some hidden output...)```
Is it possible to fix that by myself? If so, how?
any good permission manager plugins for Folia?
Luckperms