#folia-help
1 messages Ā· Page 30 of 1
How can I build a runnable jar of Folia please?
I tried this way, but I had an error. Is there any documentation to do so?
is it possible/safe to pre-load (using Chunky plugin for example) map on folia server? And then set worldborder using ChunkyBorder?
Chunky work on Folia
did you apply patches?
because that error would suggest that you failed to setup the project properly
Oh, no I didn't
Okay it's done
Thank you, it works correctly. I did not know I could use the Paper documentation to build Folia š
guys how do you solve the problem that spark can't use in folia?
I've been plagued by this problem for a long time
Use the branch of spark that supports it. @opaque rose
Yep
Unfortunately I didn't find it
š¤
i want to allow players to fly (by using cheat clients) but limit the speed to prevent lag, is there any plugin for this?
made something for that , check coolprotection, there is a config for that, you can disable all the rest
does it support folia?
yes
2.0.1 version
updated description, thanks for the notice
ā ļø 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.
not a link but it's a pretty clear method to getting folia
if you're asking for a build, clone the repo and follow the same build instructions from the paper repo on it
no no not asking for a build, that was in reference to someone mentioning FoliaToGo
which is basically saying just get it from here you don't need to build
So, they're referring people to a link rather than just providing a link straight up
same difference with extra steps
ah ok, just thought it might not be allowed
Yea, no, sorry; I complete brain fart, we generally ask that people don't provide links or point people to links
š
Hello, I have a question. I realized that with large farming machines, a single region could use 1 Core CPU on its own. So, is it possible to "limit" the maximum load a region can take?
Just the standard ways you would limit a paper server, I guess?
we can limit to a certain extent. here I am talking about intentionally limiting the physical load of a region that Folia uses
other than manually put the thread to sleep for like 10-50ms and allocate more threads from the start idk what could you do
(and yeah, this ofc will create lag spikes in that region, but will lower the cpu usage)
Well, basically, no, not without basically utilising plugins that would prevent things like redstone events (of which many of them can hurt the performance more than they help)
ok I was wondering, thank you very much
Hi, wanted to ask, is Folia 1.21.1 out already?
yes its on the dev/1.21.1 branch
Does folia compromise vanilla features bc it is a fork of paper?
Yes, it has all the same issues of Paper there plus more, like command feedback not working so you can't use command blocks or datapacks that rely on getting the result of commands
I think that's the main vanilla breakage though, the rest of it is API breakage
Do Folia plugins work with paper plugins?
Sorry, I mean do paper plugins work on Folia*
plugins must explicitly add folia support and mark themselves as such in their metadata
paper-plugin.yml supports the folia-supported field if that's what you mean though
Does the Folia still far away from the official public builds? Like, will it take at least 1 more year? Or we are more close now?
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.
basically, "no one knows"
if you can't compile it or have someone compile it for you, you probably can't handle running it
support for folia is still very, very scarce in plugins
you will need custom plugins in most scenarios
as well as a developer to deal with any issues that arise
but how do i clone the branch?
google dot com
omg, instead of actually helping in a help channel, youre telling me to type google dot com. thank you for helping me. wow.
see here
clone the repo with git, and then checkout that branch, and run the build script akin to the paper repo readme
If you donāt know how to clone a fit repo you probably shouldnāt use it.
fit repo
Auto correct isnāt a software engineer it seems
Iām experiencing the same issue on my Folia server. There are no plugins installed, and the render distance is set to 8 chunks. However, even when walking around the world, the internet usage stays above 500KB/s, and my ping spikes. Does anyone know how to fix this? Please help!
got a spark profile, or at least some hardware specs? 500 kbps is normal, pretty ok for 1 player.
On my Paper server, when I walk around with an 8-chunk render distance, the incoming data stays at a maximum of 70 KB/s. However, when I do the same on Folia, the incoming data skyrockets to around 500 KB/s along with high ping spikes.
I'm using a physical server with 64 GB of RAM and an i9-13900 CPU. Neither of the servers have any plugins, and both are connected to a Velocity proxy.
well, as I got answered, folia does do any networking so it should be folia's problem. Also it only one player, the rest of the 30-40 players were okay.
and also having the regions suddently dies thing i guess because regions do suddenly have every increasing mstp increase
When it happens again, get a log and send it here. Spark report would be helpful as well.
alr
Wait, your server is in offline mode?
Not familiar with the server, but when I go to the website and click on wiki it sends me to a an "8b8t page" which says "8builders8tools, also known popularly as 8b8t, is a semi-vanilla cracked Minecraft anarchy server, based on the 1.21.1 version of Minecraft. "
So just to confirm, your server does not allow anyone to join unless they own a Minecraft account, correct?
Well send a log and a spark report when the issue happens again then.
Hello, is there a plugin that, when you die u spawns in an X radius of blocks and not in a single block?
Hi, does anyone have the guit 1.16.5 from Folia?
There is no 1.16.5 Folia.
who works on folia developement?
mainly leaf
BetterRTP
Not sure why you would, once again, mention forks here when the question was specifically about Folia.
We do not endorse or condone anyone using a fork of Folia, especially forks that have unsafe practices.
Slightly off topic, but I think if you have a fork, you should have your own discord for discussion. We encourage people to contribute back with PRs, but solely exist in a support channel to shill your fork or options in your fork just strike me as a bad taste. (Not directly at you but Iāve seem it happen in many mc communities)
Eh, I dunno, they weren't saying to use the fork
It would be good to make a PR, if nothing else that would let you know if leaf thinks your solution would actually work
But I suspect most serious folia users have their own fork anyway
Or are at the level where having their own fork isn't a big deal
idk where is the problem in making their own fork? the main reason for the question is because the pr section was kinda of empty compared to paper
but it is cool that other people are working on it
i suspect that most server that use a folia fork just keep their work private tbf, as they have their own dev team
There is no problem with making your own fork but if you're trying to get people to use it we don't want you to use this discord for that
Or trying to get help with a fork
Exactly. Itās basically self advertising in name of āproviding supportā
But with folia sharing patches like that is not really the same as telling you to use a fork, I dunno
Zero problem with making a fork. We provide a lot of tooling to help people make forks.
It's suggesting a fork constantly or bringing up the fork when no one asked that's the weird part.
Just doesn't really make sense in the context of a help channel.
People are here to ask for help and questions about Folia. When someone says "Who works on Folia" there's a clear answer. Talking about other projects is at best distracting.
#folia-help isn't even supposed to exist, it's just a place to funnel people so they won't put requests to help compile it in to #folia-dev š
Pretty much.
Yeah, this exactly.
I do think most big servers running Folia are likely to have their own fork.
We've seen a lot of instances of that here.
i find it a bit sad that many big servers that use folia don't end up contributing just because "i have my own dev team", it creates a very closed community/circle
For sure. But the question was specifically "who works on Folia?" and you answered with a statement about forks.
I don't want to go around in circles on this, especially in a help channel. We are not anti-fork, we are anti-suggesting unsafe stuff to general populace in help channels, and tangental suggestions that aren't related to the questions asked.
A lot of the bigger servers are making changes to Folia that Leaf probably wouldn't accept as a PR. People tend to disable safety checks and things which aren't really what you want people doing.
If you know exactly what you're getting into you can push the envelope on some stuff, but it's not something you'd want everyone to be using/doing.
Yo hey there guys, if been running in this issue for the past week and I'm quite desperate at the moment to find a solution to this problem, but I can't figure it out. If you need more system information and stuff, just ping me. If I am wrong in this channel here, I am sorry for the disturbance
message.txt by @marsh zealot: https://pastes.dev/Em0jls3tdf
At first glance it looks like an issue with zEssentials
Welp ok, thanks. I hoped it was something else. Seems like I will have to start searching for alternatives.
Appreciate the fast response tho. Enjoy your day, evening or whatever.
im having normal essentialsx and cmi also lol
but what im looking for is multiverse core
Not really sure what you're saying or asking for here.
im looking for multiverse core folia supported
Folia cannot load/unload worlds at runtime, only load them at startup from datapacks
Unlikely, it's a major thing
People have hacked in the ability to load worlds in forks which kind of works sometimes if you're careful about when you load them but unloading is still out of reach
really?
cine
btw i dont want to load works while running
i just wanted to setup multiple worlds
like for login
Then you don't need multiverse, just make a datapack
https://misode.github.io/dimension/?version=1.21 is a tool to make them, it has presets to mimic the overworld and such if you just want a vanilla world
{
"type": "minecraft:overworld",
"generator": {
"type": "minecraft:noise",
"biome_source": {
"type": "minecraft:multi_noise",
"preset": "minecraft:overworld"
},
"settings": "minecraft:overworld"
}
}
Not much to it
does folia support 1.21.1?
there is a 1.21.1 dev branch
Has anyone encountered this where blocks cant be mined and items cant be picked up in some chunks until they get unloaded?
Yeah the tps didnāt show anything weird
1.21.1
And when you teleport away for a few minutes and go back, itās fixed
This happened to me on my Skyblock server too, I restarted the server and the problem did not reappear.
Tps was 20 
Does anyone know a working Fast Leaf Decay plugin, because the vanilla tweaks datapack isnt working on folia 1.21.1, correct me if i am wrong
pretty sure datapack functions just dont work on folia
Exact thing is currently happening for us as well
Alongside weird region crashes like this ^
that doesn't look like a crash as such
that looks like you have a metric ton of entities somewhere
yea, but I'm unsure as to why it'd suddenly stop responding vs a gradual TPS drop in that region prior (maybe we just haven't caught it?) & we should be limiting drops per chunk
should be noted that the region starts responding when all dropped items are manually killed
There is no built in drop limit per chunk
I meant within our plugins, so it's unexpected behaviour in our environment
and most issues relating to item entities is people having mechanisms which end up piling entities of some variation into chunks which aren't fully loaded, which then stalls out whenever somebody then causes that chunk to become an entity ticking chunk
so, traditional entity limiting plugins will often fail there as upstream doesn't expose those concepts
is there any way to properly handle situations like this atm?
Every solution is an opionated mess
willing to try anything so these regions stop timing out
well, the built in save limits only apply to de/serialisation of chunks
I'd listen to the entity load event and limit the entities inside of a chunk that can be loaded
might need to utilise the scheduler to get onto the next tick to safely mess with the loaded entity list for a chunk though, don't remember how that was handled
i'll look into it, thank you
hello, i have a server that players usually sit at spawn for afk and hanging out, probally around 80-100 players in radius of 100 blocks, and it keep getting crash cause a region in spawn failed to tick, sometimes its another region outside of spawn, is theres any solutions ?
net.minecraft.ReportedException: Exception ticking world```
That just says an exception occured
you cut out all of the actual relevant information in ther
Post the entire log, as cat said. You've cut off the useful information.
ok sorry, i figure out this is a community and not pprovide support for offline-mode server
but can i ask one question tho
if my server get around 100 regions
how much core do i need
You have to compile it yourself. There are no downloadable builds.
Hi guys, AMD Ryzen 5 3600X in dedicated server is better "just virtual cpu"?
it's better than not knowing what you have, but not better what you might get
ā ļø 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.
hmmm, interessing
If you want to use it, you have to build it yourself.
is that recommended to have folia for very small servers (like 4 players max) ?
Like to be used on huge velocity platform
No, you can use Paper
ok so for small servers, paper is better? ok fine
does folia takes longer than paper to update to 1.21.3?
Folia can't even start until Paper is done
isnāt folia not even on 1.21 yet
it is in 1.21.1
really? inst that a dev branch?
yeah but that branch says dev/ instead of ver/ like the the others im confused
dev is like in development stage but you can compile it but it has quite bugs
yeah thatās what i mean that a heavily bugged version
i am gonna try now and i will update you
Does it make sense to use folia instead of paper on an SMP on a server that has poor single thread performance but a ton of cores (server cpu) even if the player number isnāt extremely big?
i like folia cuz it gives around 100 fps+
frames per sec
It depends on the player spread, and if you're willing to deal with 90% of your common plugins not working
and TPS also
If your low number of players all play in the same area it'll just be slower than Paper
If they all live thousands of blocks from each other it might be better
im willing to deal with unsupported plugins for performance
Usually servers with low player counts stick together though
well they would since its with claims and random tp
most plugins i use already support folia tho or are working on support
hello, is netty thread have something to do with folia, and can someone explain what is the best netty-thread settings for most case
No, that's the number of threads dedicated to the netty pipeline
if there was a magical setting it wouldn't be exposed as a config option
The scattering of folia documentation generally has some advice on that last I knew
if setting netty-thread to higher number, like equal to the cpu core the server have, or even double it, is it gonna do something to the server, like lower player's ping ?
unless you're having contention issues, no
anyone know how to fix this, i want to join a server and it keep showing this
Is that an 1.21 client?
Something sent an invalid packet. Would be interesting ti know if its the server kicking you, or your client disconnecting. If its your client there should be a button below that on 1.21 that shows you more info
yo i am unable to clone folia 1.21.1 using the web URL
No idea what you mean by that
you clone the github repo and then checkout that branch
Howād it go?
i was able to clone 1.20.6 and it was pretty good
I thought you used 1.21.1
Btw
U use git clone (url) -b dev/1.21.1
will try now
or just git clone url and then inside the dir git checkout dev/1.21.1
it worked i am cloning it
What does this mean?
did u compile it correctly
yes
ok
Nope still same presists
i even agained cloned
the whole file
gradlew createMojmapPaperclipJar
it worked thanks

https://spark.lucko.me/2kJrpf8oMw what wrong with ZGC?
spark is a performance profiler for Minecraft clients, servers, and proxies.
No data in this report. Youād have to re-send
What are those useless Flags? also why so much Ram? Suggest to use normal Aikar's Flags and maybe use 16GB of Ram. Also Folia is still experimental and running on a Ryzen 5 3600X doesn't sound like the best idea for Folia.
the 3600X is a pretty good CPU for it's age though š
(but I agree: most likely not worth it running folia on it)
All those JVM flags and you missed the 2nd half of -XX:+UseZGC -XX:+ZGenerational -.- remove everything and keep those
-Xms32768M -Xmx32768M -XX:+UseZGC -XX:+ZGenerational @twin spindle all you need. nothing else if you just wanna use generational zgc
thanks, I understood
Hey paper 1.12.1 won't launch anymore
#paper-help, also: unsupported version.
might be alright? not the fastest CPU for sure
I would worry a bit about that connection, 300mbps really is not a lot
OVH's cheap servers really have a low bandwidth :S
I don't really need more bandwidth now
why do you need folia then if you have such a low player count?
because this more stable for me
Folia is anything but stable
so for folia is not bad cpu?
So 16 cores is ideal for folia⦠my server has 12 cores split between 2 cpus, will folia slow the server down?
Probably not a good setup for Folia. NUMA is unsupported so you donāt want multiple CPUs
Disappointing
š
I don't think anyone has ever actually tested NUMA to see how much it hurts
We're pretty sure it'll have a performance cost just because it does in general, aside from the memory latency issues multiple CPU sockets and NUMA means locking overhead will be much higher
So presumably your per-region performance will be lower
Is that 5% lower? 20%? 50%? No idea
It probably will run though, shouldn't have to worry about that
Iāll have to figure out how to set folia up
Iām just getting into this stuff
First time on Ubuntu server as well⦠it has been quite the learning curve
If you just have a multi-socket machine sitting around some testing of per-region performance with only one socket enabled and with all of them to get comparisons could be useful
But since multi-socket setups usually have the slowest single core performance CPUs in them taking an extra performance hit doesn't sound appealing
Okay, Iāll try it and report my findings
If I need any help Iāll probably be back.
Iāve been trying to set it up on a vm on my home computer first. Just for the ease of rolling it back if I screw something up
Need longer Ethernet cable for this server and then I should have it up and running
Actually this would be a fun experiement
I have some multi socket servers in my basement that havent been turned on in a few years. One of these days I might do some Folia tests with multisocket
If I recall though, there has been a multisocket test of Folia. I just dont think the A/B tested it
Feel free to tinker, but especially at larger counts and memory amounts it's not going to be something the average person wants to mess with.
We did a test with a dual CPU mobo but we disabled one of the CPUs.
Not sure if anyone else did one.
But especially at a lower power/core count CPU it's not likely not terribly useful data for most people.
Im thinking of the one done on the dual EPYC system with the 2TB of RAM
innovation may be happening
Yes, that's the one where we disabled one of the CPUs.
ah I guess I missed the part about disabling a CPU
Not sure what this is in reference to though
people testing NUMA
It's not likely to be something supported just due to the nature of how Java/Minecraft handles that stuff.
So nothing to get excited about.
It would still be somewhat interesting to see how well it scales
i still find it nice to watch people test things ĀÆ_(ć)_/ĀÆ
I could do 1P, 2P, and 4P scaling one day
may or may not be worth the effort, but still interesting
I run folia in prod, itās hard enough to take care of day to day. I donāt wanna stray too far off the beaten path atm.
I've played with it and that's about it. I mostly stopped after realizing how far away plugin support is. It would take significant work for me to use it in prod, but its still fun to play with and really cool
Folia has plugin support. It just doesn't support plugins that want to do things like global state.
So some stuff needs to be re-written and/or re-thought.
Sorry let me rephrase, the plugins I need dont support Folia at the moment
where do you find this cheap servers omg
this is bad?
not that much, for my use It will be great.
Lot of ram, lot of cores, perfect for hubs servers!
the bandwith can become a problem, unless I use compression
Oh fuck, only NA
yes
It was a good deal to switch from my RISE Game1 (3600x i think)
so for folia is great better epyc?
speed of ram is 2400mhz
will be great to have a better clock
here
Where country is your community based?
EU
UA, BY, KZ, RU, small from EU
but before for buying dedicated server I need verificate my account I guess
Germany, Finland or Poland will be the best I think
you can please help me with ovh?
for what?
there is also this hosting provider: https://www.hetzner.com/dedicated-rootserver/?pk_source=google&pk_medium=cpc&gad_source=1&gclid=Cj0KCQjw1Yy5BhD-ARIsAI0RbXYyrvci-UBIrjMFqYseE-Edd3943KYr56aOY-f_7Ocs9xISz345_6AaAt8kEALw_wcB
Find your reliable dream server, optimized for high capacity use, ever-growing storage needs or rapid and parallel processing.
for buy
hetzner deactivated my account, so I don't wanna any deal with us
its pretty simple, just create an account, then select the server you want, then buy it with paypal or cc
there is also this one: https://contabo.com/en/dedicated-servers/
but I from ukraine and ovh can decline my deal
I dont think they will decline it!
I get declined in past when I buy my first vps in ovh
for which reason? pretty weird
so I'm afraid of it
for payment method or what
do you have a paypal account?
yes
and got declined with your pp account?
in past yes
wtf
This is not a place to recruit member to bypass CYA process of any company or tax evasion @twin spindle
Please do not do that here in the future
does folia have world loding, or something that can load multiple different worlds like multiverse?
Don't think Multiverse works for Folia right now.
There is a plugin library thing that sort of works to load worlds at runtime, if you are careful about when you do it, but there is no supported way to load worlds and no way at all to unload worlds
hey uh, general question cause i dont really know what does grid-exponent and threads actually do in this config
how can I optimize folia? while preserving mostly vanilla?
Community contributed configuration guide for Paper: https://paper-chan.moe/paper-optimization
The guide still applies
Send a spark report
I'll take a look at the guide
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. 
Heh. Isn't velocity require offline mode backend server?
You use SkinRestorer
it is true
# Config version. Do not change this
config-version = "2.7"
# What port should the proxy be bound to? By default, we'll bind to all addresses on port 25565.
bind = "0.0.0.0:25565"
# What should be the MOTD? This gets displayed when the player adds your server to
# their server list. Only MiniMessage format is accepted.
motd = "<#09add3>A Velocity Server"
# What should we display for the maximum number of players? (Velocity does not support a cap
# on the number of players online.)
show-max-players = 150
# Should we authenticate players with Mojang? By default, this is on.
online-mode = true
``` ^ here right?
yes
Your server is not setup for velocity properly
that spark profile was created with an offline mode account
if your proxy actually was in online mode, you forgot to setup forwarding; and now all your player data is effectively doomed unless you can convert it
O man. I need to recheck thanks
And you can delete SkinRestorer
In the project our dev version of Folia 1.21.1 is not found although we have followed the steps on your github this error code comes up all the time.
Could not find artifact dev.folia:folia-api:pom:1.21.1-R0.1-SNAPSHOT in papermc (https://repo.papermc.io/repository/maven-public/)
1.21 is not published
Are there any ways that you could still use them in the project?
publish it to your maven local
ticks-per:
axolotl-spawns: 30
water-underground-creature-spawns: 30
animal-spawns: 30
monster-spawns: 1
water-spawns: 30
water-ambient-spawns: 30
ambient-spawns: 30
what is better?
There is no ābetterā
Pick a value thatās most suitable for your player count and hardware
Using spark report to see how your server is doing
Also your animal spawn is way too fast. Default is 400. Idk why you make it 30.
If i want to use the registerNewTeam method from the Scoreboard class, but then it cause following error. I'm currently using the paper-spigot dependency, to get this working on folia? š
Scoreboard doesn't exist on Folia
oh okay
relies on a global state that doesn't exist. If you want to use it to display stuff (sidebar, displaynames), you have to use packets
Allrigth, thank u š
if you use velocity you could use velocity scoreboard api lib
We have loaded a plugin and for some reason this error message comes up on our dev server nothing has happened except now on this server.
We currently have no idea how to solve it
message.txt by @tranquil raven: https://pastes.dev/GhJ2LXGn4k
I don't think you can TP a player on the PlayerJoinEvent, delay it by a tick
Does the Spark profiler normaly work with Folia?
I get the following Problem:
[11:52:48 INFO]: [spark] This server bundles the spark profiler. For more information please visit https://docs.papermc.io/paper/profiling
[11:52:51 INFO]: [spark] The spark plugin has been preferred but was not loaded. The bundled spark profiler will enabled instead.
[11:52:51 INFO]: [spark] The spark profiler will not be enabled because it is currently disabled in the configuration.
But i couldnt find any configuration that would disable the profiler ... the only setting i found was laying inside the paper-global.yml and there it is activated:
spark:
enable-immediately: true
enabled: true
Or if spark currently doesnt work can you guys suggest any other monitoring plugin working with Folia?
You will need to grab the Folia branch of spark.
thanks š
is a report like this also created with Spark? If so, how can i see this? Its pretty hard to find something about monitoring with Folia š
That's the folia tps command iirc
there is a spark branch for folia
but, realtime monitoring of any game is pretty hard, especially if you wanna collect useful metrics
Unfortunately, using folia doesn't solve anyone's problems, and most people here don't need an environment like folia, if you really need any high-performance (if you don't need any vanilla features), it makes more sense to use solutions like minestom because when using folia, you have to write most plugins yourself or use broken forks
except that Minestom has zero vanilla features
Most people actually want a server that does more than just being able to connect to
I think the folia mismarketed it here, when people saw that they could handle 1000 players on the same server at once, they started to use this fork in nonsense server types
https://papermc.io/software/folia/
Folia won't be useful for the majority of servers out there and will break most public plugins. It's ideal for servers with very high players counts, that offer gamemodes that naturally spread players out, such as SkyBlock or SMP.
The marketing seems to address this?
To create a functional playable server with folia, it is necessary to rewrite a lot of plugins, and we also have to use packets because the api is broken, I think someone who uses folia for simple things can already create a server with minestom
I still haven't seen a single public server use Minestom in like five years, lol
Folia on the other hand does actually have all vanilla functionality except for some datapack/command stuff, and plugins are pretty easily adaptated to it (instead of needing to be rewritten from the ground up)
minestom is for minigames
When it first came out, I saw a lot of news, 1000 players on the server, so and so on, benchmarks were shown, but no one talked about its logic, only thread safe was passed
not sure what your point is
I think the PaperMC team mismarketed it here
So, third parties, not Paper
I mentioned in my previous message that if it doesn't need the vanilla feature
If you want little to no vanilla functionality implementing just what you want to begin with using minestom can make more sense than trying to disable/block things
It won't get 1000 players on a single server though
Stupid translation sorry
it breaks the limit of single main thread running most logic. This is covered on the page.
I know, but I don't think most of the people asking questions here really need it
Folia is for people who want all of the vanilla features (well, not all, but most), have large worlds where people spread out or cluster in small spread out groups, have a ton of players, and have a full time developer to work on the server
That is basically like 10-20 servers in the whole world I think
Exactly. We already know that. Majority of Minecraft server has 1 player and less according to bstat. but it's ok to ask question
Well, the other group that would benefit is people who don't need many/any plugins, only play with a few friends, but each one wants to have their own farms and crap so on a normal server they'd choke it out with entities
It has very narrow uses, I don't think anyone has said otherwise
Thread safe is not suitable for vanilla Minecraft in my opinion, it breaks a lot of things and mojang's terrible policies make it harder to develop code, I think a software that supports vanilla features should be made from scratch, but since it's too hard, no one tries it.
The reason for that is that the people who actually use folia dont ask questions here, they figurenit out themself. People on this server usually dont have answers for the kind of problems those users get
for example for us (i run folia in prod full time now) use the multi-threading to allow our more technical players to build really laggy farms that only effect the region that player is in.
while allowing all the other players doing other uses of their time to have good tps
don't know why, but is it a bug that the items on the trapdoor go back up after experiencing the flap door opening and closing quickly, and the items that were flowing out go back up again?
just like this
Could I benefit with using Folia for my SMP (vanilla styled) with around ~50 players online all time. Right now using paper We had to nerf simulation distance and do a lot of non-vanilla changes.
I think most of the crazy farms players build - so the TPS is good for the others. This is the big reason I see with going with Folia.. the question is If my specs are enoughā¦
This is my specs currently:
https://www.ovhcloud.com/en/bare-metal/rise/rise-game-2/
Or is paper the better alternative? Only plugins we really use is CoreProtect which has Folia support.
You're probably better off sticking to Paper and tweaking your configs.
Community contributed configuration guide for Paper: https://paper-chan.moe/paper-optimization
Your specific case seems like it'd require little dev time to just try and see, if you do try it, please report results
Just, the usual disclaimers apply, there's limited data on setups of this kind for Folia and you're too below the recommended minimums
As Kyle said, try it and see. We put the dev time in for it and it worked out pretty well for my server. allows for the players to build crazy machines and it not break down.
Although we are running closer to the recommended specs for folia.
We are about to switch our server from paper to folia. We have all of our plugins converted over, and everything is working great. Are there any bugs i should be aware of that we may have missed? Anything to look for in particular?
You can look at the Folia issue trackers for confirmed bugs; otherwise, if you find any issue, and know how to reproduce it, welcome to open a report.
Hello
Does anyone know any good minecraft server hostings?
I am really excited about Folia's multithread and want to check it, but all hostings that I find offer max 6-8 cores, not 16
You'd need a dedi, so you're looking at hosts such as Hetzner and OVH
what is dedi means?
or a better link when not-US https://ovhcloud.com/
Hello guys, does anyone know a good folia fork for smp servers?
uh... folia.
hm, okay
im not sure why but my cpu usage is peaking to 80% sometimes while its chilling at 3 percent most of the time, this causes big lags for the 10 players that are online, 56threads @ 2.4 Ghz and 52gb ram
spark is a profiler bundled in Paper for troubleshooting performance-related issues. Please run /spark profiler start --timeout 300 while the performance issue persists.
After 5 minutes, paste the URL given here so it can be reviewed.
spark isnt a valid command for me
You have to download the Folia build of Spark.
Look in this channel for where to find it.
alright thanks
It seems that your GC is doing an awful lot of work. Other than that, everything seems to be perfectly fine. At least I am unable to see anything out of the ordinary
Mind running just /tps? On Folia it has a bit more functionality, like showing the most performance heavy regions
currently 1 player online and its not lagging anymore as he told me, if a lag happens again ill tell you š
We don't support offline mode servers.
š¤
https://github.com/PaperMC/Folia/issues/280 Did anyone meet this bug?
Is folia still worked on?
Yes.
the latest commit is 5 days ago so yes
#folia-dev You want
i got those issues again Region around block [w:'world',1095,80,-649]:
84.1% util at 53.96 MSPT at 15.56 TPS
Chunks: 2,170 Players: 4 Entities: 1,135
Folia is not designed to be ran in a memory constrained environment
3-4G of ram is pretty much the minimum for vanilla these days, and that only has a small number of threads spewing memory around
They have the Xmx set to 50GB, the number Spark shows is just the current heap size
Not letting the jvm just have that means that youāre going to be leaving the JVMs expansion logic to deal with that
Itās better than it was in the past, but, not something Iād recommend for folia at all
Oh, you're talking about the flags, fair
ā ļø 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.
So run without flags?
Xmx == Xms
your thing only has 4G of ram allocated
and it's spending a good chunk of time in the collector, so might be some wider issues
Xms == Xmx right now should i change that im kinda stupid rn
I would generally look towards using generational ZGC for folia
Thate spark above is an old one sorry
Im using aikars flags rn with 30 xms and xmx
every time those lags occur the proxmox cpu usage spikes from 6% to 70-90%
ETA on 1.21.3?
when ready
i see
1.21.1 isnt even merged yet
Even more than Paper, Folia doesn't have ETAs for things.
It's generally a "when Leaf gets the time" kinda thing.
There's a 1.21.1 branch.
It's in the repository, just like the other branches.
You have to build Folia yourself.
but it is possible to build 1.21.1 then?
If you can't build Folia you probably shouldn't be using it, because building it is going to be the least of your issues.
i know how to build
it
C:\Users\jxstc\Desktop\server>java -jar server.jar
Error: Unable to initialize main class org.bukkit.craftbukkit.Main
Caused by: java.lang.NoClassDefFoundError: joptsimple/OptionException
this error is ouccuring
this read me?
Cat said the paper readme
yes
The developer needs to make modification to have it work with Folia. Itās not something you can do if you have zero Java knowledge.
Sounds like you should stick to using Paper, Folia is for advanced user only @granite quartz
it's covered in the general smattering of documentation around
your plugin needs to have the folia token thingy inside of the plugin def file, and then you also need to make sure that you follow the "laws" of folia
i cant click on it
yes, that is empty
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.
see the info in those links, etc
where i can find general smattering
hmh, folia token ? plugin def? you mean plugin.yml?
yes
paper supports all of the folia API
The folia API needed to be able to play by the rules of folia exist within paper
there are some api breakages when using folia
what do i have to do to make my plugin support folia?
which readme? folia or paper
folia
I can't really help on that front
it is once again going to be 100% down to the plugin
you need to adjust the plugin to ensure that it works in a multithreaded environment
and follows the rules of folias regioning logic, i.e. ensuring that any world access is 'safe'
do you have any documentation?
not really, all of that is once again covered in the scattering of readme things around the place
This is pre-release quality software
The Docs of it are like the regions shattered, a bad joke in my ears.
do i just have to use "folia-supported: true" in my plugin.yml?
No.
You need to make sure it works in a multithreded environment, as cat said.
Search the pins in this channel and the various bits of documentation
Not really. This is basically your Java knowledge
there is no "just make these changes" type of tutorial you could follow for something like this
you have to actually understand what threading means for your plugin
i have java knowledge but i dont understand what exacly this means for my plugin and how i can make it support folia
Once again, there is no magical guide of how to migrate a plugin to supporting folia
We cannot see your plugin
We cannot tell you the scope of changes you'd need to make
The general rules of engagement are in the readme, outside of that, its on you to figure out how you need to adopt your plugin to run inside of those rules
do i have to add classes like Scheduler for folia?
you don't have to add any classes
you'd just want to use the folia scheduler as the bukkit one will not be accessible to you
the exact same as the older schedulers, only it requires you to specify where in the world you want it to run
.
hmm okayy i understand, works it as the same? (bukkit / paper / folia) like the main class etc.?
and i just can implement it into my plugin yml
plugins are still loaded as plugins
okay
do you know whats happened to the /save-all command?
in folia
i understood the api a little bit
i have made my first folia supported plugin omg
a bunch of commands are removed / not yet implemented on Folia, there's a list on the docs somewhere.
you generally should not have a use for that command, and for folia especially lol
use the dev branch on the github
also its pretty stable i havent run into any errors yet
how i can save my world then
It saves automatically
even when the server crashs?
it saves constantly
every tick x amount of chunks is saved
by default it's 24 iirc
paper doesn't have the entire "saving full world in one go" thing for years now
cause, surprise, that stops the server for the time it takes to save
The goal is for it not to crash
when does folia will become stable?
It is by all means stable
Big network like 2b2t and DonutSMP has been using them for over a year at this point. You just require a dev team to adept what you do to Folia.
yeah
even with dev versions
it seems stable enough
the only drawback is the lack of scoreboarding and other features
though some plugins can just use their own API as a workaround like tab
I have a question: is it a good idea to use Folia on a production server now?
depends on the size of the server
100+ players
is the map spread out?
yes
yea then if you have that much and the map is that big, go for it
Oke but folia is still in beta and the compatibility with plugins is not that good yet ?
Compatibility with plugins will never be that good
Unless plugins rewrite for Folia
If plugins are written for Folia they work on Paper so in theory most could some day be compatible but that's up to plugins, not Folia
okay thanks
Hello there, i cant seem to build the dev or any other version and i cant find docs towards any kind of such build problems
Could not set process working directory to '/home/me/projects/Folia/Folia-Server': could not setcwd() (errno 2: No such file or directory)
tried jar batch and intellij build gradle task
aaah, same principle
alright, thanks for the help
> Task :paper:patchSpigotApi
Committer identity unknown
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
Why does it try to commit stuff onto an api tho? xD
any reason i cant compile dev/1.21.1 with java 21?
Should be able to. Post your error/log.
> Configure project :
paperweight-patcher v1.7.3 (running on 'Linux')
> Task :folia-api:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':folia-api:compileJava'.
> error: release version 21 not supported
* 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 6s
3 actionable tasks: 3 executed
mcftp@mc2:~/Folia$
You don't run latest version of java 21
? openjdk 21.0.5 2024-10-15
OpenJDK Runtime Environment (build 21.0.5+11-Ubuntu-1ubuntu122.04)
I had the same problem, had to update it
ok will do!
Strange
says theres no update candiate
mcftp@mc2:~/Folia$ git branch
- dev/1.21.1
master
mcftp@mc2:~/Folia$ git status
On branch dev/1.21.1
Your branch is up to date with 'origin/dev/1.21.1'.
nothing to commit, working tree clean
ill try rebooting the server
lol everyone gets mad when i say "server reboot coming in 30, get safe"
didnt help ocel
I mean you could try checking out the branch again in a different directory. The error you're getting is kinda weird
i can live stream it if that would help
It would not.
ok
running in new dir, git clone https://github.com/PaperMC/Folia.git
ok done next im running checkout dev/1.21.1
Switched to a new branch 'dev/1.21.1'
running ./gradlew applypatches
BUILD SUCCESSFUL in 50s
./gradlew createReobfPaperclipJar
same error
anyone know what would cause this?
Are you building this in Linux or Windows?
I just grabbed a fresh copy of the repo and built it just fine.
I'm on Debian 12.
java version "21.0.5" 2024-10-15 LTS Java(TM) SE Runtime Environment (build 21.0.5+9-LTS-239)
So it seems like something with your system or Java install is breaking it.
Best suggestion is to run make sure the Java install is working properly, and run through the build steps on the Paper repo to make sure you aren't missing something.
linux
i mean it is working properly cuz the actual server is running on it
let me setup a "build" system
also has anyone seen this? ```Highest 3 utilisation regions
- Region around block [w:'world',7,80,7]:
100.0% util at 212,236.68 MSPT at 0.00 TPS
Chunks: 0 Players: 0 Entities: 0 - Region around block [w:'world',-697,80,455]:
100.0% util at 212,182.31 MSPT at 0.00 TPS
Chunks: 0 Players: 0 Entities: 0 - Region around block [w:'world_nether',7,80,7]:
0.0% util at 0.02 MSPT at 20.00 TPS
Chunks: 49 Players: 0 Entities: 2
i cant join the world is not initialized and it sits there uses 100 percent of those cores
if i pick other seeds it loads fine
2217231467331653763 <---- seed that freezes
I have had issues with minecarts
Please send large files/logs to a pastebin
A sensible, modern pastebin. Share text and source code snippets with no hassle.
^^
getting that every time a seed is used where spawn is water
err rather 0 0 is water
the server locks up and never initializes world. the server remains unjoinable tps shows spawn chunks utilizing 100 percent of core
2217231467331653763 example seed that does this
We tested this and confirmed it was an issue using the seed you provided. Leaf pushed a fix, which we re-tested with the same seed and confirmed it loads now.
https://github.com/PaperMC/Folia/commit/2e7bc0721af95196c85500c7bb136aeea0bc12ce
Hopefully that fixes your issue.
sweeet thanks so much!
Hi, we're speccing up a custom plugin for a new Folia-based server we are planning. It's going to be managing a lot of real-time data of players riding horses (blocks traveled while riding), as well as the horse data itself (blocks traveled with rider, speed, location and other stats) - where we previously just utilised an sqlite db for something similar on a Paper server, would we be better to start with a different db type (MySQL, MariaDB, MongoDB) for a Folia implementation? (or maybe even using Redis for live caching with intermittent writing of relevant data to another db for persistent storage?)
you can just stick with sqlite if you don't have any issues with it
if you set journal mode to WAL you can even save to it from multiple threads
Oh cool, thanks for the info š
iirc you have to compile sqlite with a non-standard flag to get multithreading support
Which has a performance cost even if you don't use it so I'm not sure if the standard Java JNI packages do it
WAL is generally what you want and makes it possible for multiple processes to work with it but apparently multiple threads is a different issue
Oh it looks like the default compile flags actually leave it open to enable the other options, I thought it defaulted to single threaded which blocks the ability to change it but it defaults to serialized
it used to work like you say, it changed tho
sqlite is pretty much as good as any standalone sql server nowadays
which is actually insane if you think about it
there's also a fork of sqlite called libSQL that is working towards having a database per user model
that would be cool if we could get redis support into folia
for a central memory store or somethign
that's really really far away from how folia works
Central anything is kind of missing the point š
but there are now and will be in the future plugins and such that depend on shared ram
You should be designing things to need less centralized sources of data
Folia doesn't need redis support
right redis is distributed š
No?
It's an external data store intended to be a central point for accessing stuff remotely
No no I mean your plugin shouldn't have too much concern about the performance of concurrent data structures or locking because you shouldn't need many global data stores
it might support things like sharding, but that's for HA and large scale deployments, something which is pretty much irrelevant to most block game servers
It should all be things that are localized to a player or area
redis solves nothing for folia
and for plugins, if they want redis, they can do that themselves
pardon my let me speak more clearly, you can distribute data on multiple redis servers so it can act as a distributed store
Which is irrelevant to folia
How your external data store can manage data stored elsewhere is irrelevant
the reason i mention it at all is many plugin dev's i have spoken with about possibly getting a folia port, have mentioned this issue as theres no place a mod withing folia can go to keep data in ram
where more than 1 plugin interact*
nothing in terms of plugin interactivety changes here
im not a dev so its possible i misunderstood what they were saying
and folia supporting redis is literally 100% irrelevant
that would be on the plugins to support that
fair enough
like, even if folia bundled the redis client, you'd still need to setup a redis server elsewhere, and you'd still need plugins to integrate with redis
well
for the sake of a for instance if you will indulge me
couldnt folia itself write that data to redis directly via api for plugins?
what data?
plugins aren't storing their runtime data inside of the API, they're storing it in generic java collections, like hashmaps
yes that makes sense
i guess maybe it wasnt explained properly why its difficult to make plugins for folia
Folia requires that plugins support working in a multithreaded environment
This is a concern because most devs within the ecosystem have generally not had too much experience with threading, but, also, because converting a codebase from running in a primarily single-threaded environment into one that your entry points can be called concurrently is often non-trivial
accessing world state is also more complex, because now you have to get into the correct 'context' to do that
And sometimes it's a lot easier to just write an alternative/complete rewrite than changing so much to adapt the plugin
so the plugin has to designed such that any information u stored is kinda stateless? am i understanding that right?
No?
Plugins need to be designed in a manner that any information they store is accessible in the manner that they need it
but, that is more going to tilt towards ensuring that their own data is thread safe
sorry for any delays im googling a lot right now hah
ok now this is making more sense, thread-safe was the keyword there
so yesterday i uncovered a deadlock bug in starting folia on a world in specific seeds where 0, 0 is water and there no spawnable locations within 32 blocks. that "32" was changed to 1024 i believe. id be interested to find out what causes the deadlock in that scenario
loading chunks on the region threads often blows up in weird manners
the game tries to look for a specific biome for you, and will go searching for it
right but why would that lock up the spawn chunks indefinitely?
Because the thing needs to go look for a valid spawn biome, etc, and that is not with a player standing in a puddle unless it fails
The thing failed here because the needed chunks weren't already loaded, and the thing stalled out because it couldn't go and get the chunk
The fix here was to basically ensure that the chunks are loaded in some for it to be able to do stuff
Because if you have the resources for it then it makes a lot of sense for a niche set of usecases
Like paper is 100% time better
until you want to handle a few hundred players on an instance, sure
nuh uh
paper is better general purpose
My machine that im running on it is 32gb ram 16cpu Ryzen 9 (its 128gb 64cpu but im hosting a whole things oj it
Tbf folia / multi-paper only applies to survival based gamemodes
You can hold up to 1k players on prison on latest versions which is surprising in itself
2 words:
Coordinate Exploit
theres a bot on my server in a hole in the ground holding a sword swatting in 1 direction for a bit then turning around and doing it another direction
coordinates of peoples bases being spammed in my discord
Are you saying this is an exploit in the current build of Folia?
Can you open a report in the exploit report channel along with a bunch of info including logs?
yeah
does folia support world-generation datapacks like terralith?
I'd say try it and seeā¢ļø, I'd expect the worldgen part to work, but I'm unsure whether Terralith has non-world gen related parts. These would not work
alright i'll try, thanks
It does work
<@&748618676189528155>
(673bf5b46ed5010734cf19e1) // @rancid fog (@rose_miller0078 / 1298278209246335092) has been banned by @livid crag (177150983258767360)
Reason: spam bot
why do some mods not work on paperclip jar, but do work on mojangmapped ones? whats the difference?
well one is mapped with mojang mappings the other isn't
what does that mean though? if you dont mind answering š
which part of my statement? also are you asking about Folia or in general?
well folia because theres a plugin called fancynpc's which we use. using the create paperclip jar command on gradlew creates the folia jar but the plugin screams about issues. i talked to the devs of the plugin that said we have to use the create mojang mapped jar , so i did and it worked. i guess im asking whats missing from paperclip?
ah yes, folia is mojang mapped by default
as there is no reason to try to be compatible with plugins using spigot mapped nms as it breaks anyways
your only chance is using plugins made especially for folia or some that only use Bukkit API that isn't broken by folia, other plugins are unlikely to work without issues
then it shouldn't have any issues with mapping
somehow it still needed the mojang mapped folia jar
the fact that they have mapping issues means that they are using internal stuff that isn't part of the Bukkit API
(and seeing as it's an NPC plugin and you can't do NPCs with just the API that's a given)
[16:04:45 INFO]: Paper Plugins:
[16:04:45 INFO]: - FancyNpcs
[16:04:45 INFO]: Bukkit Plugins:
[16:04:45 INFO]: - ArmorStandEditor, AxGraves, BBeeChecker, BlueMap, Chunky, ChunkyBorder, CoreProtect, Craftorithm, DiscordSRV, GSit
[16:04:45 INFO]: InstantRestock, LuckPerms, PlayerDoll, SuperExpress, TabList, voicechat
so its using some other paper specific api i assume
doesn't make a difference, there is no API to do what the plugin does
oh i see
they are using server internals which they need to adjust to be compatible with folia
now i understand thanks, they are manipulating the mojang's code so they need mojang's mapping to be in place
you should never use createReobfBundler/Paperclip in production on 1.20.5+
always use the mojmap one, the reobf one only exists still because it can be useful for us to debug things
hey sry for a little stupid question I mean a really stupid question, Okay so I want to make an SMP with 200+ Players on a Cloud based Network on a Dedicated Server with 16 Cores ig and just want to know if it really worth it to use Folia instead of forks like Purpur?
Focus on getting players and then expand as necessary. No one is going to have 200 players on day 1.
It would be difficult to have 200 players on a single Paper server unless you aggressively customize it and nerf gameplay. If youāre going for a vanilla-like experience itās very difficult.
But Folia is resource intensive so you generally need a dedicated server.
And plugin support for Folia is limited.
Canāt really speak to forks of Paper because it isnāt our software. Generally if you arenāt sure if you should use a fork, youāre better off sticking with Paper.
(673d52b86ed5010734cf19e6) // @royal cosmos (@robinson0138 / 1308453619963662497) has been banned by @fair merlin (188417437295706113)
Reason: Spam
hello! can you help me, how i can resize region ? now i tested, 2500x2500
what does the grid-exponent mean?
i going stress-test, players join and random teleport to 1000-10000 coords, and i have this :
how i can fix that?
r9 7950x + 128gb ddr5 +nvme
well, one of the regions has something going on
teleport there and locate the issue
did you mess with resizing regions?
did you change anything you did not understand
your players are not spread out enough for it to put them in seperate regions, everybody's in the same one
but these players are at random points, how can I reduce the size of the region, they were at different points?
you can't do much to reduce the size of regions, rather you should increase the distance between players
how i can do this
how i can reduce the size of regions,
or is it impossible?
according to the data, they are located at a distance from 500 to 1500 blocks, itās just strange that first the kernel scatters them to different regions, then combines them into one and lags
the logic only works when the regions are separated from each other
otherwise you're just making things actively worse
think at minimum 2k blocks
there needs to be absolutely no possibility of 2 regions "colliding"
if there is, server will merge them
regions cannot exist close to each other
okay, can you help me with settings for my server at folia?
golden rule of configs
if you don't understand what it does, don't change it
reset everythingg to default if you're not sure
I generally understand what Iām setting up, but the problem is that I want to see a smoother TPS during such stress tests.
Can a world that is not preloaded drop TPS so much?
chunk generation has little to do with tps
increasing the number of threads is going to do nothing when you've grouped your players too close together that they're all in a super region
at this point you need to get players to spread out, otherwise you'd be better off just using paper
and at what minimum distance should they be separated?
This is strange just at server-wide events where about 300 people will gather.
.'
Unless those 300 players will never meet at any given point of your event and will always be 2000+ blocks apart from each other, Folia doesnt seem to be an ideal solution for an event.
Hi! We have server with like 250-300 players and we are considering switching to folia. Now we have very optimized and limited version of Paper (for our specification we don't need monsters etc), but our machine only has 8 3.6 GHz cores (I can send more specs later). On folia docs it is recommended to have at least 16. So will folia even help on our machine? Do you maybe have some benchmarks?
Folia wants more cores because it's breaking up into regions, and it's going to run a thread for each of those regions. You'll be able to get away with more if you have no monsters but if you have no monsters I'm guessing the players are going to be in a small space which will likely negate the benefits of Folia.
It wants players to be ~2000 blocks from each other. If everyone's in one small area then Paper would be faster.
Hey there, short question to the ChunkUnloadEvent based on player logouts, are there some special rules with Folia, because we have had some issues the past weeks, where items insta-despawned after death and logout of a player. Shouldn't the Chunk get nearly instantly unloaded after a player disconnects out of this chunk?
anyone have compiled version of Folia i can test?
ā ļø 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.
@hollow grotto ^
Okay, but on folia website they recommend 16+ cores
Is folia still a better option for servers with 12, 8 cores?
but if your players are all grouped up, paper is a better choice, no matter what hardware you have
we have very big map
and players live in nation
so I think we can benefit from golia
folia
how far apart will players be from eachother
Idk, like 1k in europe and like even 5 between continents
in the minecraft world
yeah, it's all in one word
how far apart are the players in the minecraft world
like 1k blocks
so they are like 10-30 players in one place and then like 1k blocks to other group
you need players to be farther apart than that to make sure you get multiple regions
Okay
But I'm mostly considered about my machine having only 8 cores, while the recommended amount is 16
even if players are far apart
thanksss
But note that if players groups are at most ~1k blocks apart from each other, you will get one big region. That'll perform slightly worse than Paper
ohhhh
How much RAM will Folia require? I saw on the 300+ testing server y'all allocated over 500GB. Right now with our Paper server we're allocating 24GB since we're told that anything higher than that will cause memory leaks from the base game
The test was just throwing as many resources as possible at it and seeing what happened
afaik it doesn't use much more than Paper with the same user count although since you'll be working to keep players more separated with Folia you'll have more chunks loaded than an average Paper server
Oh thank goodness lol
I'm also looking to start developing plugins for Folia. I understand that development on Folia in general has stagnated a little bit, but our 1.21.1 Paper server is crawling out of the pits of hell, struggling to run at 150 players. Is there a getting started guide anywhere for plugin development?
generally same as paper, but with a little asterisk - if anything has a global state (ex. scoreboard, a lot of commands), it won't be working
As in the API's for it are different or as in it hasn't been implemented at all
Ah okay
and one more thing, scheduler is defunct, use one of the ones paper and folia api provides
so Bukkit.getAsyncScheduler, Bukkit.getRegionScheduler, etc
some things might be kinda awkward, but that's what you get when you're trying to synchronize multiple threads ticking in parallel
I'm not stressed about multi-threaded programming, the concept isn't new to me. The API's however... 
Normally I work with C# instead of Java
We'll see how it goes.
Makes sense
When to take action for broken API in folia, Otherwise I will have to use paper
Is this a question about when Paper will re-add the API or are you asking about actions you have to take to get around the limitations?
No, just the broken API. When will it be fixed?
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.
š
Some of it may never be fixed. Depends on which API.
But yeah, no ETAs.
okey
Does anyone here actually run folia with a sizable amount of players
I need to ask questions
Hypothetically, if I had a 48k*48k world with 100-200 players online would folia break up into regions efficiently enough? You said players should be ~2000 blocks from eachother for it to work but that seems pretty excessive I feel like.
Basically I'm asking if I had 48k*48k world, with 100-200 players online, would there actually be multiple separate regions? Or would they all merge together
Assuming you don't have all the players clumped together, yeah, there'd be multiple regions
Hi, sorry to disturb you, but I have a question. We are planning to use Folia for our Towny server. Currently, we run four separate Paper servers with a total of 700 online players. The map size is 73728 x 36864, and the Nether/End dimensions are disabled. Players build farms like cactus and pumpkin, and occasionally, 40ā50 players can gather in one region for PvP in player-made arenas.
Weāre considering running two Folia servers on two dedicated machines with these specs:
Ryzen 9 7950X | 128GB RAM | 10GB UPLINK.
Would Folia be beneficial in these conditions? How should we allocate threads? Since you have experience with Folia, what are your thoughts on this setup? Iād greatly appreciate any insights you can provide.
idk why youre asking me
You can try to survey how close players are typically are in your server to see how Folia can or cannot benefit you. This is something you have to do yourself. Asking Pedro wont really help you there 
depends on the map
700 is a lot you would need like a 100k by 100k map
We'll run two separate Folia servers, so the player count will likely be around 350ā450 per server.
thats still a lot your main goal should be getting as big a map as possible
We are using the biggest version of earth map (-36864 -18432 36863 18431)
when all the players are in one big region folia performs worse than paper
on 7950x3d towny server tps in a region would dip below 20 ~80-90 ppl (there was a lot more stuff than towny which affects performance) the map was like ~10k by ~10k
then we swapped to like a ~40k by ~40k and had like 4 regions each with 20-30 ppl and each region had 20 tps
also this was 1.19 or 1.20 so it might be a little better now
40k by 70k is decent
but idk if its enough for 400 players
u can use scale operation in world painter to 2x the size so its 80k by 140k
we tested Folia with 200 real players on this map. TPS and MSPT were stable in regions with 1ā5 players. However, in PvP regions where players gathered (20-30 players), TPS dropped to 17ā18, MSPT was 20ā30, and noticeable lag occurred in those areas.
yea same happened to us on 10k by 10k map at peace they were spread out and tps was fine but during war it was laggy because it was one big region
idk how you are getting 17-18 tps in a region with only 20-30 players
Hey together me and my frriend are trying to compile folia for 1.21 is this possible and if yes how to do it because were lost and dont know what we need to do.
Hi, what is the best and easiest way to serialize, deserialize, store and restore the fragment of an area.
I just need to do something like in world edit
//pos1, //pos2, //copy, //paste, //schem save, //schem load
I mean, really, use worldedit
Is there world edit for folia 1.20.2?
Well, actually, some people had a fork, nothing official, and no idea how stable it is, etc
Is the 1.21.1 Folia update not coming?
ty
stable enough to be usable, but not recomended as it never updates
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.
Hello together i am trying to compile Folia with the compilation guide on the paper github repo but if i start the first command ./gradlew applyPatches then this error occures. What should i do. pls help. If you have an answer or something like that ping me pls.thx
also just saw that you reposted it ;_; don't do that
Build it in C:\Folia, Windows and/or git don't do well with long paths (Windows fails at it by default, git doesn't use the "new" API that would allow it to work anyway)
Hey, I'm also having Issues when building. I cloned the repo in C:/Folia
try excluding the gradle and folia paths from your anti virus
Because it's Windows, I'd do a full system restart and try again
I tried it on my mac aswell, failed there aswell tho
Share that error too please?
1 sec
at that point you should probably just use WSL
nope
just plain of cloned and ./gradlew applyPatches
I recloned the repository now in Desktop/Folia still this issue tho
Hey
I am currently running a test on Folia with over 300 players, but I am experiencing some memory problems. Does anyone have any idea why this is happening?
https://spark.lucko.me/HR9nwjoJOt
what is the memory issue
right
you're giving it 100gb in -xmx flags
it will use 100gb or a high amount in general
the pterodactyl memory usage information is pretty useless
Yeah, but it crashes tho
do not use createReobfPaperclip for 1.20.5+
because you're giving the server 100gb
but 90gb in pterodactyl
use createMojmapPaperclip
alright
tried arout a bit but still getting this error..
I am trying to upload folia to the Crafty server manager but its uploading for hours and nothing happens. Can anybody pls tell me why ?
Okay I solved it using github actions now lmao
Not much we can do about upload speeds somewhere or software that isnāt ours. Maybe try talking to the people who make that server manager?
Ok thanks
