#folia-help
1 messages Ā· Page 25 of 1
Hello guys. I'm trying to update folia keep up with paper 1.20.6, but got a git failure when applyPatches.
Here is err msg:
Applying: MC-Dev fixes
Patch failed at 0002 MC-Dev fixes
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
error: invalid object 100644 dea20f16ac97402f754c8e47d03e9ef38de73190 for 'src/main/java/net/minecraft/world/entity/ai/Brain.java'
error: Repository lacks necessary blobs to fall back on 3-way merge.
Hello back, I just did a new folder for my Folia on my C:\ for a shorter path(C:\Folia)
Now a famous cat told me to use WSL.
I am aware of it and use it sometimes for ollama and shit, but right now, since I want to run .bat or build my first Folia build, how can I use the WSL to compile folia please?
Maybe try about github workspace? It's a handy & free linux dev-env.
I use vscode and "it works fine" when it wants š So you are building folia more easily in a workspace? I did used that ... I could do it, would rather in local but if you tell me it works easily and it's simplier..
im on it already ...thanks for the suggestion hope it's gonna help! š
Offcourse building localy works very fine, but you mentioned up there someone recommned you to build in WSL, in my opinion setup a WSL env is more complicated than using github wrokspace.
Thanks for your advice .. ! imma give you a feed back if i suceed ;)!
And GitHub workspace can be opened in your local vscode via SSH.
about the installation, in my mind live, I shall ru n the install.bar the jar.bat and patch.bat what about the rb.bat? anyone i should forget about?
I think I succeded install, faioled jar and im on patch live ..(patch was my main issue on vs code)
When you build foila under linux os, I recommend first ./gradlew applyPatches then ./gradlew createMojmapPaperclipJar, I dont think run windows bat in linux is a good idea š¤
Here I'm having patch issue too š„²
Honestly if you're not sure what you're doing you're better off waiting
that patch has conflicts with the upstream
you'll need to manually fix it
also, check that no bugs that could be serious can occur
Thanks for advising. I resolved conflict before, but err such like "invalid object" is first time. If this err is sured caused by conflict, then I will try to fix it.
Anyway its a good chance to learingš
how much ram does folia uses with 150player and 15k*15k preloaded map.
is it gonne be more than 16GB
Probably not but... ĀÆ_(ć)_/ĀÆ
do you have any test about ram and cpu usage
Nope
I can tell you it's going to basically be identical to Paper for RAM usage
CPU usage will hopefully be higher, that's the whole point
paper uses 6GB ram with 40 players
Hey guys when is stable version of Folia releasing?
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.
Eta
i thought it would use more ram? Doesn't each region have the capability to use the same amount as a paper server?
Not quite the same amount.
It could use more RAM than Paper, or potentially the same. Thereās not a ton of data out there for a 1:1 comparison.
At higher player counts you wouldnāt be able to make a 1:1 comparison either.
But the question of āhow much RAM do I needā still doesnāt have a great answer because it depends on plugins, the players, etc. Thereās no great āX RAM for Y playersā that isnāt a random ballpark.
Best way is to get familiar with your setup and plugins and optimize from there.
ok, but i assume it can actually use more ram than a paper server which can only realistically utilize 12 gigs or so. Like, i am not asking how much i need, i am just curious what the limit is.
The limit as in how much RAM could you allocate? We gave the server 500GB and it ran fine.
nice, thats wild
Paper has like an upper bound of what it can use in theory because you canāt really make use of it.
With Folia you can because of the recognizing. Which was the whole point, basically.
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.
pretty sure you can run into performance bottlenecks if you over allocate with paper though, right?
But yeah if you have the map size and the player count and the headroom for GC you can run a ton of RAM. You just might not need to.
Yeah exactly.
You can with Folia, too, we just donāt have a great frame of reference for what those are yet.
yeah, thats fair. Thats crazy that i could actually use that much ram though
With an accompanying CPU and core count to work, yeah.
That was like the first public performance test (info in pins) so we were trying to push the limits.
of course. Server runs on a ryzen 9 7950x rn, so switching to folia should be fine in the future
RAM usage is mostly based on number of chunks loaded, that's not going to be different between Paper and Folia for a given player count
Yeah itās not going to make sense to use a ton of RAM on a 8000x8000 map with only 10 players.
Which is why for a lot of smaller scenarios it makes more sense to use Paper.
we are semi-anarchy. 30mil world border. There are loads of chunks being loaded
haha
If you donāt have the core count, RAM, or map size
Then youād need core and RAM, yeah.
for sure, but for my server folia is perfect
As long as the current feature limitations and plugins work for you, sure.
yeah, we haven't switched yet for that reason. I want to by the end of the year though. I am exited for the possibilities though
ty for the advice
More servers using it would be great. Especially publishing plugins and stuff so that then more others can use them/etc
Yeah, for sure. We dont really use any public plugins, but i would love to see more development
is there any gui api for folia?
Yes UR right, there are lots of works to do. š¤£
I dont know if PaperMC have working on it, but my players are hunger for new version. So I will try to fix these conflict.
Youāre probably going to want to wait until it gets updated.
Feel free to try but the 1.20.4->1.20.6 jump is a little tricky.
Got it! I want to wait for 1.21 too, but the 1.20.5 updates about dogs are so attractive~ š
If you want to go through and update, go for it! Project is open source. Just know that we canāt support a fork if you have issues.
š«”
how much RAM do Folia use with no plugin 150 players and around 10 regions?
I think you misunderstood
It's not a formula where you plug in numbers for 3 variables and you get an answer, the point was "it depends" is really the only answer
is it gonna be more than 16GB?
1.000.000.000 bayt
the bayts can fit a lot of stuff in it!
it can store roughly 12500 bee movie scripts
i mean for a well deserved reason
not really. it's just the scale. we have hundreds of them so what's 1 in face of that
1gb is still tremendous amount of data
itās but caution is very important though
memory leaks happen
GC sometimes cannot do you any good
and incase of Folia, if you have that much allocated for CPU (~16 cores) you might as well allocate good enough amount of ram
nooooo? they should not happen
if they happen, you need to fix that lol
if you have memory leaks get ready to have a lot of a higher cpu usage and lag spikes no matter what
if you're using a g1gc, otherwise idk exactyl how it'll act on zgc etc, it'll probably just start to use more and more cpu for cycles and then just oom at some point
memory leaks shouldn't happen if you are an experienced programmer. btw use OOM kill or -Xmx ALWAYS otherwise if you are using Linux OS will crash or if you are using Windows you will experience a very bad time even worse than the OS crash.
Windows handles applications leaking memory just fine nowadays. Or well, probably since about Win 7
You get a dialogue window allowing you to close the application or continuing
or it will try to use swan and freeze.
Donāt think Iād recommend anyone run Folia on Windows though.
Windows runs Paper poorly enough as it is.
use dockers on Linux if you know how to do it.
did you try macos?
MacOS would be fine. But doesnāt really make sense for a deployed server. And you canāt install macOS on non-Mac hardware which youād want for Folia.
I donāt think anyone has done any M2/M3 tests for Folia but I donāt think ARM is going to perform better in this case.
actually, you can install macos to ANY system that has a CPU (it is not legal, and I don't recommend it) and Apple has a Mac server so you can deploy a macos server(very old).
Itās a little more complicated than that, but either way, Linux and a high clock speed/core count CPU is what you want for Folia.
If I give 12 cores of a ryzen9 5950x and 16GB is it enough for above 150 players on a preloaded terrain or would you recommend trying it?
As a point of reference
Try it and see. How much RAM you need is gonna depend. Theres no easy answer.
Apple dropped MacOS X Server before they even switched to calling it macOS and they haven't made server hardware in over a decade
is there a way to disable this? multiplayer.disconnect.too_many_pending_chats
Very sad ngl
If apple still have server they could make more apple event and show more graph on how their server cpu have the most cores in the world
Or how their cpu can run all the professional server programs faster by 50x than their first server cpu with apple silicon
They have the server app but nobody is really using apple hardware for servers outside of niche usecases
The Server app does not support versions of macOS newer than Monterey, marking the end of Mac OS X Server product line.
oof
is there any way to disable the kick on chat key stuff?
HELP! How do we fix this breakdown?
2024-05-07-1.log by @glad latch: https://pastes.dev/Mmq9sLsa8D
It seems like you're not using the original Folia. You'd better reach out to the creators of your fork because it might not be a problem caused by the original Folia code.
Or try to reproduce it on the original Folia and then submit a issue on GitHub.
thanks
I compiled the jar of folia, how do i install it on a server host
like any other server jar
you'd need to seek your hosts documentation, etc, for specifics, but it's generally "plop it in the folder and tell the panel to use that jar"
Okay i will try that
are there any good scoreboard plugins for folia?
Get used to writing your own plugins, there isn't much
i found a crate plugin for folia but how do i get the jar https://github.com/R00tB33rMan/ExcellentCrates-Folia
its not like compiling folia but different
someone help pls
@nova talon you should reach out to the developers. This channel isnāt do help with random plugin
theres nowhere to reach out to them so i thought id ask here
bc ur all specialized on such things ig
If the plugin is provided as is, itās likely the developer do not wish to carry the burden of support. Either figure it out yourself or find another plugin where developer is fine with doing free support.
anyways i found it i think except for the io netty
threaded-regions:
grid-exponent: 2
threads: -1
is this threads here for 1 region each or for all regions in total
it's the number of threads used by that pool
Its how many threads for the threadpool that is used to tick regions, -1 means let the server pick based on how many cores you have
i think i leave it on -1
It's all regions, setting it to 10 doesn't mean you get 10 regions though
-1 is a good place to start, yeah
that... that's not how it works. The region will increase and decrease based on things such as player activities and how far away they are to each other.
for me it generated regions in both end and nether when i started folia
so i had 3
and i was one player
since im limited on my cpu kinda im leaving nether and end disabled tho
doubltful that would help a lot. Player dont normally live in those place to begin with
my players are stupid enough to actually do that
i have like 150 active ones and half of em are like that
Greetings, maintainers. I'm done with 1.20.6 update. Could you review it please?
https://github.com/PaperMC/Folia/pull/220
anyone know how to fix that here?
https://pastebin.com/HgpKVsLX
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
you need to add the effect on a region scheduler for the region the entity is in
or entity scheduler
it's adding an effect to a player
I'd guess that a player teleported or something and the thing doesn't check if the player is still within the same region
How can i install spesific version of the source code from github.
how can ı use paper api 1.13 with folia api 1.20.1?
why would you want to do that?
I suspect that's just going to pick one and do nothing useful or just break
i want my plugin compatible with 1.13 paper and 1.20 folia
iirc some people have been having issues with Material and Particle and such because they had different versions of the API in their dependencies and things didn't know how to handle the conflicting definitions
I mean, if you use 1.13 paper then you're not going to have access to the internals, as you cannot see multiple versions of an class
you would need to deal with the abstraction using some library that will hide that for you, or deal with it using modules or reflection or whatever
1.13 is quite an odd version to use
i still want to support 1.13 and 1.20 folia
well
either you target a newer version of the API so that you can see the new methods
you use modules so that you can target both the old and new version in seperate modules
you use reflection
or you find a library that will deal with calling into the correct scheduler for you
I have a method for calling the correct scheduler but i don't know how to use the 1.20.1 folia scheduler with 1.13 paper api.
you can't
which is literally my entire point here
you'd need to use methods that exist in 1.20
which, you once again have multiple options
[16:45]electroniccat[no-ping]: you use modules so that you can target both the old and new version in seperate modules
[16:45]electroniccat[no-ping]: you use reflection
[16:45]electroniccat[no-ping]: or you find a library that will deal with calling into the correct scheduler for you
okay, thanks.
is this diff intended ?
I think that's IDEA's beheaver, It flip classes into *.

usually you want to inline the package when working with patches on existing server files
Sry for that, I didn't noticed it. š«£
Now it should be more nice.
https://github.com/PaperMC/Folia/pull/220/commits/e11a709b335774e10fade0ade952a73d7dd577a7
what servers currently run folia in production
Notable one are 2b2t and donutSMP that I know of
Right right
bstat said there are many more but we donāt know who they are
So hyped for when upgrade to Folia
Been waiting for a proper solution to horizontally scaling SMP servers
Localized lag is probably biggest selling point yes
For years
And if it can withstand the abuse from 2b players, Iād say itās pretty damn stable 
Thatās what Iāve been saying
Whos the lead dev of Folia again?
Swag
Itās pretty much his solo project
Glad he was bothered to do it
Itās a great concept that others have tried before and not really been successful with
Like MultiPaper and Mammoth
This is vertical scaling, horizontal scaling would be multipaper
Well, I guess if you look at it in terms of CPU cores used you could kind of argue it's horizontal but that feels like an abuse of the term
does "Bukkit.getScheduler().runTaskAsynchronously" works on folia?
no
iirc no calls from the .getScheduler() work, its all wrapped on throw new
okay.
I wrote a Folia Scheduler utility for PacketEvents using reflections, as my plugins support 1.8.8-1.20.6 + Folia. You might want to take a look at that:
https://github.com/retrooper/packetevents/pull/709
does the Spark profiler word on Folia?
nope it is“nd
š«”
smh, spoonfeeding
š„
soft spoon ā„ļø
Anyone know a good join/leave message plugin that works on folia?
lol
you can probably get that written yourself in java in like 1h
if youre learning from scratch
You think so?
I'm pretty so-so at plugin coding
I also would need to implement PAPI
It works on previous versions
And the previous version works on the new mapping stuff with a small exception
plugin itself might work
Just hard code the spigot= true and the version
but the expansions
It'll not work itself by default already on 1.20.6
It used to work on the previous without the mapping stuff
it tries v1.20.3
there's na guarantee that papi expansions will adhere folia limitations
that's why papi doesn't add folia-supported
the plugin itself is just an api basically
the expansions do the work
I mean, generally you'd do that sorta thing in the manifest, otherwise you have to blindly init stuff to check
Heyyy I was wondering if anyone had any idea on how to fix this bug I keep on encountering whenever I build a project on Ubuntu. https://mclo.gs/k83w4CC It keeps on saying permission denied.
chmod +x gradlew
Huh it just says cannot find basically
cat: /home/test/.sdkman/var/platform: No such file or directory
find: ā/home/test/.sdkman/extā: No such file or directory
touch: cannot touch '/home/test/.sdkman/var/delay_upgrade': No such file or directory
-bash: /home/test/.sdkman/var/candidates: No such file or directory
test@Laptop:~$ chmod +x gradlew
chmod: cannot access 'gradlew': No such file or directory
test@Laptop:~$
Uh, I feel like your laptop is very broken
) :
make sure ur in the right directory
But I doubt gradlew exists in your home directory
It would be in the directory you cloned paper in to
you did the chmod in ~ not DeluxeMe us
also wrong channel
Also DeluxeMenus has a bug in their git repo, it should be storing metadata that marks that file as executable so it just is when you clone
Guessing they made the thing on Windows
oh ok, so I should try a different one aye?
what
Oh it started working again after I tried another project, strange.
I had to build them as a shadow jar in intellej
If players are close, they will be in same region. Please consult the Folia readme on how it works.
Good morning guys, is 1.20.6 branch compiling ok with you?
or do you need extra steps now
folia dev bundle for 1.20.6 is exist?
the branch is available
guess new gradle is needed..., nop I have the latest one
Task
generateMappings FAILED
Task :getPaperUpstreamData FAILED
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task '
generateMappings'.
A failure occurred while executing io.papermc.paperweight.tasks.GenerateMappings$GenerateMappingsAction
Unable to resolve class data binding for 'jdk/jfr/Event' which is listed as the super class for 'net/minecraft/util/profiling/jfr/event/WorldLoadFinishedEvent'
Itās the dev one
They where spread in a 10k region
I've read the readme
honestly that's really mostly not true unless you messed with the grid exp
100 players evenly spread through a 10000x10000 world would maybe each get their own region but only if they didn't move. Folia eagerly merges regions (it has to, the alternative is to crash) but is more reluctant to split them. If your players are regularly coming in range of each other the server might have just never thought splitting was worth it
10000x10000 and the players are in 2-6 clusters (like factions) would be more likely to actually get regions but I imagine at the start of a server everyone is wandering everywhere trying to mine and find spawners, villages, strongholds, etc
So you either need a bigger world or you need to hope people settle down soon and your plugins/rules encourage them to settle down in groups of players, not solo
how I can forceupgrade world to 1.20.6 by update chunks to 1.20.6?
We do not recommend force upgrading
because why?
Because running mass data mutations for practically 0 gain with 0 ability to properly vet the data is generally dumb
Chunks will update themselves. No need to force them.
They update fast enough (and not on the main/region thread anyway) so there is no point to doing it all up front, only downsides
and how can you update the data about spavn mobs? because in 1.20.5 added variations of wolves and armadillos, but with the server from 1.20.4, something can be done?
Hey i am running folia and we Play SMP an i noticed that my Iron farm and the Raid farm is not working
folia changes how mobs spawn, on top of the changes paper/spigot make
youll need to either design one that works on folia or find a design that already exists for folia
You mean if you update a 1.20.4 world? Passive mobs will spawn in like normal. But if you arenāt loading chunks you might have to āseedā them a bit by spawning some in if you want more
Same issue that Paper would have really
Both are working, probably a plugin is blocking them or the players may not have done it properly.
jup we testet it 2hours and a player missed 2 observers xD
sorry about that
https://paste.gg/p/anonymous/c7d7d08319764502b532d79d8160c0dc I got this error, why?
likely because you're using a dev version that has not been deemed to be ready for merging with master branch yet
I know, but I can reported this error?
is a every structure like village
not a clue, all I read is structure generator freaking out
hmm, I am read code now to
I'm think problem in...
because I got error with reason Feature placement
and catch error with Entity as Cat in structure Village
I'm looking at running a custom Folia server with my own code. Is there a hard cap for the amount of cores Folia can use?
I don't see anything about that in the code, so I guess no
Though, ofc, it'll only scale with as many regions you have
No there isn't
It'll stop scaling past a certain number due to locking overhead but there is no hard cap that I'm aware of
Use dual Threadripper PRO 7995WX, LOL
NUMA may behave funky. Not officially supported at the moment.
Is there an advancement level of the project about opening?
what?
Actually, Folia isn't available to download for everyone (we should build it ourself). But is there a date when it will be available to everyone ? Or a porcentage of what should be done before release
There's not a timeline for it
But I don't see much of a point for general availability tbh, as it's not a general purpose project
so it's mostly not a project to make a release, and will stay in this "state" for a long time as it's intended ?
I dunno ĀÆ_(ć)_/ĀÆ
But, like, vast majority of plugins haven't made a Folia compatible version, and there's still the higher hardware requirements
some of them (as highly download) already made some works? I would also say, I made one, and it breaks 2 times for my anticheat so yes maybe they broke again xd
Folia have auto saving world?
I did a test to find the RAM usage of folia is this data accurate.
Yes
Accurate, yeah, but useful, not really
What are you trying to test?
Thank you
I am testing for a RAM usage graph.
meaning
current memory usage is close to useless in java
because it fluctuates constantly as java creates objects and drops when gc runs
i know but i will give it 16GB swap
I wouldn't recommend that
Having swap isn't an issue per se, but you do have to be careful not to let your server ever go into swap
Not having swap at all is a way to do it
because swap is created out of your storage drive
and your storage drive is significantly slower than your memory
you don't want a process that has 50ms to do all of its work to spend 100ms+ to fetch data from swap partition
i know but it prevents OOM kills lag is better than crash
There seems to be a misunderstanding here
If you're having an OOM, throwing swap into it isn't really a fix, if you don't have the memory, not much you can do about that
Also, there are many different types of OOM, some not even not caused by not having enough RAM
you should not have oom kills in the first place
if you do you likely misconfigured your xmx
i configured xmx correctly and i will keep the swap as a fail safe
hey if I have 1 computer running ddr4 ram and another computer running ddr5 ram will folia still work?
I'm just wondering what the compatibility is, ty
yes
ty
you can run folia with ddr2 ram if you want but i don't recommend it.
how can i make non square worldborder?
You'll need a plugin for that
Easiest way would be to TP the player away if they reach it, and optionally have some particle indicator or something
If you want a real visible worldborder you'll have to calculate and emulate the bounds using packets for each player (with a square wb)
can you recommend a plugin?
As with many things in Folia you'd likely have to make one
There may be some out there, but no idea/wouldn't count on it
i can fork an open source plugin
.
Chunky border with support for folia stated on their Modrinth page
thanks
is there a way on folia to disable the chat ack requirement?
you mean chat report?
Hi, does it make sense to use Folia on a quad core server?
probably not
minimum recommended is 16
Folia is more for big server with lost of players spread along the map, and for that type of setup, you should haver "stronger" hardware
although even in smaller servers you have some advantages because you don't see so much the message that server is having delayed ticks. So ticks do run better
Hi, what I do wrong?
PS C:\Users\RitaSister\Desktop\ideaprojects\Folia> ./gradlew applyPatches
> Configure project :
paperweight-patcher v1.6.3 (running on 'Windows 11')
> Configure project :paper
paperweight-core v1.7.1 (running on 'Windows 11')
> Task :paper:patchCraftBukkit FAILED
> Task :getPaperUpstreamData FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':paper:patchCraftBukkit'.
> io.papermc.paperweight.PaperweightException: Command finished with 128 exit code: git -c commit.gpgsign=false -c core.safecrlf=false apply --ignore-whitespace --directory=src/main/java C:\Users\RitaSister\Desktop\ideaprojects\Folia\.gradle\caches\paperweight\upstreams\paper\.gradle\caches\paperweight\taskCache\patchCraftBukkitPatches.zip-122060495\net\minecraft\world\level\storage\loot\predicates\LootItemConditionRandomChanceWithLooting.patch
running on 'Windows 11'
likely a problem
try putting your folia project directly under C:\
oh, I remember about 'long' path
Think you are starting to have same problem as I
Hope you saved your previous built
how are you fix it?
Couldnt yet
Something changed with the projet that afected me or was my OS reinstall that made me loose some depedency
Folia build successfully on my Windows 11 pc, Iām not sure switching OS will solve build issue.
strange
PS C:\Users\RitaSister\Desktop\ideaprojects\Folia> powershell Get-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled"
LongPathsEnabled : 1
PSPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
PSChildName : FileSystem
PSDrive : HKLM
PSProvider : Microsoft.PowerShell.Core\Registry
with synced Folia, on dev branch for 1.20.6, sujestions accepted , plz plz š
you need a jdk
i have it
apparently whatever java it pointed at is missing parts of the jdk
openj9
I mean, the JDK does bundle a JRE
but, that's openj9, we generally don't support that
nicee
root@Mirai:/home/Folia# ./gradlew createMojmapBundlerJar --stacktrace
> Configure project :
paperweight-patcher v1.6.3 (running on 'Linux')
> Configure project :paper
paperweight-core v1.7.1 (running on 'Linux')
> Task :createMojmapBundlerJar FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':createMojmapBundlerJar'.
> List has more than one element.
* Try:
> 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.
what jdk version you have?
root@Mirai:/home/Folia# java --version
openjdk 21.0.3 2024-04-16 LTS
OpenJDK Runtime Environment Corretto-21.0.3.9.1 (build 21.0.3+9-LTS)
OpenJDK 64-Bit Server VM Corretto-21.0.3.9.1 (build 21.0.3+9-LTS, mixed mode, sharing)
I just clone repo, -> ./gradlew applyPatches, and then run ./gradlew createMojmapBundlerJar
hm
Execution failed for task ':createMojmapBundlerJar'.
> List has more than one element.
what this meaning?
what command were you running
createMojmapBundlerJar last this
you might need to ./gradlew clean
it is what i do when i start getting some strange errors
didn't help
I try it, but I get same error again
you are?
yep, let me see if it is the same
so?
ha-ha-ha
same as yours, also from clean get from repo
so this is not mine error
more then one element, no?
every step do it same?
yes-yes
š
same
so I will try ./gradlew createReobfBundlerJar for test
so same error
idk how I can build anyelse
so this no-one can't build, sadly
No one can build 1.20.6 anyway
who know generator of commands for signs?
Hi! Just wanted to ask if commandblocks are disabled because they dont work and i could not find anything in the documentation about this toppic
yes
Ok thx
Hi! I have another problem: I switched from a Nitrado Craftbuckit server to a self hosted folia server and I wanted to have the player data (inventories ect.) from the old server, but they aren't the same. Am I missing something?
folia is 100% compatible with the CB file layout
all one can guess is that you flipped the online mode setting or something
(either that or you set it up wrong)
do you have a blame command here? the one with the list where 3 first positions are "you"
-.-
don't -.- me, that's usually the cause

Hello guys, Is Docker necessary or unreasonable for Folia?
World api
is intel-core-i7-14700f a good enough cpu to benefit from folio?
nvm i see 16 cores required
It is not a hard requirement but there are little to no benchmark around this matter.
I imagine intels with their shitty ecores would be pretty bad for folia
since inevetably some regions would end up with their ticking threads on them
Itās all about the OS
My folia server is crashing a lot, some hs_err_pid file are generated but i don't know how to read the errors.
here are the latest logs, but there is more than 3 actually..
https://paste.denizenscript.com/View/122917
https://paste.denizenscript.com/View/122918
https://paste.denizenscript.com/View/122919
I did search some result in this discord and googled but still cannot help. I already finished a Ram test for the 128GB ddr4 ram, with 4 pass after 18hours of test, no error was found during the memtest.
Anyone can help me? What should i do next?
Content of Server Log Paste #122917: Unnamed Server Log Paste... pasted 2024/05/22 06:56:46 UTC-07:00, Paste length: 427802 characters across 4612 lines, Content: ## A fatal error has been detected by the Java Runtime Environment:
Content of Denizen Script Paste #122918: Unnamed Denizen Script Paste... pasted 2024/05/22 06:56:56 UTC-07:00, Paste length: 651862 characters across 8804 lines, Content: ## A fatal error has been detected by the Java Runtime Environment:
Content of Denizen Script Paste #122919: Unnamed Denizen Script Paste... pasted 2024/05/22 06:57:05 UTC-07:00, Paste length: 387702 characters across 4120 lines, Content: ## A fatal error has been detected by the Java Runtime Environment:
if no errors on memtest, then it's likely a corrupted file somewhere
the fact that it crashes in different spots really points towards faulty hardware
can still be a CPU issue
segmentation faults would generally either be a JVM bug or a hardware issue, as said, the fact that it's happening all over generally precludes it being a JVM bug, so that often falls into hardware
hardware can be a headache to diagnose as it can easily be related to fun edge cases and is generally out of scope of what can be aided with here which isn't just blind advice on stuff to go run to ssee if you pick something up
oh nošµāš«
its not required, but folia should be the only thing running on the machine, and containerizing something that you setup once makes little sense to me
Task
patchSpigotApi FAILED
Task :getPaperUpstreamData FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task '
patchSpigotApi'.
io.papermc.paperweight.PaperweightException: Failed to apply patches
can anyone help?
full log
with --debug or the error log?
the error log there should be more info above
Configure project :
paperweight-patcher v1.5.15 (running on 'Windows 10')
Configure project :paper
paperweight-core v1.5.15 (running on 'Windows 10')
Task
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"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'gust@DESKTOP-QK5DNTE.(none)')
*** Please review above details and finish the apply then
*** save the changes with ./gradlew rebuildPatches
Task
patchSpigotApi FAILED
Task :getPaperUpstreamData FAILED
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task '
patchSpigotApi'.
io.papermc.paperweight.PaperweightException: Failed to apply patches
- Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
read it, it tells you exactly what you need to do
ok
C:\Folia>.\gradlew rebuildPatches
Configure project :
paperweight-patcher v1.5.15 (running on 'Windows 10')
Task :rebuildApiPatches FAILED
FAILURE: Build failed with an exception.
-
What went wrong:
A problem was found with the configuration of task ':rebuildApiPatches' (type 'RebuildGitPatches').-
In plugin 'io.papermc.paperweight.patcher' type 'io.papermc.paperweight.tasks.RebuildGitPatches' property 'inputDir' specifies directory 'C:\Folia\Folia-API' which doesn't exist.
Reason: An input file was expected to be present but it doesn't exist.
Possible solutions:
- Make sure the directory exists before the task is called.
- Make sure that the task which produces the directory is declared as an input.
For more information, please refer to https://docs.gradle.org/8.7/userguide/validation_problems.html#input_file_does_not_exist in the Gradle documentation.
-
-
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.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 1s
1 actionable task: 1 executed
I have no idea why you're trying to run rebuildPatches when the patch process failed entirely
ignore that part, fix the issue above that and then apply the patches again
it literally tells you to do that
Can someone help me with installing folia?
read paper's readme
Where can i find it?
on paper's repository
Are datapacks in general disabled or only the /datapack command?
okay, thanks
functions don't work though
Can someone explain better to me what change from these two, bc i dont know what is gc "GC Settings: ???? But, GC settings do allocate concurrent threads, and you need to know exactly how many. This is typically through the -XX:ConcGCThreads=n flag. Do not confuse this flag with -XX:ParallelGCThreads=n, as parallel GC threads only run when the application is paused by GC and as such should not be taken into account."
Best is to not touch those if you donāt have deep understanding of what youāre doing
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.
I meet Accessing entity state off owning region's thread https://pastebin.com/Wfe5Vqxi Seems to happen when teleporting/dying causes the server to crash
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
How Folia basically works is there a very detailed wiki or someone who can tell me a few questions I want to learn:
- Traditional Minecraft Servers are Single Core and Single Core Perfonmasa What about Folia?
- How many cores does folia support and are these cores shared or do we assign different events to each max core? I mean 1st core player events (x,y,z) 2nd core world events 3rd core chunks...
i guess read the folia docs or readme on github
When I read a lot, there is a superficial expression, there is no depth.
The depth is on the code base itself
so legally you don't show in depth, just the basic parts and functions.
Do I have it right?
by the way, your profile is very cute. uwu
Folia can use multiple cores. In principle there is no lower or upper bound. The cores may be shared.
And finally, does ghz matter?
so for example ghz 2.1 on a 64 core processor
Unless you're comparing the exact same processor models, no.
I got it, thank you.
No problem
In the documentation it was written that datapack cannot be applied at the moment, will it come in new updates?
are you talking about the command, datapack functions or something else entirely?
Data packs work mostly, except of some features. You can just not use the datapack command.
error worker.org.gradle.process.internal.worker.GradleWorkerMain
Causāā par : java.lang.ClassNotFoundException: worker.org.gradle.process.internal.worker.GradleWorkerMain
full error
`BUILD FAILED in 5s
2 actionable tasks: 2 executed
C:\Users\JƩsus-Christ\Folia>gradlew.bat applyPatch
Configure project :
paperweight-patcher v1.5.15 (running on 'Windows 11')
Configure project :paper
paperweight-core v1.5.15 (running on 'Windows 11')
Could not write standard input to Gradle Worker Daemon 4.
java.io.IOException: Le canal de communication est sur le point dĪĆĆā¬tre fermāā
at java.base/java.io.FileOutputStream.writeBytes(Native Method)
at java.base/java.io.FileOutputStream.write(FileOutputStream.java:367)
at java.base/java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:125)
at java.base/java.io.BufferedOutputStream.implFlush(BufferedOutputStream.java:252)
at java.base/java.io.BufferedOutputStream.flush(BufferedOutputStream.java:240)
at org.gradle.process.internal.streams.ExecOutputHandleRunner.writeBuffer(ExecOutputHandleRunner.java:98)
at org.gradle.process.internal.streams.ExecOutputHandleRunner.forwardContent(ExecOutputHandleRunner.java:85)
at org.gradle.process.internal.streams.ExecOutputHandleRunner.run(ExecOutputHandleRunner.java:64)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:47)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1570)
Task
generateMappings FAILED
Erreur : impossible de trouver ou de charger la classe principale worker.org.gradle.process.internal.worker.GradleWorkerMain
Causāā par : java.lang.ClassNotFoundException: worker.org.gradle.process.internal.worker.GradleWorkerMain
Task :getPaperUpstreamData FAILED
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':paper:generateMappings'.
A failure occurred while executing io.papermc.paperweight.tasks.GenerateMappings$GenerateMappingsAction
Failed to run Gradle Worker Daemon
Process 'Gradle Worker Daemon 4' finished with non-zero exit value 1`
gradle bew up
stuff like that generally boils down to issues like folder names cosing issues with the locale, or stuff dying due to not enough memory
dual e5-2680 v4 for folia any good?
At the end of the day you're still running a minecraft server
each region represents a small server
a 12 year old CPU is generally going to bog down individual regions fast
Yea, 8 year old, google failed me and grab the v1
i mean im asking cuz i found a used server for approximately 250 of united states negotiable currency
Nobody here is generally going to vouche for decade old web server hardware
it will probably be fine assuming you can maintain reasonable spread, but, it's not hardware I'd really bank on long term
yeah im asking cuz i want to know if i should upgrade my r7 3800x to a r9 5950x or go with the server (a lot cheaper option)
r7 r9 are definitely better options
don't forget to factor in power cost
there's a reason those old machines are so cheap
actually, several
yes noraml datapack lootables etc
i understand thx <3
<@&748618676189528155>
(6655e446bb3b0c6d8b81024d) // @dire trout (@night_furysupreme / 930653904830607380) has been banned by @viral coral (215448923681062913)
Reason: ad spam
(6655e448bb3b0c6d8b81024e) // @dire trout (@night_furysupreme / 930653904830607380) has been banned by @jagged ether (451779815415218177)
Reason: steam scam
L
:<
Hello there,
my Plugin uses both Folia API and Bukkit API. I now noticed, that the PlayerRespawnEvent is not triggered, and found out, that the respawning players API is currently broken. Is there some sort of solution to outgo this problem?
~ Leo
could worlds be loaded before the server fully loads? Iām aware folia doesnāt support it during runtime
There are already libraries to bypass the loading check
you can also add the world as a datapack dimension, those work on folia
i workaround by run schedule task loop after on player death event if player alive then run thing you want to do and cancel but if player is not online then cancel you cloud do check only run this for folia
Thank you for your help š
hi, im trying to load paper on a pufferpanel. with these arguments:
${java} -Xmx${memory}M -jar folia.jar
I did tried with a bunch of different line without success... i did tried something like that also
${java} -Xms${memory}M -Xmx${memory}M -Dterminal.jline=false -Dterminal.ansi=true -Dfolia.playerconnection.keepalive=60 -Djline.terminal=jline.UnsupportedTerminal -Dlog4j2.formatMsgNoLookups=true -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=40 -XX:G1MaxNewSizePercent=50 -XX:G1HeapRegionSize=16M -XX:G1ReservePercent=15 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=20 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar folia.jar
But nothing worked. Do any of you have an idea how I could make the pufferpannel and folia to work together please? thanks
Launching Folia is no different from lauching Paper or any JAVA application. I dont see anything wrong on that script, it's best you ask support from pufferpannel @untold tulip
Thanks I do appreciate the feedback !
hahaha that's so funny
You could just make a non-cancellable PlayerRespawnEvent to mask that hack too
is folia 1.20.6 yet?
yes
yes
no, we are lying to you
Letās not be needlessly snarky in help channels
You should probably try to replace any ${var} by the actual value.
java -jar folia.jar should work as long as your folia jar have been renamed to folia.jar. Add your arguments back after testing it.
Itās even on main branch now.
How can I fix the server freezing when loading a large amount of stuff in chests? I have folia 1.20.6 and the server hangs completely
i love your username
approximately how much players could I have on a server with a 96 core server?
If we are talking about zero plugins
there are other factors than just core count
This is the same question as how many people can I fit in this car but without clarify if the people are American or not. You really cant get an answer.
Fair enough
Also is there a recommended certain amount of ram which I should need per a certain number of players, for example per 10 players would I need 2gb or smthing
For a vanilla server
Not really but you can generally get an idea from a Spark report.
Alr thanks
in folia do event handlers in a global thread or reagion thread?
I would assume it's per event basis
regions are not exposed in the api
I think someone already said here that https://jd.papermc.io/paper/1.20.6/org/bukkit/Bukkit.html#getTPS() returns the tps of the region it's executed in, so try to run this in player's entity scheduler
that's not the case
<@&748618676189528155>
(665daa22bb3b0c6d8b81026c) // @brave sapphire (@pog5 / 1063801507515998208) has been banned by @livid crag (177150983258767360)
Reason: compromised account
We perfer members to not share not vetting jar privately. Follow the instruction on paper repo to make one yourself
Hi, I came across the fact that the server sees 8 or 64 processor threads out of 72 threads using x2 CPU intel Xeon E5 2686 v4 running windows server 2022
We just get that info from the JVM
What?
What?
Anyone knows any Folia plugin to turn off explosions damage to the terrain?
I need some help with the compilation. I cloned the resporitroy to C:\Users\Henry-New-Account\Documents\folia>git clone https://github.com/PaperMC/Folia.git at the folia folder. Then, I ran gradlew.bat applyPatches but later saw this error 59 seconds in: > Configure project :
paperweight-patcher v1.7.1 (running on 'Windows 11')
Task :clonePaperRepo FAILED
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':clonePaperRepo'.
io.papermc.paperweight.PaperweightException: Command finished with 254 exit code: git -c commit.gpgsign=false -c core.safecrlf=false submodule update --init --recursive
- 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.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 59s
1 actionable task: 1 executed
follow this steps
Does via version translate folia 1.20.4 NMS packets to 1.20.6?
I want to know if I could use via version to 1.20.6 with a folia compatible version of this plugin: https://www.spigotmc.org/resources/conxeptworks-legacy-model-engine-1-16-5-1-20-4.79477/
ViaVersion wonāt make older plugins work on newer versions. Just let older or newer clients connect.
Hello, I've been setting up servers using Paper since 2020. I'm now planning to build a SkyBlock server that will run on low to mid-range hardware (maximum 4 cores), so it won't be very powerful. However, the plan is to upgrade to more powerful hardware once the player count increases. I understand that Folia is best suited for powerful hardware and high player counts, but I'm wondering if there are any drawbacks to running Folia on less powerful hardware. Should I start with Folia from the beginning (and would it negatively impact the server), or should I stick with Paper and transition to Folia later on? Thanks.
I really want to give Folia a shot but do not have the grounds for it lol
On a server with less cores it's just Paper but slower, harder to program for, and no plugin ecosystem
If you know you'll be scaling up later it won't hurt that much on the performance side vs Paper and at least you'll ensure all the plugins you're writing work on Folia for later
Alright thanks š
Note how I said all the plugins you'll be writing
If you aren't writing your own plugins (or at least have the ability to do so) odds are you won't find what you need for running a Folia server that is something other than anarchy survival
Yeah seems like there is no public SkyBlock plugin for it. Nvm :\
So commands, and any plugins won't work on newer clients
?
I think you wan Via support to hear the ins and outs of how ViaVersion/etc works.
what should I do about this problem
it tells you what to do
alright, but how do i get core for version 1.20.1
Checkout and build it
If I understood correctly, then I needed to do this?
How can I choose 1.20.1 here if this version is not there?
You'll need to find the commit where it was updated
this version is more popular then other 1.20.x
lol
This is factually not true
By the way, you'll need to patch a bunch of exploits manually, which will naturally involve programming and more git knowledge than what you're trying to do rn
maybe so, but Iām more used to working on it
Or people can just walk in your server and keep crashing it if they want, as 1.20.1 is outdated and has those
viaversion doesn't work?
I think they have Folia support
But by making your server 1.20.1, it will have all the bugs in that version, Via doesn't fix that
Then Iāll make the server on 1.20.4 and add viaversion. Thanks very much for help
/gamerule spectatorsGenerateChunks false doesnt work in folia
doesn't work on Paper either and does the opposite of what it says in vanilla (stops chunk loading, not generating)
so this is kinda up to Mojang to fix that first tbh
Hi, I'm using Bukkit.broadcast(Component.text(message, TextColor.color(255, 94, 62))); - I wanted to send a broadcast message to all users, but unfortunately I cannot see the message on the client. It is visible on server console though. Is it a folia bug or am I doing sth wrong? xd
uhh. Do you maybe not have the bukkit.broadcast permission?
Oh, yeah, I'm not. That would make sense. Thanks a lot
i opened a folia hardcore server and a player randomly died because of fall damage while walking how?
Hm, but that's interesting. I have no permission setup yet, but from this image it should be by default. And the broadcast method sends message to the Users channel. (Image taken from paper, but I suspect, that it should be applicable for Folia too)
have you negated the * permission
so thats why chunks always freak out when i turn that on in spectator mode 
No, I have a clear setup, without plugins exept the one for sending this message
I think user broadcasts are different from server ones
You need the top permission
anyone know plugin for check cheaters? (freeze)?
What do you mean with freeze?
plugin for check if player can use cheats
I did something, not perfet, to check some types of hacks, but nothing related with freeze, thats why i was asking
Why I cannot use Bukkit.getGlobalRegionScheduler()
you can, but only for the right things. I have been struggling with it as well š
What is that mean
<repositories>
<repository>
<id>sonatype</id>
<url>https://oss.sonatype.org/content/groups/public/</url>
</repository>
<repository>
<id>spigotmc-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
<repository>
<id>papermc</id>
<url>https://repo.papermc.io/repository/maven-public/</url>
</repository>
<repository>
<id>bungeecord-repo</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.20.1-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>dev.folia</groupId>
<artifactId>folia-api</artifactId>
<version>1.20.1-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.velocitypowered</groupId>
<artifactId>velocity-api</artifactId>
<version>3.2.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-api</artifactId>
<version>1.20-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.spongepowered</groupId>
<artifactId>configurate-yaml</artifactId>
<version>4.1.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>5.1.2</version>
<scope>compile</scope>
</dependency>
</dependencies>
Is this the right importation?
I have this one as well, not sure if it is about it
<repository>
<id>papermc-repo</id>
<url>https://papermc.io/repo/repository/maven-public/</url>
</repository>
might be the old one
you have folia on your libraries, right?
Maven: dev.folia.api
I think yes
not sure it it fits you, but have a look at coolprotection, turn all configs Off, except hackProtection and speedProtection
I had that problem with a project, and needed to do something really dumb
go to that folder get the first jar path and introduce it again on your library directly as jar file, not as Maven
https://mclo.gs/OfPmTGr i cant join to my folia server
you have a plugin teleporting a player during the join event
it should schedule that for a tick later probably
when i put 2 tick delay it worked thanks.
anyone got the latest build i dont got a pc atm cant use intelij
no
ā ļø 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.
okay then i guess my server will just have to remain down cause i cant compile stuff and folia to go is broken
If I want to run an SMP Folia server for several hundred players. Should I choose a dedicated AMD EPYC GENOA 9554 (64c/128t 3,1 GHz) CPU or a dedicated AMD EPYC GENOA 9754 (256c/512t 2,25 GHz) CPU? It is a temporary event where everyone will pay, which is why the price aspect between the two CPUs does not matter and only performance is important.
First CPU listed will be more ideal as core count after certain amount doesnāt add much to the table while the higher boost clock will benefit you.
Is that something like a skyblock where there'll be perfect spread?
Yeah, for a temporary event even an anarchy server is likely to have people grouped up quite a bit so you might not get many regions, if any at all
If it's not skyblock I'd be worried and aim for something with less cores but like 7Ghz boost clock
how can i download the latest 1.20.4 folia source code?
You have to build it from source. But you should be using 1.20.6, as Folia is experimental and has ongoing changes and fixes
i asked how can i install SOURCE CODE
You clone it from git
out of memory
if you dont have a machine capable of building folia, you cannot possbly have a machine capable of running folia
not sure where you got 256c/512t from? The epyc 9754 has 128 cores and 256 threads (unless you mean a dual socket system)
but then again you compared it to a single 9554
256 cores is way, way, way high
turin (the next epyc gen) was announced to go up to 192 cores with rumored 256c support because of the die layout
If I create a map of 500x500 blocks via /worldborder, will it be automatically divided into regions with threads?
or by what logic are regions divided into folia?
No, if two players are less than ~900 blocks apart, they will always be in the same region
oh thank for info
how well would folia work if the worldborder is 35k blocks and players are very very spaced out but rarely there are massive groups of people in one region?
the regions with the massive groups of people would perform the same as Paper would in that scenario, potentially slightly worse
Hello, can folia be Used to Run a Server? Or are there any serious issues that still remain?
it is used by several large servers and seems reasonably stable.
Just be aware its not a drop-in Paper replacement. All plugins need to specfically support it
Thanks @daring nimbus, I thought so seeing the high Player counts, but wasn't Sure because the Posts I read were abit older. Sounds great. i really Love MMO.
Aswell found the supported Plugins list, Not factions yet, but Jobs, towny and co
I personally would only really recommend Folia if you are a developer or have developers who are working for your server, simply due to plugin compatibility. And its really only useful for large projects, and at a larger scale you should have devs anyways
Yeah, I might want to Check into it myself. Can't be that hard. i do some Python, and alot of PHP.
I was aiming for 512 Slots, the Gigabit Ethernet will be the Limit I guess, thought about trying Out folia and build a few small cities spaced apart, since towny is supported
i Could Look into Something like Multi world aswell. Sharing the Database for some Things. I don't know enough yet to decide š thanks anyway
I've Ran other Games with more than 1000 Players in the past. The biggest I have worked on Had 3500+ Peak š It can be so much fun with many people, thanks to the folia Team š
Does anyone know how to make a String Farm in Folia 1.20.6?
It will work exactly the same as on Paper given you have option enabled
Having problems with TNT Duping, Bedrock Breaking or Sand Duping Vanilla Exploits? See: https://docs.papermc.io/paper/misc/paper-bug-fixes for information.
good evening and do you have a solution so that the spigot and bukkit plugins can work with folia?
No
Plugins need to be adopted to take advantage of folia, otherwise you just end up wrapping everything in global locks and defeating a lot of the entire point of folia
I saw on the folia page that there were some compatible plugins like essentials etc. I only tested one and there is only 1 that works
There was an unofficial list somewhere
but, if you're not a dev or have access to one, using folia is generally going to put you in for a hard time
I saw on the page with the description and it's huge what you can do maybe with the future the spigot and bukkit plugins will be compatible little by little a bit like sponge and velocity after that it takes time time
No
too bad because a lot of minecraft servers could use folia to finally have something that we've been waiting for for a very long time
as said, the issue is that if you want bukkit/spigot plugins to work you need to make everything single threaded in terms of how it's exposed to plugins, and that defeats the entire point of folia
yes sometimes you have to make sacrifices after I can be wrong the plugin developers will ensure that their plugins are compatible with time after I can be wrong in any case it must be quite complicated
that they even had a version of their plugins just with the folia api and nothing else
That's not a sacrifice, that's a violation of the entire point of folia
in any case hats off for your work eager to see the continuation of folia's adventure for the new versions of minecraft
Is there any way to ensure that the redstone machine will not break when folia is restarted?
it should not break more than what it is on paper or even Vanilla. There is a reason some farm has switches so the block state is saved at its intended one.
If you have an issue that ONLY break on Folia, please state so
If the server restarts while the World Eater is running, the machine can break?
yes even in Vanilla -.-
.w. ok
Will the regions adjust to Redstone buildings? i suppose the Problems I have read about are related to switching the Region? And the Region doesn't know there is Redstone somewhere and extend?
If redstone causes chunk loading that will extend the region, if it causes enough to get two regions close to each other they'd merge just like if players caused it
That Sounds great, thanks @finite hinge
Still quiet hard to think deeper into it. It Sounds really great to be dynamic and optimize itself. But aswell Dangerous If two larger regions would merge. And I think about Something Like "fixed regions" aswell. Imagine a City with hardly anything that causes lag or high CPU usage. It would be great to Not merge with the surroundings aswell somehow.
It will Take some time exploring the Code I guess. I suppose it Could aswell Split a Region that is too large into multiple regions, but it is Not that easy with the Redstone anf everything.
Fixed region scaling has been attempted many times.
If the regions didn't merge the whole system would fall apart
That helps alot actually. I have this Feeling it can only be better than a single thread after all anyway š
if its a temporary event, id definitely try to get a free trial server from datapacket
u could get a server for like a month with 128 cores
or just not abuse trials, pretty shit thing to do or suggest
its not abusing free trials, its called a trial for a reason
you're literally suggesting to use a trial for a temporary event
okay, so if someone wants to watch a netflix movie and i suggest they get a free trial, would that be abusing the trial?
yes
a trial is meant for testing a service to then sign a contract and start a larger commitment with them if it works properly
it's pretty scummy to just abuse it for a single temporary one off event and never use them after
honestly i would only think its pretty scummy if it was for a small business
not necessarily
that is literally what a trial is meant to be for
i don't know how you can define another definition for it
it's just offering a demo experience to a client to then lure them into a longer commitment after they're happy
literally the same energy as buying a $5000 computer, using it for some one-off lan party event and then sending it back to amazon, it's scummy behaviour, don't do it
i mean yeah youre right but you gotta remember that most consumers dont think like that
yeah but theres a difference between a service and a product
those servers at datapacket are not being used and thus a free trial wouldn't impact their costs by much
whereas if i were to return a 5000usd computer, they wouldn't be able to sell it as brand new anymore and would lose out on quite a lot of money
except they still need to be built, configured, installed by hand as datapacket generally doesn't keep some large amount of servers running at idle ready to go, they're not like OVH or anything not to mention they end up having to pay for your network usage etc.
they're arguably still a pretty small company in the grand scheme of things
it's a scummy thing to do
from having talked to people at datapacket, the servers are already built and racked but they just don't have any power going into them. yeah tbf they would pay for the network usage but honestly for a minecraft server that would be close to nothing
yeah but theyre still not a small company in general, but i get what youre saying
not too expensive
depends on what you define as expensive
what difference does that make?
a minecraft server can easily use terabytes of data, i wouldn't exactly say close to nothing
the point is, it's fucking stupid, don't abuse trials
literally use a baremetal cloud platform and rent servers on an hourly basis for an event
instead of having to abuse trials from a server company
equinix metal exists and you could probably host an event for like $20
yeah ofc but terabytes of data is honestly pretty cheap
i get what you mean tho, it can be pretty scummy
they charge per hour?
yes, plenty of baremetal platforms that charge per hour
vultr is another example
even OVH has baremetal per hour nowadays
even hetzner does now
hivelocity too
vultr youd be paying about 5000 dollars for like 64 cores for a few days
right but what temporary event needs 64 cores for a few days
idk thats what the guy wanted
if you can get a 1000 players you can probably monetize it to get atleast $500 out of it
Should I choose a dedicated AMD EPYC GENOA 9554 (64c/128t 3,1 GHz) CPU or a dedicated AMD EPYC GENOA 9754 (256c/512t 2,25 GHz) CPU?
thats what the guy said
running an event for a day on a cpu like that would still probably not cost you more than $50
yeah fair enough
Since Matrix Just ignores bedrock, is there any other anticheat available for folia that really Supports bedrock edition?
Yeah, I Just wondered, all the Plugins I found are Not updated for some time and Not available on folia It seems
Isn't that obvious? More regions will generally Work better but a single big Region will Not Run the very best on both š
bedrock works a lot different to java edition, and so very few plugins care to basically reverse the bedrock clients behavior in order to make an anticheat for it that actually cares its movement stuff
I personally tried to Join from bedrock edition, and needed to Switch to Java, would be nice If everyone can Join easily, but Not at that price I guess, thanks š
i didnt ask that question
i was quoting someone else
I See, I'd try the one with Higher clock Speed If I didn't need that many Threads, and If I need them I need them š sorry If I didn't get it right
the thread count is wrong anyways
the epyc 9754 has half the cores that were stated there
genoa maxes out at 128c, but turin has 192 announced with a rumored 256 coming
Maybe dual Machine, Intel Supports 8 CPUs even š can go for 480 cores ā¤ļø
I will start with 16 cores, 4.2 GHz Base to 5.7 GHz, 128 GB memory, enough for me alone to Play around with folia for some time I guess, can recommend this š
I think it's not recommended just because no one knows how well it'll do
It could be fine, it could seriously wreck performance, you probably want fewer faster cores anyway so don't need to get in to NUMA territory when you can just get a better single socket CPU
Like don't try to NUMA two 32 core CPUs, get a 64 core CPU if you think you actually need 64 cores
Anything beyond 64 cores I'd say you most likely don't need, unless you're planning to run multiple Folia servers on the same machine
i wanna see 10k players on a single folia instance one day š
There is a limit to how much Folia can scale
I imagine 2x of the yet-unreleased 256c EPYC turin chips might be able to get close
10k is probably not achievable
Folia scaling would probably fall off pretty hard before you got to 256 cores, let alone 512
I bet between 256 cores and 512 cores you'd get zero performance improvement, possibly it'd even reduce the performance
I thought so, there is some Overhead
Locking isn't free, the more regions you have and the more cores you have to run those regions in parallel the more locking overhead you get
I mean, I don't think anything in the server needs to synchronize with every region so the overhead wouldn't scale that obviously but there is going to be a limit
if you want to cater to NUMA you have to design your memory access for it
i.e. tying allocations to nodes where viable
Is there any risk with changing / decreasing the amount of regions?
You don't really get a say in how many regions you have
Oh, ic, thanks @finite hinge I thought about Problems with that.
I have pretty specific Plans for my folia Stress Test, Not with Players, that Data is easily available, but other stuff. My newest Idea is to build a City around an Oasis with a regenerating (Farm) world using chunky or world edit or Something Like that. Something Like a new biome live. But I am still pretty lost about what will Happen to Players and what folia will do If I start chunky on a larger area. š
chunky is fine
the big issue is that you can't have regions overlapping, and so they'll join
and if you don't have enough player spread, you'll be at best, no better off than using paper
Yeah, I still try to have a quiet big map and many cities and everything, will See what I can do after all.
I Just liked the Idea. Theres so much Border area to Join the fresh middle and the surroundings, building a City around an Oasis. š Anyway
Safe space š friendly Server you know
I know it might Sound stupid and there are very different approaches than folia, but they May say i am a dreamer š gn8
What's the recommend CPU for Folia in the Ryzen stack?
Taking this over from #folia-dev
Got this recommended to me: https://github.com/PaperMC/Folia#readme
But I want to hear some opinions or experiences
Probably a 7950x
Folia moment
Hi guys, can anyone tell me if they have a good AC against baritone(especially anti-mining or kill aura).
At the moment i Have LightAntiCheat, and it's working fine against some "cheat / abuse" but i am looking for something to combat baritone. I had found a good one recommanded but after contacting the team the folia support is not coming any time soon.
Any suggestion as an AntiCheat for folia please? Thanks!
I would recommend Grim as well. Itās the anti-cheat 2b is using (they probably modified it to their own need)
'
Great guys, I do appreciate it!
I originally mentioned Matrix and got shunned by @solid bison about it. Came back here and deleted my post and posted that again
the biggest negative of using Grim is how widely used it is, 2b2t users spend hours trying to find overpowered exploits and they are very popular instantly
then it takes a bit for it to be patched
I personally see that as a good thing... rather than using some hidden anti-cheat that despreately trying to hide itself from users. but I can see your point
both good and bad yeah
incorrect 2b uses non forked grim they just have a second plugin for there added ac shit
cuz it would be pain to update
grim on top!!!!
decent movment detection
great reatch decection
theres some things that kinda meh
I reccomend using matrix for alerts only turn off any its kicking features or movment stopping shit
just use 2 acs
just have one on alert only
meteor is barely designed to bypass any ac
only the plugins are
and ofc the payed clients but barly anyone logs on random servers to troll with payed
can someone explain to me, why folia is recommended with 16 cores?
also, why isnt a minecraft server async by default?
concurrency is hard, especially when dealing with large blobs of storage, i.e. a world
the recommendation is a mixture of "that's what we tested with", and a "this is how much money you should probably have"
oh, okay, so theres no point of running it on an old cpu
(You also have to remember that the game released at a time when dual cores where pretty much the best you'd expect in your average desktop)
it can work on older CPUs, especially if you have the thread counts
but, most plugins are not folia compatible and will never be folia compatible
so what does folia run on multithreading, that paper doesnt? chunk system and the server ticks? because as i see, netty io uses multithreading in normal paper aswell
it splits up ticking of the world into regions and ticks those in parallel
theres a bunch of stuff which is async in paper and even vanilla, but the business logic like pretty much every other single game is ran in a tick loop on one thread
ok, thanks
Can confirm, I used a 24 core / 48 thread dual CPU server and it went pretty flawlessly. It was an older server in terms of single core and multi core performance
It only pins to one cou so sadly not 48 core 96 thread
How good was the scaling?
is folia aware of how many cores there are available or am i supposed to tell it how many?
It generally figures it out for regions at least, I think you want to tweak some of the others based on player counts and such
iirc there are tuning knobs for chunk IO threads, chunk generation threads, netty threads, and region threads
And of course GC threads but that's a JVM thing
Start off with just whatever it figures out for that stuff but check the readme for a good rule of thumb for at least how many netty threads you'll want
thank you
What is folia
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.
@burnt wyvern you can read about it there ^
Folia 1.20.6 broken?
Previously, I tested on 1.20.1, I could fit about 300-400 bots in the region at 20 tps, now I can barely handle 150 people
VDS is the same, no plugins.
Looks like all your bots are in same region. That's not going to take advantage of Folia at all.
Also bots are not a very effective way of benchmark for anything.
This didn't happen before
On 1.20.1 I did the same thing and there were 300-400 bots in one region and TPS = 20.
Now Iām doing the same thing on 1.20.6 and TPS is already dropping with 150-200 bots in one region
There is some kind of problem in Folia, Iām telling you for sure. This didn't happen before.
Noting that VPSes/VDSes have essentially random performance
Note that a single region typically wonāt outperform a normal paper server, so depending on what the bots are doing, thatās pretty much expected
Also you can always throw a profiler at it and see if you can tell what changed
not necessarily
depends on the host
some actually don't oversell and so it's generally more reliable
but, as said, the only thing to know what's going on there is to grab a sampler out
yeah that would apply to a VPS
but not a VDS as all of the resources are dedicated to you and only you, so if you have 1 core then nobody else would have access to that core, only you.
VDS is interchangably used with VPS these days by many hosts
and you're rarely actually pinned to a core on a VDS, it's just dedicated in a sense that they promise to not oversell
it used to basically just mean KVM vs openvz
Has anyone been running folia on a small survival server with less than 20 players? How has it been with the public plugins?
It doesn't work with the vast majority of public plugins and unless your 20 players build all their stuff 1000+ blocks from each other you'll end up with a single region
Got it, sticking with paper š
Number of regions - this means how many regions, how many processor cores do I need to work well?
And what does Utilization mean?
You have 39 regions which sounds pretty good, you don't really get a say in this one since it has to follow the rules for regions so the server stays alive. Utilization shows 73% of one CPU core maxed out out of a possible maximum of 2 CPU cores for ticking regions. This one you can change but the server automatically allocates this to some extent too so if you only got 2 threads for ticking regions that's an indication your CPU doesn't have enough cores
when will version 1.21 be released for folia
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.
paper doesnāt even have stable builds
or iirc even have all the big patches merged
folia's recommended specifications are 16 cores, what is the minimum required number of cores?
1
*uses 0.5*
Is folia available for 1.20.5/6
ya
<@&748618676189528155> Crypto miner in that github link
(66723b49bb3b0c6d8b8102da) // @digital fable (@falkke / 222025144141348865) has been banned by @visual kettle (245958554899578880)
Reason: Quick-banned for sending a message in #folia-help
how can i download folia?
if you have to ask, then you probably shouldn't
ā ļø 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 follow the directions in the paper repo for how to do so
do you need such powerful hardware to run folia?
yes
For folia regions people need to be split out around 1500 blocks or so I think. What happens if you have a bunch of people in small clusters sort of spread out / chained together.
For example
Player A, is 1000 blocks from player B, I assume they would end up in the same region right? Then player is C is 1000 blocks from player B, so 2000 blocks from player A, will they all end up on the same region? If so will groups of players just chain together and form one region?
Thanks
yes
Is there any way to prevent that? Or will regions always merge if at least some players are within the threshold? Like would it just expand infinitely as long as players are within 1.5k or whatever. Even if at the end player A and Z are 100k apart?
They'll merge auotmatically if players get too close
Part of why you want a lot of cores if you have a lot of players, and why Folia isn't always the best choice for every game mode.
But no, there's no way to prevent it.
If they get far enough apart it should split up the regions, but at what block distance that happens can vary.
Its a pretty consistent like 1.5-2k for regions to merge right? Then more dynamic for regions spliting?
Merging can vary also, but the minimum is generally about 1500 blocks.
You shouldn't be betting on a hard block limit for anything.
Gotcha thanks!
Change your view distance
You can tune in the values to be almost the overlap of view distances.
Ofc, you could change how regions merge too, customizing the logic is always welcome too ofc
Threads iirc
after loading world I get an error, as I understand it, the world is damaged, how can I restore it?
im not have backups
then you're screwed
maybe you can look at one of the other worlds level.dat files to get the seed and plop it into server.properties and pray you don't bust the world too hard, assuming you're looking to generate new chunks
otherwise, all you can do is delete level.dat, it will generate a new seed and create ugly chunk borders, etc
I donāt feel sorry for this world, but if something like this happened in the future I could fix it
Best time to make backup was yesterday, the next best time is today.
yes, but people have worlds of 100-200 GB, thereās not enough memory to save everything
that's a shit excuse to not create backups
