#folia-help

1 messages · Page 9 of 1

prime juniper
#

I tried git clone https://github.com/PaperMC/Folia/tree/dev/1.20
and it didn't work

bleak python
#

clone -b dev/1.20 https....

#

i think

prime juniper
#

oh ok thanks

#

nope

bleak python
#

or once cloned regularly, git checkout dev/1.20

prime juniper
#

I think i'm dumb

bleak python
#

well I have no say in that :p

prime juniper
#

git clone -b dev/1.20 https://github.com/PaperMC/Folia/tree/dev/1.20
git clone -b https://github.com/PaperMC/Folia/tree/dev/1.20
None of these work

#

I am so bad at this lmao 💀

bleak python
#

git clone -b dev/1.20 https..../PaperMC/Folia

prime juniper
#

thanks 👌

#

I think the dev branch currently doesn't work

#

it just fails

#

`[giorkos@server Folia-Server-1.20]$ ./gradlew applyPatches > Task paperpatchSpigotApi FAILED 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 'giorkos@server.(none)')
*** Please review above details and finish the apply then
*** save the changes with ./gradlew rebuildPatches

Task :getPaperUpstreamData FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':paper: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.

BUILD FAILED in 5s`

fair merlin
prime juniper
#

oh

#

I thought that was just a cookie-cutter response to builds

#

I didn't think it would actually do anything

#

sorry

pseudo ibex
#

Here is an example video

#

I just compiled it now

half berry
#

Does anyone know how good Folia could handle many many players? What's the largest test that has been done for instance? We are going to use it on a vanilla world with an Amd Epyc 9554p and 384gb ram. Could something like this handle say 10.000 players (not minding internet)? 🙂

fair merlin
#

10,000 seems high but you could try

#

It’s going to depend on if you have any plugins and what people are doing, as always.

#

And how far spread out they are

half berry
#

Yeah a little far fetched. The server isn't up yet, but we are going to turn off many features like fire, waterspread etc, as well as reduce the render distance by a bit.

fair merlin
#

If you check the pins you’ll see we had the test server which had like 325 people on it without any issue

half berry
prime juniper
#

Where should I post crashes?

tawdry gullBOT
#
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.

real tendon
#

Reading this made me question why it said it would be ported to Fabric/Forge

#

Is there a port for that?!

viral stone
#

What?

livid crag
#

Read again I am pretty sure it says it will not…

real tendon
#

No I am asking why it was mentioned

real tendon
viral stone
#

Because people tend to see stuff like that and ask if it can be ported

real tendon
#

Oh ok

#

Thx for the assistance

#

Have a good day, and gl with Paper 1.20

golden mica
hoary pasture
#

is there any anti xray running on folia ?

wicked mantle
#

<@&748618676189528155>

#

poor sentinel PEPW

fair merlin
#

Maddy how the heck did you ban them?

rare steppe
#

native ban

fair merlin
#

Ahh

pseudo ibex
fair merlin
prime juniper
#

Also is spark available for folia?

pseudo ibex
#

At least as of yet

prime juniper
#

Ah ok

#

It's sad that it's unstable, because even with only one region it's really good

#

Mspt was 2.3 for me with 24 chunk view distance and 8 simulation distance

#

That means it should probably be able to handle the villages in my server

pseudo ibex
prime juniper
#

Unfortunately chunk loading was MUCH MUCH slower than fabric

golden mica
prime juniper
#

But it was good enough

golden mica
#

I paste your problem

prime juniper
pseudo ibex
prime juniper
#

Thanks

prime juniper
golden mica
prime juniper
#

At least without going epyc

#

16 core 7950x, 64 GB Ddr5 5600mt/s ram and 1TB nvme ssd

pseudo ibex
red lintel
#

I'm done building folia jar where can I find the jar?

#

is this it? which one do I use?

pseudo ibex
pseudo ibex
#

Like abunutu?

prime juniper
#

I'll provide a comparison video

plain atlas
#

What is folia overhead (other words what will be difference between paper on 1 core and folia on 1 core)?

prime juniper
modest sphinx
#

im so sad because i have a lot of errors...

tawdry gullBOT
#

⚠️ 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.

tight halo
#

How to download folia?

arctic tapir
#

compile it yourself

tight halo
#

:v

arctic tapir
#

look at paper's readme

tight halo
#

Can you give me the command?

#

Ok

modest sphinx
#

i got this error how can i fix thiS????

Execution failed for task 'paperpatchSpigotApi'.

arctic tapir
#

show the whole log

modest sphinx
# arctic tapir show the whole log

reegun@DESKTOP-ALCOR6M:~/Folia$ ./gradlew applyPatches

Task paperpatchSpigotApi FAILED

*** 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: empty ident name (for reegun@DESKTOP-ALCOR6M.localdomain) not allowed
*** Please review above details and finish the apply then
*** save the changes with ./gradlew rebuildPatches

Task :getPaperUpstreamData FAILED
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.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task 'paperpatchSpigotApi'.

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.

BUILD FAILED in 4s
2 actionable tasks: 2 executed

arctic tapir
#

did you try reading it?

#

it tells tou what to do

#

also your java install is broken

modest sphinx
arctic tapir
#

it tells dyou what to do

modest sphinx
arctic tapir
#

yes

modest sphinx
#

thanks

modest sphinx
modest sphinx
#
Error: Unable to access jarfile folia

D:\folia test>pause```
how can i fix this????
#

i used folia-bundler-1.20-R0.1-SNAPSHOT-reobf.jar file

#

folder name?

#

ok

#

thanks

tight halo
#

...

#

Does anyone help me?

arctic tapir
#

patience

#

you ran out of ram

sweet fox
#

do you ran any issues while running folia? i wanna try it

tight halo
#

How many gb of ram do you think is enough?

foggy blaze
#

Didn’t the paper test have like 2TB?

#

iirc they just wanted to make sure that RAM wasn’t the bottleneck, so they went all out

#

But like, if you’re worrying about cost, you shouldn’t be even considering Folia imo just cause of the nature of what it requires

red lintel
#

How do I download the 1.20 folia? When I clone the git I seem to get the 1.19.4

ocean geyser
#

better get more

red lintel
#

Found it ty.

hoary pasture
#

i have the problem that the regions always merge together how can i fix that

livid crag
#

The region merge and sepreate when the regionizer deem necessary, that aspect is not configable if that's what you mean.

hoary pasture
#

The problem is that we previously had 10 regions and then all 10 regions were merged together and now the server is lagging

livid crag
#

First, figure out why they merged... rieBigBrainThinking

hoary pasture
#

currently the players are distributed in a 7k x 7k area

livid crag
#

that's a very small area and I can see the player being too close for the region to merge.

#

You can refer back to this old message which kinda explain the seperation needed by leaf here #folia-help message
Your world is way too small for the Folia use tbh. @hoary pasture

bold osprey
pseudo ibex
vestal gulch
#

I'm guessing that Aikar's flags are generally unfit for Folia

#

The best configuration is going to be hardware specific as well...

#

a guide for tuning would be cool at some point (not a rush since it doesn't even have a release channel so a big server kind of has no business using it)

fair merlin
vestal gulch
#

huh really?

#

i guess GC doesn't really change

pseudo ibex
#

Are there statistics on how many servers are using Folia?

fair merlin
#

There’s a bstats page

pseudo ibex
livid crag
fair merlin
#

Mostly test stuff yeah

crude moat
#

Hey just a quick question, what is the current status on Folia? is it production ready?

finite hinge
#

If you have or are a full time developer for your server then maybe

pseudo ibex
#

Presumably I’d think it is a even less stable version of Folia 1.19.4

#

It’s also interesting the giant spike in player count

#

From 76 to over 1k

livid crag
#

yeah that was a server launch Clue

pseudo ibex
#

Oh hahahhahaha paperUwU

pseudo ibex
blazing bough
#

If I had to guess ... The 2b2t test server

pseudo ibex
bold osprey
pseudo ibex
bold osprey
#

it's the same domain name

#

just add test. before the name

#

and you'll be on the server with folia

red lintel
livid crag
#

(his issue isnt server spece evne if below average)

#

his world setup is the issue that is not going to take benefit from using Folia. (his players are way too close)

tawdry nexus
#

Does velocity support folia?

jagged ether
#

Yes

tawdry nexus
#

Woohoo

#

Perfect thank you

prime juniper
#

24 CPU threads, will Folia work or is 32 absolute minimum

arctic tapir
#

it’ll work

#

the question is how good

#

and it’s cores iirc not threads

prime juniper
#

Ok 12 cores they said 16, I don't need over 100 people but they will be spread out pretty good

golden mica
arctic tapir
#

question?

golden mica
#

may low core could work well

#

i dont think you must have 16 core

#

13700k with no ecore could load 160+ player i test

ocean geyser
#

13700k still has 8 p-core

#

That is not a small quantity.

kind narwhal
golden mica
#

48GB

austere tartan
#
2023-06-12 16:27:46,744 ServerMain ERROR Rewrite contains an invalid element or attribute "StacktraceDeobfuscatingRewritePolicy"
2023-06-12 16:27:46,745 ServerMain ERROR Rewrite contains an invalid element or attribute "ExtraClassInfoRewritePolicy"
java.lang.NoClassDefFoundError: io/papermc/paper/plugin/provider/source/ProviderSource
        at net.minecraft.server.Main.main(Main.java:126)
        at org.bukkit.craftbukkit.Main.main(Main.java:309)
        at io.papermc.paperclip.Paperclip.lambda$main$0(Paperclip.java:42)
        at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.ClassNotFoundException: io.papermc.paper.plugin.provider.source.ProviderSource
        at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:587)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
        ... 4 more
An expected class  org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftScheduler was not found for preloading: org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftScheduler
An expected class  org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftScheduler$1 was not found for preloading: org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftScheduler$1
An expected class  org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftScheduler$2 was not found for preloading: org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftScheduler$2
An expected class  org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftScheduler$3 was not found for preloading: org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftScheduler$3
An expected class  org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftScheduler$4 was not found for preloading: org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftScheduler$4
#

Been trying to compile Folia and I finally am able to do so but now I get this NoClassDefFoundError.
Followed the instructions for how to compile paper.

viral stone
#

I mean, your first error is cos of the log4j config

#

or, well, actually, those classes should be there

#

sounds like an issue with how you're reunning the thing

austere tartan
#

Same thing as running my spigot builds. Are there any extra steps?

viral stone
#

no

#

make sure that you grabbed the correct jar

#

outsie of that, no idea

austere tartan
#

I am assuming the paperclip jar correct?

viral stone
#

yes

fair merlin
viral stone
#

what java version?

austere tartan
#

17

viral stone
#

like, the full version string

#

run java -version

austere tartan
#

openjdk version "17.0.7" 2023-04-18
OpenJDK Runtime Environment Temurin-17.0.7+7 (build 17.0.7+7)
OpenJDK 64-Bit Server VM Temurin-17.0.7+7 (build 17.0.7+7, mixed mode, sharing)

golden mica
#

True player

viral stone
#

hm, no idea

golden mica
#

So many red stone and a lot of entities

viral stone
#

best guess is gonna be to do a clean build, make sure that you're not compiling in a onedrive folder or something weird

golden mica
#

But it will crash per day by chunk system

#

🥺

austere tartan
#

Alright

golden mica
#

1.20 fix the Chunk problem but when you teleport

#

Poi and entity will crash again

#

🥺

#

Issue #91 hope it could fixed soon

#

So that I could update 1.20 and enjoy Sakura

#

Where is rat king leaf 🥺🥺🥺

keen fable
#

let him cook

livid crag
#

@golden mica rat is awake but jmp did it Pog

stark salmon
#

Folia is stable to use in production?

keen fable
#

No

golden mica
#

may yes hahah

shut juniper
#

yesn't

livid crag
golden mica
#

may rat king still need fix

#

when they add check, another problem with neither was out

keen fable
tranquil epoch
#

i'll take a look

golden mica
#

and #82 still here could reproduce

#

and #51 #62 fixed in latest ver

silver sierra
#

my pr only fixed one specific issue that didn't exist before 1.20

#

if they are fixed on latest they were probably fixed by other changes leaf did

golden mica
#

Got it

#

I will backup a ver to see #94

#

I don’t know may your pr fix #91 and cause #94

silver sierra
#

nah just before my pr #91 would trigger before #94 could in most cases

golden mica
#

i will backup a ver to check it

#

Thanks your hard work for the powerful project ❤️

steep elbow
tawny parcel
#

Hi! I am kind of newbie with Folia, can anyone help with to download it and install it? 😉

tawdry gullBOT
#

⚠️ 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.

fair merlin
keen fable
#

it is just me or sometimes the respawn button does not work on Folia ? and when respawning the player keeps playing the dying animation for himself ?

#

idk how to reproduce tho

golden mica
#

true

#

my player also report it to me everyday

livid crag
#

does it happens to all client or just a perticular one?

#

can you guys test?

keen fable
#

got it one time with the vanilla client 😇

pseudo ibex
livid crag
#

Feel free to open a report with as much details as you have (even if unreproducable reliably)

golden mica
#

🥺

golden mica
#

#82 could be fixed?

#

so annoy.

fair merlin
# golden mica #82 could be fixed?

Issues will get fixed when people get time for them. Please be patient and don’t ask in here about it if it hasn’t been too long. Folia hasn’t been out long enough for issues to be considered “stale”, and it’s explicitly marked in development for a reason.

golden mica
#

Thank you for your reply, I see the issue has passed for two weeks and has not been answered, so come and ask, sorry to bother

fair merlin
#

Yeah two weeks is nothing in terms of open source/dev time.

#

I wouldn’t get your hopes up for issues to get resolved quickly. Especially complicated one.

#

Leaf’s doing the best he can but he does have a life (probably)

tranquil epoch
#

unlikely to be resolved

#

the complexity required to abort a teleportation and the weird behavior of it is not acceptable

fair merlin
#

Oh is that the mob portal one?

bitter jasper
#

How do i allocate threads to Folia?

fair merlin
#

It’ll allocate threads itself.

soft ivy
#

Hello, do you know what it could be about?

soft ivy
arctic tapir
#

try doing it in the terminal

#

also click on the top "Folia: failed"

#

should show the proper logs

soft ivy
arctic tapir
#

try a clean applyPatches from terminal

soft ivy
arctic tapir
#

your terminal

#

Not intellij

soft ivy
arctic tapir
#

don't need it installed

#

use the wrapper

#

./gradlew applyPatches

soft ivy
#

I have 10 windows system, no linux

arctic tapir
#

install wsl

#

should use that for paper/folia anyway will be way faster

soft ivy
#

ok, thanks. I will install and let you know

ocean geyser
#

run on poweshell

#

You dont even need wsl

#

cmd will work too

arctic tapir
#

it'll work but slower

#

and windows has issues with path limits

ocean geyser
#

It take me only 6 min, think its okay.

arctic tapir
#

templeos

tawdry gullBOT
#

⚠️ 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.

strange gazelle
#

just wanted to see this text, sorry for spam

inner swift
#

Folia will open is basically anything
Now whether it will run well, or better than Paper, it depends

#

Your setup is below the recommended minimum, that's really all I can say

finite hinge
#

I think you can get away with 12 cores if you pregen your world, the way Leaf got to 16 for the recommendation included cores dedicated to worldgen

#

Technically you could run it with 2 cores, it'll just run worse than Paper in almost every situation

#

The more cores you have the more likely it'll outperform Paper but that still depends on your server setup

#

How spread out players are and such

raven compass
#

Is there any fork of vault for follia?

ocean geyser
proper garden
#

does anyone know of a plugin that can make fire go out after a certain period of time. I have fire tick off because of fire spread but i still wanna have fire not stay forever because it gets very cluttered and annoying

fair merlin
#

For Folia? Probably not.

proper garden
#

meant to send this in paper 💀

pulsar palm
#

Excuse me if it's already handled.

We have our mobcaps set on a vanilla smp to this with Folia.

    monsters: 20
    animals: 5
    water-animals: 2
    water-ambient: 2
    water-underground-creature: 3
    axolotls: 3
    ambient: 1`

This gives us next to no mobs. Any other people that have changed their mobcaps when they started using Folia and have better values?

pulsar palm
#

After further checking...hostile mobs are not spawning at all.

keen fable
pulsar palm
keen fable
pulsar palm
#

Thx alot for the info. will do.

finite hinge
#

A region is at least 48x48 chunks but could be the entire world

pulsar palm
#

I bumped it up to 1k and still small results.

#

I'll try and figure it out, thank you

finite hinge
#

Or wait, no, 96x96 chunks

#

Yeah, regions are huge

pulsar palm
#

Atleast I don't feel crazy with those huge caps.

finite hinge
#

Unless your players are really spread out and tend to be loners or form small groups (that are also really spread out) you aren't going to have many regions

#

I'm not sure if the mob cap is per-region though

#

I wouldn't be surprised if Folia just forces on the per-player-mob-spawning flag so it doesn't have to deal with global state

#

But I suppose making them per-region would solve that too

viral stone
#

the way the mob cap stuff is calculated is arse

#

generally, check the values that the commands show and tweak as needed, generally

pulsar palm
#

For me it seems like it was purely done to revert the playercaps.

viral stone
#

Well

#

So, vanilla should already be spreading them out enough

finite hinge
#

Huh, well I guess if you're already doing it per-region the per-player stuff is just a complication

viral stone
#

just, it kinda sucks, and so we kept our patch which makes it go harder

pulsar palm
#

Put mobcap to an absolute high..like 10k. still getting 1 or 2 zombies during night. No they're not in caves.

livid crag
#

Output of /paper playermobcaps

#

And output of /difficulty

fair merlin
#

Not that I know of, but you really do not want to reload plugins. Not on Folia or Paper.

finite hinge
#

I suspect Folia would be even more likely to have issues with unloading plugins while the server is running

fair merlin
#

Yeah

pulsar palm
livid crag
#

That’s mobcaps

#

/paper playermobcaps

#

Unless that is broken on folia rieBigBrainThinking

pulsar palm
#

Mate thats not possible

livid crag
#

Does it say unknown commend?

livid crag
#

I think I know what it is now

pulsar palm
#

look at the message i answered

livid crag
#

Yeah PepeLa

pulsar palm
livid crag
#

So likely nothing you can do about it unless the region you resign in has no other players

#

Vanilla gameplay go brrrrrrr

pulsar palm
#

Sigh. Not to hurt anyone, but with a release for vanilla servers this is like a big thing it needs.. especially for servers that have mob farms going

#

Will it stay this way?

viral stone
#

I mean

#

probably

#

Like, mob spawning in vanilla is broken as all shit

#

The ideal solution is that somebody rewrites mob spawning to not be shit

#

but, ofc, at least until we got new build tooling, that was 100% impossible

fair merlin
#

It’s also still development software, which we explicitly state. There’s a bunch of stuff that is broken, missing, and still being worked on. It’s also not intended to be a direct replacement for Paper.

livid crag
#

Yeah that’s indeed the real vanilla gameplay PepeLa

pulsar palm
#

yeah no ofcourse, i get you on that

viral stone
#

now, there is a chance of it, but, idk if somebody will care to figure out a proper design and invest the time into replacing mob spawning

livid crag
#

Perhaps if you want, open a feature request and let it sit on folia. Leaf will close it if he doesn’t think it’s doable. rieThumbsUp

pulsar palm
#

Someone did that

livid crag
#

Oh rip PepeLa

#

But yeah without a rewrite as cat said. It’s pretty much as is

pulsar palm
#

That's fine guys. Thanks for the answers. It is what it is

viral stone
#

the issue is that per player mobcap is a hack over the existing spawn logic

finite hinge
#

I would have thought Folia's logic would at least be per-region though

#

Since global state is a PITA

viral stone
#

best approach for folia as a quick fix will probably be to modify it so that it's bound to the region a bit better is my understanding

finite hinge
#

So maybe you aren't spreading people out enough

tranquil epoch
#

it is a per region logic

#

it does use vanilla's stuff entirely though

viral stone
#

does the mobcap command show per region info?

tranquil epoch
#

it will be for the region of the executor

pulsar palm
finite hinge
#

Sure so within that region you still have the broken vanilla spawning

pulsar palm
#

This is all the output we receive, dont watch the over the top mob cap, only for temporary purposes

finite hinge
#

But if you're spreading your skyblock players out so they each get a region that should be the same as per-player caps

tranquil epoch
#

there is a vanilla limit on the chunk density i think

viral stone
#

big thing is generally going to be to ensure that you have viable spaces for mobs

#

check the lighting level, etc

tranquil epoch
#

is this skyblock?

pulsar palm
#

no smp

tranquil epoch
#

@livid crag can you be the you know what for once and test this out for me?

livid crag
# pulsar palm

Can you provide your mobcap value. One you either put in bukkit.yml or overwrite in paper-world.yml

pulsar palm
#

I already stated that earlier mate. But here a screenshot for reference

livid crag
#

time to download some folia Chatting

pulsar palm
#

I literally kept putting it up until it showed results. This is just temporarily set to get results

livid crag
#

so really, to improve it, really meant to break how Vanilla usually operates.

tranquil epoch
#

what about setting very high limits

livid crag
#

oh that's just mod density for sure but let me test.

#

logic is still correct to me. I do believe that's due to mob density.

fair merlin
#

I’m development you want reproducible behavior so you aren’t introducing false bugs or stuff. Which is exactly what reloading is going to do.

livid crag
tranquil epoch
#

it seems like it is strict on 70 for some reason

#

I will double check this behavior locally

livid crag
#

that's on you Chatting

#

atleast the spawnable chunk logic there looks correct

#

on a sidenote, this looks pretty funny PepeLa

pulsar palm
#

Yeah haha

pulsar palm
# livid crag

btw.. dont know if it cares too much but our server is on 1.20

livid crag
#

I dont think the rat touches it I just use whatever I had PepeLa can try later

upbeat hound
#

The website says having a minimum of 16 physical cores is recommended to fully benefit from Folia, but I'm guessing this is for large servers? What if I have a server with only 10 ish people at peak. Will I see any viable benefits from 6/8/12/16 cores?

hexed ice
#

with 10 people on a server you should just use paper

upbeat hound
#

Cheers

tawdry gullBOT
#

⚠️ 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.

tawdry gullBOT
#

⚠️ 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.

prime juniper
#

who can help with this?

arctic tapir
#

what command did you do

prime juniper
#

i tried to use gradlew build but when i use ./gradlew applyPatches or ./gradlew createReobfBundlerJar it gives me build error

arctic tapir
#

first do apply patches

#

then createReobfBundlerJar

#

then look in the root build/libs directory

steep elbow
#

try giving it a couple of tries

scenic sky
#

there was no bug, it was on your end

#

atleast not a problem when compiling on linux BebeLa

tawdry gullBOT
#

⚠️ 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.

bold osprey
prime juniper
#
> Task :paper:patchCraftBukkit FAILED
> Task :getPaperUpstreamData FAILED

FAILURE: Build failed with an exception.

* 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 12s
2 actionable tasks: 2 executed
arctic tapir
#

show the whole log

plain shuttle
#

is there a way to reduce the number of chunks that are in a region?

tawdry gullBOT
#

⚠️ 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.

plain shuttle
#

and how many chunks are in one region?

timid grotto
#

afaik there is no set number of chunks per region

#

regions grow and shrink with what areas of the world they have loaded, and regions will merge if they get too close to each other

#

there has to be enough unloaded space between loaded areas for them to actually become two separate regions anyways

plain shuttle
#

okey

bold osprey
finite hinge
#

No, you really won't make a difference

#

iirc maybe a view distance of 2 would reduce it a little

finite hinge
plain shuttle
#

okey

#

and i think i found a bug

#

when you sleep in a bed and die you will not spawn at your bed

upper kindle
#

anyone can help?

ocean geyser
#

bruh

#

you got all player in one area

upper kindle
#

nah, im using rtp

arctic tapir
#

well for one you shouldn't use windows

#

and 2, you're players are too close

upper kindle
#

thanks for the advice, anything else?

#

i9 9900k, 128GB RAM and 2TB nvme sdd how many players can play in one server? with folia thonk

inner swift
#

Might as well just use Paper with that hardware

#

The recommended minimum for folia is 16 physical cores, that CPU has 8

finite hinge
#

I might, it might still be an improvement

#

But only if you move your players further apart

#

Like 1500 blocks+ from each other

#

Or in groups that are all 1500+ from each other

upper kindle
prime juniper
#

How do I make a Folia Build?

tawdry gullBOT
#
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.

fair merlin
halcyon crown
#

i don't understand how to install folia (i'm new to minecraft server installation)

jagged ether
#

Then Folia is definitely not made for you at this time

halcyon crown
#

what would you recommend for a scalable vanilla/plugin server and what is optimized?

arctic tapir
#

Paper

halcyon crown
#

and is there a map pre-generation plugin?

hexed ice
#

chunky

halcyon crown
#

thank you

#

I'll give it a try

uneven trench
#

I have a couple of questions

do you recommend using viaversion and viabackwards to allow more versions on your folia server?

And my other question, has anyone installed geyser and floodgate and did it go well? because I tried to install it and when you enter folia from bedrock there is too much lag, you can't even move.

fair merlin
#

Not sure if anyone got geyser working

keen fable
#

Geyser works fine for me

pallid plume
#

keep getting this error when running the server jar
Error: Unable to initialize main class org.bukkit.craftbukkit.Main
Caused by: java.lang.NoClassDefFoundError: joptsimple/OptionException

pallid plume
#

ther isnt one

#

it stops at that

tacit tartan
#

ngl if it's folia, sounds like a compilation error

fair merlin
#

Like walk me through the steps you're taking

pallid plume
#

i had just finished building the server jar (probably the issue) then set up my run.bat and ran the server

fair merlin
#

Then yeah you probably didn't build it correctly.

pallid plume
#

ok i will do more digging

finite hinge
#

I think you get that if you run the base jar instead of the bundler one

#

You need the bundler or paperclip jars

pallid plume
#

ah i see

finite hinge
#

iirc it's in build/libs

pallid plume
#

thank you i was using the base jar

finite hinge
#

Mojang switched to a jar(s)-in-jar thing instead of just shading all their dependencies

pallid plume
#

thank you

strange gazelle
#

Anyone have an idea if there's a compatible plugin with folia that restores skin functionality? For a server that allows cracked clients to join

finite hinge
#

Screw servers that allow cracked clients to join

#

Who cares about them?

strange gazelle
#

I kinda do. Not all my friends have minecraft purchased\

wicked mantle
#

Should be a good friend and buy it for them :D

finite hinge
#

You literally can't talk about any of that here

strange gazelle
#

Ah, thanks @finite hinge , I didn't see

#

Srry

strange gazelle
finite hinge
#

There are situations I'm sympathetic to but it's easier to have a blanket rule and not having a blanket rule would be a violation of Discord's ToS

strange gazelle
#

fair enough, I get you

prime juniper
#

hey how can i build Folia?

fair merlin
#

Folia's a fork of Paper so the instructions are the same.

prime juniper
#

thanks

fair merlin
#

\m/

real tendon
#

I've been trying to compile a folia build for dev testing plugin compatibility for my plugin. Unfortunately I'm having a few errors that I am unsure how to fix. Is there a dev build somewhere I can use for like 30 min of testing my plugin?

fair merlin
real tendon
#

Crud

#

Ok thx

#

I will try and get it working

#

Um

#

Actually

#

I got one to work like 2 seconds ago

#

Except it's 1KB...........

#

I don't think that's right XD

finite hinge
#

Clone git repo, ./gradlew applyPatches, ./gradlew createReobfBundlerJar

#

So long as you have git configured and aren't on Windows it's that simple

real tendon
#

Oop

#

I am on windows

fierce knotBOT
finite hinge
#

If you're on Windows make sure you put it in a location with a short path (C:\Folia for example), make sure OneDrive, DropBox, etc aren't trying to sync that directory, and you may also have to make sure your anti-virus isn't scanning that directory

#

Usually just the short path is enough to get it going

#

Alternatively setup WSL2 and built it in there, you can probably install WSL2, install a Linux distro in it, and build Folia faster than you can build it on Windows 😄

real tendon
#

Thank you!!!

#

I will see what I can do

#

I appreciate ur help

#

Have a good day :)

open raptor
#

Can folia be compiled ?

fair merlin
#

Folia's a fork of Paper so the instructions are the same.

obtuse wyvern
#

/bossbar disabled in folia? whatfor

finite hinge
#

Global state is hard

obtuse wyvern
#

unlucky

ivory dust
#

how do I compile coreprotect

#

I cant find the docs

#

I see pom.xml so do I clone and mvn clean install

arctic tapir
#

wrong channel

ivory dust
daring nimbus
#

Core protect support discord, probably

fierce knotBOT
ocean geyser
#

set project.branch to development and run maven install

strange gazelle
#

Any ideas why bedrock players are lagging on my server? I'm using folia 1.20.1 and geyser. Java players work fine, but bedrock players cant see the chat and can barely place blocks. It says that geyser is supported on folia, so what could be the issue?

hexed ice
#

you should go to the geyser discord since that sounds like a geyser issue, especially if players on java don't experience any problems

wide ginkgo
golden remnant
#

hey we have 150 players in the server but the tps only has about 3-5 so laggy, does anyone know how to fix it?

distant pasture
#

I guess you'd have to spread your players out more

deep pond
#

or increase the amount of regions if that is too low

lofty magnet
#

153 players in one region 😅

deep pond
#

oh yeah they are all in 1 region

golden remnant
#

how to increase the region manually

lofty magnet
#

spread the players out more

deep pond
#

uhh i forgor give me a second

#

in paper-global.yml you can change the max amount of threaded regions... which isn't gonna do everyone if all the players are next to each other.
Another question: how the frick did you get 10000 entities??

lofty magnet
#

10k entities isn't really that unrealistic

deep pond
#

for one region?

lofty magnet
#

*for one server

#

remember that the whole server is one region for them

deep pond
#

How did that even happen? That should spread across multiple regions right?

lofty magnet
#

the players might even be spread out pretty far overall, but they could still end up being close enough to build one large region 👀

#

they can only spread accross multiple regions if they are far enough apart

deep pond
#

so... uhh 30675 chunks in one region seems a bit unrealistic then

lofty magnet
#

that's only 200 chunks per player

#

you get more chunks loaded per player with a view distance of 7

deep pond
#

huh i guess i really got my expectations too low

lofty magnet
#

the default view distance of 10 causes 441 chunks to get loaded around a player

deep pond
#

and that's only like 70 players if spread out (to reach the 30k)

lofty magnet
#

but I'm not sure how the view distance factors into the region building/merging

#

lowering might change stuff but it still depends on the positioning

golden remnant
#

so what's the solution of this

#

I have lowed the view distance to 5

lofty magnet
#

the correct solution is to spread the players more

golden remnant
#

but the player has been dispersed to 6k blocks

#

because of the spawn radius

lofty magnet
#

well if you evenly distribute them and the radius isn't big enough then there is a very high chance for the regions to merge into one large one lol

inner swift
#

150 players in a 6k radius way too small of a spread

little cedar
#

It might shouldn't be working this way

lofty magnet
#

I'm not sure what you are asking for

#

folia is a tool which helps spread load with tons of players in different regions on a large map

#

it's not the right tool for "lots of players in a very small area"

little cedar
#

I understand now, thank you for your answer

unkempt aurora
finite hinge
#

Lowering the view distance will not lower the region size

#

Players have to be more than 48 chunks from each other to have a chance to be in different regions

#

You need everyone really spaced out to get regions

wicked mantle
#

Yeah you need a map of like 100k to make it work well kekw

little cedar
lofty magnet
#

wat

finite hinge
#

No, view-distance doesn't matter if you keep it to sane ranges

#

You'd need a view-distance of 1 or 2 to have a chance to make regions smaller (but I think things just explode instead) and a view-distance of like 25 to make regions larger

#

You don't want regions to be larger

#

Actually you'd need a view-distance of 20 to make larger regions iirc

#

So as long as you're below 20 you're getting the smallest regions you can get but regions that are close merge so you can end up with one massive region

#

To fix that you need to spread people out more

little cedar
#

I just misunderstood, now I understand clearly, thank you👍

somber zinc
#

Hey, I'm running a folia server and for some reason it takes ~30GB of ram, what server arguments should I use ?
I have a dedicated server from Hetzner with
Ryzen 7 3700X
64GB DDR4 RAM
2x1TB NVMe RAID 0

#

btw I'm using linear with compression instead of anvil for the worlds

lofty magnet
#

I mean java will be using as much memory as you give it

unkempt aurora
lofty magnet
#

it's your job to decide what is the correct amount

somber zinc
#

it spiked from 10GB to 30GB in just seconds btw

lofty magnet
#

what do you mean by "run it without GC"?

somber zinc
#

no garbage collector

#

😅

arctic tapir
#

why

somber zinc
#

cause I don't remember how to use GC to be honest

lofty magnet
#

wat

arctic tapir
#

it runs with a gc by default..?

lofty magnet
#

the jvm includes the G1GC by default, turning it off requires a considerable amount of intent

somber zinc
#

I mean to set the start-up arguments to be more "efficient" sorry I can't describe it better I haven't slept for 2 days and I'm starting to imagine dragons

lofty magnet
#

ok, so what exactly is your issue here?

livid crag
uneven trench
finite hinge
#

Sure, assuming you can't get enough regions or have some that could use more help

#

The first answer for Folia is to get more regions (aka throw more hardware at it)

steep elbow
#

Lets say i had survival server open with 200 players.
folia wants players to be spread out, so basicly if they all joined to spawn would the server crash or?

finite hinge
#

It would run a little worse than Paper with 200 players

steep elbow
#

okay thanks

uneven trench
#

maybe it would not crash but there would be lag in the spawn region, is what I understand

steep elbow
#

Trying to think of different circumstances for a server incase i ever run it, like doing events would be big no no on folia if all players would be in same area

uneven cloak
#

how often does folia unload chunks ? i have loaded some chunks and my ram is now at 30gb for some time now

steep elbow
#

So would gotta change basic server designs a bit

uneven trench
uneven cloak
lofty magnet
#

you realise that java will use as much memory as you give it right?

steep elbow
steep elbow
#

but its recommended to have ram maxed out to gain more peformance

lofty magnet
#

well, flags might tune the behaviour but the general goal (especialls of G1GC) is to not garbage collect if it's not necessary

sturdy moon
#

Is it worth having Folia on server that will have ~200+ players and will be focused on having lots of pvp minigames that will have their own worlds ? Right now we have survival server that can only hold 30 players at 20 TPS and with more players TPS is getting worse and we expect lot of players in future

viral stone
#

I mean, it will separate stuff up into regions and stuff

#

But, only 30 players suggests you have deeper issues

warm rune
#

what if i want to use it for 1000^3 tnt explosions?

viral stone
#

I mean, that would just all be in a single region

#

A single region will perform slower than paper on its own

warm rune
#

hmm tnt spreads to other chunks but it doesnt count i guess

finite hinge
#

But otherwise you get at least one region per world

warm rune
#

wait whats region isnt that mean chunk?

viral stone
#

No

finite hinge
#

Region in this case means thread, sort of

warm rune
#

i thought folia works each chunk parallelism

finite hinge
#

Technically regions are mapped to threads so you can have 6 region threads but 200 regions and they just share

viral stone
#

It works by splittinf the world into dynamically defined regions

finite hinge
#

Nope, it's at least 48x48 chunk regions

warm rune
#

oo i see

finite hinge
#

Centered on a player, if they overlap they merge

#

Err, wait, 96x96?

#

Yeah, 96x96

warm rune
#

whatt 96 chunk?

#

or distance

#

i hope its distance

sturdy moon
finite hinge
#

The region is 96x96 chunks at the smallest

#

Centered on the player

warm rune
#

1536 distance

finite hinge
#

If two players are within 48 chunks of each other their regions will overlap and get merged into one bigger region

warm rune
#

will folia implement lesser chunks like 256distance(16chunk) or sth are there any plan for it?

viral stone
#

Regions are kinda large because of how the chunk system in Minecraft works

finite hinge
#

This is a bit off since a player isn't the size of the chunk and there are various reasons a region might be larger

viral stone
#

You can't really make the regions too much smaller than that

finite hinge
#

You could in theory make them like 64x64 chunks but that would increase locking overhead so might be a loss overall

#

Making them smaller than 48x48 isn't likely due to how MC's chunk tickets work

warm rune
#

i just want to try biggest tnt explosion world record

#

as content also it can be tnt explosive server

#

but no hope i guess

viral stone
#

Spigot already limits how much tnt will explode each tick

warm rune
#

100 as default i know

viral stone
#

Most of the lag from tnt these days is all the entities moving around

warm rune
#

oh i see last position calculation from explosion i guess

#

also velocity calculations?

viral stone
#

It's thousands of entities ticking

warm rune
#

well do u have any recommendation for this purpose? Cpu usage is %25 while explosions happens i think its single threaded

#

geekbench6 score about 8000

viral stone
#

It is single threaded

#

There very little that can be done about that

warm rune
#

single thread about 1000

#

ok ty

finite hinge
#

Folia won't get you multithreaded explosions, it'll just let me play at full speed while you kill your part of the world 10,000 blocks away 😄

lofty magnet
#

just have 100 players far from each other each blow up 1000 tnt. instant 100k tnt on one minecraft server record!

keen fable
tight halo
#

Help me


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 'u0_a559@localhost.(none)')
***   Please review above details and finish the apply then
***   save the changes with `./gradlew rebuildPatches`

> Task :paper:patchSpigotApi FAILED
> Task :getPaperUpstreamData FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':paper: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

BUILD FAILED in 3m 53s
2 actionable tasks: 2 executed```
daring nimbus
#

The first few lines of the error message tell you what to do

tight halo
#

Ok

ocean geyser
#

Can anyone tell me what happen? build on windows only take 6 min

#

It did run, but very slow

bold osprey
#

use wsl, it would be faster in a simulation of linux than in Windows itself

ocean geyser
#

You know that is wsl?

bold osprey
#

oh, that is already wsl?

ocean geyser
#

Bruh see line 2 -> PS C:\Users\paul> wsl

bold osprey
#

yeah, missed that

#

so wsl is slower than windows? that's pretty strange

#

maybe your cpu is old?

ocean geyser
#

no 13700k

bold osprey
#

do you have high Ethernet speed?

ocean geyser
#

over 1G

bold osprey
#

hmmmm

half vault
#

its WSL but he is still on the windows file system

ocean geyser
#

Yeah but windows only take 6 min and wsl take 48+

#

Something go wrong

bold osprey
#

seems like wsl 2 is a lot worse than wsl 1 when comparing working with files

bold osprey
ocean geyser
half vault
#

i did point this out

iron finch
#

how to download folia?

distant pasture
#

You have to build it yourself

iron finch
# distant pasture You have to build it yourself

well i downloaded using git clone
ran install.bat - build successful

ran jar.bat BUILD FAILED - In plugin 'io.papermc.paperweight.patcher' type 'io.papermc.paperweight.tasks.CreateBundlerJar' property 'vanillaBundlerJar' doesn't have a configured value.

ran patch.bat BUILD FAILED > Task patchSpigotApi FAILED Task :getPaperUpstreamData FAILED

tawdry gullBOT
#
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.

#

⚠️ 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.

bold osprey
bold osprey
iron finch
# bold osprey you need to do the same from the paper guide, but for folia

./gradlew applyPatches

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task 'paperpatchSpigotApi'.

io.papermc.paperweight.PaperweightException: Failed to apply patches

./gradlew createReobfBundlerJar

FAILURE: Build failed with an exception.

  • What went wrong:
    Some problems were found with the configuration of task ':createReobfBundlerJar' (type 'CreateBundlerJar').
    • In plugin 'io.papermc.paperweight.patcher' type 'io.papermc.paperweight.tasks.CreateBundlerJar' property 'serverLibrariesList' doesn't have a configured value.
#

repo is cloned using git clone
on ubuntu 22 WSL

viral stone
royal swallow
#

Does Folia support 1.20.1? Yes/no?

wicked mantle
#

Yes

pseudo ibex
#

Oh ge, I would think a plugin could do this

steep elbow
#

Good idea

keen fable
#

is there something like spark for folia 1.20 ?

strange gazelle
#

Can someone help me a bit with folia's API calls? I can't seem to get them working..

distant pasture
#

wdym?

strange gazelle
#

I'm trying to develop a plugin for folia that simply shuts down the server at a specified time. The plugin works on paper, but not on folia. Of course, this was to be expected, as folia changes a lot. I need to reconfigure the plugin in order for it to work with folia.

distant pasture
keen fable
finite hinge
#

Huh, does spark not work for 1.20 paper either or if there something specific to folia that changed?

#

Because they don't appear to have done anything for 1.20 yet other than for fabric

wicked mantle
#

Spark works on 1.20 for Paper.

finite hinge
#

I checked out that branch, rebased on top of master, updated the userdev dependency to 1.20.1, and am doing a build

#

I wonder if that'll be enough to fix it

#

Unfortunately building it this way builds like 8 versions of it for fabric, forge, multiple sponge vesions, etc so it might be a while before I even know if it compiles 😄

#

Ah, apparently you can't build with java 20...

keen fable
wicked mantle
#

Why you pinging me OMEGALUL

keen fable
wicked mantle
#

I already know spark works for paper 1.20 because I just saw a spark report in #paper-help for 1.20.1

finite hinge
#

In 20 years when IDEA finishes processing it I'll try again 😛

#

But yeah it's probably just a matter of fixing imports

#

This was all I needed to make it compile, no idea if it works: ```diff
diff --git a/spark-bukkit/build.gradle b/spark-bukkit/build.gradle
index 28208fd..58c50c4 100644
--- a/spark-bukkit/build.gradle
+++ b/spark-bukkit/build.gradle
@@ -10,7 +10,7 @@ tasks.withType(JavaCompile) {
dependencies {
implementation project(':spark-common')
implementation 'net.kyori:adventure-platform-bukkit:4.2.0'

  • paperweight.devBundle("dev.folia", "1.19.4-R0.1-SNAPSHOT")
  • paperweight.devBundle("dev.folia", "1.20.1-R0.1-SNAPSHOT")

    // placeholders
    compileOnly 'me.clip:placeholderapi:2.10.3'
    diff --git a/spark-bukkit/src/main/java/me/lucko/spark/bukkit/folia/FoliaTickStatistics.java b/spark-bukkit/src/main/java/me/lucko/spark/bukkit/folia/FoliaTickStatistics.java
    index 483e467..1963d7f 100644
    --- a/spark-bukkit/src/main/java/me/lucko/spark/bukkit/folia/FoliaTickStatistics.java
    +++ b/spark-bukkit/src/main/java/me/lucko/spark/bukkit/folia/FoliaTickStatistics.java
    @@ -28,7 +28,7 @@ import me.lucko.spark.common.monitor.tick.TickStatistics;

import org.bukkit.Server;
import org.bukkit.World;
-import org.bukkit.craftbukkit.v1_19_R3.CraftWorld;
+import org.bukkit.craftbukkit.v1_20_R1.CraftWorld;

import io.papermc.paper.threadedregions.ThreadedRegionizer;
import io.papermc.paper.threadedregions.ThreadedRegionizer.ThreadedRegion;

keen fable
#

and the profiler works like the 1.19.4 version 🫡

vocal shuttle
#

is folia stable and bug-free enough yet for a public server?

#

50 players range but basically vanilla settings

foggy blaze
#

no it's not

hexed ice
#

paper is more than enough for 50 players

vocal shuttle
#

normal mob cap and high simulation distance

livid crag
vocal shuttle
#

we have tried everything in the past

lofty magnet
#

@vocal shuttle that is not the use-case for folia though?

vocal shuttle
#

why not though? every player has his own base away from each other with 14 threads to spare from the 16

lofty magnet
#

well I guess that works if you have a very large map

vocal shuttle
#

it is an smp and the map isn't too big but big enough for regions to not merge by a big margin

lofty magnet
#

so larger 10k radius?

#

*larger than

vocal shuttle
#

exactly 10k right now

livid crag
#

Yeah Folia is not gonna work for you

lofty magnet
#

ifoli, new fork? Pogchamp

lethal igloo
#

can anybody tell me how to build folia?

#

i need help

livid crag
#

By reading how to build Paper

#

And apply to Folia

lofty magnet
#

just store the last time it was executed? or use a cache which auto-invalidates values after 5 minutes

fair merlin
#

You should be asking this in #folia-dev if you're writing a plugin

#

No worries

hardy smelt
#

Quick question if anyone knows: is the world file transferable to a paper server?

#

I'm assuming yes

livid crag
#

No format is changed so yes

hardy smelt
#

Ty

finite hinge
# vocal shuttle exactly 10k right now

If players are within 48 chunks of each other their regions merge (it can merge from further out sometimes too). If player A is 40 chunks from player B is 40 chunks from player C they're all in a single region even though A and C are 2000 blocks from each other. You need people to be really spread out

#

Or at least grouped together in small really spread out groups

tight halo
fierce knotBOT
fair merlin
#

Looks like a config is broken or something

#

If you aren’t able to read the logs to diagnose and troubleshoot plugin issues then you might not want to be running Folia yet.

tight halo
#

:v

finite hinge
#

The ViaVersion issue isn't why the server dies though, that's because your world is corrupted

#

Oh, no, that also isn't what appears to be killing it, there is even more in the log

#

I think you have a bad config file for ViaVerison, world corruption, and you may have built a mojmap jar instead of an obfuscated one. Either that or the geyser and floodgate you have don't actually support folia and someone just edited the plugin.yml to make them pretend to do so

tight halo
#

Hmm, I will check it again. But I think the possibility of geyser and floodgate not supporting is very low. Since I checked in plugin.yml there is folia-supported: true

viral stone
#

Somehing went wrong with the plugin, it's tryna use versioned classes when they no longer exist

elder portal
narrow elbow
#

how do i compile folia into server jar

hexed ice
#

see the paper readme for build instructions

dire steppe
#

how to download folia?

#

im new and idk how to do that

fair merlin
#

You have to build it yourself.

dire steppe
#

is that hard?

fair merlin
#

See the Paper repo for instructions on how to build it.

#

Suppose it can be for some. It's still in active development so it's not really ready for everyone to be using it.

tawdry gullBOT
#
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.

fair merlin
#

FAQ/Readme/etc there

#

Also see pins in this channel

dire steppe
#

oh

#

my server has 8 cores

#

daym

fair merlin
#

Yeah not for you then.

#

You're better off using Paper.

dire steppe
#

thanks for telling me

golden mica
#

not really

#

13700k with 8 p core

#

165 players work well

finite hinge
#

In theory if your kernel is smart enough to use the E cores for netty and chunk stuff that works but otherwise it'll probably lead to inconsistent performance

#

Any time the kernel decides a region should go on an E core anyone in it will cry

golden mica
#

true

#

so may 7950x will work well

visual falcon
#

7950x is plenty

arctic tapir
#

show full log

mental tide
#

resolved

fair merlin
pseudo ibex
fair merlin
pseudo ibex
#

😭

fair merlin
#

But it looks like it got added to another PR instead

fair merlin
#

Oh I misread the comment

pseudo ibex
#

Awwww

#

📈📉📈📉

prime juniper
#

How is Folia compiled?
I would like to try it 😄

viral stone
#

See the paper read me, just clone the folia repo instead of the paper one

dusk dove
#

Can I compile folia in VSCode?

jagged ether
#

The editor really is irrelevant

dusk dove
#

Yeah I see

#

I just want to compile it so I can try it out. Which compiler should I use

fierce horizon
#

How can I set up Folia, is there a jar file for it or how does it work exactly?

fair merlin
#

Read up a few lines. You have to compile it.

brazen dust
#

I built folia using the instructions from the paper repo and when I try to run it (java -jar folia-1.20.1-R0.1-SNAPSHOT.jar) i get "No main manifest attribute, in folia-1.20.1-R0.1-SNAPSHOT.jar"

viral stone
#

Wrong jar generally

#

You one the one from the root build folder

brazen dust
#

Thats prob it. Thanks

#

The ones in Folia-Server?

#

Folia-Server/build/libs/ has 2 jars and it seems neither of them run with different errors

#

Using Java 17

#

folia-server-1.20.1-R0.1-SNAPSHOT-reobf.jar```

These are the two jars
#
Caused by: java.lang.NoClassDefFoundError: joptsimple/OptionException```
viral stone
#

No

#

In the root folder of the project

#

I.e. I’m the build folder alongside the -server folder, not in it

brazen dust
#

Oh. I thought thats what I had originally

#

Ill try it again im rebuilding rn just to be sure cause i messed it up a few times

#

thank you i got it

glad magnet
ocean geyser
glad magnet
fair merlin
# glad magnet how do i clone

If you don't know how to clone the repo, you probably shouldn't be building this right now. Look up how to work with git, gradle, and Java a bit.

#

You need to have a bit of git knowledge to be able to clone and build the project.

viral stone
#

You need a custom branch of spark

#

Timings isn’t designed for threaded environments

jagged ether
#

Why are you sending a link to your fork when Spark has their own Folia branch

#

That just like Folia if you know how you can compile in seconds

little sable
#

ah not my bad, he has update ^^

prime juniper
#

How do i compile Folia on Fedora btw?

scenic sky
#

copy folia repo, look at the compilation instructions of paper

prime juniper
#

Okay thanks

#

Also folia is 1.19.4 if im correct?

scenic sky
#

1.20.1

prime juniper
#

Okay that's cool

#

Uh what am i supposed to do here

#

Why does it want my email

#

I entered my account mail and name i hope that is correct

fair merlin
#

It's git.

#

Git wants to know who you are.

prime juniper
#

Okay

#

I have opejdk 17

arctic tapir
#

update gradle

#

or use the wrapper

prime juniper
#

its the excecutable from the repo

arctic tapir
#

screenshot ./gradlew -v

prime juniper
arctic tapir
#

try a clean clone ¯_(ツ)_/¯

prime juniper
#

Okay... i did the folia repo like 30min ago so would that really be it

scenic sky
#

i had that same issue compiling folia on fedora

#

compiled it through intellij idea and it was fine

#

ive always had the same issue with paper

prime juniper
#

If i compile it on my nuc running debian would that work

scenic sky
#

does it have a gui

prime juniper
#

nope

#

headless

scenic sky
#

yeah intellij is an ide, needs a gui

prime juniper
#

So i can't just use gradlew in an ssh session

arctic tapir
#

you can

arctic tapir
prime juniper
#

what?

arctic tapir
#

nothing

prime juniper
#

k

fair merlin
fair merlin
# prime juniper k

But if you're trying to use this on a NUC it's going to be like several orders of magnitude slower than just regular Paper.

prime juniper
#

Okay, im aware but i want to just check it out

#

Im not going to use it on my survival server

#

I just succesfully compiled it on debian

#

It starts faster which is funny to me

#

Just 2 seconds

#

Chunks generate way faster

scenic sky
#

it starts faster because it doesnt load worlds in the boot process

prime juniper
#

Ah okay

#

Is this decent for what hardware this runs on

#

This is with 0 configuration btw (just velocity setup)

arctic tapir
#

well it’s only 1 player

prime juniper
#

Also player-max-chunk-generate-rate: -1.0 is -1.0 no rate limit?

#

Uh this is very interesting

#

When no players are on its pretty low usage

solar ledge
#

Ye no shit 😂

#

No chunks loaded maybe only the spawn

prime juniper
#

i mean you can say it like that but regular paper didn't go below 15

arctic tapir
#

barely a difference

solar ledge
finite hinge
#

You can tell because the utilization says its out of 100%

#

If you had two threads it'd be 200%, etc

prime juniper
#

Okay is that changable in a config?

finite hinge
#

It's automatcially done based on how many cores you have available, not sure if you can override it

#

So your CPU is too smol

prime juniper
#

I've got 4 threads and all are allocated to the mc server

finite hinge
#

Yeah you need 16+

prime juniper
#

dam

finite hinge
#

Ideally 16 cores so no hyperthreading or 32 threads

#

You can get away with less but 4 is definitely not enough, you should stick to Paper

#

Paper is already going to make good use of 4 threads

prime juniper
#

I will, im just expecimenting

#

Just curious btw

#

What does purpur different compared to paper

finite hinge
#

More of a #general question but afaik purpur is basically just paper plus a bunch more configuration knobs and some features that plugins could do (but would be annoying to make) built in to the server

prime juniper
#

Okay so ill stick to paper then

finite hinge
#

It's basically a server's custom fork but released to the public

narrow bough
#

hello

#

Can anyone give me the already built Folia.jar

arctic tapir
#

no

tawdry gullBOT
#

⚠️ 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.

narrow bough
#

Ok, then I'll try to check the documentation and build it myself. Thank you!

finite hinge
#

It's basically git clone then two commands, the paper readme tells you what they are

#

You just clone folia instead of paper

#

So long as git is setup already and you clone to C:, D:, or some other drive directly rather than in some long path

#

Or do it on something other than Windows

narrow bough
#

I'm always like this, I don't know why

arctic tapir
#

did you read what it says

#

it tells you what to do

timid grotto
#

also you want to do it C:\ directly if possible

narrow bough
finite hinge
#

Not the paper readme, the message you screenshotted half of

#

The bit you cut off on the top is telling you what to do

narrow bough
#

already built

#

It was interrupted just now due to network fluctuations

finite hinge
#

oof, 28 minutes to apply patches, that must be Windows on an actual hard drive

#

Oh, right, it has to download a bunch of stuff so if your network was on the fritz that could be why it took so long too

glad magnet
#

is there any claim plugins that work?

arctic tapir
#

can? yes

#

should? probably not

glad magnet
#

why does it say this?

fair belfry
#

youre not in the right folder

viral stone
#

You can run it on whatever hardware you want

#

Just, how it will perform, we can't say

glad magnet
arctic tapir
#

Folia

viral stone
#

you clone te repo, it creates a folder, generally the name of the repo itself

#

you also generally wanna clone on the root of the drive due to windows limitations

brazen dust
#

There is a setting in paper "allow-perm-block-break-exploits" i would like to toggle. It seems like this is taking affect on folia so I assume it has the same since its based on paper? Is there a way I can configure these settings? solved by realizing paper.yml has been moved to config/paper.yml

glad magnet
#

is there any claim plugins that work?

glad magnet
#

do command blocks work?

shell violet
#

no. they are disabled.

glad magnet
#

is there a list for what is disabled

fair merlin
#

Nope

ocean geyser
#

Yes

#

Someone fork residence

#

But I recommend not to use it(for security reasons)

pallid plume
#

what is the diffrence between the paperclip version and the bundler version?

bleak python
#

the bundler jar is the whole server, paperclip only contains the patches to apply to the vanilla jar, which is downloaded on startup and applied

#

the bigger difference is that, the paperclip jar can be legally distributed, the bundler jar cannot :)

pallid plume
#

k thanks

muted parrot
#

Hey guys, who's the best contact person here regarding Folia? My company would love to help out in their efforts.

muted parrot
fair merlin
# muted parrot Provide more servers to test on, for one. 🙂

Haha well we don't have any plans for another test just yet. But FWIW we don't do sponsorship stuff like "Sponsored by so-and-so company", etc.

If you want to shoot your contact to /modmail we can make a note to reach out if you have some servers you'd like to offer up no-strings-attached and if we do another test we can reach out!

#

It's tricky to organize a large test with so many players, so we've mostly been focusing on bugfixes and the user tests.

Anyone is welcome to build Folia and run their own test, though! The 1,000 user test wasn't an "official" Paper test run by us, but we did stream it in the Discord and some staff were there to help out.

muted parrot
#

Alright, got it.

fair merlin
#

We do have an Open Collective, so if anyone is super stoked about Paper, Folia, or supporting the org, that's always an option!