#folia-help
1 messages Β· Page 5 of 1
quite a simple page for someone that works on CSS
i prefer it to some portfolio sites where it loads in with 90000 transitions and animations
i click the link and everything i need to know is there with hyperlinks if i need more in depth information
i am bothered by the fact that the left and right padding is not the same
Hey, could a berry bush that spawns infinite berries on a newly generated chunk be related to Folia?
it won't stop spawning
does it happen on paper
open a issue ig
Ok I found out it happens very frequently on folia, I will try again on the latest folia and on paper and will open an issue if still necessary
π i can reproduce. just spawn a bunch of foxes near a berry
hey! can you guys reproduce this ?
Step 1: Set time to night so enemies can spawn /time set night
Step 2: Set gamemode to survival /gamemode survival
Step 3: Invincibility, for testing purposes: /effect give @s resistance infinite 255
Step 4: TP far away, so you can generate chunks /tp 100000 100 0
Step 5: Walk till you encounter a hostile mob with no AI (~5min)
Note: It is very random
https://www.youtube.com/watch?v=i_aZN9N9nQs
After few tries
I'm going to open an issue
Loved it!
Is there a place where I can see a list of all plugins that support Folia?
Hey all! I am wondering if my friend and I can stream on a server while using folia? Is that fine if we don't give out the jar file?
Of course you can
You can do whatever you want with the software as long as you follow the license, i.e. yes
Is there anyone running a for-test-and-abuse server? Where randoms like myself can help log hours and find bugs?
Considering how expensive it is to run such a server I'd be surprised (but happy) to discover someone was just running a server for the sake of abusing it to break stuff.
If only I had tons of disposable income .... let me check ... uh. Nope. Anybody? It was a long-shot but the development is exciting so I'd love so see it in action.
I believe this was the server we used for our biggest test
(paid hourly, not whole month)
All right! I'm in! I just need 1,099 other people to commit $5/month.
Who's with me?
π
1098 remaining
No promises (I'd wait until some tests are out), but if you're really looking for something financially viable, this looks ok - Dedi Epyc 7502p (32C/64T)
https://www.hetzner.com/dedicated-rootserver/ax161
Find your reliable dream server, optimized for high capacity use, ever-growing storage needs or rapid and parallel processing.
Oh much better!
Well geez .. now we only need 148 or more people. That's some progress!
With that server you need like 30 people
you can also rob someone 
Oh! Not bad @fossil hollow! Lets go!
Seriously though, we'll need more than 30 people. Otherwise we wouldn't actually need Folia.
Ok. I'm going to go make some devious plans to acquire tons of cash.
I would host a server but the bigger problem is moderation
Paper SMP 
Goddamn that's multiple of my mortgage a month
I'll never be able to run it but I'm excited for the people who can
folia anarchy server!
easy fix to that problem
:)
jokes aside, I'm sure enough people would be happy to volunteer, just to see folia in action over a longer period of time.
disable chat
anarchy
ezpz
When you ask are you referring to there being 3 regions?
I do not understand your question...? yeah
I do not know π
well Folia determined that you only have 1 spare really. 8 cores cant all be used for regioniser only... your server also need it...? also other stuffs...? readme has a config to overwrite but that's just how the default amount of config'd
There is a reason why the 16 PHYSICAL core is recommended.
It is just a test server for now
Having trouble running more than 100 players
so I thought Folia would be cool
you do not have even the minimum recommended core to run Folia so I doubt you will have good time.
Our production server has 16 cores, Ryzen 9 5950x
so barely minimum
You can change that in global config, threaded-regions.threads for testing
Just note that your test is likely to be slower than Paper due the lack of cores
Thanks
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 readme and FAQ give some numbers of threads used for things
You can tune most/all of those I think but it gives you some idea of why you'd only end up with 1 available for region ticking
Hello does forge work with foliia so i can disable chat reporting
Definitely don't need forge for that
how do i do it am
freedomchat
can anyone gimme their compiled jar?
no
I donβt wanna compile it rn
then folia probably isn't something you want yet
well guess you aint getting a jar 
does that work with folia ?
try it
Why is there only a region?
how far away is every player
huh downloaded the latest version and it seems to be out of date
about 5k
heh
but i'm extremely far
does seem a bit off, perhaps @tranquil epoch has an idea
Sorry, there was an error with my random tp implementation
it is working as intended
do you guys know how i can get help with this freedomchat plugin
probably not using the right folia jar
i straight up downloaded it the 2 days ago
build a reobfuscated bundler jar
i have the bundler should i use that instead of the normal jar
depends on what you think the normal jar is
i have the folia-bundler 1.19.4 jar and the folia-paperclip jar
ok i will try
ok is there some documentation i can follow on making the reobfuscated bundler?
yes
the documentation you've been sent like 4 times before yesterday
the 3 lines of text you had to read
btw FreedomChat works fine. I was bored and tested 
I actually have an old 24 core machine that I could run it on. But it's not going to be pretty and certainly wouldn't stand up to any abuse.
Folia works wonders wow
i have some ai bots just straight up mining on level 100 insta nuking and the server tps is not even budging
i had like 60k entities on the map
part of the map crashed when i teleported all the eentities to myself though
i have fortune 120 on too
thats everywhere lol
What hardware are you on? π out of curiosity
i3 2100
Well i have an ibm X3690 with 200+ gigs of ram some 2X xeon E5's with fibre
and its all immersion cooled
You mean like mineral oil or the fancy stuff?
Fancy immersion cooled servers are pretty rad.
that probably cost a fair bit to buy
are you expecting a lot of players to join I am guessing?
nah i do this for fun
I do enjoy overkill server equipment I will never use 100 percent just to toy around with it.
hello
I have a problem with git, apparently when I install it uses as default address my C disk, but I want everything to go to disk D, what do I have to do to change the path where everything is downloaded and compiled?
not enough ram
got it, thanks ! :D
more of a question for #build-tooling-help or #general
you can just clone Folia to your D drive
think ive built it correctly
are we allowed to distribute jars?
Legally you were never allowed to distribute jars, that's why paperclip exists π
You are especially not allowed to link to any of them in here though
if i fork folia and distribute the paperclip jar of the fork then everything is fine right o.0?
||(i dont plan to do so, i just read your conversation here)||
Yeah, paperclip is a binary patch and a tool that downloads the vanilla jar and applies the patch to it so that's just covered by the GPL
Means anyone you give your paperclip jar to you have to provide the source to your fork as well
Distributing the bundler jar though is just outright illegal
?
If you mean how to add Folia support to your plugin you can ask for help in #folia-dev
put the server.jar into your server directory
figure out how to compile it on your own
If you mean how to add Folia to your server it is not ready for that yet and you probably don't want it
How to install Folia?
β οΈ Please do not share any links to builds of Folia at this time. We are intentionally not providing easy to find/obtain downloads right now - when the time is right, everything will be available through official PaperMC distributions.
tldr build yourself
You need 16+ CPU cores, all your plugins have to explicitly support Folia (none for Spigot/Paper work), then you have to build Folia from source yourself
While you're here, just wondering how long would a product like this take before it's stable. I know it's basically impossible to tell but from experience do you have any idea
yeah ofc, I was just wondering whether there was similar projects and how long they've taken in the past
we have time to rewrite our plugins at least
I'm still doubtful this will ever be stable enough and have enough public plugins for it to make sense for a random server to try to use
as I'm in a bit of a predicament where we've begun development for our custom RPG but I'm wondering whether to hold of on development and wait for Folia or not
all our stuff is custom coded other than a few things
none have tried to implement it in a way like folia
like luckperms, essentials
i don't see why you'd need folia for an RPG server
thats true
Folia is usable today if you can write your own plugins, are aware of and accept the limitations, and know how to debug MC server issues and multithreading issues
I mean if the map is huge 
folia could be beneficial only to survival smps , hardcore , factions or anarchy
because it's going to be across a massive area where players are very spread put
across an open world of about 100kx100k
fair enough
If that's the case then generally yes it can help you
we've already put $xx,xxx into it and we're only 3 months into development, folia is definitely useful for our use case
Things generally work
i haven't tested it myself but i would assume that things might break rarely
im just wondering whether it's worth waiting for an official stable release first and delaying the project until then and continuing to run just our normal mc server
suppose it's impossible to say
just depends case by case
yeah
meanwhile the production server remains as is
we currently have your normal skyblock server etc running on paper and I don't plan on changing that until there's an official stable version, but I'm just trying to decide whether to develop the new RPG for Folia or pretend it doesn't exist until there's a stable version and slowly mitigate after
I have plenty of money but I don't want to essentially put money down the drain into deving it for paper and then converting to folia
so it's hard to say what to do
If you're waiting for an "official stable version" check back in 2 years π
i don't see why you can't develop for paper and convert to folia after
there is not that much api breakage
this would be the ideal
and this is what I meant when I said my original question
I won't put off developing something for two years obviously that's stupid
I don't think there will be one in 2 years either, btw
There isn't an official stable version of Paper
maybe "official stable version" is the wrong way to word it
somewhat stable versions
Those are today
maybe a version which can be frequently used across large servers who develop specifically for it is a better way to word it
Today
i mean you're free to gamble on it and use folia in it's current state
by the time you finish your project it'll probably be out in public
Anyone who can make use of Folia can also fix or at least identify any bugs with it they run in to
So if you can look at the limitations it has today and work with them it's ready
i see, that makes sense
well i suppose ill have to write some proper documentation (for our use case) and see what the rest of our team thinks about it, thanks for your help
I still think there are only about 10 servers that will actually get any benefit from Folia, assuming they're willing to put in the work to use it
But maybe there are a bunch of large servers I haven't heard of
is there a list of current plugins that supports folia?
Not yours π
I'm making plugins that support it
I mean, someone has a list, but there are only like 15 things on it and it counts in progress PRs as "supports"
Yeah itll definitely be something to consider. But I think for the scope and size of our RPG product it could be useful
but pros and cons for everything need to be considered first
If you put this question in to the search bar you'll probably find the list
How stable is folia rn?
If you used this crazy thing called a scrollbar and read the convo that happened all of 40 minutes ago 
sorry
Well, that's the best way to get log to improve the project since players will mess with the server a lot
Is it possible to just have an entire map loaded at all times?
Instead of it being loaded in and out by players?
I guess it wouldn't really be hard at all to add
just a performance issue
Not sure if you mean pregeneration or if you want every chunk to stay loaded, latter would be a bad idea
I meant keeping every chunk loaded, why would it be a bad idea?
The size of the world is like 30m blocks in each direction
that's a whole metric fuckton of chunks, which would pollute the data struture used to keep chunks loaded, and generally like, you know, eat up a good chunk of ram in the process
Oh, I don't mean like that, I mean for like a small world with a limited world border.
There's not much to gain from doing that
I mean, sure, you can already do that
just, there is generally little in terms of payoff if the region is already generated, etc
Well if for example you have redstone farms that break if the world is unloaded
Well, several dozen things are more predicated on a player being nearby as opposed to "loaded"
Isn't that Slime region file format ?
idk what that is
A small world wouldn't work with Folia
So this question is kind of nonsense
If you don't have a giant world with very spread out players Folia will be slower than Paper. If you do then you can't have the whole thing loaded at once
ok
Only servers with lots of players who are spread out
I thought the spread was view-distance plus a buffer but apparently it's 1500 radius
So if you have players less than 1500 blocks from each other they're in the same region
Which means if player A and player B are 2500 blocks from each other but player C runs through in between them all 3 get merged in to the same region
I am surprised there were so many servers willing to throw hundreds of dollars a month at running mulitpaper though
I guess scamming children pays more than I thought
Is that documented somewhere or would one need to go through the patch for this detail?
It's just what people keep repeating whenever someone asks why they don't have more regions
view-distance plus a buffer is how I thought leaf explained it to me in voice chat during the last public test but I guess that was just aspirational or I misunderstood
are there plans to make a library to make it easier to work with folia?
for example when making spigot (but folia compatible) plugins
see the api plans part of the readme
only mentions paper compability
dont see anything about spigot + folia compability
Literally nothing we can do about spigot
afaik, somebody was already working on a library, but, we're not super inclined to have another "paperlib" esque thing here
yeah i was thinking about paperlib-like library
If/when the API goes in to Paper it would then make sense to add it to PaperLib to shim Spigot use
Although at that point hopefully Paper has split off from Spigot and doesn't care about compatibility
How many players can Folia hold?
a lot
Β―_(γ)_/Β―
i dont think the upper limit has been reached in any tests yet
Depends on hardware and well, not sure if anyone's determined the breakdown point
but it depends on hardware too
Currently record with organic player is 600+ on one machine. But you can possible do more.
on an i9 12900k?
yeah, thats the minimum requirement for folia
Only 8 performance cores which are all that matter.
and half of them are useless and should be disabled for minecraft
It's a powerful 8 core cpu with a bonus 8 cores that you could use to run a website or something.
so what processor should I use?
folia has been tested on e.g. the amd epyc 7502p
processors you normally do not get for minecraft
it'd probably run ok on a 7950x/5950x
probably runs ok on e.g. the ampere ultra cpus
what makes a cpu good for paper and what makes a cpu good for folia are entirely different
Obviously to compensate for fewer cores you should do dual 7950x right? π
Not entirely different, a 128 core CPU that was all Intel Efficiency/Atom cores would still be bad for Folia
It would work better for Folia than Paper but still
where can i download the folia?
β οΈ Please do not share any links to builds of Folia at this time. We are intentionally not providing easy to find/obtain downloads right now - when the time is right, everything will be available through official PaperMC distributions.
Usually more cores means lower single core perf though which is where the difference for Paper and Folia is, you want more cores for Folia you aren't looking for peak single core perf like you would with Paper
But you're still looking for the highest single core perf you can get with 16+ cores
Unless you are using it for skyblock, then 128 atom cores might actually be fine π
Can we build folia for legacy versions like 1.8.9?
no
no
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.
First item under "Folia will" above
alright? no need to cry about it smfh
Can you please upload build 1.19.4?
no
The lack of builds is meant to give you an idea of how unusable this is for the general public
You probably can't use Folia or don't want to use it even if you can
Not yet anyway
!warn 404539470394949633 Be respectful.
:raised_hands: Warned Kalcor#0001 (Be respectful.) [1 total infraction] -- mbaxter#1592.
Is Folia fully multithreaded or just partially? I am asking this because I read it does regionized multithreading
That's not really a question with an answer
It doesn't run every entity on its own thread or something
I tried to build but something goes wrong and it weighs 1 kilobyte.
And if all your players are close together you'll only have one region so only one thread for ticking
Is it possible to download the kernel or build it myself, or is it still for closed use?
ok
Paper should start distributing their own kernel, that would be fun!
Oh yes Paper kernel
Papux? Paperux? Liner!
PaperOS
Ooh yeah, distribute PaperOS running on the Paper kernel
"async linux kernel fork" π€
make it single threaded, and then have FoliaOS be the multithreaded fork of PaperOS 
Did you clone it or just download it
You need to have git setup (your name and email), clone to the root of a drive due to long paths, and make your anti-virus ignore the directory you clone to
folia should not be used for production servers so why should you need a home system?
For testing? π
because distributed work is heavy
I have an 8c/16t system dedicated to the server, why does it only pick up 1c/2t?
You have one player online, it scales up
ok thx
Looks normal for 8 core. Your MC server takes a few already. Do not forget.
How much more demanding is folia though?
Looking at his screenshot
He only has 1 additional thread
So it wonβt benefit him that much
depends on the use, its splitting up the server into tickable chunks
that requires a chunk of work to do that splitting properly
As soon as 3rd 4th regions came into play for him / he will actually suffer.
and then you've got all of the extra chunk gen/loading, etc, going on
Incredibly
please see readme for tuning, at defaults it is made for servers that are not on pre-generated worlds
Are structure blocks broken as well?
idk
Ah ok
you need to allocate threads
what spottedleaf said
didn't 2b2t use folia?
Yes
it would have never done that without the ability to disable chat reporting
@urban stag
lol
is this in the yaml configs? or maybe startup arguments? Or is it just dedicated server settings?
all 16 threads allocated
i think its in one of the paper configs
in the config folder
region threading
just server "thread"
ok
search
not it
Please actually read the readme
I did
read harder 
ok
grep -r threads *
Command blocks are disabled right? I dont see it documented somewhere
correct me if i am wrong
Yes. Command block will not work. Itβs mentioned on the issue thatβs closed
Worldborder command is disabled, I think i know why but can someone explain it to me?
I assume its cuz the parallel threads wouldnt be in sync to do it
That one is probably fixable but I can imagine it needs some work
It's a global thing but it applies to multiple regions and can be changed at any time
And can change every tick if you make it expand/shrink
base it on real time like the client...
Use Chunky
Chunkyborder should work irrc. 
Does essentialsx support folia yet?
It's a work in progress
80% of essentials supports Folia - JRoy
so 100% in Utilization is only single thread?
yes
and, does folia make datapack multithread?
so other threads won't kick in until more players join? despite super heavy load on the world? such as worldgen, spawner farm
they're statically allocated at the start of the server
I think if you have 8 vcpus or less it will only allocate 1 thread
I have 8

damn too bad, we really need 16+
folia assumes 8vcpus is 4 real cores
in which case 1 is a really the only allocation that you can make before you overprovision the system
you can read the readme for a guide about core allocation to see why I sort of set the number at 16
(solved in #folia-dev)
NoCheatPlus now supports Folia. π₯
π³
Grim better
π
I mean I understand that people use NoCheatPlus for anarchy because it allows some level of cheats but doesnt block them completelly
Has Grim become the gold standard for anticheats now? :))
No
I think vulcan still is for modern versions
Vulcan is ok, not great not bad
Yeah gold standard
Glad that Grim is foss
this means..?
Vulcan is still more used
vulcan achieved that in 3 years tho
while grim in only one
on those bstats i wonder how many % are legit copies of vulcan lol
No at all
Grim is old too
At least march 2021
Well Grim Was widely used before spigot
Vulcan was only released on spigot
Unfair comparison
Grim was published on spigotmc and bstats with 2.0 release
As scoreboards are broken rn, I don't think you would even be able to port it at the current state of Folia
Kyori Adventure isn't broken
Mb, i thought we talked about tab plugins in general
Scoreboard API is broken, but TAB uses packets, I think it should work
Is there any way i can make a prefix for a player without scoreboards?
well, I don't have hyperthreading, although I do have 8 physical cores, I get it, folia is towards actual server cpus
Ohhhh, I thought everything scoreboard was broken
Well server can't break client code
That is true
Iirc itβs the scoreboard commands. Not the actual ui element
The API is broken too
API is yeeted too because global state go brr
Yer
Okay, if anyone needs a punishment / ban plugin for Folia, LibertyBans supports it now
TAB plugin actually works (the things I have tested so far) with Folia with the folia-supported added (Although the %sync:placeholder% placeholders are using the bukkit scheduler so they won't work)
FX processor?
for a couple of reasons those FX cores aren't real cores but are also not hyper threading
they're in a weird inbetween land
oh
yeah, 8 cores but arm, prob would perform like FX (just how bad FX is)
Shouldnt matter much right?
it does matter, because CPU pipelines are fun
FX shared the FPU between cores for example
A lot of old amd stuff did the same
I believe they also shared an L2 cache and an I-Cache
Shared FPU means for chunk gen and entity ticking those may as well be one core
Altough bulldozer is also just old enough you shouldn't run a MC server on it anyway
@finite hingecan anyone tell me how to install and run folia server?
β οΈ Please do not share any links to builds of Folia at this time. We are intentionally not providing easy to find/obtain downloads right now - when the time is right, everything will be available through official PaperMC distributions.
if you want to test you need to build it yourself
If youβre asking this you prolly shouldnβt be running one to begin with
I already tried but failed
make sure you actually git clone instead of downloading
Jar is not the task you want
ohh thank you
this is what i was looking for
than you all guys it worked for me
I was thinking about making a tutorial for all the noobs but then I realized this chat would get flooded by abnoxous questions
How's folia? Is it still buggy?
depends on your definition of buggy
Well I'm sure you know what I mean.
Anyhow, I'm asking if it can be used on prod server or if it still needs more develot
most plugins dont have support yet
I see so the plugins are the only reason why it is still not released with public builds?
itβs still in development and there are a few issues
no
From the recent exchanges here. It looks like Folia will be very pricey to run. As you'll need tons of cores to have it running.
It might be a little bit more challenging I suppose as most plugins will not work yet so you'll either have to wait or develop your own plugin which again adds up to your expenses if you don't know how to make your own plugin.
yes but you'll also run a server that can cover those costs
if your server doesnt make enough money to cover folia hosting, you probably dont need folia or need to rethink monetization
I mean with a server that has tons of members I couldn't agree less.
and those are the servers that do need folia
Aight. Just checking up here. Thanks for the updates. I've noticed they removed or privatized folia-github channel so idk. Just silently watching here and will study plugin development soon.
?
its one of the new amazing discord features that hides random channels
what cpu do you currently have and what are you upgrading to?
i7-6900k currently
what are you upgrading to?
that is a downgrade most likely
due to slower clock speeds?
its a cpu from 2014
true
soon to be a decade old chip
still slow
would folia be benificial for a 20k by 20k worldborder sized world with a lot of players?
or is that too small of a world?
Apparently players have to be 1500 blocks from each other for a separate region to be created
Depending on how your players are spread through that world you should get a few regions
No set block count
I've been telling people it's more or less view-distance + a buffer because I thought that's what you said in voice chat but enough other people have been saying 1500 that I figured I was just wrong
Or, well, I guess 2x view-distance plus a buffer
Let's say you got a vd of 10
Then the chunk system will bring chunks in radius 11 to full loaded
Right, have to have neighbors loaded so you can populate, right?
At ticket level 33, that will create chunk holders up to 45, so an extra 13
So 24 radius chunk holders
Current region section size is 16x16
So that's 2 sections
But the regioniser always creates an empty section 1 rad around non empty for buffer
So it's 3 sections, or 48 chunks, or 700 blocks
Regions do not split eagerly, rather lazily
Wait if I load a chunk with ticket level 1 it'll flood fill load chunks 44 out from it?
No
Yes
It's backwards as hell
Doesn't help that my ticket propagator works in the opposite direction
Btw how do you handle entities/redstone crossing regions?
But 33 is full loaded, anything higher is protochunk
32 is block ticking, 31 is ticking
And anything lower is just more chunks
guys do you think i can share my test server ip address so that people can join and grief to test performance ?
So normal chunks load with ticket level 33, the system apparently loads neighbors until it gets to 45, 1 is always added to view-distance so it can fully load the ones in your view, so vd 10 ends up actually loading chunks in a 24x24 around the player, got it
They don't cross regions
The regions merged before they could even think about crossing
How do you prevent for example a creeper crossing region
region != mca file
You cannot have two regions touching, they would be one region before that happened
There needs to be a line between regions somewhere
Or is it like when they touch they merge
That line is a big gap of unloaded chunks
So they don't matter, they aren't loaded
When they get close to each other they merge, before they touch
Oh I see
Although there is some protoregion thing that happens that is technically touching before the merge happens
A region is a unique set of chunks in a world
Nothing is ticking while that happens though, afaik
That removes the need to sync data between them
Yes, that's how it was possible to make it multithreaded
Eliminates the issue of multipaper
Otherwise you end up with multipaper where you need 1 CPU core per player to sync everything π
That's not true
The overhead ain't that big
Ok, I think it might have been 0.5 CPU cores
Yeah there was big overallocation for that event
Just to be sure
Also depends on what cores they were
Usually like 4 cores of 5950x could handle 50 players
That's called Paper
With multipaper
yep, have seen comments of someone starting a multifolia in that discord server
wwoo π
that teck to keep in sync with one world must be quite a charm to keep
only someone with big "ones" has the courage to start a challenge like that and make it run
- it was a compliment
is it possible to load worlds at the start?
? why?
i need to load another world
you need a plugin to manage it, not sure is there is already one for Folia
Pretty sure the world loading API isn't working currently
why don't they just try replicating the load process when the server starts up?
You are encouraged to submit code implementing this.
Nothing is ticking yet when the server starts up
Apologies for some potential misunderstandings as I am new to this concept...
If the regions in a world had their own threads and everything, why are they affected by loading worlds?
Β―_(γ)_/Β―
That's the difference from startup to later though and world loading obviously works at startup
If it works at startup, why havent we implemented it yet? Have the devs not had enough time to do so yet or is there a reason?
Β―_(γ)_/Β―
ok
download?
@finite hinge they should "allow" the loading of worlds before initializing the world regions
it could be a temporary solution
Although since everyone who likely has a use for Folia also likely has their own custom Paper fork I suppose they could just put that in their fork or put in loading the extra worlds they care about in with the vanilla ones
World loading while the server is running would still be somewhat important imo
but thats something that can wait until Folia is really stable
for now we should just allow loading worlds at startup
So Iβm going to put the settings for worlds on startup in worlds.yml
I donβt want to add to existing configs since this solution will become redundant in the future
Well, is the plugin explicitly marked as compatible with Folia? What's not working?
Pretty sure that list includes plugins that have an in progress branch or PR
Or ones that have committed Folia support but haven't done a release with it
Maybe we could start with some clarification of what "is not working for me" means
seems like something to report to floodgate devs
Ran 400 test players at 16.5 tps all in one region
ayo
what's the point of this???
like for specific server type shit?
I really dont understand why Folia isn't better than Paper for overall servers
like what's the point of doing this
Meant for larger servers with spread out players.
Each region is separate, so when one player/group lags, the rest don't.
Because if all your players are next to each other they're in the same region and you get no improvements
does it say anything when they disconnect?
Like 2b2t one?
tbh with optimization Paper dont lag at all
do you try purpur?
ppl wont stop talking about it
dont like it
there's at least 1000 spigot project existing
as it seems ppl are active here I know why you wanna use it ^^
Basically servers with hundreds of players that are very far away from each other, then Folia can actually tick the regions separately
paper too
Hmm?
at least you can do it with paper
just dont tick chunk if there's no players in it?
Paper can't handle more than ~80 players
That's not what it does
Regions are ticked on separate threads
nop
So each region has their own 50ms to tick or only that region starts to lag
I use 100mb with 50 players and 10% cpu use with paper
i got 10$ ovh server
4go
ram
Keep the channel on topic
my bad
budget server
that'S what it is
prolly because if you'd have read the project github readme.md
you'd have seen that it need more than 2gb
of ram
What server types can benefit from Folia?
Server types that naturally spread players out, like skyblock or SMP, will benefit the most from Folia. The server should have a sizeable player count, too.
What hardware will Folia run best on?
Ideally, at least 16 cores (not threads).
oh my bad
need a good CPU
prolly a connection holding bug
wont dev on something completely useless imo
could know tho
no lmao
yw
Folia can scale regular servers, provided your players are not in a single area of the world
each region will have its own tick loop that is maintained in parallel with the other regions
so if you have some 10 player smp with like 3-4 players per area in the world it can scale to 3 threads ish
if they're all in one area it scales to only 1
so even for small player counts it can function very well but it depends
Would recommend start without plugins and start again with the players
My believe is that one of the plugins isn't yet perfect handling the player join event
Been testing the server for quite some time and never had join problems
ok I understand, but why didn't you do something similar but in Paper?
this work is applied on top of paper?
didnt understand
some steroid that make peepee little
paper multi-threaded by region so one region don't compromise others and you can use more cpu cores and threads
if so, then it's because of plugin compatibility
no
I was wondering why this exist
I suspect most servers with more than a few players could take some advantage of it
paper has other async stuff, not anything like folia tho
might be what he is confused about
it is a solution that will provide more stability and performance, because of better resource usage, and the region isolation, so lag machines will not have the wanted impact, for example
more or less resumes my idea
Where can I download Folia?
β οΈ Please do not share any links to builds of Folia at this time. We are intentionally not providing easy to find/obtain downloads right now - when the time is right, everything will be available through official PaperMC distributions.
You have to compile it yourself
You can download development builds of LibertyBans as mentioned on the website: https://libertybans.org/
since it's like this. Aren't you gonna have the same performance with Paper server where all players are in the same region?
yes
which means, If I want a single region to still handle tons of players, I'd have to use a strong CPU with good single thread speed.
You'd also just want to use Paper, it'll be (slightly) faster
And not have all the compatibility issues
Yeah, but I mean I'll still go with something that can scale π
im trying to provide my dev with a folia server. But he didn't have time to compile it himself, it's ages ago since i have done it myself. Is there a guide to where i can see what i need to compile it. Been trying to use GIT bash. But it keeps putting out an error
I personally did it all in VSC using the provided scripts w/Powershell. But YMMV.
Mh, haven't tried powershell yet
It's all sequential, so make sure you do it in order.
yeah, that is what i am worried about. i ran the install and then gradlow. But i think i needed to run patch before gradlew
Also, as several people in here have noted, make sure you have the appropriate hardware on-hand before attempting a test-run.
I did it with a VM that has 8c/16t and it handled it like a champ, but again, YMMV.
I have a 64 core cpu on hand, where we would like to try and preload a world and see how much we can push it
There ya go
This is what i keep getting, hmm
iirc that sounds right, I did this last Monday and haven't touched it since.
Yeah, it was from when i mined monero haha
What CPU was it and how did you test? Just out of curiosity
I've got a Hyve Zeus v1 box, loaded with 2x e5-2650v2's and 128GB of DDR3 ECC RDIMMs, connected to DC SSDs in another server over 10GB, nothing wild, but I had a good time and didn't see too many hiccups with my buddies.
If I decide to scale up, I might swap those out for e5-2680/90v2's for the 10c/20t upgrade, my only complaint is TDP and the boost clock drop.
Clustering tends to lean more towards other solutions, this seems to be more of a bare-metal type deal from my perspective unless I'm not seeing it right.
i once had a 2x xeon gold. but that was for school use haha
finally its compiling, fresh files worked like a charm

also have 1200 USD on vultr. could be fun to try their services haha
jesus christ
I like Vultr for what they are, I used them alot in HS.
But, then I started buying my own equipment and got rid of it.
yeah, i have it due to a sponsor deal with em
Arrg it ran the patch, but now it wont run the builder
Hmm, i am quite confused
show the whole message
Yep, will do. doing fresh patch run, to see if that was the issue
what i am getting, when trying to make the server file after applying patches
Looks like you didn't clone it
might be an idea to add back the error that paper also has when you try to build w/o cloning it?
Ah, i simply just downloaded the zip haha
Its like 3 year ago i have compiled on my own
You have to clone it so you get the submodules for the API and server as actual git repos because the build process is basically adding commits to those repos
thoughts on this?
In theory it could apply the patches and such without going through git and would work but then you'd have a different flow for building as a user and building as a developer
yeah, i cloned it using visual code now. It's applying patches now
So the user one would just break all the time because the devs wouldn't notice π
Network dropout ate my reply, that sounds like something in paper's gradle setup that should migrate to paperweight
is this utilisation normal ?
859 players π
im talking about this
yeah that's normal
we set the threads to 32 but it caps at 100 per region
If your players are grouped together that can happen
Each region can only use 1 thread out of the pool at a time lol
i see
Basically all regions share a pool and will pull a thread out, do their "main" thread stuff, and then throw it back to the pool
Your players are too close together, you only have 3 regions (one per world)
That too
i see
You need to turn down your view-distance or spread them out more
At view-distance 10 every player is in the center of a ~700 block radius (not actually radius but whatever) for their minimum region size. That means if two players are within ~1400 blocks of each other their areas will overlap and just be one region
Then if that's player A and player B if player C is more than 1400 blocks from A but not more than 1400 blocks from B they'll get sucked in too and now all 3 are in the same region
And so on until your world is one giant region
so that's where the 1500 blocks came from 
and also why 2b ran their test with a VD of like 4
Coz their players are used to the shitty view distance /s
But it is likely to ensure players are still getting some chunk loading <serious>
would world-pregen help it ?
Itβs insane too to think about since you can bet a large portion of those 620+ players are using hack clients. 
i see
It still won't help though if all your players are real close to each other or in the same region tho lol
i expect all smp's in the future to use folia and use a lot of RTP plugins
Leaf described it as view-distance 10 means chunks in a radius of 11 around a player will be brought to full loaded which is ticket level 33. The system will create chunk holders up to ticket level 45 (apparently in a flood fill manner) so it touches an extra 13 radius out from there for a total of a 24 chunk radius. Current region section size is 16x16 chunks so that fits in 2 sections. Then the regionizer creates an empty section around non-empty for buffer so you get 3 sections, 48 chunks, or 768 blocks
so the players are very spread out
Eh just set the spawn to 0,0 and then set the spawnRadius gamerule to like 50k 
thats also a clever way of accomplishing it
Def should pin this btw
If you set the view-distance to 5 you'd get a 6 fully loaded radius or a 19 chunk holder radius. That would still be 2 sections though so you'd have the same 700 block radius in the end
That chunk holder bit really kills it
You'd have to use a view-distance of 3 to get a smaller minimum region size
Or wait no, 2
so basically just make sure your players are spread the fuck out no matter what 
They don't have to all be spread out from each other, they just need to group up in areas that are far away from other groups
Folia would probably be decent for faction servers then too 
I wonder how much it'd hurt things to make the section size smaller
Or if something can be done about the ticket stuff
Oh and Folia apparently eagerly merges regions (it has to or things explode) but doesn't split them back up right away
Or at all, not sure on that
It might not split again until the region as a whole unloads
You wouldn't want to eagerly split or you'd flap when someone was wandering around the edge
Waiting until they get a whole extra 16x16 section separated would kind of suck too, that's quite a long distance
So you'd want the splitting to be based on something finer grained than sections or you'd want to make the sections smaller
You can set really low view distance and use this to compensate for it
No
It might work. It reads the chunk data from disk and sends it to players. It doesn't actually load chunks
I'm surprised that doesn't blow up on Paper as-is, it'll definitely explode if you try it with Folia π
its a lot better than its spigot page makes it look like in my experience
Even with a view-distance of 2 you'd have a 512 block radius
I thought that ainβt updated for Folia
I talked to the plugin author and he said he was busy for the time being 
Although that does mean so long as that plugin actually works and you don't set it to more than 32 chunks you'd be okay?
The plugin would need to ensure it follows the Folia regionizer logic and never tries to access something that another region cares about
yeah its not updated yet
Yeah just found the discussion
#1018368926494769314 message
So in practice for sane view-distance settings players have to be 1536 blocks from each other to be in different regions, I guess the 1500 was right π
It's not right 100% of the time but unless something in Folia changes or you set your view-distance to 2 or larger than 18 it's the right answer
Being 1536 blocks from each other doesn't guarantee they are in different regions but if they're closer than that they definitely aren't
Kinda hoping for that to get lower in the future, thats a lot of "empty" space between players needed
I assume it's somewhat plausible to port FVD for Folia
It's relatively non intrusive, operates on the region files themselves
Unsure about NMS bit though
Is there a way to multithread forge?
maybe? But Folia isn't related to Forge at all
ok
How does folia split the world into regions, exactly? Does it split into multiple only when people are far enough away from each other?
In general players have to be more than 1,536 blocks from each other to have a chance of being in different regions but if they started together then player B walked away from player A they'll have to go much further than that to actually get a second region to split off
Oh interesting, thanks.
why folia?
Read the readme page @runic burrow
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
Hi
I added the folia and created a plugin
Okay
Oh no
You need to add folia-supported: true to plugin.yml
No other plugins support it, do I need to add to all of them?
plugins need to define that they support folia
and, well, they actually need to support running inside of folia
You need to contact plugin developers, you cannot just add that to make a plugin work 
^^
i know, i will rewrite the whole server, i just want the simple stuff to work
world edit/guard etc
https://github.com/PaperMC/Folia/issues/45
@tranquil epoch
I run latest folia and this issue still occurs.
To reproduce:
- Set world spawn far away (Enough to make its own region) during heavy load.
Sorry bout that
need new stacktrace
I know this looks random but we've been talking about P core vs E core for Folia when people say "my 13th Intel has 14 cores!" so I thought it would be interesting to see how others are dealing with it https://www.phoronix.com/news/Mesa-GLThread-Disable-Small
less than 4 p cores is definitely some low end 13th gen cpu
Can reproduce. I'll send a new stacktrace
β οΈ 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.
β οΈ Please do not share any links to builds of Folia at this time. We are intentionally not providing easy to find/obtain downloads right now - when the time is right, everything will be available through official PaperMC distributions.
well, that was long
do you know if there is a compatible skinrestorer version?
We don't really support piracy here π€
piracy? that's me compiling folia to test it ;-;
Mbaxter is referring to this message. 99.999% of the time skinrestorer is used on cracked server which we do not support.
You might want to join SkinRestorer discord to get help from there
It's in the works.
Nice, make sure to ping me next time cuz I almost missed this message

Added the new stacktrace
https://github.com/PaperMC/Folia/issues/45
Hi all,
I had a little glitch with Dogs but don't know if it's related to Folia or just Minecraft.
After one dog TP to me on top of some water, the dog walked in the "air" blocks like those blocks were solid instead of falling down (on multiple air block, same Y level). I don't know if it's a Minecraft glitch directly or Folia specific. Did someone also had that behaviour?
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.
Can you make a step by step replication guide ?
I'll try ASAP
Basically, it was:
- Tame one or more dogs (two in my case).
- walk away, the dogs will TP often to you when they are far enough.
- if you make them teleport near "air" (like above those little pit with some water), the dog will "walk" on the air after teleporting like there's solid block under them
It may be the teleporting that put the dogs at the same Y as the player, even if there air block below them.
why folia is spawning camels?
Same as Paper, as Camel isnt release yet but Vanilla still call for it in dessert center biome
Seem like they go through some block as well after TP like they aren't there
cool decision from vanilla π
It seem to happen pretty rarely, when the TP kinda mess up and put the dogs either inside a block (where the dog can "noclip" through multiple block without taking damage) or on "air", where the dog can walk (levitate) freely.
It reset that the moment the dog left that situation (either by going out of the block he's noclipping in or by touching a solid block when it levitate)
I can't reproduce, the dog only teleport on land π€ but I think i saw something similar when using Entity#teleportAsync, armor stands going through blocks, not teleporting at the right location
The occurence were after a teleportation.
Was kinda funny to see my dog just walking onto air
(teleportation from the dogs because too far when I walked, not me teleporting)
So it teleport on land, then float in the air ?
No
Teleport in the air
And walk like it's solid block and keep walking into the air
For the first case
And the second is: teleport INTO a block and goes noclip into other block until is outside solid block
(without having suffocation damange)
Both after the dog TP
i no find .jar for download :/
which is intended
β οΈ 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.
β οΈ 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.
is /worldborder disabled?
Many commands don't work yeah, if it says unknown command or sth then likely yes
There's also a list of disabled commands in the FAQ
Yes
Hello Im curious about folia because Im running a server with duel xeon cpus with slower but more cores. would it work better for me other than something like paper? also what plugins run well with it?
Depends on how slow the cores are (that is, the exact CPU model)
Very few plugins currently have support for it
https://github.com/BlockhostOfficial/folia-plugins (Includes some plugins that are in progress to support it)
Xeon(r) CPU x5675 @ 3.07 GHz
Unfortunately I don't think that'd be good for either Paper or Folia
why not either? is there a better solution because currently Im having alot of issues.
sorry Im very new to running minecraft servers
Its single core performance is too low, and that's the main thing for a Paper server
For a Folia server, a bit less, since work can be offloaded to different regions, but a single region still needs a reasonable amount of single threaded performance to work with
Also, the recommended minimum amount of physical cores is 16 for Folia, you have just 6 physical cores per CPU
I would just upgrade tbh or find some cheap shared host
you're running on a CPU older than most of minecraft's playerbase
and presumably you're running on that CPU because it's a cheap dell r210 or something and it's somewhat power efficient
im not entirely sure its an old windows server I think?
regardless of what it was or is
not great
folia is not designed for taking old hardware and breathing new life into it
you're gonna have a bad time running paper on that and if that's the case you'll have a worse time running folia
okay thanks for the info
does Citizens has Folia support or any Citizens fork with Folia support?
That's a great question for citizens folks π
Personally I am running a Dell PowerEdge R620 with dual E5-2650 v2 and 64 GB RAM xD
@sudden tusk I just ran the command again that I shows in #general but I am still getting the same issue after I cloned the repo using Git Clone
(sorry for the ping btw)
You got two of those CPUs? Otherwise you're only 8 cores and that's not much for the insanity that is folia π
yeah I got 2
Try the stacktrace thing it suggested in that error
Dual CPU sustem
also not great
Oh look the word "dual" I failed to read
have you factored in electricity costs
Yeah I am fully aware of that. I am not going to run Folia in publication I just wanna see what it can do and have some fun
π₯³
message.txt by @fallow meadow: https://pastes.dev/rSGCNyJeUq
Holy cow that's not even based on the Sandy Bridge lineage, that's the older stuff that started life as Pentium M
Oh I was scrolled up...
No it's good to acknowledge that again
That's basically the last hurrah of a CPU design that you can actually trace the lineage of back to like 1996
will there ever be much hope for non-paper servers really benefiting from folia?
What do you mean?
Paper forks could rebase on top of Folia I guess
How would a non-paper server benefit from... paper with changes?
Fabric, Forge, Spigot, etc no
ye i mean like fabric and forge
Someone would have to rewrite the lighting engine (ok leaf already makes starlight for others), the chunk system, and then all the folia logic on top of whatever other server setup they were using
You'd basically have to port half of Paper to Fabric
And all the parts most likely to have bugs and most likely to wreck mods
It's not impossible but I don't see it happening
Yeah, makes sense
Even if it did happen you'd have the same situation as we have with Folia where all the mods have to be ported to it
But even harder because of how deep a lot of those mods go, they'd probably just have to rewrite and some things they do might just be outright impossible
The system requirements would be ... Interesting for a heavily modded FoliaForge server due to the high single threaded performance requirement
I suspect even if you did get it to work all the craziness some modpacks get up to would end up resulting in things mostly being one region eventually anyway
At least you'd still have one per-world though
Sponge would also be similarly hard like Fabric, too...
Well, MCMT existed for forge and did work somewhat similar. But I believe it has been abandoned
And it's far less refined and advanced than Folia for sure
I don't know what MCMT was doing exactly but it wasn't like Folia, it was claiming 20% perf gains for a single player
I seem to remember it also causing a lot of random bugs with other mods
I might be thinking of an older attempt though
How can i download folia ?
β οΈ Please do not share any links to builds of Folia at this time. We are intentionally not providing easy to find/obtain downloads right now - when the time is right, everything will be available through official PaperMC distributions.
β οΈ 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?
Gotta clone it
that makes sense, thank you:)
how to join folia server?
same way you join a Paper server or a Vanilla server...?
How to download folia?
β οΈ Please do not share any links to builds of Folia at this time. We are intentionally not providing easy to find/obtain downloads right now - when the time is right, everything will be available through official PaperMC distributions.
β οΈ 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.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
> Could not find dev.folia:folia-api:1.19.4-R0.1-SNAPSHOT.
Searched in the following locations:
- https://oss.sonatype.org/content/repositories/snapshots/dev/folia/folia-api/1.19.4-R0.1-SNAPSHOT/maven-metadata.xml
- https://oss.sonatype.org/content/repositories/snapshots/dev/folia/folia-api/1.19.4-R0.1-SNAPSHOT/folia-api-1.19.4-R0.1-SNAPSHOT.pom
- https://repo.maven.apache.org/maven2/dev/folia/folia-api/1.19.4-R0.1-SNAPSHOT/maven-metadata.xml
- https://repo.maven.apache.org/maven2/dev/folia/folia-api/1.19.4-R0.1-SNAPSHOT/folia-api-1.19.4-R0.1-SNAPSHOT.pom
- file:/C:/Users/Min/.m2/repository/dev/folia/folia-api/1.19.4-R0.1-SNAPSHOT/maven-metadata.xml
- file:/C:/Users/Min/.m2/repository/dev/folia/folia-api/1.19.4-R0.1-SNAPSHOT/folia-api-1.19.4-R0.1-SNAPSHOT.pom
- https://repo.codemc.org/repository/maven-public/dev/folia/folia-api/1.19.4-R0.1-SNAPSHOT/maven-metadata.xml
- https://repo.codemc.org/repository/maven-public/dev/folia/folia-api/1.19.4-R0.1-SNAPSHOT/folia-api-1.19.4-R0.1-SNAPSHOT.pom
- https://hub.spigotmc.org/nexus/content/repositories/snapshots/dev/folia/folia-api/1.19.4-R0.1-SNAPSHOT/maven-metadata.xml
- https://hub.spigotmc.org/nexus/content/repositories/snapshots/dev/folia/folia-api/1.19.4-R0.1-SNAPSHOT/folia-api-1.19.4-R0.1-SNAPSHOT.pom
