#folia-help
1 messages · Page 12 of 1
probably because something is wrong
C:\Users\Clxud\Folia\Folia-Server\src\main\java\org\bukkit\craftbukkit\util\CraftMagicNumbers.java:377: error: cannot find symbol
if (!pdf.isFoliaSupported()) {
I mean, that would suggest that you didn't have the patche appied properly or something
what commands did you do
rerun applyPatches?
literally it should just be
.\gradlew.bat applypatches and then .\gradlew.bat createMojmapPaperclipJar
like, some folia specific method is missing, so all one can assume is that they failed for some reason
still the same thing
hold on im gonna reclone the repo and try a fresh build
gradles unpredictability never fails to surprise me
https://img.clxud.dev/5WwymffHQX2u
when i build it there is a bunch of errors. is there a guide anywhere on how to do so?
what commands did you do
Like a reloader?
/restart
I just need to turn the server on and off on a schedule
I think you misunderstood what they meant lol
In general, is there any point in restarting the server or can I run it once and forget?
Hahhaha my bad
auto restarting was pretty much only ever a thing due to older versions of java using garbage collectors which had some big issues
leaking plugins
and a few small leaks in the server
for the most part, auto restarts are a waste of everybodies time
just make your start script start the server again once stopped, and then use /stop
Bold to assume plugin devs have any consideration for memory
Thank you for the explanation
Also not a plugin we recommend using
.\gradlew.bat applypatches and then .\gradlew.bat createMojmapPaperclipJar
This is the error:
`
Task
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
--BUILD_DIRECTORY--\Folia.gradle\caches\paperweight\upstreams\paper.gradle\caches\paperweight\taskCache\patchCraftBukkitPatches.zip-1791796128\net\minecraft\world\level\storage\loot\predicates\LootItemConditionRandomChanceWithLooting.patch`I am going to try installing the latest version of Java
can i get old version build?
you can checkout a specific commit and then build that
but, why would you even do that?
if you're running on windows then you're probably hitting the path length limit
ohh ok. Il move it to another place then. Thanks
clone folia directly into C: and try again
Ok Thanks!
YESS!!! THANK YOU SO MUCH!
It worked!
./gradlew.bat applypatches has NOT given any errors but is currently 82% done at 41 minutes in
is that normal?
at what part
also 41 minutes is way too much
Welcome to Windows
Building using Linux or Windows' WSL will generally be way faster
or well, excluding the directory from Windows Defender should help too
always does.
I have built it and is this the server? : folia-server-1.20.1-R0.1-SNAPSHOT-mojang-mapped.jar
createReobfBundlerJar
whatever that spit out
folia-server-1.20.1-R0.1-SNAPSHOT-reobf.jar?
yes
Linux only 1m
Looks like your seed was changed
did you generate a new world or use a world that you already had?
..?
asyncschedule?
what about it
It was a assumption for the person above
Hello, I did not find the necessary information about per-player-mob-spawns in the Paper config, it is not there by default when creating the Folia server, does this mean that it is not supported?
ok, I got it, because when playing, it was noticed that the spawn rate of mobs began to seem noticeably smaller compared to paper
thanks for the answer
If you can tell the difference you probably either have other problems or too many people in a region
Someone told me “ Don't try to make it safe for stupid, just make it fail for stupid” and that “It's the current philosophy of Folia. Catch stupidity but don't try to fix it” is this all true and does folia even have a philosophy?
It is 3:12 so maybe I should sleep
But I’m curious
Knowledge of what you're doing is expected
Catching calls from invalid threads is just a fail-fast precaution, everyone makes mistakes
even Spigot does that
It is the one and only true and beautiful philosophy of the ether that incorrect code should fail.
That it should fail sooner, rather than later, is a natural application of the principle; that preconditions be applied explicitly without dependence on circumstance, another.
I started a Folia server and joined. That was the world it generated
whic plugins currently supports folia is there a any list?
https://modrinth.com/plugins?g=categories:'folia'
https://hangar.papermc.io/?page=0&tag=SUPPORTS_FOLIA
most platform has a sorter
ty
does skript supports folia?
not sure but i think they added it in the latest beta
nvm thats was on matrix, skript doesnt support foila as it seems but you can try it
yea skript doesnt support yet
itemsadder also
skript is okey but I want itemsadderrrr
items adder is op
Hi all. I found a duplicate issue on the Folia GitHub https://github.com/PaperMC/Folia/issues/19 that wasn't resolved there. Someone who goes by the username 'lynxplay' on GitHub claimed that the person of who submitted the issue, was hitting the path limit on Windows. However, I am having the same problem but my machine isn't hitting the windows path limit.
try building it in wsl or directly on the C: drive
Okay I will relocate the folder and try again
I relocated to the root directory of the C drive on Windows and it appears to have been resolved.
"D:\GrindMC\PracticeArena\Folia" was the original location of the clone
then you were hitting the limit
That is outrageous honestly.
I had previously tried it in just "D:\GrindMC\Folia"
And also failed there too
Thank you for the assistance.
Trillion dollar company can't get anything right lol
sums it about up - use linux
Can't. I play certain games that cannot be made to work on Linux.
Unfortunately
use WSL
I prefer to not dual boot to be honest.
okay well thats your choice
Yeah :/
but its a possibility that would fix your dev environment
you're just not considering it
wsl works fine
If it gets on my nerve enough, I'll switch.
well that's your choice
yep
WSL was good
But had to cut it as I was getting low on storage space.
I have a second drive now so I could reinstall a WSL distribution again
What would happen if a website offered a download link to a folia jar which is from the paper api?
is that allowed or-
nothing can be done, but you really shouldn't advertise it
okay thank you
⚠️ 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.
this biacally
Why the TPS vary a lot and fall down to 16-17 while the MSPT say very low??
Except the chunk gen what would be the reason
Folia doesn't have tps catchup so the numbers will look a bit different. This looks very much fine
(and there are not a lot of mob)
Oh ok, also if you have 12 threads instead of 32, why folia isn't able to multi-thread like it normally does on my 64thread CPU? Meaning if you do something very intensive like blowing up 10 000 Minecraft TNT at spawn, everyone will lag even if you are millions blocks far away
Have a look at the readme.md for how you can configure the threads it uses for different things
Sounds mostly like you’re bogging down the entire server. Not good enough hardware maybe?
Most probably bad hard hardware yes, i7 9750H at 4.5GHz (6cores,12 threads)
yeah thats below the minimum recommended for Folia by a large margin
Oh yeah that’s very slow hardware for Folia.
In that config better use something like pufferfish or gale paper fork I would guess ?
We're gonna recommend Paper :^)
Would recommend Paper, yes.
hi guys, im getting the following errors when im trying to build folia
Task
applyServerPatches FAILED
Task :getPaperUpstreamData FAILEDcan anyone help me?
show full log
i did that many times
scroll up
that's all i have on cmd
after cloning and applying patches thats what i get
git clone https://github.com/PaperMC/Folia.git
gradlew applypatches
do it directly on your C drive
ok ill try now
or use WSL
yes
what's actually needed on the os of the VPS?
git
gradlew, git and java?
bascially
⚠️ 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.
Starting a Gradle Daemon (subsequent builds will be faster)
Task :getPaperUpstreamData
Invalid Java installation found at '/usr/lib/jvm/openjdk-17' (Common Linux Locations). It will be re-checked in the next build. This might have performance impact if it keeps failing. Run the 'javaToolchains' task for more details.
Invalid Java installation found at '/usr/lib/jvm/openjdk-11' (Common Linux Locations). It will be re-checked in the next build. This might have performance impact if it keeps failing. Run the 'javaToolchains' task for more details.
Task
decompileJar FAILED
Task :getPaperUpstreamData FAILED
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task '
decompileJar'.
io.papermc.paperweight.PaperweightException: Execution of 'org.jetbrains.java.decompiler.main.decompiler.ConsoleDecompiler' failed with exit code 137. Log file: /root/Folia/.gradle/caches/paperweight/upstreams/paper/.gradle/caches/paperweight/taskCache/decompileJar.log Classpath: /root/.gradle/caches/modules-2/files-2.1/net.minecraftforge/forgeflower/2.0.627.2/e7434db4306e8dd6cc81c2a72a5d700caefca09/forgeflower-2.0.627.2.jar:/root/.gradle/caches/modules-2/files-2.1/org.jetbrains/annotations/20.1.0/2fcd1f3225bca0c4a7bc931142076f8c1e80993f/annotations-20.1.0.jar
- Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
- Get more help at https://help.gradle.org
BUILD FAILED in 11m 22s
2 actionable tasks: 2 executed
i don't understand what im doing wrong...
It is litterly telling u what the problem is
Invalid Java installation found at '/usr/lib/jvm/openjdk-17'
ive seen that but java is installed
openjdk version "17.0.7" 2023-04-18
OpenJDK Runtime Environment (build 17.0.7+7-Ubuntu-0ubuntu122.04.2)
OpenJDK 64-Bit Server VM (build 17.0.7+7-Ubuntu-0ubuntu122.04.2, mixed mode, sharing)
It's not
check the log at the path that's mentioned
/root/Folia/.gradle/...
also that. prob still good to fix the invalid java installations as well
so its the decompilerJar.log
lots of logs here, can't paste it here
137 means you ram out of memory
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.
⚠️ 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.
Some help?
make srure that you don't have something else messing with the files
try running applyPatches again
maybe try a clean repo clone
hmm
the first command was
git clone https://github.com/PaperMC/Folia.git
it should download everything right?
yes
No idea
any other suggestions at least?
The one that it says is a canidate
it got BUILD SUCCESSFUL with cleanCache
failing that, might need to go purge the gradle folder manually, otherwise, idk
its done with same errors
where's that folder youre talking about?
.gradle or gradle
eeer
generally it's a .gradle folder in the home folder
if you recloned the project and got the same error, it's pretty much unlikely to matter about the one in your own folder
like, all I can guess is that the thing pulled a bad copy of some mojang thingy
basically, yes
if you're a dev you might wanna save the gradle proeprties file in there if you have one
otherwise, should be safe to just delete and rerun it
might also want to ensure that git is updated, ik windows loves to break git
i tried this thing on a VPS and i think you said i got the error code 137 and i ran out of memory
im trying it on windows now
well, yea, the decompiler and stuff blows through a good bunch of memory
how much would be enough?
I mean, a vm with 4G is generally pushing it
depends what else is all running on there, all I could see is that you got the kill code
my pc is quite faster than any vps i have
linux is generally more friendly with this stuff
i agree on this too
I mean, everybody on the team bar like 1 person uses *nix based environments
that 1 person is probs the only reason paperweight even works on windows
:))
yeah just finished and got same error now after manually deleting gradle
imma try it on wsl and ill come back if any errors occur
but anyway what versions are needed of java and gradle?
i mean the suggested one
just need java 11+ or something
we use the gradle wrapper, so it will fetch gradle and the needed jre itself
ofc, if you use java 17, it will just use that
gradle, woo
so the only thing ill have to install on wsl would be java
on vps i installed gradle too but was a old version like 4.5 or something
hooray it finally got builded on WSL
leaf?
Mini
Use chunky
Um, that's not convenient. Where is the normal visual boundary of the world?
Please return the /worldborder command
((
Folia is new and in active development. A lot of it isn’t “convenient”
Chunky works great though.
I think the only thing you need is git and a shell, the gradlew command will bootstrap from there
I wish Folia good luck in promotions, a very interesting project, I think you will succeed
Do with such Forge or Fabric optimization it will be something.
Pretty sure that got fixed at some point. Make sure you’ve pulled the latest code from the repo?
❤️ Mini
4 juli
build
latest build no gradlew
error
There are commits after the 4th I’d grab those.
Try join with vanilla Minecraft
(Ignore the first few lines)
errors.txt by @north hatch: https://pastes.dev/GtnHza3uWS
(satire but:)
Its quite obvious, the villagers trying to explore
can you provide the seed?
Seed and coords of the screenshot @prime juniper you can use /modmail referring to this message if you do not wish to share in public.
Why doesn't LuckPerms work?
https://modrinth.com/plugin/tsetspawn/versions
And TSpawn doesn't work
"doesn't work" gives us literally nothing to go off
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.
Unsure how those errors happened, I collected the stacktraces from my previous 500 player event
Caused by: java.lang.RuntimeException: Could not load plugin 'TSetSpawn v1.3' as it is not marked as supporting Folia!
emm
https://modrinth.com/plugin/tsetspawn/versions in site choose Folia
I mean
We can literally only say what we can see
all one can guess is that the dev ticked all the boxes without actually caring what anything was
Understood. Why doesn't LuckPerms work?
sec
https://github.com/LuckPerms/LuckPerms/actions/runs/5370010771 this repo, support folia
use bukkit?
yes
\
96 ?
i use 97
o lol
worked
Strange it didn't run the first time or I used the wrong .jar
Well, I partially figured out the plugins, now we are waiting for the /worldborder command
you wont get that for a long time probably
(
WorldGuard support Folia?
ask them
better yet, you as a folia user should be skilled enough to find out yourself!
Not officially yet
Just a follow up for those following the channel. I’ve triaged the issue and cannot reproduce it. I suspect that the world was reset but without deleting entity folders. 
thanks
no problem
Hi there.
Please ask your question (https://nohello.net/)
I have a question 😦
It looks like CoreProtect plugin supports folia
btw I can not find where
You either need a development version or just ask them directly
Ok. Thanks. I'll try.
If I give myself items /give @p minecraft:stick 6400 - then the items that fall to the ground do not disappear and cannot be picked up.
Can you reproduce that without any plugins installed?
CPU usage is not high, but some regions have high MSPT than usual. It seems that the synchronized random number generator is causing performance problems while getting random position for mob spawn?
you should avoid using swap memory, but I'm not sure how much this is related to your issue
I forgot to remove the swap that was automatically added when installing Ubuntu. But 2GB swap is unlikely to cause the impact, especially when there is sufficient memory.
Are you on a VPS or a dedicated server?
oh yeah that too, atomic operations across multiple CPUs doesn't sound great
That call shouldn’t be too expensive but it’s a hot area
If that logic is running it generally means that you’ve not hit the mob spawn cap
That will also be continuously called in Mushroom/Void biome where never reach the spawn cap. But normally random.next() will not have such high CPU time terribly over 20% of total
Perhaps it is indeed due to the issue of multiple CPUs. I'll try using only one CPU later
We've got a plan to at least make the mob spawning stuff a loooot less hurty in paper
How would Folia handle a region crashing? If that was to happen. I'm mostly looking for what would happen to the players in those specific regions & any other info that could be useful.
They will no longer be able to perform anything; chat may likely still works as it is on its own thread.
Would the region ever be fixed/what do you need to repair it?
You will have to shut down the server completely and start again.
so from what ive seen above. folia doesnt like 2 physical cpu's?
nothing which doesn't cater towards multiple CPUs likes multiple CPUs
numa is a bitch
theres no access to the things relevant
How do i use the folia server?
Do i need to download papermc too?
Foila doesn’t need Paper to work
You need to build it yourself
Read the pinned message
I just ran the install.bat
Folia is still in development and not intended for wide use
ah thanks
are there any dupes that i should look out for? currently messing around with folia,
No
Same way you build paper pretty much
Paper has instructions on how to build it
i did that
i got Invalid Java installation found at "diectory"
I would provide more information, like the command, and video and such, but they probably wouldn’t want me doing that
So for now
⚠️ 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.
okay i managed to build it
but
i get
no main manifest attribute, in "diectory"
when i try to run it
wrong jar
I was reading Folia Docs, but I have some things I have not understand about hardware requirements.
Right now I have a dedicated server ryzen 5 5600X (12 threads)
On this server I will run 1 Proxy, 1 Hub, 1 Folia, 1 Paper (I have 64GB Ram)
I have not understand the requirements and how it scales in terms of threads used.
Plus I was looking at development, but when clicking the page doesn't redirect to anything
https://docs.papermc.io/folia/dev (When clicking Development guide)
Minimum recommended is 16C/32T for just Folia alone
Could potentially be lower on a fully pregenned world
Just for a single instance?
So basically to run 5 folia instances I would need 5 dedicated servers?
Might be an extreme case, since basically I see that Folia has sense over 200/300 players on an instance
what about this? doesn't redirect to anything when clicked
Uh, same here, actually
Correct. Folia is designed for very high core counts and high player counts with players that are spread far apart. I can’t imagine anyone running 5 instances of Folia right now. Most people should just be using Paper.
Folia could be very useful on creative servers, with hundreds of players using worldedit, spreaded on a single world. Can be the threaded regions defined through the API or is the chunks allocation decided fully automatically?
They are automatic
Ah ok, tanks. Are the regions based only on players/entities count or are other criterias used?
Were there any thoughts about "manually defining region", that would be there all the time?
no
this was meant if it will be added in API (I guess I should switch to #folia-dev ?)
No, regions are too transient to be even considered to exposed in the api
is it possible to use the Spark plugin on Folia?
There's a build for it.
Can someone give me a quick explanation of what’s the difference between Paper and 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.
Probably best to read the pins in this channel/readme/FAQ/etc
Thanks other me.
Alr thanks
does folia have built-in xray prevention
not more than paper already does
does that mean it has basic stuff or what?
you should check paper's guide on how to configure anti-xray https://docs.papermc.io/paper/anti-xray
folia is built on top of paper so that should be relevant
oh so it has the same config? Okay thanks im good with that :)
Is this because I'm running with low memory settings?
-Xms50G -Xmx50G
I gave it 50G
Please read the server requirements to run Folia
message.txt by @trail kernel: https://pastes.dev/1LYPqhc3De
This error happens only if the player is not in playerdata, I deleted myself and now I can't log in
Why did you delete yourself?
Why did you delete it?
To check, because if the player has already played in this world, then there is no problem for him to enter, but if he has never played in it, so there was not created .dat file, it displays this error and he can not log in
This error only by first joined players
¯_(ツ)_/¯
No plugins or datapacks installed?
Is this with a brand new fresh world you created?
No, it's the world my players are playing in, I would realize it's my problem if the world is completely broken, but if you run it with a paper then everything works fine
I really don't know why this is happening
Can you make a new world and see if that happens also?
no
The new world is working fine
Can I somehow save players' buildings and their inventory when creating another world?
Was the world created on an older version that you upgraded?
No, he created on 1.20.1
Created on 1.20.1 using Paper?
No
With vanilla worldgen or using some sort of plugin/datapack?
vanilla
What was used to create the world?
Kaiju, but I don't think that's the problem, since this world doesn't work on Kaiju or Folia, only on paper.
But if you create a new world on Kaiju and use Folia it works fine
I don't know anything about that fork. I guess it's possible it made a funky world. Probably gonna have to wait for Leaf to look at this, but it'll probably be a while.
Can you make a Github issue with the log you posted here, along with a bit of info?
ok
does protocollib work with folia?
i assume not by default, probably missing that compatibility option, but if i were to set it myself....
yes
cool and good
offline mode is not supported
none?
Ah I see
Is there a reson for it?
Yes, Hello, How shit would folia run with 16 threads (say 60ish players)? I'm pretty sure recommended is 32 although you state it in cores but its just a hypothetical for a debate I'm having with a friend.
there is a difference between threads and cores. 16 threads sounds like 8 cores, which is not great
with 60 players just run paper
it likely is not. Folia will only perform better with the right hardware. The threading checks and scheduling add some significant overhead, so on suboptimal hardware like that it will very likely perform worse than Paper
That about matches my understanding of it, I did some testing on my personal hardware which has the same specs (although not same enviroment), and the chunk generation was very slow
You can assign more threads for chunk generation with paper incase of rendering the map
You really don't want to run a map without pregeneration
When I try to run the .jar file, I get the error: no main manifest attribute, in folia-1.20.1-R0.1-SNAPSHOT.jar
How are you building it?
./gradlew build
^
Okay, I read it and from what I see I should use the command ./gradlew applyPatches, right?
It tells you what to do on the first screenshot
I hope to once live in an alternate universe where people read what programs tell them
No need to say this kind of stuff.
Not everyone know what they're doing.
We don't have to be jerks to people.
Whatever
Someone is trying to build the thing for the first time. Everyone learns once. Yes, they should be reading and interpreting the error. But scoffing that they don't know what they're doing isn't remotely helpful.
no enemies
Approximately, when did "folia" come out officially to the public?
It's still in active development, but yes this channel and the project was made public around March 29th
How can I make a Folia Build
Same way to build paper
And how do you do it?
read papers readme
Where i can download folia core?
Is the region merging based on view distance or a fixed distance?
fixed iirc
bearing in mind that people can have different vds, it's dynamically changable, is an entire hell of a problem
ah right
forgot that can be dynamic
do you happen to know where I can find the distance?
I remember someone saying it was something large like 2k blocks during one of the large scale tests
I don't think there's a "distance" isn't it completly and totally up to Folia to decide when to make a region?
it was something like that
Well, the "distance" is a derivative of how folia creates regions
players need to be far enough away that their regions don't end up """intersecting""" as far as the maths is concerned
intersection is probably based on players view distance + a margin, right?
I think cub's tests had the vd quite high
it's fixed maths
it's based on what the ticket propagation incurrs plus some margin for safety and maths
Is there a good rule on how far away "enough" is? Are regions like 1k-1k, or something insane more like 10k-10k or just more variable?
No idea what the number was
somebody above quoted around 2k blocks of distance
which, is basically about 4 regions away
(chunk regions, not tick regions)
just gonna use folia-dl for a screenshot sorry
⚠️ Please do not share any links to builds of Folia at this time. We are intentionally not providing easy to find/obtain downloads right now - when the time is right, everything will be available through official PaperMC distributions.
#bot-spam exists
And how can I test it?
⚠️ Please do not share any links to builds of Folia at this time. We are intentionally not providing easy to find/obtain downloads right now - when the time is right, everything will be available through official PaperMC distributions.
You'll need to compile Folia, following the instructions in Paper's repo
Is there a guide to carry out the compilation?
a tutorial on youtube or something...
instructions in Paper's repo
if you cant manage to follow those, you probably shouldnt be using folia
It's that I'm curious, but I don't know that detail of compiling 😅, Well, I ask if you know anything that I can use as a reference to compile it 🤔 .
yeah it's the instructions in paper's repo
again,
instructions in Paper's repo
Am yes but I literally can't see the guide 😅
well if you are unable to find that, then you really shouldnt be using folia
Look on the Paper repo, not the Folia repo. It's a fork of Paper so the build instructions are the same.
oh well, thanks 😄
How can i restart server with folia?
i can't find command like /restart
Stop the server, start the server
Some stuff won't exist in Folia or hasn't been implemented, assuming /restart is one of those things
Can you confirm if I did the Build right?
I’ve removed your message. Let’s not share files here.
does sb know why the anti xray does not work in nether?
What y height are you at?
idk (got the screenshot from a player)
what's your config
_version: 30
anticheat:
anti-xray:
enabled: true
engine-mode: 3
hidden-blocks:
- copper_ore
- deepslate_copper_ore
- gold_ore
- deepslate_gold_ore
- iron_ore
- deepslate_iron_ore
- coal_ore
- deepslate_coal_ore
- lapis_ore
- deepslate_lapis_ore
- mossy_cobblestone
- obsidian
- chest
- diamond_ore
- deepslate_diamond_ore
- redstone_ore
- deepslate_redstone_ore
- clay
- emerald_ore
- deepslate_emerald_ore
- ender_chest
- air
lava-obscures: true
max-block-height: 128
replacement-blocks:
- stone
- oak_planks
- deepslate
update-radius: 2
use-permission: false
obfuscation:
items:
hide-durability: false
hide-itemmeta: false
hide-itemmeta-with-visual-effects: false
you have to also enable it in the nether afaik. the docs cover this
what is Found no spawn in radius for player?
Sounds like a plugin thing
Is faster chunk generation with more cores planned? Rn chunk generation is limited to ~15 threads, which is kinda low for Folia
You can change the number of worker threads, but theres not too much you can really do with world gen in a sense
I sat work threads at 128, and it used 15 on those, are there some impossible limits in the code?
Well, yes
you can only generate a chunk up to the next level when X chunks around you are at a specific level
many phases rely on different regions, etc
the entire system is a highly dependent chain of operations in which require a bunch of stuff to work, and that's before you get into the hedaches of trying to manage and schedule that stuff
400-500 cps is around the current hardware limit. Are you already hitting this number..?
Just ages to pregen, and i can imagine it would be a problem
See, I do wonder if chunky could maybe split up more
i..e start running 2 different gen streams
play ghostbusters and meet in the middle or something
idk if the system would get any benefits from that
I think pop just tell you to spawn up more instances 
Coz technically yup can just spawn up 4 servers and each pregen from 5000 blocks away from each other and then just put all world files back
CC: @sly elm 
I suggested that Chunky should set up multible world and stich them together as the generating progresses (as a joke) he did not think it was smart
whats up
I mean you can kind of do it, the problem is going to be random features and stuff not aligning and any blending / etc
theres things that aren't 1:1 with the seed
iirc
yea, things like trees, etc
Who needs trees anyway? we can disable those
Like, theres probs some stuff you can do if you really cared to invest the tech effort into
certain phases are trivial to highly make parallel, like, bring the chunks up to a level where it doesn't matter about that stuff and then give them a finishing pass, etc
but 🤷♂️
yeah pretty much
I mean nothing you can't do well enough by just spinning up a couple of servers
true
Big worlds just take a long time. If you're seeing high cps then you're good. If you're seeing super low (like 10) then you have an issue.
Tweaking -Dchunky.maxWorkingCount should work though
until you start flooding the system but yeah
can i change paper world to folia one
If you just run the same world file it will convert for you, however going from folia back to paper does require actual effort
Not much effort, but some
tysm all
Just out of curiosity how many players would you think a server like this be able to handle? https://spark.lucko.me/w9F8wAX9Aq
I know it’s not up to the specs, but I’m curious
I plan on testing this out
On a good day it could handle 20 players. Im curious how many players could play on it on Folia. Maybe 40 or 60?
If it has 32 threads that’s within recommendations for Folia.
If it’s a VM and/or thread limited then it probably won’t run very well.
It’s not from what I know of. I think it’s more like 8 threads allocated to this server.
wth
Is Folia stable and ready to be used on public servers yet?
No
Hello, does folia support 1.8 servers?
no. never has, never will
woah, why? is this a minecraft limitation or just lack of support?
because nobody cares about 1.8
people use 1.8 for the performance and pvp
why do you need additional performance now?
just use an up to date version
so a lack of support, I am a bit ignorant in minecraft dev honestly, but would it be that hard to do the same done for the latest version for a lower one?
as a matter of fact, yes
you would practically need a complete rewrite of the 1.8 server to do something similar
more than performance, probably player count in 1 server
oh damn
folia is more for smp's and such anyways, dont see why you would ever want something similar on 1.8
1.8 survival is dead
fair enough
What cpu?
It's going through already genned chunks
That's also possible ^
Probably the most probable though since I don't know how else you would get 22k cps
This was my personal record by just tweaking things around unscientifically: https://media.discordapp.net/attachments/914100620577878057/1134239480577015922/image.png
64 core zen 4. The log was really wierd, it was either generating 0.5 to 5, 500-2000 or 100k to 200k cps, Think it was 20-50k average with 100GB of ram. I sat -Dchunky.maxWorkingCount at 1000, 100 worker chunk threads, 28 io, and 10 gc. The area was new. What does that option do?
And why doesnt the people at chunky know about the setting?
i'm sure they do know about their own software
Overworld?
Yes
Just ran a 13 minute test and got a massive 70391 cps average. Seems impossible. Im not going to use the server for a while, so if you want to run tests on it DM me
The world was new, so they were actually generated
🤨 70k does sound overly high
I got 1.5k cps max on 96 core EPYC Genoa, but the node was running many other things at that time
That was what the log told me. The mod at chunky told me to go away when i shared the log : (
If you want to, I can take a look at it, feel free to DM me
Because it's region based
Like, at the end of the day, you can't have overlapping regions
so, if your players are too close together, they'll be in 1 region
4000x4000
And it’s ultimately up to Folia to decide if it wants to make a region
Yea, that's too small
and there's no way to make them smaller regions right?
No
...
It's simply down to how the game works
and the complexity of the region logic
All of this info is public and much of it is in the readmes you where told to read
Sorry to intrude but I was considering using Folia and I read this issue. So I can have even 1k players in a world radius of 2500 blocks would they all end up in the same "region"? So in an SMP it's worth having Folia, right?
as said, players need to be spread out
like, you have to contain the expected world interactions into one region, otherwise stuff would blow up; before you get into the horrors of making the math even more complex to deal with variable region sizes, etc, etc
so, if your server is too small, as per the docs, etc, folia will do little to help you
in fact, that overheads of folia will make it worse
Ok, so basically, if I use Paper is it better than Folia? (same world same people)
if you're players aren't spread out enough to create regions, yes
Okay, thanks for the clarification
also if you dont have a crazy ass computer
Is Folia worth having on a 4000 radius world with 100 players spread across
Or should I stick to Paper
Alright
Will it be better if I make the world border smaller to 2500 on Paper
I will be having alot of players since it will be a civ event
No, as the players will eventually merge and become one region, which will bring more overhead and no benefits over Paper
You need at least 1500 blocks between players to have multiple regions. With a 4000x4000 world even if your players are trying to keep away from each other it won't take many players before there is never that much room between them. If PlayerA is 2500 blocks from PlayerB but then PlayerC moves in in between them all 3 will be in the same region and so on across the whole world until any independent regions collapse into one massive one.
The figure can increase depending on where the player is positioned in the region section
Can folia already nether and end support for vanilla Minecraft ?
yes
Means i can play the hole minecraft survival stuff with folia
yes
Portals also Working ?
yes
xD
No redstone issues for me
Thats cool. Thanks for that info
redstone shouldnt have any folia-specific issues as redstone cannot go between 2 regions. it should be equal to paper (which is not always the same as vanilla)
Does folia break with terrain generation datapacks too?
Only one way to know
Test it
is there a worldedit on Folia?
fastasyncworldedit supports it it looks like
on version 1.20.1 does not work : /
Still wip on m fork.
There is one, PR 2309 for FAWE is built on the jankins site
that build is made by him
Hahahha welp.
I do the folia mainly stuff
i was able to build folia from github
i applied patches first, then built shadow jar
i am using folia-paperclip jar now
how to configure threads here for various sections described?
https://docs.papermc.io/folia/faq
also is ryzen 7900 with 64 GB DDR5, 500 gb ssd nvme, good for folia server to support 300 players?
entirely depends on your setup and how players behave
just vanilla setup with 20k x 20k overworld
plugins: luckyperms, smputils (my own plugin), coreprotect
thats it for now
players are normally decent mostly, not like factions, little bit pvp, no grief, tnts disabled, hoppers limits are there
20k*20k is probably still not big enough to properly spread 300 players
how much would u recommend here? also players can travel so they might come close
well you need to make sure that the different regions don't merge into one large or very few big ones. hence you need to somehow ensure that player groups are small enough and far away enough from each other for that to not happen
of course if you are unlucky then players can still manage to chain together all regions into one big one if they are unfortunately spaced out 👀
Players will be in the same region if they're less than about ~1500 blocks from each other, I guess a rule of thumb could be starting with them ~5000 blocks away from each other to give them some room to move, that'd be about 90k x 90k
if your gamemode relies on groups of players interacting with other groups often then folia is most likely not for you
(or at least with the same caveats of paper in most regions. I guess the hermits 100k out would benefit from it xD)
especially in a pvp environment folia opens up some interesting tactics: like have a lag machine running in one region, then start a fight, connect the lag machine region to the region the fight is in with some well placed players and overwhelm the defener that way 👀
i mean its an SMP
not factions
but i won't be able to stop a group of player interacting with other players
or players coming together as groups
forming a town or something
You'll be fine as long as you have enough regions
how to make sure regions don't merge?
put players far away from each other
what happens if i teleport all players at a single place?
what else would u recommend then here?
multipaper is not working for 1.20.1
multipaper will also not work for you there
not have that many players on one point?
add incentives for players to not congrate on one poin?
spreakd them over multiple servers?
lots of ways tbh
or go the EVE online router and add time dilation Kappa
how to do that?
(hint: this is a joke, time dilation sucks)
we did that last season like we split players into teams in multipaper, put borders for teams and split chunks in workers, players mostly fight among each other died (the ones who die get banned) and the numbers fell, then we opened borders and reduced workers (did restarts), for people interactions
multipaper can handle several hundred people in the same area
Yeah thats reasonable unless you have insane hardware
If your regularly dealing with 1000+ players you should probably just drop the money for your own solution
they are civilization events (SMP based)
but with folia we had selected only 300
i think even thats not possible after the discussion here
thanks
I mean, there is no way to know without trying ¯_(ツ)_/¯
but you shouldn't expect magic, especially if players behave in (for the system) dumb ways
Your server will have 1 region doing stuff, which's potentially going to be worse than Paper
^
Guys for my server i'll need to ask each one of you to rate Folia from 1-10
what
I hate that I actually did the work for you and looked up your server, but you average 20 players. Folia makes zero sense for you.
just rate it
Well 1 then. Will run worse than Paper
for a big server
define big
600 average
@lusty panther please actually read the readme of Folia before making weird and question that does not make sense here
Sorry eternal sniffer
for that amount folia would most likely work yes
depending on hardware & distance between players
One of the things I found when I finally switched to Folia, was that bedrock players always had extreme lag through Geyser. If anyone else can second this I would appreciate it.
⚠️ Please do not share any links to builds of Folia at this time. We are intentionally not providing easy to find/obtain downloads right now - when the time is right, everything will be available through official PaperMC distributions.
One thing I did find with it is that when you load a big structure, then when it is fully loaded and you do /undo. Sometimes it only partly unloads a structure. Then like half of it would be gone, or sometimes 1/4.
Use geyser standalone. It works fine!
What’s the difference between standalone vs geyser-spigot
geyser standalone run as a separate program
standalone is a raw proxy
or, well, not raw; but, it serves as a proxy, vs the built in solution which is probably not as ideal but doesn't rely on the server impl as much
Oh okay. Do I have to do anything extra to use this standalone, or it is just plug and play?
You'll have to run it as a service or something. I don't remember changing the config file
Oh can I join your server and see what’s it’s like on bedrock? If so, send me a dm.
Hahhaha even though you said that I had no idea that is what you meant. Well I now understand. You cannot run Geyser standalone on Folia.
Hahahah spent like 3 hours figuring it out lol
Scaling issues
.distance
iirc the plan going forward is to replace that format with getting the server to split out mojangson and shoving that in a yaml string
Just wondering if a Ryzen 9 7900 is good enough for folia.
Does it meet the minimum core/thread requirements?
12c/24t, I’ll look to see if I can find them right now
Pins in this channel and the readme/FAQ are helpful.
16/32 is what the readme says, iirc leaf said 12/24 should be fine if you pregen your world though
How's Folia guys? Has anyone use it for production yet?
yes
H
Hi everyone can you help me about folia build? I need it for my server i got error when try to build
What error
Gradle ran out of memory
Thank you so much
based Termius
Folia I have a core region does not make one region for each world and that's it.
My regions are not created new 3 regions and that's it at most
Maybe I didn't set it up right
send a screenshot of /tps
you have a single player online
Please actually read the readme, etc
sounds like you've not read what it actually does
Can I have a link
see the pins
What's GC I don't see that setting on this app.
I've read how the kernel works already and I'm going to make my father-in-law.
i dont think your translator is working very well
It's a translator DeepL
😅
ah Termius, where you can't change your PW without a subscription 
DeepL can be weird for Russian. Maybe yandex/dzen is better for RU<->EN?
You can try chatGPT, I've found it really good with translation @jaunty jackal @shut gull
DeepL is quite good if you are learning a language, because as you learn you can correct the result it gives with the correct context. But for translating from 0, no translator is perfect
How to make my plugin support folia
or that
Check the pins / scrollback in #folia-dev for tips.
ok,thank you.
Having problems with TNT Duping, Bedrock Breaking or Sand Duping Vanilla Exploits? See: https://github.com/PaperMC/Paper/issues/3854 for information.
Is there an explanation for the CPU usage consumption by chunk worker threads? Is this due to saving? (The world was pregenerated)
hello.
A question. If I keep the server on Windows Server 2019, will there be anything wrong?
For example Folia for 500-600 online.
Windows servers usually aren't recommended in general, Folia or Paper
For example, I now keep Forge server at 120 online = 20 tps
We cannot tell you how a piece of software will work in your mystical environment
What can you recommend?
Ubuntu 20 ?
Your CPU is way below the recommended minimum for folia
You have 8C/16T (performance cores), recommended minimum is 16/32
ok
⚠️ 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.
the swap memory is scaring me
indows Server
well no I meant that it says indows and not windows
but yes, I belive it does
not sure about the exact percentage though
---------- Detected server process in a crashed state! ----------
[Pterodactyl Daemon]: Exit code: 1
[Pterodactyl Daemon]: Out of memory: false
[Pterodactyl Daemon]: Aborting automatic restart, last crash occurred less than 60 seconds ago.
server wont start with the argument
java -Xms128M -XX:MaxRAMPercentage=95.0 -XX:ConcGCThreads=76 -Dterminal.jline=false -Dfolia.force-load-all-plugins=true -Dterminal.ansi=true -jar server.jar
well youd have to share more than the fact that ptero is killing it
why are you setting it to 76
because i have 96 threads
so what do i do
you dont need 3 quarters of your threads to be GC
- don't set that many
- see what the JVM is saying
like, the process exited
i'd doubt that it said nothing
ConcGCThreads (76) must be less than or equal to ParallelGCThreads (63)
so im guessing max is 63
what should i set it to
it boots up when i set to 63
imo, if you dont understand what they do, you sholdnt change them
can u kinda summerize it
not really
just dont set it then?
i don't have any recs for that, it's generally going to boil down to several factors, no point pegging the CPU with GC threads
See the docs
any recommendations are there
we cannot provide magical figures for your environment we know nothing about
that tells me very little
well, multiple CPUs are not recommended, at the very least
for folia?
that sounds like a nightmare lol
uhhhh you can probably run Folia on a smart fridge if it's just 1 player...
ya atm
okay so can i set it to 63 or should i set it for less
it says that it should be 80% of max
How will you utilize four CPUs for Folia?????
You absolutely don't need that many GC threads
If you have a large heap, try shen or zgc, but even so they don't need 76 gc threads
You can ask, on VDS (Intel Core i9-12900K) 8/16 core, 64 gb ram, 1 tb nvme, 1gb network how much online can the Folia core withstand at 20 tps without a single lag?
Approximately at least, I want to know how much +-
clone folia directly to the root of your C drive
now try it
no
look at Paper's README
it tells you what command to do
can't remember on top of my head
yes
thank!
Outside of diagnosing the issue that's causing it and fixing it, all you can generally do is wait
I mean, there is a reason why we're not shipping it yet
And it's effectively maintained mostly by 1 man in his free time when he can
I mean, there's already been a commit or two trying to resolve it
Plugin conflict?
I mean, could be
Also could just be some weird edge case relating to the angle your tongue dangles when you click respawn
maybe because 2b2t was on 1.19.4
That would probably explain it. IIRC those patches didn’t make it to 1.19.
Can I find out what java arguments were used on Folia in tests?
why are you using the staging url 🤨

https://cubxity.dev/blog/folia-test-june-2023 should be more updated
I don’t remember the JVM flags from our test. Lemme see if I can find them. Thought we had it pinned but I guess not.
I wonder if the /worldborder command will be returned in Folia? without it, it is very inconvenient to track the boundaries of the world for players
IIRC Chunky has a border that may work.
where i can dowload folia?
You have to build it yourself. Downloads are not available.
⚠️ 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.
wtf?
2b2t have folia
It's still in active development.
They will have built it from source.
Just like you can.
you can send me folia?
No, you have to clone the repo and build it yourself.
Jars are not currently available to download. It's still in active development.
bro 6b6t.org have server on folia
There are things missing, broken, bugs still need to be reported, etc.
Yes, those who have the technical expertise can build Folia from source - this is gating to ensure they well and truly understand it's in active development. There is intentionally no builds avaliable, if you don't know how to build folia, that's a sign it's not right for you to be using at this state
