#folia-help
1 messages · Page 17 of 1
That's the kind of behavior you'll see with underpowered resources. Not enough cores means it's going to choke out, basically.
I wonder if it could hit 100% if GC threads starved it from actually getting any CPU time
Or chunk IO threads, etc
I'm building a server, would the host benefit from high caches or would simply having as many cores as possible get the best results for a large folia player base?
what do you mean by "high caches"? CPU caches? And yes, core count plays a significant role if you can actually manage to spread your players into lots of regions
large caches, sorry
I don't think anybody has generally cared to bother benchmarking how much CPU caches matter for MC, especially given the whole "ticking an object with a few gigs of memory" type stuff and the game not being catered to take advantage of locality, etc
density it is then
how well will folia run on a AMD 7950x
It'll run
probably wont crash if you put more than 20 people on it
I think that's basically the minimum CPU to use if want to ensure it'll actually be an improvement over Paper
Assuming you can spread your players over large enough area or over enough worlds
I dont even know how much of a difference the higher clocks will make; might just be worth it to run a few paper instances or choose a cheaper 16 core xeon
Well, each region still wants all the single core perf you can provide
oh thats interesting
But if you can get your regions small enough (like 20 players or less in each) then you can get away with a slower CPU that has more cores
that'll be good for something like a minigames server id imagine
spread the maps out a bunch
Think of it like each Folia region is a Paper server plus some overhead for the threading minus some overhead because they're all sharing IO and GC threads
Unfortunately the plus overhead is on single core perf and the minus is on multicore so...
i wonder how GC runs on all that RAM
Modern JDK G1GC, ZGC, or Shenandoah chews through dozens of gigabytes of heap with no problem
They aren't O(1) with respect to heap size but it's some logarithm that makes the overhead scale very slowly
Well, that's mainly true for ZGC and Shenandoah and they also have such a large fixed overhead that they don't make sense for anything less than like 10GB unless you have CPU cores sitting idle and want as little GC pausing as possible
Its a vanilla anarchy server
so I would say so
yeah you should be able to handle quite a few players
ZGC pauses are O(1) in respect to heap size and number of threads
<@&748618676189528155>
huh
Wait I am dumb he deleted it
nvm see it

thanks for reporting
Smh. I just get the push notification for that ping 1.5 hours later
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.
I didn't really understand. I was asking is it stable or not?
I don't think this message answers my question
How stable do you want it to be? It works, but it’s not so stable/finished that a public release has been made
I mean, we're still not offering publically available builds, soooo
Could someone explain why intel’s efficiency cores don’t work well with Folia? I read that 2 e-cores roughly equals 1 p-core, so an i9-14900K (8P+16E) should have the equivalent of 16 cores with more flexibility to place them where needed? Could they potentially work well in the future?
Also a question for Folia or Paper, I’m wondering if e-cores could be prioritized when 0 players are online to reduce power consumption.
You can’t decide what thread uses score
each region still needs good single core performance, and you cant tell it to use 2 e-cores for a region since each core is (usually) actually 2 threads
so with that cpu, youd have 16 good threads (the p-cores), and 32 "bad" threads
Ohhhhk thank you!
An e core is probably good for a couple people though
So if you were doing a skyislands server and for some reason wanted to make it a single giant server instead of using velocity they might actually work out
Of course you'd have a player count limit of like 100...
I was building folia and
Invalid maximum heap size: -Xmx4G
The specified size exceeds the maximum representable size.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
you need 64 bit java
They still make 32-bit versions?
Is there an eta for folia release? I don't mean an official release date, just a ballpark guess.
No, we don't have ETAs for anything.
thats fair, its hard to guess anything like that anyway
Folia's still in active development. You can use it, but you kind of need to know what your'e doing and be able to get plugins working properly.
To be honest there's a good chance it'll be a very long time before it's "mainstream released" like that.
Because plugin compatibility is very particular.
Fair enough. thanks for the update
But you can build it now and run it if you want to update stuff, run a server, experiment, etc.
A bunch of people are running it in production.
Depends a lot on what your use case is.
Yeah, i have a semi-anarchy server that averages around 25 players. This would be a game changer, so i am just exited. haha
we may run a test server useing folia, but it would be nice to have a few more bugs worked out first
If they players are generally pretty spread out past 1500 blocks and you have the server resources to run it, definitely worth a shot. You'd have to look at the open bugs and see if any of the existing bugs are actually showstoppers for you.
Most of the issues are plugin compatibility.
yeah, we already use a Ryzen 7900x, it would be easy to switch to a 7950x
And yes, our players are very spread out. Folia would be a great help
You can definitely spin up a test instance on less cores and check for plugins working and stuff and test with 1-2 players.
alright. We might do that just to see how it goes
does folia require any funding, or is everything covered atm?
Donating through Github or Open Collective is always welcome.
kk
Hi, does anybody know if there is a folia 1.20.2 support?
Snipped
⚠️ 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.
Hmm, not the right one
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.
Thought there would be a github link in those nvm
Readme link is transferring to github
But I am not sure where can I find the 1.20.2 folia jar there
You would need to build it yourself
Hi all. Who can make me FoliaForge for 1.19.2?
I'm ready to pay. I will fix the compatibility of the mods myself, I only use 2 mods, but I really need Folia Forge.
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.
The core itself is already ready, you just need to sew on the Forge and that’s it.
This is not the place for solicitation
Nor is there any interest in our team porting it to forge
especially for an outdated version
i pay money for your team
tell me how much it will cost
.
I'm not asking for free. This is a commercial offer.
that doesn't matter
I have a project for 10,000+ online.
Rule 4
If you are looking for someone to work for you, hire an empoloyee or find a freelancer. This is not a marketplace!
I understand. I just thought maybe one of the developers would want to earn extra money.
No problem
Surely someone wants that. But you're not looking for it here!
Where can I find it, please?
not here
Make posters and put them up in your city that you are looking for empolyees.
I mean you could ask in helpchat, but like seriously that'd be a pretty big project I don't think anyone would actually want to hastle with it
plus unless it was Leaf doing it, they'd prolly find some way to fuck it up
Leaf will never do this
yes i know
if you did this, literally half your mods would explode of not all of them
But I only use 2 mods, I can fix them
that's not as bad at least
yeah, thats my point. Leaf would prolly be the only one who could do it without screwing it up and they certainly aren't so it's not even worth trying to get done.
if you only have 2 mods i cant imagine it being impossible to replicate with plugins
You really don't want mods working together with plugins. If you only have two mods you should find someone to rewrite them as plugins, which would be FAR easier than finding someone to cobble together mod support in Folia.
IC2 Classic
and Quark
Not sure what those are. Like I said, you'd be better off finding someone who can re-write those as plugins, or find existing plugins to cover that gap.
I would not even remotely try to use Paper or a Paper fork with mods.
why it called folia
i think folia is latin for leaf and since spottedleaf created it it was called that i guess
lol
My guess was it's like paper but folded
folio is what you use to contain a bunch of papers
Having a similar word also mean leaf just seems like it was meant to be
<@&748618676189528155>
(656b7b8d42b7936e54a59f69) // @supple berry (@cboy7202 / 828254022779142174) has been banned by @wise epoch (1098722699116810331)
Reason: spam ads
pog
hello, i havent found anything related to building info on github, how can i build the jar file?
Folia is a fork of Paper, so follow the instructions on the Paper repo.
thanks! also is trying folia worth it on my machine or shall i stick to paper? i have an i5 7400 (4 cores)
No, you should stick to Paper. You don't meet the requirements for Folia.
Could anyone help me with this error when I try to build the jar?
I hadn't even noticed, it was github that put me there. thanks
Is folia sufficend stable for a in production server?
i mean it depends on what kind of server you have
For a simple survival server or SMP with 20/30 players and common plugins
There are not many "common plugins" in Folia
well i am unsure of the current state of this but afaik plugins won't load unless allowed in plugin.yml so you will have to edit that
The huge majority of plugins need a rewrite, so changing the plugin.yml will not be enough to make them work
30 players sounds like it can be ran with modest hardware in Paper
Hello! I'm getting this error when attempting to import world folders:
java.lang.UnsupportedOperationException: null
at org.bukkit.craftbukkit.v1_20_R2.CraftServer.createWorld(CraftServer.java:1271) ~[folia-1.20.2.jar:git-Folia-20]
at net.minecap.SurvivalCore.lambda$initializeWorlds$0(SurvivalCore.java:193) ~[SurvivalCore-1.0-SNAPSHOT.jar:?]
at java.util.LinkedHashMap.forEach(LinkedHashMap.java:721) ~[?:?]
at net.minecap.SurvivalCore.lambda$initializeWorlds$1(SurvivalCore.java:170) ~[SurvivalCore-1.0-SNAPSHOT.jar:?]
at io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler$GlobalScheduledTask.run(FoliaGlobalRegionScheduler.java:179) ~[folia-1.20.2.jar:?]
at io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler.tick(FoliaGlobalRegionScheduler.java:37) ~[folia-1.20.2.jar:?]
at io.papermc.paper.threadedregions.RegionizedServer.globalTick(RegionizedServer.java:293) ~[folia-1.20.2.jar:git-Folia-20]
at io.papermc.paper.threadedregions.RegionizedServer$GlobalTickTickHandle.tickRegion(RegionizedServer.java:148) ~[folia-1.20.2.jar:git-Folia-20]
at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:404) ~[folia-1.20.2.jar:git-Folia-20]
at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:525) ~[folia-1.20.2.jar:git-Folia-20]
at java.lang.Thread.run(Thread.java:833) ~[?:?]```
The line of code causing the issue is a simple world creator (in a global region scheduler):
```java
new WorldCreator(worldId).environment(config.getDimension()).createWorld();```
Has anyone gotten this error as of updating to 1.20.2 and know how to fix it?
I don't think create world is supported atm
So there’s just no way of fixing it? It’s kind of mission critical to the server 😅
I don't think so
Okay thank you for the help!
Was the plugin written for folia
Not originally, it was later modified for Folia, has been so for approximately a year.
Yeah probably need to just update it then
someone said that importing worlds through datapacks works great
so you could use datapacks
you just won't be able to unload the world/load them later than server startup
yea datapacks works
My folia map size with vanilla border radius 30000 full rendered is around 140GB, is there anyway to make the map file size smaller? or ways to make it better?
Sounds normal
Basically unrelated to folia
ok 🥹
You could look at Xymb's Linear format
If there is none, you could fork Folia and add it yourself
Aparently this fork has it, and looks really stared
ah yes, the fork with a config option to make the server slower than paper
which one
kaiiju
Can't you just... Not enable it?
it's a dumb hack to fix a dumb issue that they themselves induced
that is dumb
like, bearing in mind that we identified years ago that such a hack would cause the risk for deadlocking in any plugin trying to be smart over how it handles cross region/thread stuff
but, that's the only way to stand a chance of letting bukkit plugins work without blowing up all the time
But if they themselves induced, how was it known by Folia? Did you guys fix and he somehow broke it again?
It wasn't known by folia as such
it was a concern we discussed literally years before folia existed
⚠️ 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.
https://github.com/PaperMC/Paper/issues/1001
it was interesting for me to read, you may also read this and see how everything started
When will the first version be available in the public domain?
Sorry for the mistakes if anything, I use a translator.
i assume your asking for when you will be able to download it
⚠️ 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.
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.
Updates to Paper do not have any sort of estimate for when they release, ever. Any and all updates will arrive when they are ready, and the only thing to do is wait for them patiently along with everyone else.
Hi, our team was using folia for hosting an SMP factions server for players with peaks up 100-200 players at the same time. But we are slowly realizing that folia is causing some problems and it is getting harder to came up with work arounds. Is there any other way to host a server that will provide a reasonable performance to players than folia?
We don't make server software other than Paper and Folia
I mean, there is a reason why we're not recommending folia for production yet, and, generally, no, hosting large numbers of players on a server without basically hampering players is generally not too much of a thing
forks exist which can help shave off time here and there but, no magical solutions here
(we, ofc, do not provide support for, nor recommend any forks)
If you report the problems they will probably get fixed eventually
i could be wrong, but afaik folia doesnt have many bugs that a player would notice just playing in survival. most issues come from missing some vanilla commands (notably /worldborder) or (lack of) plugin support
What hardware were you running? The hardware requirements are important.
@viral coral ^ sry ping but u were online green
what
soemone send nsfw dc invite
Ping @mods next time please!
aight didnt know role ping work here ty
We have good hardware, but we encountered some Bukkit.getworld() issue. We managed to fix it tho. However right now we have enother problem with this:
message.txt by @polar bloom: https://pastes.dev/lX3HeLiGUL
It might be somehow related to this thing: [10:41:53] [Tuinity Chunk System Worker #0/ERROR]: Hanging entity at invalid position: BlockPosition{x=147, y=169, z=-166}
but idk
Can you be more specific about “good hardware”? Which CPU are you using? Are you running on Linux or windows? Is it in a VM?
it is VM, Linux, I am not sure about the CPU, but we have at least 16 cores
Yeah if you're on a VM and aren't sure about the CPU then you aren't meeting the hardware requirements.
A VM is fine, it just usually doesn't make sense for folia as I doubt you have a server with enough cores to make it worth splitting it up like that
64 core server? Sure, use VMs to split it up. 16 core server? That's a dedicated folia server, no need for a VM when it uses 100% of the machine
VMs are fine for some stuff. Just not great for Minecraft in general and not recommended for Folia.
VMs are fine for Minecraft in general
CPU overhead for a VM is basically 0 and Minecraft isn't IO bound
Unless your VM is pretending to be some CPU from 2012 to make it easy to migrate onto a wide range of machine types/ages, then the JVM will avoid some optimizations with newer SSE and AVX stuff. Although I don't know that MC does anything that would really benefit from any of that either
The only time VMs are no good for Minecraft is if you're oversubscribing (telling 4 VMs they all have 4 cores when your host only has 8) but that's true for running on bare metal or in containers too
I think you'd be hard pressed to find many hosts in Minecraft that aren't over-allocated.
Sure but who is running folia on shared hosting?
Back to my original point: Don't use Folia on a VM.
And make sure the hardware you're using meets the recommended requirements.
I suppose this is just one of those "if you know what I said is wrong you don't need this advice" things
:)
I don't know how to compile folia
then folia is not for you
is it impossible to use player.getBedSpawnLocation() on Folia? whatever I try I get a off-main scheduler error.
Which scheduler would be the correct one, to get the main thread scheduler?
player.getScheduler() I think
I tried using that (or well, scheduler.runAtEntity(player, () -> { var loc = player.getBedSpawnLocation(); System.out.println(loc.toString()); }) from FoliaLib)
but it returns the same error
looking at the Folia code for tick thread checking refers to the chunkX and chunkZ, which I don't even know how to get since that's exactly what I want to figure out 😂
Try using the Global Scheduler https://jd.papermc.io/paper/1.20/org/bukkit/Bukkit.html#getGlobalRegionScheduler()
declaration: package: org.bukkit, class: Bukkit
alright, thank you
oof?
but we got past the thread check
also getting the bed position across worlds doesn't work, it throws java.lang.IllegalStateException: World mismatch: expected world but got world_nether in net.minecraft.world.level.Level.getCurrentWorldData(Level.java:219) (I'm trying to write a /home bed command)
Sounds like a bug, it should be the entity scheduler
The tree gen error happens when you try to use the async or global scheduler for something that is supposed to be in a region-specific one
And the entity schedulers are basically region-specific ones that keep in sync with the region of the entity
How many percent is Folia ready?
There's no number. It's still at a point where we're deliberately gating access behind knowing how to build it as a result of it's relative stability.
I thought this server was supposed to be friendly and helpful 😲
⚠️ 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.
We are for most things, but Folia is intentionally made difficult to use due to the instability and potential bugs of it.
just curious, why is it made difficult?
It's still a quite experimental software. There's several systems that haven't been implemented yet, plugins have to explicitly support folia, and it's likely there's still some serious bugs that haven't been found yet. By gating access behind the knowledge of how to build folia, it's assumed you would then also possess the knowledge of the risks you're taking, how to update any custom plugins to work with it, and just in general you know what you're doing
oh, ok
then, I tried to follow a video to compile folia, https://www.youtube.com/watch?v=oTh9DjFgmTM, but this happend
Folia is a Paper fork adding regionalized multithreading to the server to support large amounts of players playing on the same server without the need for BungeeCord.
It works by grouping nearby chunks to form an "independent region."
Each independent region has its own tick loop, which is ticked at the regular Minecraft tick rate (20 TPS). T...
You‘re most likely running in the path length limit, move the repository to a less nested directory or enable long paths
I've got a domain setup with an SRV record since I don't have a dedicated ip
sometimes the players report having some other server in their server list,
which just so happens to be the server with the same ip, but 25565 as the port
is this a dns problem?
Yes.
how does it work most of the time, then?
I've had the same dns config for years, only now when I changed the ip/port and kept everything else the same it started happening
oh sorry I just realized this was a folia channel, they look pretty similar
@prime juniper if someone can’t figure that out then we’d prefer not tell them. Since Folia’s still under active development only people who know how to build/fetch it should be using it right now.
okay, sorry :/
Should I enable long paths? If so, how
Build from a shorter path. Windows limitation for some reason.
Oh, like c\users\whatever my name is\folia
do it directly on C:
I am at music school so I don't have my pc with me. i will enable long file paths. What else should I do?
My username folder is 20 characters long
ok
just move it somewhere else?
do it C:/
Isn't it dangerous
wat
Putting Minecraft stuff directly in the c drive
3 options, use WSL, try long path, on top of the c drive
Wdym wsl
could also just use a completely different partition
but no, nothing is more "dangerous" in creating a folder in C: directly than having it anywhere else on your system
access to files/resources are not determined by where it is but by permissions on the file itself
it won't just create move the folia folder to head of c
I know
I probably will use the. E drive to store folia. Btw, what caused that error?
probably the path length
windows gets dumb with long paths
why do they even have that limit?
becuase windows
makes sense
legacy reasons probably
I probably will fail wsl
i mean you don't need it its recommended but not required
Oh
i use windows for it aswell
just disable the path length limit or put it at head of c
Then how should I proceed after moving folia tone drive
follow the build instructions on the paper repo
Ohb i will tell you when I have another errorn thanks
I was using GitHub to clone the respiratory but some files say their resource is unavailable
read the entire error
or just use git from command prompt
I have an EPYC 7B13 server with 128c256T and System is Windows Server 2022 How can I set JVM startup parameters to make the best use of Folia,I want Folia make full use of my CPU core
But the server looks very sluggish
I don't know what the problem is
paperglobal by @solid mirage: https://pastes.dev/rNDlrACdmC
spigot.yml by @solid mirage: https://pastes.dev/Dmhimvq5ly
JDK:zulu21
Doesn’t that CPU only have 64 cores? Are you running it on a VM or a cloud provider?
No, this is a physical machine
but the system is windows server 22
It has 128cores and 256Thread
Ah gotcha. I don’t know that CPU as well.
I would really recommend running in Windows, for starter
I am a dual CPU server. one cpu 64cores and double 128cores
Do you mean that I should turn off NUMA to improve Folia performance?
I dont want to disable a CPU,should i disable it?
I would.
ok i would try to turn of numa soon
I mean I want to make a Folia server use more cores of CPU
Yes, but Folia isn't designed for multiple CPUs
So you either need a single higher core CPU or turn off one of those.
Not sure if/when NUMA will be supported.
Folia uses more cores, but
- It's still ticking individual regions just like it would tick many other servers
- Java does not have support for NUMA awareness inside of applications, and that's an architectual issue that you would want to design an app for, not try to bodge into down the line
well its on 2 cpus, not 1. as discussed, that is a source of slowdowns
10x, no; not unless you get some really bad luck I guess
ThankU very much !!! I found the plugin.
But It seems that folia use not more than 64 Thread? Whats the problem?
paperglobal.yml by @solid mirage: https://pastes.dev/lbhRUvqxRX
When my Folia server is high stressed only CPU(Thread) 0~63 is full,others mostly Empty
but paper global threaded regions I set 200, so should i use linux to run folia?
netty io :32 work thread:30 io thread: 10
You should use Linux to run large scale MC stuff
Well, how many loaded regions out of these 200 do you have?
Looks about right then, region threads aren't guaranteed to be put in different CPU cores
Yes, a large number of regions cannot run on more CPU cores, so there is no other way besides replacing windows with the Linux system, right?
Windows should be able to use more than 64, it's just not doing that because it feels like it doesn't need to
Sure,I have found that it is a plugin issue yet, but the funniest thing is that the plugin causing MSPT 1000 is Spark. I deleted the spark and then the server has never been stuck
you may also increase threaded-regions.threads in paper global config
Will the 64 thread limit problem be related to the memory channel? Epyc supports 8 channels, but currently I only setup 2 channels
I do this , i set it to 200 yet
show a screenshot of the /tps command when folia is loaded with players
very healthy
but in plugin, I get method Runtime.getRuntime().availableProcessors();,,,then it only return 64,,,,,,
well, here it does not need more threads
it's perfect 20 tps
that means that 1 thread can tick several regions
okay when tommorow i got 300+ players and then i will give a screenshot to you
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
if (command.getName().equalsIgnoreCase("gg")) {
for (Player player : Bukkit.getOnlinePlayers()) {
player.getScheduler().run(this, scheduledTask -> {
while (true) {
for (int i = 0; i < Integer.MAX_VALUE; i++)
Math.sqrt(i);
}
},null);
}
return true;
}
return false;
}
what permissions plugin works with folia?
womp womp crypto
i just loaded it and it failed to load
If I could find the ubuntu command to compile luckperms I have the github repo cloned to my server. I do this all the time with maven, but I've never done it with gradle
I've been searching google, but I haven't found anything straight forward yet
i figured it out
So I can expect it tomorrow? 
I don't quite understand what it means. I am not very good at diagnosis
your setup is screwed
something is wrong with git and your OS environment or something
what should I do???? 😦
No idea
Something is wrong with your setup. If you aren’t able to resolve your issues and compile it then it might not be for you.
You’re going to run into a bunch of other issues debugging and writing plugins
is reinstalling windows necesary?
Building on Windows can be tricky. Would recommend using WSL at least
java.lang.NoSuchMethodError: 'void net.minecraft.world.phys.shapes.VoxelShapeArray.initCache()'
at net.minecraft.world.phys.shapes.VoxelShapeArray.<init>(VoxelShapeArray.java:30)
at net.minecraft.world.phys.shapes.VoxelShapes.lambda$static$0(VoxelShapes.java:23)
at net.minecraft.SystemUtils.a(SystemUtils.java:387)
at net.minecraft.world.phys.shapes.VoxelShapes.<clinit>(VoxelShapes.java:18)
at net.minecraft.world.level.block.Block.a(Block.java:136)
at net.minecraft.world.level.block.BlockFireAbstract.<clinit>(BlockFireAbstract.java:26)
at net.minecraft.server.DispenserRegistry.a(DispenserRegistry.java:70)
at net.minecraft.server.Main.main(Main.java:135)
at org.bukkit.craftbukkit.Main.main(Main.java:324)
at io.papermc.paperclip.Paperclip.lambda$main$0(Paperclip.java:42)
at java.base/java.lang.Thread.run(Thread.java:840)
keep getting this error
have tried reinstalling folia and java
idk if this is the place to put errors and if not could you direct me to the right place
i have only had this problem on my server and not on my regular pc
server is running a fresh install of windows 128gb ram dual cpu and the actual folia files are located on the (E:) drive
I wouldn’t run Windows for Folia and dual CPUs aren’t supported by Folia either.
Not sure what your server setup it but if it runs on your PC then it sounds like your server is the issue.
anyone with a tpa plugin for folia? cba to make it
Ohhh
assed*
not supported as it doesn’t take advantage or it doesn’t work if i have them
https://www.spigotmc.org/resources/foliatpa.113922/
since i couldn't find one there you go in case anyone need it, tpa folia plugin
do note that spigot removes plugins which don't work on their software
oh than there you go https://github.com/Lyzard-Network/FoliaTpa
(forgot to push a fix for aikar commands framework, i'll push when i get home)
it is just on my pc
I just want to be able to survive a lag machine
and explore with the new technology of folia
but I saw someone ran folia on their pc in a video
so exactly how should I use
WSL
This isnt really a channel to teach you how computer / OS works
currently doing wsl --install
his point is that if you do not have such knowledge, you should not be isung Folia because it requires way more knowledges to run because it is not released yet
Do you know that all plugins wont work with Folia?
and why would part of folia not get downloaded. I know all plugins fail
are you running a server with zero plugin? or a very limited selection that has Folia support?
We do not want people with no deep knowledge of the eco system to run it and come here to complain that it doenst work.
or worse yet, go to plugin developers and demend them to provide support for Folia
Is there any documentation for the best way to allocate the threads?
I currently have a AMD Ryzen 9 5950X @ 3.4 / 4.9Ghz with 16 cores aka 32 threads and instead of testing what is the best is there anyone that uses a similar thread number and found the most optimized allocation
No idea, but this blog might help https://cubxity.dev/blog/folia-test-june-2023
⚠️ 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.
I read the github error and it says that cygwin.dll is probably missing and that there is an error with child process with exit code 11
⚠️ 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.
feels like your java is corrupt
try reinstalling it
java 21 or java 17?
Is there a supported plugin that you recommend to prevent players from breaking blocks in spawn?
Assuming you only have a vanilla spawn location, I think you can just use spawnProtection in server.properties
Will it work if I change this setting only in the world I want (for example, a separate world for spawn) via paperworld.yml?
?
17
oh, I thought 21
why gamble on java versions?
they each have their pros and cons
@primal quail
21 is fine
17 is the officially used version by minecraft and paper
pick your poison
I personally use 17
message.txt by @pastel musk: https://pastes.dev/4QxO2EUQw5
that is the exact error
The error isn’t to do with folia IMO. It’s not even related to Java. Looks like the Cygwin install is broken and git cannot function, so GitHub and gradle both fail.
You should probably
- follow whatever instructions the error messages are giving you
- search for those error messages if you are still having issues
- seek help from the Cygwin community
Once you get your git/cygwin situation sorted: - successfully build Paper from source. You should only start trying to get folia after you have a machine setup that can build Paper from source. Until then your issues are very specific to your setup, and the solutions will be documented in a bunch of places other than the folia channels.
Troubleshooting techniques you should try to focus on:
- Read error codes. They are there to help you solve problems. If you don’t understand every term in them, then look up the terms.
- work to understand the system. Often, you can figure out the solution to problems simply by reading up on the how the system you are working with works.
- isolate the problem. There are a bunch of tools that you are interacting with if you want to successfully build the jar file. Ideally, when you are testing a problem you only want to test the broken parts and keep things simple. In this case, you can test if your git command is broken by cloning any public repository from GitHub.
Although this plugin isn’t officially supported. There are forks are WorldGuard that support Folia.
idk if building on Cygwin even works tbh. If you need to build on Windows, I would recommend just using WSL
Is this what you're talking about?
That should work. Now you need to find a WorldEdit Fork, or a FastAsyncWorldEdit Fork.
I already have a working worledit fork
I'm just getting some errors while building this.
Great! So now you should be set.
Oh I have been maintaining one from TechnicallyCoded. I could send it to you if you like.
Is it possible that it is not up to date?
Okey thanks
The build error doesn’t have anything to do with that most likely.
Can you link me one?
probably my pc has a big error
which i am not responsible for
since I did not make it happen
If you’d like I can provide you one. Although it is basic support.
I have the same issue, generally with mob spawning...
if I disable per player spawn caps my metrics tell me that I'm usually at ~4k entities, but people report that there's nothing spawning
if I leave per player spawn caps enabled, I shoot up to 50k entities and the entire ocean is filled with squids and land is filled with animals... and I've already reduced mob limits so I have 0 clue what the actual issue is...
oh, and mob (like, bad guy) spawning is way too low for some reason
there is an issue on the tracker, I think leaf was having issues reproducing it however
our mc project is open for registration if he wants it reproduced lul
I mean, that's useless
Cool, we can see that people are having issues, that's literally already documented on the issue tracker
We have no means of reproducing it in a controlled environment at the moment, however
what I've figured out: have ~30 people on a server, in the same region, with default mob spawning rules and be near an ocean
the ocean will entirely fill with squids and fish in a matter of minutes
then document that on the issue tracker
could you link me the issue?
idk what all is documented there, for all I remember people where generally just reporting that it was borked, if theres certain conditions that people can identify which make it occur, then he needs to know so that he can look into it better
I'm not on a PC rn
I don't have a link
I would love that
its all i need
I found the animal spawning pr: https://github.com/PaperMC/Folia/pull/169
it's just weird that the branch doesn't exist anymore and that the master branch doesn't have the commit
the heck? I swear, it wasn't showing the commit on my side
well alright then, I'm gonna rebase my changes
Yep, nope, we have that patch already in our Folia build
so that patch doesn't seem to fix it
well, Imma have fun debugging this
🗺️ Minecraft map editor and mod - Up-streamed version from https://github.com/TechnicallyCoded/WorldEdit-Fork - GitHub - Folia-Inquisitors/WorldEdit-Folia: 🗺️ Minecraft map editor and mod - Up-stre...
<@&748618676189528155> ^
(657b3f7342b7936e54a59f8e) // @latent pine (@zstzbxn / 245240991269912576) has been banned by @jagged ether (451779815415218177)
Reason: crypto scam

pplease put more support for folia!
what
i mean if you need help with folia then just ask ask here?
hey
Hi.
Sorry if this is a stupid question but i have been coding with bukkit/spigot/paper for like 10 years now so ud THINK i know what im doing but idk. What OS do you recommend for folia as I plan to buy a local machine to run a dev server till a release in 6/7 months. Also is there any documentation on how to build it or code with it? If this has been answered else where linking it is fine but i didnt see it tyyy <3 (PLEASE @ ME WITH REPLY)
Also another question thats a bit more generic, when i locally hosted servers in the past people in the UK would get same ping as if i hosted it with a company but when i do it local people elsewhere (in the US for eg) they get WAY better ping from a uk hosting company (compared to local) is there any glaring reasons why and is there any sort of tech i can do to help it? If local hosting was possible for release id love to go down the server rack route
Hi all. When is 1.20.4 folia?
We don't have an ETA.
Generally whatever linux distibution you want. Ubuntu is pretty popular and user friendly.
oke any anything else for the other questions?
i was thinking cent os too but idk
may i ask why? idk too many distoros but cent is one i used to use at a networking job and i understand its meant to be good for this sorta thing no?
and more important than the distro could i get more info on how to build/documentation
ah okay simple enough, idk why i assumed it would be different from paper
yeah i guess that makes sense
CentOS is kind of just a bad Arch these days, no?
It's not compatible with RHEL and is a rolling release thing so never "stable"
I got a bad arch on my back these days
hi
Is there a permission plugin you recommend for folia?
there's a luckperms pr/branch
I couldn't run luckperms in the latest version.
did you use the one from the pr
thats?
looks like luckperms
I already built the source code on github but it didn't work.
did you use the correct branch
I used gradlew via cmd. Let me try Intelliji now.
did you use the right branch
i think so
I am using it on the latest version of Folia and it works fine.
startup flags same as paper ?
yes
Did you download it directly from luckperms website?
No, it was on a Pull Request Luck created.
im tryingg
oh this work ty
if i have some custom patch files which one do i put them under @primal quail
Of course!
like more plugins for folia
easy: write them/get your/some devs to write them (e.g. with money, which you seem to have if you think that folia is a valid solution for your setup)

Plugins existing has literally nothing to do with us
Folia only potentially makes sense for you if you have hundreds of players
If you have that you should either be milking your whales with stupid microtransations or have some devs in the community that help run the server
So you have either devs or money to hire devs
Good night, do I need anything else to compile Folia by taking the zip file from github?
You should probably clone the repo rather than downloading the zip.
sorry for the ping, but are you that?
If you aren't sure how to clone and build the repo then Folia probably isn't for you yet.
I only came to know if it was possible without cloning the repository, thank you very much for the support ^^
It should be, but since it's in active development you'd really want to clone it. Especially if you need to switch branches and stuff.
Pretty sure you have to clone
Hi! if I want to use Folia, can I only build it myself? or there's a build i can download
build yourself
Hi i have a problem when i start folia server: https://pastebin.com/q1GZ1LNe
Is it possible that I'm making a mistake in building the plugin?
I have done this: ./gradlew applyPatches
And after ./gradlew build in cd Folia-Server
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.
wasn't it one of the paperweight tasks one needs to run to build stuff with it? not entirely sure, haven't messed with forks in a long time
yeah that's not the command to build a working jar
read the README.md of Paper again
how do i change the core usage from 6 cores
to 24
for all the stuff
i have a xeon server
that's not how it works, while you can increase the threads used for region ticking, you really don't want to have too many threads trying to get cpu time
oh ok
so the default 6 should be good enough for an anarchy server that i want to hold 800 players ?
im paying some guy to join with 500k subs so i wanna make sure everythings good
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.
im very new to this
there is a whole list of documentation to read there
probably not, but then a xeon also probably isn't a good choice
This software is not ready for prime time, and so documentation is still all over the place, but, generally describes stuff well enough
alr thanks its pretty good so far i have my developers making it work fairly well
(6582084142b7936e54a59f9e) // @short imp (@yeetusthyself / 743670340475027567) has been banned by @viral stone (126975485493248000)
Hello!, Is there a way to enable arena dupes within my server?, i has been try with plugins but no one works 😦
What is arena dupes?
Ops I forgot to translate that, I mean Sand Dupes
The only plugin that works are for Paper that can dupe “sand blocks in item form” via end portal
It’s called gravity control
I am not sure if it works on folia you will need to check
Then no luck.
`* What went wrong:
Execution failed for task ':paper:patchCraftBukkit'.
io.papermc.paperweight.PaperweightException: Command finished with 128 exit code: git -c commit.gpgsign=false -c core.safecrlf=false clone --no-hardlinks C:\Users
37069\projektai\wexhost\sistemos\minecraft\building\folia\Folia.gradle\caches\paperweight\upstreams\paper\work\CraftBukkit C:\Users\37069\projektai\wexhost\sistemos\minecraft\building\folia\Folia.gradle\caches\paperweight\upstreams\paper.gradle\caches\paperweight\taskCache\patchCraftBukkit.repo
`
anyone know how to fix this error?
Use a shorter path
tnx
The Daemon will expire immediately since the JVM garbage collector is thrashing.
The project memory settings are likely not configured or are configured to an insufficient value.
The memory settings for this project must be adjusted to avoid this failure.
These settings can be adjusted by setting 'org.gradle.jvmargs' in 'gradle.properties'.
The currently configured max heap space is '512 MiB' and the configured max metaspace is '384 MiB'.
For more information on how to set these values, please refer to https://docs.gradle.org/8.4/userguide/build_environment.html#sec:configuring_jvm_memory in the Gradle documentation.
To disable this warning, set 'org.gradle.daemon.performance.disable-logging=true'.
FAILURE: Build failed with an exception.
- What went wrong:
Gradle build daemon has been stopped: since the JVM garbage collector is thrashing
this something. Is it something with ram or what and how do I fix it?
yes. the linked page tells you how to give it more
You can try plugin, called "FoliaFlow"
Yo this plugin work
Thanks you very much 
Btw, does anyone know of a plugin that can be used to control the worldborder? I realized that the /worldborder command does not exist for some reason and I suppose the only alternative is a worldborder control plugin? but I can't find any that work with Folia
Folia plugin support is still nascent.
You may want to make sure there are plugins that support what you need, along with having enough system requirements and the correct use case to use Folia to begin with.
Players 1500 blocks apart, etc etc.
ChunkyBorder
I use 10000x10000 worldborder, and Folia works better than Paper for my project, the only thing that is poorly optimized in folia is the spawning of mobs, they cannot be properly limited and there are some bugs with "triggered mobs" and mob-spawning
I was talking to the person above you.
I understand, I joined your conversation and wrote my opinion about the experience with Folia and the border of the world
paper plugins support folia?
paper plugins don't automatically support folia
how can i learn folia?
you look at the readme
hello I can't compile folia, I'm on a codespace on java 21
./gradlew applypatches
> Configure project :
paperweight-patcher v1.5.9 (running on 'Linux')
> Configure project :paper
paperweight-core v1.5.9 (running on 'Linux')
> Task :paper:decompileJar FAILED
> Task :getPaperUpstreamData FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':paper:decompileJar'.
> io.papermc.paperweight.PaperweightException: Execution of 'org.jetbrains.java.decompiler.main.decompiler.ConsoleDecompiler' failed with exit code 143. Log file: /workspaces/Folia/.gradle/caches/paperweight/upstreams/paper/.gradle/caches/paperweight/taskCache/decompileJar.log Classpath: /home/codespace/.gradle/caches/modules-2/files-2.1/net.minecraftforge/forgeflower/2.0.627.2/e7434db4306e8dd6cc81c2a72a5d700caefca09/forgeflower-2.0.627.2.jar:/home/codespace/.gradle/caches/modules-2/files-2.1/org.jetbrains/annotations/20.1.0/2fcd1f3225bca0c4a7bc931142076f8c1e80993f/annotations-20.1.0.jar
* 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 1m 31s
2 actionable tasks: 2 executed
the fuck is exit code 143
See the log file, I guess
The code 143 indicates that the pod was terminated gracefully by the signal SIGTERM. and the Kubernetes cluster needs to reclaim those resources.
ok so my github codespace is not powerful enough x)
I will try on my pc
edit: I've managed to compile folia on my pc thanks
btw, ¿u know a plugin to move the vanilla worldborder?
Because thats what im looking for
I want do a "Battle royale" event in my server and i want to close the worldborder
the vanilla worldborder is (effectively) disabled, so youd need a plugin that reimplements most of its functionality
Hello,
I am fairly new to plugin development and converted my Plugin (just for some friends) to work with folia (it was straight forward). But now I am stuck at the point of changing the time with world.setTime(0). It tells me that is it not globally possible to change time.
Then I tried to run the command time set day as the server via plugin.getServer().dispatchCommand(plugin.getServer().getConsoleSender(), "time set day");. But it gives me an error that is is asynchronous an thus not working.
I intentionally do not share the error log, because I think I am at a dead end either way. Is there a know, yet simple way of changing the time/skip night. (It does not need to be efficient)
Thanks :)
"just for some friends" sounds like paper would be better, but theres a "global" region that you probably need to use for that
Ik ¿But do you know of any plugin that added these features again?
oh i found one
FWIW if you're doing a "battle royale" type thing with people in a small area then Paper is almost certainly going to be faster.
Ok, thanks for the tip :P
I want to test some stuff with folia, but where do I find the compilation guide?
paper readme, clone the folia repo instead
Thx
Do you have a link? Cant find it
github
Ah was looking at the wrong docs, found it
I was looking to the build guide too but I havent found anything...
scroll up
Is there a supported plugin that changes the player nametag above their player?
Yo can you slide me that protocllib support?
TAB
It already supports folia
Yea the normal didn't work for me but their dev build worked fine
Thanks for the response
Happy to have helped
hi ! I have a question, folia is use for server with a lot of CPU thread ? for a better multi-threading ?
I have dual Intel® Xeon® CPU E5-2689 with a total of 32 thread at 2.60 Ghz
I mean, already answered that 😂
It's for wanting hundreds on one server in specific setups. Needs ridiculously powerful CPU.
That's a pretty old CPU. I wonder how it would work out. 🤔
I want to test it but I don't understand how to compile that
when I test to compile that I have this error :
first step is to clone the repo
yes I do that with Github Desktop
and I have this error when I do gradlew.bat applyPatch
other than that, try a shorter path, i guess
oh thank's that work x)
I have a question can I compile that on my windows computer and after copy that on my server ?
if you mean, can you copy the compiled jar, yes
if you mean, can you copy the source folder to a server, generally a bad idea
If your players aren't really spread out folia won't do anything for you
No, Folia is not compatible with any Spigot/Paper plugins
Some plugins support both but they have to explicitly support Folia
ok folia is good for faction server or survival server ?
It can be, yeah, so long as your factions are very spread out
Like more than 1500 blocks from each other, the more the better
ok thank's 🙂
Your specific CPU will not be suitable for this kind of server, by the way
If any players are within 1500 blocks of each other they're in the same region, that means if A is 1200 blocks from B, B is 1200 blocks from C, and A is 2400 blocks from C they're in a single region because there is no large enough gap between them to get a split
why ?
It's really old but 10 cores is enough if you pregen your world
Well, it's borderline
I'd worry the CPU is just bad for MC no matter what
The single threaded perf of that CPU is really low, it'll struggle if a group decides to get near each other which tends to happen sometimes
I'd worry that it'd choke on a particularly heavy isolated player's base, as well
at the end of the day, each region is basically a small MC server with some small amount of overhead to manage that
what is the max of CPU thread I can use on folia ?
you still need a CPU capable of handing that
there is no max
just, aspects like crossing silicon is slow
oh ok
I'm not aware of any factions plugin that supports folia (open to being wrong, but it would require a substantial rewrite for any of the ones that stole my code)
Sounds like this would be better served by a standard Paper server (assuming you don’t have a playerbase already and need the grunt performance + have the money to employ devs)
Most servers are better off with Paper
Most sane server kept player max around 60 and make extra servers
ive got a rather decently largish server, that im trying to optimize to hit the 200+ player mark, what flags should i be using on the start script and what are some kernel tweaks i should put in place, if anyone knows, any help is greatly appreciated
also is there a way to tell folia to be liberal on the region threads instead of making regions so large
The regions are dynamic, so no.
the region size requirements are hardcoded due to vanilla behavioral concerns and performance
my current issues is theres a lot of people near spawn, sim distance is 16 and 1 core gets a bit loaded at times and was wondering how to alleviate taht
there is no way to aliviate that which isn't basically having multiple spawns
ok cool, is there any known recommended startup flags and options for java for best optimization?
thank you that search turned me to https://docs.papermc.io/paper/aikars-flags which is exactly what i wanted to know 😄
so for anyone who asks in the future, i set these settings and it helped the server with performance noticeabley ```echo kernel.pid_max = 4194303 >> /etc/sysctl.conf # not really needed but good to have
echo net.ipv4.netfilter.ip_conntrack_max = 196608 >> /etc/sysctl.conf
echo net.netfilter.nf_conntrack_max = 1048576 >> /etc/sysctl.conf
echo net.core.rmem_max = 65536000 >> /etc/sysctl.conf
echo net.core.wmem_max = 65536000 >> /etc/sysctl.conf
echo net.core.wmem_default = 262144 >> /etc/sysctl.conf
echo net.core.rmem_default = 262144 >> /etc/sysctl.conf
echo net.ipv4.tcp_rmem = '32768 87380 65536000' >> /etc/sysctl.conf
echo net.ipv4.tcp_wmem = '32768 87380 65536000' >> /etc/sysctl.conf
echo net.core.netdev_max_backlog = 30000 >> /etc/sysctl.conf
echo net.ipv4.tcp_congestion_control = htcp >> /etc/sysctl.conf
echo net.ipv4.conf.all.rp_filter = 2 >> /etc/sysctl.conf
echo vm.swappiness = 0 >> /etc/sysctl.conf
echo net.ipv4.tcp_mtu_probing=1 >> /etc/sysctl.conf #only if using jumbo frames.
that seems very doubtful
seems more like something that would be the result of "optimized sysctl parameters for performance" on google, practically none of these have anything to do with server performance
idk much about linux kernel n shit, but yeah it's mostly all network related
it's very likely to be more of a placebo than actual noticable performance improvements
why would you set the max pid to one below the default...
if there was a meaningful way to get more performance without impacting anything important, it would probably be default
this shits been tuned for years
it says right there! "good to have"
the default is a lot lower, 32768
distros changing it to 4194304 is nice but yeah the default is still 32768
hey i got a question about folia.
on github folia recomends the cpu to have at least 16 cores but what are the downsites on running it on a 12 core 24 thread cpu?
It'll either run slower than Paper or it'll run so slow it crashes. Depending on the use case.
Folia isn't for everyone. It has a lot of specific scenarios in mind.
ok thanks
its for an anarchy server
i plan on buying a 16 or 18 core xeon next year
it currently runs on paper on a 6 core 2.6GHz WM
well thanks for the tip ill be looking for e5-2698 v3 or 99
oh shit its an endcristal.me and 6b6t admin
ye i can just test folia on diferent hardware and see what it does
⚠️ 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.
I mean it’s been months since 2b2t deployed it and if there are huge issues, we’d known it seeing that server has 300 players daily actively trying to dupe and exploits
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.
⚠️ 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.
For now we stick with our recommendations. But I don’t think it’s smart to tell people to use NUMA without warning them first about the possibility of large unexpected issues.
If it runs on fewer cores as a test, sure. But multiple CPUs are definitely unsupported and an unknown quantity.
Would much rather be cautious with people so they don’t run have issues
If they want to take the risk then at least they are informed.
4 cores or less, I bet it'll be slower 100% of the time. 8 cores or less, there might be cases where it's an improvement but they'll be niche. Past that it depends
there is some overhead which can't be ignored, may or may not be a bit exaggerated but the point is mostly not to try running folia if you do not have the hardware and means to support yourself on it
for the average server paper is going to be a good choice
the box im running folia on a 5950x with 64gb of ram and twin 2tb nvme's in mirror, which is async mirroring to an iscsi volume from my nas. its a pretty good setup i think, folia running nicely
is there a setting that starts to remove objects from the ground, because on my server dropped items are staying there forever and mobs wont despawn
dropped items despawn after 5 minutes
https://i.imgur.com/mYVJsQk.png
everyone seems bundled into a single region
how do I resolve this please?
threaded-regions:
threads: 12
How big are your world
Players MUST be at least ~ 1500 blocks apart so server can create new regions.
don't do that. I guess you have 6/12 CPU?
hm?
blocks, 9000x6000 roughly
your world?
yes
💀
players are roughly evenly distributed
.
¯_(ツ)_/¯
they are more than 1500 blocks apart in many cases
there's 4 distinct islands, they're all 1500 blocks apart
well, not enough apparently
?? not sure how the player distance would matter if they're split over several regions
we're pretty much running it how the cubixity guys did https://cubxity.dev/blog/folia-test-june-2023
well, they're not split if you have only 3 regions
.
cuz players are too close to each other
they're definitely not though, feel free to come and take a look
Those "islands" how far apart they are
You included?
As you can see, it's not enough
right, I've just triple checked, there's 4 distinct groups of players, all at least 1500 blocks apart from each other
so, what else can I do to troubleshoot this
during testing before this event, we didn't run into this issue
on testing you had 400+ players?
yes, we had 3500
peaked at around 6000 at one point
usually we use multipaper, but thought we'd give folia a fair shot
"distinct groups" arent enought, there should be no players in between the regions
there is no players between the regions
at all
as I say, I triple checked, in fact the plugin we wrote for the event teleports players out of the spaces between each region
If a player from one island will come to the border of the island and second player from island that is near will come to the border too then regions will be as one.
That's probably what's happening to you
I mean as you can see you have >400 players in a region
I kicked players except for the two regions on opposite ends of the map
there's still 1 thread
I think there's something else interfering
considering that, I'd say it's working pretty well lol
oh yeah, but we need roughly 10x that
and the 10 day event just started today
youtubers have hit record, so I gotta fix this live somehow
Do you have some kind of map with players`?
red dots are players, if that happen then regions will merge into one
I know how it works
not live right now, will have to restart everything to bring it back up, can't do that immediately, I can confirm there's no players between the regions though
What is the view distance?
I have gone so far to turn off chunk generation and delete the region files between each team's area
currently, 6
What is the event called?
If I was you I would create island every ~ 5-10k to be 100% sure regions wouldn't be merged.
as one region contains 24k chunks, players doesn't seem to be separated enough to allow the region to split
1500 is pretty borderline, and actually might be below the minimum depending on your setup
yeah the two groups remaining after I kicked everyone were roughly 5-6k apart
I'm almost certain it's nothing to do with regions merging together with that logic
I'm thinking it's likely something to do with another plugin we're running
perhaps grimac/viaversion would interfere somehow
or, it's just a misconfiguration that's snuck in
Hm, I guess it could be a plugin
that's what I was thinking too, but it's too late to trial it without, and the setup hasn't changed in any meaningful way since the tests
normally, we'd have a change freeze between testing and the event, but some config changes snuck in
where in the source is that 1500 value before they merge together, I'll rebuild folia to see if that logic holds up
Not really
That value is tightly coupled with the inner workings of the chunk system
egh, so there's not really anything we can do other than hard cut to multipaper or something mid-event, this blows
Move the islands further apart
thing is, on day 8 I'll just have to put them back together again, so that's gonna be too much hassle
the borders are supposed to come down and the remaining people (roughly 500 or so) will be able to interact with each other
I know we can deal with that many people on a single thread, but for the next 8 days we were supposed to whitelist 10k more people
so unless i can just get someone to magically whip me up a plugin that will translate the coordinates in everyone's player data by a specified offset and move the regions on those two checkpoints, this just seems like a crazy workaround
Folia pretty eagerly merges regions (it has to choice, things would explode otherwise) but it doesn't split them back up as eagerly to avoid ping ponging
So once they're merged people have to be even further apart to get it to split again
ah damn, so we kinda need to force that to happen in this situation
any suggestions how we can do that
we're locked into folia now
Restart the server, maybe
But next time someone manages to merge them you're stuck again
wonderful lmao
⚠️ 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.
iirc you might be able to drop that to 5 with the cost just being extra locking but any lower and you run in to crashes
large enough for a maximum of 6 players
some basic math here is going to be very useful
at around 1500 blocks radius for each player means that they need (2*1500+1)^2=9 million blocks^2 of area
you have a world of 9000x6000 blocks, or 54 million blocks^2
this isn't even the right shift to adjust
it can't be adjusted either it will break the server
easiest and safest might be simply moving the players further apart. and if you do it by just adding two empty regions inbetween
I mean if Leaf says “don’t do that” I think it’s best if we don’t recommend people do that.
Also a reminder that bot testing isn’t a great representation of real players.
There's still a difference between "don't do that" and "be wary".
Done sorry leaf fixed it 
message.txt by @primal quail: https://pastes.dev/5jTy0eKXZA
the ticket shift grid size is critical as it determines the range of ticket levels that are usable
I would highly suggest trying to read the code that uses it rather than simply playing around with it
should also be noted that there's a config option to change the region shift @dawn hawk
instead of manually patching it with the above
wont help him
still too small for the number of players he has
for 440 players you need a much larger world
I would suggest trying a 60,000x60,000 sized world
^^
folia's current region recalculation logic is set to recalculate a region if 16% of its marked chunks are dead (i.e unloaded)
To be fair, their situation read to me like they had 4 islands near the corners of the world, which should be their own 4 regions with all the player groups exclusively confined in each
And then said it probably won't help you and that he recommends you use a 60kx60k world or something.
Hey we're down to ~900 blocks now though instead of ~1500
there is a very low enderman spawnrate on my server is that Folia related or a player skill issue
for an enderman farm i mean
likely skill issue.
is farm made at Y1?
actualy let me check
remove keep-spawn-loaded on your config for the end.
that will help slightly
but otherwise, that's about it.
Excuse me
When using the CDN proxy Folia (based on TCP load balancing), I found that I could not obtain the real IP address of the client (all were IP addresses of the node servers).I tried to enable the CDN's proxy-protocol-v2 protocol to let the server obtain the address, but it did not work. I also tried using the haproxy-detector plugin, but I am not sure if there are any solutions.
enable support for PROXY protocol in the paper config https://docs.papermc.io/paper/reference/global-configuration#proxies_proxy_protocol
is folia support it?
it should
ok,thank you.
Hey, am i alright to get a jar file for this please, not so good with java compiling and hoping someone can send it me, cheers
It does not have to be some official release or anything, just want to test folia
Or how do i compile it?
The compilation instructions are the same as Paper, which are in the repo
following them now, thanks for your reply though 😄
cant wait to check this thing out, been waiting a while, Microsoft and mojang half arsed the development of minecraft so Paper had to step in ahaha
have hit a snag though
Read these errors. Both tell you exactly what the issue is.
Still need help with this, any ideas?
Doesn’t vanilla do this or was it removed in folia?
Probably going to have to make something like this yourself. Plugin support for Folia is limited still.
there isn't an official one. This one should make it Folia "compatible": https://github.com/Folia-Inquisitors/WorldEdit-Folia
Yea, there are some WorldGuard forks that added Folia support.
Yes but the thing is I had already fixed them and it still gave me the errors even after reboot so I used another machine
been using Folia and its INSANE!
I have it running on an I7-4790K clocked at 5Ghz
Im just super thankfull that the paper team is a thing other wise I would have stopped playing minecraft years ago
can't seem to join a server on a 1.20.4 build https://i.imgur.com/drlIeRM.png
Try without plugins
zero plugins, same issue, seems to be something to do with using a map from 1.20.2 @fair merlin @primal quail
fresh map it's fine
Sounds like some data messed up in the map, or a datapack
no datapacks, map is totally fine before running it with a 1.20.4 jar; it throws that error on join only after running it on the 1.20.4 server, then if you run that same map on a 1.20.2 server again, the same error is shown on join
I have to restore from a backup from before the map ran with the 1.20.4 server for it to be joinable again
I can reliably replicate the issue without any plugins & default config
Well you can't run 1.20.4 maps on 1.20.2
sure I know that, but the interesting thing is that it's exactly the same error shown to the client from the 1.20.2 server only after the map has been run on a 1.20.4 server
So walk me through how you're making the map / able to reproduce it.
Without any plugins or datapacks, you create a world on which build/commit of 1.20.4?
Or are you creating it on 1.20.2 and then upgrading it on 1.20.4? When you upgrade are you using --forceUpgrade ? (Don't do this if so)
please set debug in server.properties to true and check the logs
If I have a skyblock server, and each island is in seperate world, will all the worlds run on seperate threads?
folia doesn't have runtime world loading, how do you plan on doing this
to clarify, each world will have its own regions, regions are ticked parallel, so, yes
the API doesn't support loading worlds, however
Didn't know that, just speculating
How do I get a Folia .jar? I am stupid.
You'd need to compile one, using the Paper repo's instructions
I have a question when two people in different regions walk to eachother the regions merge?
Yes
Why are there so many smart ppl on this server? Why am I the only stupid one...
But they don't unmerge later
They might under the right conditions, but do assume that merging will be easier than unmerging
Is there a way to solve that because sometimes in my server all regions merge but never unmerge so the server runs on 1 region and crashes after some time
The only solution I can give is making players be further apart
And make sure you're on latestx there were some changes
Can you send me a link to the Paper repo's instructions? I don't know what to do beyond this point.
⚠️ 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.
sad
⚠️ 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.
The instructions on Paper's repo on Github
You did it
I did!
Just run the bundler jar now
I figured it out!
I changed the name to server.jar and then started the server and I think it's working
Welp, I'm gonna test it out
Sweet!
To be honest, I didn't even do anything. I just found a ready to go folia on github.
That's not ideal.
We don't recommend running jars you find online because you don't know what's in them.
Same with downloading Paper from somewhere other than us.
People can put in backdoors, viruses, etc.
(or really any software)
Well yeah.
Oh, don't worry it was on Google. Google would never lie to me.
Anyway...
It works!
Wait a SECOND?! Folia comes with anti-xray?! Amazing!
okay
you change the jar
oh no...
I guess I will go try to do that. Is there any way to use a 1.19 plugin on a 1.20.2 server?
No.
depends
Well, you can try, but probably no.
And 1.19 Paper plugins won't work on Folia.
Need to be made for Folia.
Okay well you can try it, but good chance it won't work for 1.20.
Should probably also be running 1.20.4
Especially on Folia. Bug fixes, exploit fixes, etc etc.
yeah...
Oh well
I will try to compile Folia myself
maybe
and get 1.19 version
Oh wait...
If I just change the name to 1.19.0 it will work
.
why are you trying to use folia? do you really need it
Yes
check my bio
what hardware you got
Not sure how your bio shows whether or not you need Folia.
It's a pretty specific usecase.
i mean if you are going to run 100+ player events, you should have the skills to use it
I host MC events
how large are said mc events
Okay. Do the events have the players all in one small area?
at least 2 players
If so then Folia is definitely not going to be good for you.
okay so give or take 5 players