#folia-help

1 messages · Page 29 of 1

primal oyster
#

But only for a small moment

#

It depends on your entire setup

prime juniper
keen carbon
#

I manage a server that is completely free to farm and hasn't left vanilla. There are huge mega farms there, some chunks can see 2000 entities, there can be times when the tps drops to 10-15 in that region, but no other region where the tps drops below 20 and it is not affected. This probably depends entirely on your processor.

#

and players should be as far away from each other as possible

chilly wasp
#

oh, that would be a nice patch

young burrow
#

netty io is in what config file

#

spigot.yml ?

fair merlin
#

Netty threads are in spigot.yml but I haven’t heard anyone call it “netty IO” before.

solar relic
faint crown
#

where can i find this line? c:

young burrow
#

anyway cant find that anywhere i used find in files search and im not gonna mess with the source code of folia cause i dont need to i think the optimizations i did today are good enough im over due for a hardware upgrade at this point it was planned for end of august anyway so im just gonna buy a new server getting a 28 core this time with higher clock speeds just a maxed out R730XD should do fine if i need to go that deep ill get my developers to look into it

#

it ran alright considering i was using default configs and over allocated something by WAY to much

#

and elytras atm are the source of my lag i can just nerf them

#

fire works only or a very strict speed limit

faint crown
#

could u tell the package where its located, pleaes? c:

young burrow
#

ya probably

#

why it not commented out on yours

#

quad core for this is not a good choice

#

ima assume this is the same line just on a different version and see

#

//this.broadcast.accept(new ClientboundSetEntityMotionPacket(this.entity.getId(), this.ap));

#

:sus:

#

ok

#

well if you put it on github and i can go thru it then ya ill try it out

#

sounds like itll make a huge difference

#

what does that even do

ripe crest
#

hello, what are the diverences between theese versions

wicked mantle
#

Bundler is Paper + Minecraft in 1 jar, paperclip is just the patches and it'll download Minecraft and patch it. Mojmap vs reobj is just Mojang mappings vs Spigot mappings (I believe).

#

You can only distribute the paperclip jar publicly.

ripe crest
#

thank you

hexed ice
#

mojmap is the default now though, the remapping prevents plugins from breaking

livid crag
#

@primal quail ^ -.- in case you missed it

delicate lichen
#

there will be a performance hit if run mojmap bundler

arctic tapir
#

no

viral coral
#

there is no performance hit

delicate lichen
#

ok thx

slate osprey
#

hello which processor is better for folia server?

  1. AMD Ryzen™ 7 7700X
  2. AMD EPYC™ 9634

folia adds multithreading so i thought which one is better because AMD EPYC has more cores but lower clock speeds then Ryzen 7

#

yeah ik

#

lol

#

maybe it isn't good

inner swift
#

You're not getting a dedi with that epyc

#

Is this an hypothetical question, or

slate osprey
#

i'm not very into minecraft technical stuff so i was just asking if a processor like that is good for folia

#

for sure

#

yeah i'll probably won't be

livid crag
#

Nah donut gets better shit from AMD chatting

primal oyster
#

:))))))))))))))

primal oyster
calm fable
#

trying to build folia from master, getting this error, error: release version 21 not supported

#

i assume that master is still 1.20.6 eh?

#

and the 1.21 dev branch is gone i assume in favor of 1.21.1

#

actually i just did branch 1.21.1 and i still cant compile with version 21

#

am i doing something wrong?

calm fable
#

ok i find it odd, i cant compile it with java21 but i need java 21 to run it

obtuse basin
#

Is gradle using Java21?

calm fable
#

it did originally for 1.21

#

but then the dev/1.21 branch disappeared on me

#

now i just tried to compile 1.21.1 and it makes me switch to a lower version but to run the jar, i need to upgrade again

runic eagle
#

im using folia for a long time and i updated yestarday to 1.21.1 but im having a bug, i cant craft anything and im getting this error

fierce knotBOT
runic eagle
#

what im noticing in minecraft: for eg i put a oak log in crafting table then oak planks appear, i try to get it out but once i click on it everything goes back and server log says that long error. i also tried in the lastest Paper server but there worked fine

#

i tried to complie whit patch but im getting this error:

Patch failed at 0006 Fix issues with recipe API
error: invalid object 100644 1b7b07715067014bf3d35002ae1655793248b426 for 'src/main/java/org/bukkit/inventory/CraftingRecipe.java'
error: Repository lacks necessary blobs to fall back on 3-way merge.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config advice.mergeConflict false"
***   Please review above details and finish the apply then
***   save the changes with `./gradlew rebuildPatches`
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':applyApiPatches'.
> 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 4m 44s
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
3 actionable tasks: 3 executed
Error: Process completed with exit code 1.
prime juniper
#

does folia have the features of purpur?!

inner swift
#

No, as it's a Paper fork

prime juniper
#

yeah thought so sipjuice

tidal bay
#

quick question, is it possible to decrease the 1k - 1.5k block requirement before region merging to something like 500 blocks or 800 blocks?

primal oyster
#

in tech almost everything is possible

#

it's not something you can change on the config

wet arch
#

isn't that controlled by grid-exponent

fair merlin
tidal bay
livid crag
#

Folia isnt going to be suitable for manhunt server as your player will eventually get together. @tidal bay

tidal bay
livid crag
#

I mean it's manhunt right? Paper can easily do it. I take you dont really need most of the mobs etc etc

#

also is this manhunt I am thinking off...? just a few players trying to hunt down 1 person?

tidal bay
tidal bay
livid crag
#

Yeah it should really just work

silver geyser
#
[bootstrap]: Running Java 21 (OpenJDK 64-Bit Server VM 21.0.4+7-LTS; Eclipse Adoptium Temurin-21.0.4+7) on Linux 6.1.0-23-amd64 (amd64)
[bootstrap]: Loading Folia 1.21-DEV-dev/1.21@2b8c879 (2024-08-04T14:43:11Z) for Minecraft 1.21
jagged ether
#

Please don't send jars

silver geyser
#

I have the source

#

Still cloned

tall marsh
silver geyser
#

I can Fork it and send him the repo to build

silver geyser
tall marsh
#

Anyone can checkout an older version

#

From github

silver geyser
#

I know you can do git check or revert to older version, was just going to do it for EOA

#

since the dev-1.21 is very stable (from my testing)

tall marsh
#

Ease of access is not the goal with folia

silver geyser
#

true ig

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.

silver geyser
#

Will Folia upon release provide older MC Versions aswell or will it be from that version point on?

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.

silver geyser
#

@tacit tartan thanks baldohello

jagged ether
#

once released the old builds would be in the build explorer

#

but not below ^

silver geyser
#
Folia will:
NOT be backported to older versions <1.19.4
#

Yea thats what I meant

tacit tartan
#

But I mean, I expect it'll be just like Paper in that updates to newer versions won't be backported to older versions (even if they are past that cutoff)

silver geyser
#

Cant wait for full release pepehappy

manic quarry
#

yikes

silver geyser
#

no AC

#

And its in the rack right below my PC

delicate lichen
manic quarry
#

just have an off-site proxy

ashen meteor
#

Hi I am getting this error while starting the server: ```
[0.001s][warning][pagesize] UseLargePages disabled, no large pages configured and available on the system.
Error occurred during initialization of VM
Unknown -XX:ShenandoahGCMode option

Flags:
 `java -Xms60192M -Xmx60192M -XX:+AlwaysPreTouch -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+HeapDumpOnOutOfMemoryError -XX:+UseLargePages -XX:LargePageSizeInBytes=2M -XX:+UseShenandoahGC -XX:ShenandoahGCMode=generational -XX:-ShenandoahPacing -XX:+ParallelRefProcEnabled -XX:ShenandoahGCHeuristics=adaptive -XX:ShenandoahInitFreeThreshold=55 -XX:ShenandoahGarbageThreshold=30 -XX:ShenandoahMinFreeThreshold=20 -XX:ShenandoahAllocSpikeFactor=10 -XX:ParallelGCThreads=10 -XX:ConcGCThreads=3 -jar folia-*.jar --nogui`
#

I am using Corretto-21

viral stone
#

Well

#

it says that you're using an invalid value

#

GC mode to use. Among other things, this defines which
barriers are in in use. Possible values are:
satb - snapshot-at-the-beginning concurrent GC (three pass mark-evac-update);
iu - incremental-update concurrent GC (three pass mark-evac-update);
passive - stop the world GC only (either degenerated or full)

viral stone
#

idk

ashen meteor
viral stone
#

Because it's not a valid mode?

ashen meteor
viral stone
#

Java: 21-testing

#

generational shen didn't make the release window

#

might have been in their testing branch but, it's not in the release

livid crag
#

You should just get generational zgc

ashen meteor
#

Hi is below-zero-generation-in-existing-chunks: false works on folia?

tall marsh
#

I believe so, but as it says, it's only for existing chunks: i.e. upgrading a world from < 1.18 or whatever

oak python
#

hello am running a smp with folia server and its been the best ever so far i just wanna know if there is any plugin that i can use to give perms to players

tall marsh
dense pivot
#

i built folia 1.21 dev without issues

#

i tried running the built jar as if it were a standard jar, it created a libraries and versions folder but doesnt open a cmd window or anything further

#

am i missing something?

#

sorry if im breaking any specific rules

hexed ice
#

did it also happen to create a eula.txt file

dense pivot
#

it did not.

hexed ice
#

try opening cmd first, cd to the jar's location and start it from there

dense pivot
#

👍

#

that... worked lol

#

i wonder what was wrong with my .bat script

hexed ice
#

oh, I assumed you were just double clicking it at first

dense pivot
#

that also did not work

hexed ice
#

add a line at the bottom of your script that says pause if you want to see whats wrong with it

dense pivot
#

Unrecognized option: -XX+UseG1GC
Error: Could not create the Java Virtual Machine.

#

i simply borrowed these startup options from an older start.bat i had

#

maybe not the smartest idea 🤔

#

Thanks!

hexed ice
#

-XX:+ is the correct one

golden mica
#

why so many region

#

my cpu is 7950x

golden mica
#

this is plugin list

golden mica
#

nope

daring nimbus
#

thats the "no forceloaded chunks" message.
best guess would be a plugin causing this, don't think there are any nice ways of debugging this though

golden mica
#

chunky casue this

livid crag
#

I mean if you are generating -.-

humble mesa
# golden mica why so many region

Is the Utilization in this SS all the threads added together? So in this specific instance you are using 15 cores, hence the 1500%. Am i understanding that right?

cold igloo
#

Guys, I have some questions. I'm going to test Folia on my server. It would be good to remove the barriers from the world and remove the mob stacks?

onyx oracle
#

What is the best alternative for Essentials/CMI for Folia?

little sable
fair merlin
#

@static heron We do not allow advertising in this server.

static heron
onyx oracle
little sable
onyx oracle
#

Okay

little sable
static heron
fair merlin
static heron
little sable
#

why ?

#

Just don't give permission to /plugins

#

set perm * to false

#

And then you just choose which permissions you choose to put.

#

with * to false, he can not tab with just /

livid crag
#

The one that’s still showing is their impl issue.

gloomy vault
#

Every time a villager passes through an nether portal in a minecart it disappears and this error is displayed on the console, any solution?

fierce knotBOT
fair merlin
#

@arctic bear We'd rather not have people link random forks in here, since this is a Folia help channel.

arctic bear
#

Oh sorry

woeful oxide
#

Where is the folia download button?

#

Guys

#

Help me

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.

faint crown
#

@woeful oxide

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.

warm hedge
wide shale
#

/gamerule randomtickspeed 0 command not working properly in folia?

muted sphinx
#

hey guys, where do I get the paperclip jar?

tacit tartan
#

If you're looking for a folia download:

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.

tacit tartan
muted sphinx
#

ive compiled folia and all already

#

is it just the standard paper server jar file?

viral stone
#

folias build system works the exact same as papers, see papers readme

muted sphinx
#

yeah i figured it out it was a brain fart on my end

#

thank you though

cold igloo
#

Guys, what flags do you use in the launcher? I'm doing some stress tests here, with 14 cores and 16 RAM, the image test has the flags I used in the paper, and it's without any optimization.

cold igloo
#

Thanks

charred flicker
#

How can I have multi world in Folia?

cold igloo
#

yep with MoreFoWorld plugin

wide shale
#

My TPS is stable 20 but chunk generation is so slow when flying with elytra. Is there a way to fix that? I have good cpu and i use 20 gb ram

#

its pregenerated world

daring nimbus
#

just be a bit careful, they are intentionally that low to not overwhelm players on less powerful hardware with chunks

wide shale
#

these are ?

#

There are no players on my server, I'm alone and the chunks are very slow

daring nimbus
#

yeah, especially the load/send rate

wide shale
daring nimbus
#

That will overwhelm players on slower hardware, you probably don't want that

wide shale
#

I did it this way and I'll see what happens.

#

Still not fixed. Almost chunks are not loading. TPS is 20 but why are chunks not loading?

daring nimbus
#

chunks aren't loaded on the main thread, so tps are pretty meaningless there

#

how many chunk loading threads did you assign?

wide shale
#

I did a tps region and saw that the tps dropped, but why? I have a 7950x3d processor and 20 gb ram, why is this happening?

wide shale
#

It was too slow at -1, I changed it to 5 but nothing changed

daring nimbus
#

no idea then

wide shale
#

I found the problem. Damn pterodactyl I accidentally selected 0 on the CPU pin and that's why the cpu ptero is not using the cpu more than 100% load kekw kekwkekw

#

Now everything loads at jet speed

livid crag
#

Default should be unlimited rieBigBrainThinking

#

For chunk loading

#

Any of these apply to you? @wide shale

#

Oh I just saw the last message nvm

tulip swift
#

why cannot i use teleportAsync()

arctic tapir
#

make sure you don't have bukkit or spigot on your classpath

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.

proven hazel
#

well how i can increase utilization from 200% to 3200%
i have I9 14900K

viral coral
#

you do not want to set the threaded region count to 32 on a 14900k

#

stick to like 12 or 16

#

can be adjusted in paper-global.yml

proven hazel
viral coral
#

it'll utilise more when it needs to

#

you can raise the threaded-region count as mentioned above

proven hazel
#

ahh working like that?

#

okay

proven hazel
viral coral
#

you have not raised threaded-regions

#

like i said, raise it

#

your utilisation will use more when it needs to

#

the fact that it is limited to 200% however is up to your threaded-region setting

proven hazel
#

1min

proven hazel
delicate lichen
#

if you have 2 players coming from different sides they need 8+2+8+2 chunks so that they merge into 1 region, approximately

#

2 is standart value in this property

#

if they run away, folia split again

queen solstice
#

How much RAM do I need to allocate for Folia?

#

Will 10gb might be enough?

#

SMP

#

Maybe I just didn't understand you because I don't know English and I use a translator. I've already experienced lags at 50+ online, that's why I paid attention to Folia

#

Suppose I have a SMP server with 100-150 online. I have a R9 7950x processor. will I have 10gb of dedicated memory for Folia. Previously I have allocated so much on paper

#

I use Deepl

#

I don't have 90gb. I'm considering a VDS with 32vCore and 16gb of RAM, that's why I'm asking if 10gb will be enough for me

manic quarry
#

will you get over 200 players on one server?

trim ridge
#

isnt that a optimization issue

#

that doesnt seem normal for me

manic quarry
#

the question here is, why do you think folia is for you

#

because it's not in 99.9% of cases

queen solstice
#

There's one in Russia

viral stone
#

Well

#

them offering that many cores ^

trim ridge
#

aee you sure your getting dedi cores?

viral stone
#

you're going to likely be on overprovisioned to heck hardware

#

offering that many cores with that little ram makes 0 sense, generally hosts dealing with hardware like that lie to tie ram and cores together as nice little slots

trim ridge
#

doesnt R9 7900x got some decent processor speed?

#

like in terms of single core

manic quarry
trim ridge
#

yeah not like making a vm with more thread counts then the logical thread count

queen solstice
#

We've gotten away from the question, so will 10gb be enough for me?

manic quarry
#

why folia

trim ridge
#

i think ram isnt the issue right here

#

your hosting provider is sus

queen solstice
manic quarry
#

I'm asking thy YOU want to use it

#

and I'm asking, because it's not justifiable in vast majority of cases

trim ridge
#

well people often forget that Folia isnt Paper+

manic quarry
#

^

#

you sacrifice a lot from plugin support

tepid bronze
#

Being a native English speaker and knowing Java are two conpletely different things. Please keep things professional and don't attack him verbally like that

swift ether
#

Hi guys, does folia treat intel's efficiency and performance cores the same?

viral stone
#

a core is a core

#

that is 100% on your OS to manage

fair merlin
#

But yeah this isn’t a great message. Try not to assume / be a bit nicer.

tepid bronze
fair merlin
tepid bronze
#

Did I sound somehow unprofessional? I just wanted to defend him a bit. Well it does not really matter now anyways, thank you for giving me the heads up

#

Also I wasn't really 'mad', that was bad wording on my part hehe

keen carbon
#

So in grid exponent 2, does the player get a region after 900 blocks? But if we set grid exponent to 1, will the player get the region drop to 400-500?

finite hinge
#

Pretty sure 1 just breaks

#

And folia is more aggressive about merging than splitting so no, you probably won't get a new region until you're well past 900

prime juniper
#

does anyone know if there are any invsee++ alternatives for folia?
they do have a folia branch on their github but it has a major bug and is outdated

tulip swift
#

when I build my plugin, the folia-supported: true gets removed from paper-plugin.yml , i dont know why its happening and theres also no errors

fierce knotBOT
tulip swift
#

oh found solution

velvet radish
#

Is it possible to change how far players have to be before Folia creates new regions?

#

I don't run folia myself, but i'm just curious

#

im assuming folia has it's own config where this is can be changed, right?

#

it probably doesn't take that many regions to see performance improvements though i'd imagine? a single paper server can handle 50-90 players with 100+ plugins iirc . If you have 300 or so players, you'd only need 3-4 regions to see improvements

inland stream
#

folia also gets paper updates right?

inner swift
#

Yes

#

It pulls the updates every once in a while

inland stream
#

ok

mighty osprey
#

Hello, is there a folia with version 1.21.1?

inner swift
#

Yes, in the dev/1.21.1 branch

mighty osprey
#

Do you recommend it to open a server?

inner swift
#

Well, it depends on whether you have the hardware, adequate player spread and dev resources to fix issues, similarly to the other versions of Folia

mighty osprey
#

I have a dedicated server with Ubuntu, Ryzen 5 5600 and 64GB of ram, is it okay or do you recommend I continue with paper?

inner swift
#

You probably want to settle with Paper

mighty osprey
#

So far paper has been good for me, but too short, I will have to open a network but I would like to try folia more

#

Before, 50 players connected to my paper server, but now almost 120 log in daily, so they fight for the server slots.

#

What would you recommend we do?

inner swift
#

Multiple Paper servers, maybe

#

Depending on your network setup I can see a 5600 being kinda cramped

mighty osprey
#

Sorry, I don't understand, do you recommend the network or folia? Do you think the 5600 is too small for the network or for the folia? In that case you almost recommend that I buy an Intel xeon Silver 4214R 2.4GHz, 12C/24T, 16.5Mb, 100W, like that processor because in many hosting they have a dedicated server plan with r5 5600

inner swift
#

I'm definitely not recommending that, that CPU is really bad

#

Hefty downgrade from what you have right now

inner swift
#

Would not risk that on a 120 player network

mighty osprey
#

AMD Ryzen™ 9 5950X

mighty osprey
#

I really don't understand what is most important in a server processor, whether the cores or the speed of the processor, and even how much RAM is recommended, what I have been told is that spending 28GB of RAM per paper server is useless. , is lost...

#

The game mode is survival multiplayer, I keep it as vanilla as possible, although it does have several plugins, including advanced enchanted and skills, protectionstone.

#

Before we used slimefun which causes a lot of lag, although now it doesn't cause lag, except when they are doing things at the same time, I haven't set the tps

#

28gb

#

I understand, I'm just not an expert in hosting much less making servers, I don't even know how I got here, it was interest and taste I guess... I also plan to keep this server a little more vanilla although I would like it to be able to transfer all the textures from itemadder and guis

#

It is a Ryzen 9, I would have to change the board, ram and ventilation, if I could sell the current parts and add something, I will take it into account in the future, although I can't find the R9 5950x in Chile, I was already asking the price, but only They give it to me in the USA, not in Chile.

#

I am willing to try new plugins that are supporting folia or leave some, it is more to see this option and not make a network

#

the minimum I have seen is 10 tps

mighty osprey
#

It's okay, I'll arrive a few hours, I'll get home and I'll see how to get a report from the SV.

wide shale
#

When I check ram dump in Folia 1.21.1, some things are still kept in memory by ram and they are not cleared. Why are these not cleared from memory in Folia 1.21.1? Farming villagers and zombies to spawn iron golems causes the server to load ram, but these are not cleared in any way. And they remain there until the server is reset.

daring nimbus
#

You should be able to see what holds a reference to them in the same heapdump viewer

#

usually its just bad plugins keeping references to entities instead of UUIDs

wide shale
#

Since there are too many iron farms on the server, this iron golem memory retention causes a memory leak after 15-16 hours and the server starts to drop. And the biggest reason for this seems to be the iron golem farm made with zombies and villagers.

wide shale
#

I did some experiments, I will share the results again soon, I want to be sure of this. If you make an iron golem farm with zombies and villagers and activate it with the chunk loader system, I am talking about the portal and minecart chunk loader that players make. This is never cleaned and definitely causes memory leaks in long-term situations.

#

Yes, I definitely have to reboot the server every 8 or 10 hours right now. I will continue my research on this too.

#

I'm going to do this soon I'm just going to do a few more tests and I want to be absolutely sure about it

#

This is what I'm talking about. Think bigger than this and leave that chunk active all the time. Ram cleaners will never clean it and will cause memory leaks. I think it's not necessary to have a chunk loader, just staying afk there will be enough.

#

It can be any iron golem and villager farm, the ones in this picture are just examples.

small mauve
#

The hundreds of Gradle tasks doesn't make this any less confusing lol.

where jar download?! ||/s p.s. I never learned gradle... shocking||

arctic tapir
#

see paper readme

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.

arctic tapir
#

You've been here long enough to know that we don't make it easy for people

#

If they can't figure out what "see paper readme", "same steps as paper" then Folia is not for them

small mauve
#

I honestly don't get how setting the barrier to entry as "You must understand gradle" makes any sense but whatever.

arctic tapir
#

It's not?

#

You just need to read the paper readme

#

We're not going to spoonfeed people on how to build it

small mauve
#

Which tells you how to build it in gradle does it not?

#

Oh you get an error, good luck figuring it out gradle expert.

tepid bronze
#

If you don't have devs capable of using gradle, folia is not for you.

#

You will need devs if you want a folia server

arctic tapir
#

A clean clone will not give any errors unless you have a broken/wrong setup system, if you get errors you can ask

small mauve
#

I feel like I am a good example. I am well versed in Java. Spent a ton of hours working on PRs for big plugins to bring some Folia Support. Provided tons of helpful feedback. I main maven all day. I do not understand gradle very well.

So the fact I do not understand gradle at the moment is the barrier to entry for Folia, where I have already contributed a lot of value and feedback.

pale lagoon
#

I've never done it before, and even I get it after reading the readme once (literally now)

tepid bronze
small mauve
#

That's what I'm picking up lmfao

tepid bronze
#

Gradle is preferred when working with paper

#

You even have the paperweight userdev gradle plugin

#

for easy NMS access

inner swift
#

Well, but what would be the alternative, if not the gradle barrier?

small mauve
tepid bronze
small mauve
tepid bronze
#

No way you did the spigot decompiling step thingy

small mauve
#

I figured it out eventually. The paper steps kinda helped but I had some other issues I had to resolve out to get it going.

inner swift
#

A bit ago, there was a yes/no quiz over a small paragraph of info to download older Paper builds, so that people wouldn't ask for support. It was high enough of a barrier to entry that people would ask how to solve the quiz about as often as the support questions

tepid bronze
#

💀

small mauve
#

Maven > Gradle

This is a hill I chose to die on.

tepid bronze
#

Just wondering, why?

#

Gradle has cleaner syntax, way less indenting, is more readable, you can actually add more logic and you can have gradle plugins (like the paperweight one)

small mauve
#

I think the format of it just comes to me easier than gradle. Plus it's what I know.

tepid bronze
#

Is this hard?

small mauve
#

I definitely need to pickup gradle if I am gonna be doing folia servers.

tepid bronze
#

Btw I say we stop the discussion here. Or if you want to add anything, ping me in #general

#

This is very off-topic for folia-help

arctic tapir
#

that’s just a skill issue

cosmic pawn
#

Whats the progress on folia 1.21.1

arctic tapir
#

dev branch

cosmic pawn
#

Crazy how it's pretty much only SpottedLeaf working on it.

outer bolt
#

Where can I download Folia?

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.

pale lagoon
#

You can't. You have to build it yourself.

arctic tapir
#

basically only leaf

#

leaf is the one working on folia correct

#

not sure why you’d count some random fork that some random person may also work on

remote grotto
#

how could the "Paper" discord keep track of every fork out there

cosmic pawn
#

Better to have more people understanding the inner-workings of the project even if it is a fork

small mauve
#

I can say from the last 2 months of using Folia. It works pretty well.

livid crag
#

We prefer people who are using forks seek help from the fork support discord. It’s not much to ask.

#

Paper is actually very fork friendly as we build and provide tools to make forking and apply your own patch easier so I don’t see how you think we ain’t friendly

#

There are not many project provides tooling like this.

inner swift
#

The respective fork's Discord

#

<@&748618676189528155>

marsh mapleBOT
#

(66ccfd426ed5010734cf18d7) // @deep falcon (@hy5tr1x / 928416998285787156) has been banned by @jagged ether (451779815415218177)
Reason: compromised

rancid seal
tulip swift
#

any suggestions for tab plugins for folia?

rancid seal
#

I don't remember ngl.

tulip swift
#

private void loadWorld(String worldName) {
World world = Bukkit.getWorld(worldName);
if (world == null) {
world = Bukkit.createWorld(new WorldCreator(worldName));
}
}
Can i use this to load my singleplayer world?

inner swift
#

No, there's no API for loading worlds in Folia

tulip swift
#

then how do I load a world other than the default worlds?

inner swift
#

The only supported way currently is to make the world be a datapack dimension. Or, there's plugins like MoreFoWorld, but it's not officially supported so I can't say whether it'll work/keep working in the future

static fulcrum
#

Hallo bang

#

Bang

tulip swift
inner swift
#

Idk, never used it myself

tulip swift
#

if i use datapack can my world load like normal world does? will there be performance issues?

misty matrix
pallid radish
#

is there a 1.21 Folia version?

#

the one on github is 1.20.6

viral stone
#

Yes, it's a on a different branch

pallid radish
viral stone
#

no

pallid radish
#

there is no branch for it.

viral stone
#

Yes, there is

pallid radish
#

i compiled 1.21.1 and it says 1.20.6

viral stone
#

then you compiled the wrong thing

pallid radish
#

git clone the repository

#

gradlew.bat applypatches

viral stone
#

Yes, and that checks out the default branch

#

you need to checkout a different branch if you want to perform operations on that branch

pallid radish
#

oh. and how do i do that?

#

i cloned the 1.21.1

viral stone
#

you cloned the repository

pallid radish
#

yes

viral stone
#

the default branch is for 1.20.6

pallid radish
#

mh

viral stone
#

so, you need to switch branch with git checkout

pallid radish
tulip swift
fierce knotBOT
tulip swift
viral stone
#

your connection to mojangs servers failed

#

generally network issues or just periodic mojang service issues

tulip swift
#

what permission plugin should i use since luckperms and permEX dont support folia

viral coral
#

luckperms works fine on folia

#

just need to use the folia branch as goes with many public plugins

peak elm
#

Not sure if this is something anyone here can help with, but im trying to run a Spring application inside my Folia plugin, however, when i try to run the plugin, i keep getting this error:
java.lang.IllegalArgumentException: No auto configuration classes found in META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports. If you are using a custom packaging, make sure that file is correct.
Full log:
blob:https://paste.sh/5d027b23-fd6d-487b-8549-88d5bc753201

wet arch
peak elm
#

thanks

tulip swift
#

is 1.21.1 available

idle furnace
#

If you compile its branch

pale lagoon
wide shale
dire star
#

Please tell me what the problem might be, the server on folia began to increase the number of regions uncontrollably until it reached 305, the server almost completely stopped, there were only 12 people on the server

 - Online Players: 10
 - Total regions: 312
 - Utilisation: 202,4% / 400,0%
 - Load rate: 9,40, Gen rate: 1,07
 - Lowest Region TPS: 0,92
 - Median Region TPS: 1,12
 - Highest Region TPS: 1,51
Highest 3 utilisation regions
 - Region around block [w:'world',-4281,80,3127]:
    83,2% util at 908,64 MSPT at 0,92 TPS
    Chunks: 4 386 Players: 5 Entities: 1 366
 - Region around block [w:'world',3303,80,3239]:
    25,5% util at 175,41 MSPT at 1,33 TPS
    Chunks: 2 070 Players: 1 Entities: 818
 - Region around block [w:'world',231,80,55]:
    17,1% util at 122,94 MSPT at 1,27 TPS
    Chunks: 987 Players: 1 Entities: 135```
fair merlin
dire star
#

This server is running Folia version 1.21.1-DEV-dev/1.21.1@9203a7a (2024-08-18T13:49:42Z) (Implementing API version 1.21.1-R0.1-SNAPSHOT)
You are 3 version(s) behind
Download the new version at: https://papermc.io/downloads/paper
Previous version: git-Kaiiju-"aacf7f4" (MC: 1.20.1)

opal spoke
#

my server region file corrupt please is there any possible way to recover i will pay any cost

#

is there any way to recover from this crruption

livid crag
#

You can recover from the latest backup you made.

opal spoke
#

is there any possibleway to recover from region file its self

wet arch
#

it's quite important to take regular backups of important stuff
(including your server)

opal spoke
#

iknow its too big...

#

are there any region expert that can help ill pay anycost

inner swift
chrome loom
#

long live borg

dire star
#

No force loaded chunks were found in minecraft:overworld

plugin list, EnderGrief, LightBlock and sleepcancel is my simple plugins (disable ender dragon and enderman grief, craftable lightblock, press button to wakeup everyone from beds)
could the latest plugin interfere with the server in any way? https://github.com/AndreyKrasnov06/SleepCancel

GitHub

Contribute to AndreyKrasnov06/SleepCancel development by creating an account on GitHub.

dire star
#

I know it's asking too much, but could you please take a look at the code for my plugin at the link above? There are only three small files. I'm new to creating plugins, especially with the folia async scheduler. Maybe I made a mistake and this plugin causes a problem

dire star
#

This error only happened once, on the day the chunky plugin was used. It seems I finally found the reason) Folia still has quite a lot of errors, the cause of which is sometimes very difficult to identify:)

hexed ice
#

to use chunkyborder

dire star
#
  1. chunky border
  2. We used a mod for custom structures and reterraforged generation, pregen map on fabric and then placed this world on the server. We did this for the first time and did not take into account that the server would start issuing warnings "Found reference to unknown structure 'betterdungeons:zombie_dungeon' in chunk [394, 233], discarding" and freezing (100% cpu load for 1-5 seconds) so we re-initialized all the chunks on the server using chunky
karmic sundial
#

Does Folia's world generation work the same as paper? Like if I took a vanilla paper server and did a drop-in replacement of Folia on the same world seed will it work or will I have issues?

livid crag
#

It will be the same.

young burrow
#

hows the dev version of folia rn

#

Stable enough to not crash with 40 to 90 players ?

little sable
thorny ivy
errant ravine
karmic sundial
young burrow
#

although im considering it for the update for now

#

since summers over my servers a bit smaller now

errant ravine
gaunt terrace
#

is it possible to use the 1.21.1 branch in paperweight userdev?

#

sorry, i mean paperweight userdev

prime juniper
#

try and see

gaunt terrace
# prime juniper try and see

i've tried doing it the "normal" way; changing the api version to "1.21.1-R0.1-SNAPSHOT". it is not available in the repo. i was just wondering if avoiding maven local was possible (via a gradle task that produces the dev bundle within the plugin project, or similar).

prime juniper
#

1.21.1 isnt big update

#

1.21.2 will be tho

gaunt terrace
prime juniper
#

yeah

#

for 1.21.1 use 1.21 api

gaunt terrace
prime juniper
#

then you need to use 1.20.6

gaunt terrace
#

yes, if i wanted to work against the main branch. i want to work against the 1.21.1 dev branch.

lethal igloo
#

does folia support 1.21.1 now?

lofty magnet
#

there is a branch

chrome loom
#

iirc gradle task devBundle but im on my phone so I cant double check

silver sierra
#

./gradlew pTML -PpublishDevBundle should do it

#

at least on linux

young burrow
#

what crash where you seeing was it related to folia itself

mild fog
#

why the hell do i need to do dat

#

but anyway

#

woah my paper plugin just worked on foila nothing to do

#

well that kinda makes sense it doesn't use anything but spigot's api and NBTAPI

#

i do have git

#

that's the only time i have ever seen that error

gentle raven
#

how tf were you able to use git without running those commands

daring nimbus
#

If you use git in IJ you don't need to iirc

gentle raven
#

what credentials does it use then? some random one provided by IJ?

#

you get what i mean

daring nimbus
#

if you login with GitHub in IJ you probably use that with some @github.com email

gentle raven
#

have never actually used the git integration in intellij before

daring nimbus
#

its really good imo

gentle raven
#

have to try it out then

mild fog
west plover
#

Hi! Having an issue, on Pterodactyl it shows 100% maximum possible utilization.

#

On my PC 400%

#

It looks like Folia does not detect how much CPU it can use on the Pterodactyl one

tall marsh
#

I believe in some cases got defaults to hostname+ username

west plover
#

It's my own machine 😄

#

E5-2690 v4 (yes I know I will get many boos about the single-core perf now, kind of why I switched to Folia)

#

Alright

#

Seems like it yeah

#

I mean yeah good solution for 1 server or so, but might wanna host some for friends too and so on

#

Docker/Ptero makes it easier

#

Haha I don't like it either really but the panel uses it

#

Kubernetes melon_fire

#

Ah

#

Trying that

#

Now we talking 😄

#

(Ignore 600%, changed it but just have not refreshed the page yet)

#

300% now

#

Alrighty

#

- Utilisation: 18.9% / 1,000.0%

#

Does Aikar's Flags work well with Folia?

#

Alrighty

#

Is that great for Folia? Because I know for normal servers people on Reddit generally say to not put more RAM than needed.

#

Apparently bad for performance

#

True

#

I hope Folia takes off and more plugin devs add support for it later on

#

Because no one (or at least not me) wants to buy a CPU for $800 or more for a block game

#

Would this work?
java -Xms$(({{SERVER_MEMORY}}-1024))M -Xmx$(({{SERVER_MEMORY}}-1024))M -XX:+UseZGC -XX:AllocatePrefetchStyle=1 -XX:-ZProactive -XX:MaxRAMPercentage=95.0 -Dterminal.jline=false -Dterminal.ansi=true -jar {{SERVER_JARFILE}}

#

(-1024 because need some overhead room)

west plover
#

Shouldn't it split this load more than just 1 region?

#

And this too

wet arch
#

regions are based around distance
if the players are too close then they'll all be in one region

west plover
#

Ah fair

#

Yeah this scenario is not realistic, was just testing with bots which aren't really spread out.

finite hinge
#

Make sure it's generational zgc

#

java -Xms10G -Xmx10G -XX:+UseZGC -XX:+ZGenerational -jar folia.jar

west plover
#

How much do ya recommend?

finite hinge
#

30% is a good guess

west plover
#

512 GB, around 20-30, SMP

#

Fair

onyx oracle
#

do anyone have a working Vault plugin? because i used 2 forks and they didnt work well, for example if i did buy smth from shop my balance didnt change.

#

Or is there maybe an good alternative?

west plover
#

30% overhead

#

It will be used for several servers, not all may have the same specs

#

I will put it in the Ptero egg

#

Trying to port a plugin to Folia

#

It throws exception Thread Server thread failed main thread check: Scheduling chunk load off-main on this line

#

Nope that is the physical machine I meant has 512 GB

#

Ah alrighty

#

Doesn't appear to be that much dealing with chunks in the code

#

Just this and maybe some more

open flume
#

io.papermc.paperweight.PaperweightException: Command finished with 128 exit code: git -c commit.gpgsign=false -c core.safecrlf=false clone --no-hardlinks 'C:\Users\JimmyNeutron\Documents\mc paper\Folia-master\Folia.gradle\caches\paperweight\upstreams\paper\work\CraftBukkit' 'C:\Users\JimmyNeutron\Documents\mc paper\Folia-master\Folia.gradle\caches\paperweight\upstreams\paper.gradle\caches\paperweight\taskCache\patchCraftBukkit.repo'

arctic tapir
#

you need to clone it

open flume
#

i did

viral stone
#

use a shorter path

open flume
open flume
#

still configuring paper, it's getting past that point fine now, thanks

#

yep, seeing progress. thanks

#

jippyyy!!

tulip swift
#

would folia load different chunks using one thread

inner swift
#

Wdym? Chunk loading is multithreaded in Paper, I assume you mean something else than loading

tulip swift
#

Then what are loaded by a singlethread in paper?

inner swift
#

I'm not really understanding your questions, the tick look uses a single thread in Paper while it can be multiple in Folia depending on player spread. Not sure if it answers the question

tulip swift
#

so, will ticks in different chunks load in the same thread in folia, if other threads are busy?

inner swift
#

Basically, yes, there's a limit on the maximum amount of ticking threads

novel briar
#

quick question, is the region thread count on folia pre-set, or does it dynamically add threads as needed?

silver sierra
#
        int tickThreads;
        if (config.threads <= 0) {
            tickThreads = Runtime.getRuntime().availableProcessors() / 2;
            if (tickThreads <= 4) {
                tickThreads = 1;
            } else {
                tickThreads =  tickThreads / 4;
            }
        } else {
            tickThreads = config.threads;
        }
``` it uses a fixed size thread pool
#

the default value is -1

novel briar
primal dock
#

hi, i just tried to compile folia, and i cant build the project, because it says that release version 21 is not supported, i used install.bat then patch.bat, and when using jar.bat, i have that problem, when first running i have java-21, but it tried to change version to 17, it didnt help
this is jar.bat with --info: https://pastebin.com/nSd0WWYC
my gradlew version: https://pastebin.com/1nJhDSzB
my java version: https://pastebin.com/QxLjPjWG

viral stone
#

error: release version 21 not supported

#

They're running on ubuntu in the log I see, and something is upset because it doesn't support targeting java 21

tall marsh
#

distro installs aren't the best for java

tawdry gullBOT
primal dock
#

thanks, it worked!

mild fog
#

Ofc apt and pacman aren't the same but still

viral stone
#

arch moves fast and is willing to serve jdk packages fast

#

distros like debian and downstream are generally much slower at releasing updates, hence why people tend to use alternative forms of managing java SDKs

spare moon
#

hehe just curious how well would folia perform on a 96 core arm ampere cpu

rancid seal
#

Try it and see owoKonataDance (Idk)

manic quarry
#

isn't ampere absolute garbage for single thread performance?

#

and you still want relatively high single core performance to not get regions with 5 tps

daring nimbus
#

its okayish, at least the ones oracle cloud uses

tender solar
#

In terms of folia, how will it use threads? am a bit confused. at first glance it looks like you're moving the process over to the cpu but I don't see the positive trade in that? at last not in terms of cost effective servers? 😮

viral stone
#

this is generally all covered in the spattering of info

#

it splits up worlds into regions it can tick individually

tender solar
#

ah, but its not so expensive we all need threadripper cpus I hope 😛

viral stone
#

it's basically running many dozen individual servers

#

there is a bit of a "it can work better for the lower end if you have the core count, but, that's not really what it's targeted for"

tender solar
#

ok, I'll try setup one and see how it looks on my servers relative to what I use now in terms of taxing.

cold igloo
#

Guys, I have a question, is there any plugin compatible with the latest version, to check metrics?, for example an alternative unifiedmetrics with prometheus.

chrome loom
#

Unified metric’s folia branch should work fine if you build it

#

Do keep in mind you that you gotta seperate out each region and do tps calculations on each region. Else you’re gonna end up tps in the clouds.

craggy fog
craggy fog
onyx oracle
#

does anyone have an world manager plugin for folia? like Multiverse-core

young burrow
#

so i can update to 1.21.1 and its stable rn other than plugins ?

#

that flying with elytras really lagging the server is gone now ?

tawdry gullBOT
#
🚨 Offline Mode

It appears that you are running an offline-mode server.
We, as a community, do not provide support for setups that bypass Mojang's authentication. You are on your own to solve any issues that arise. paperPls

manic quarry
#

if loading chunks fast is lagging your server, you probably don't have adequate hardware for folia

young burrow
#

24 core server 🤦

#

it was an obvious bug in early dev builds that led to crashing the server

young burrow
#

the biggest cracked anarchy server

daring nimbus
#

yes. but he isn't asking for support here

young burrow
#

im not asking for support im asking a question related to a version of the software support is like getting support configuring it i dont need help doing that ive been running paper servers for like 8 years

#

and my server isnt cracked

#

a premium anarchy server

#

meaning you need a minecraft account to join it

#

so gimmie support and dont listen to the dude who rips off my server from 5 years ago

young burrow
daring nimbus
#

no, I don't care. I just found your remark about Xymb wrong

young burrow
#

ive been running anarchy servers

#

for 8 years

#

is a rip off of 6b6t i ran in 2019

#

ive been running the SAME server since 2016

#

under different names

#

his server is a COPY of my experience i created in 2016

#

so dont bullshit me buddy

daring nimbus
#

okay. But how does is that relevant to your original question?

daring nimbus
young burrow
#

its not but he has it out for me him and his co owner who i have evidence botting and ddosing my server

#

over the past 2 years their server has existed

#

because they view me as their competator

#

thats their own words bro

daring nimbus
#

okay. But this is not the place for server drama

young burrow
#

he did that offline mode stuff on purpose my server isnt offline mode

#

its online mode

#

hes a hater and cant stand my servers existence and constantly attacks and bogarts me in this discord for asking for support

young burrow
#

i have 128 gigs of ram in my server machine

#

64 is allocated

daring nimbus
#

what kind of CPU do you have?

viral stone
#

There was a memory leak that has since been fixed

young burrow
#

thank you

young burrow
#

old yes works fine on 1.20.6 right now ALSO yes

#

ive seen it run flawlessly with 188 players online

#

im gonna be updating my old 1.12.2 paper server to 1.21.1 folia

daring nimbus
#

11 years old though, so I wouldn't be surprised if performance isn't stellar

young burrow
#

its perfectly fine for the player counts that i see i bet it can do 300 players just fine at that point i will upgrade to a Dell R750

#

this is my thing optimizing for old worse hardware to save a buck

livid crag
#

Except you ain’t really saving a buck though. You are sacrificing your player experience.

young burrow
#

i have an ssd raid and chunks load great

#

sometimes spawn can lag a bit with loads of entities but i got a entity limiter

#

i paid for this to be made so anyone can make a folia server with common features easily

daring nimbus
#

thats pretty nice tbh

young burrow
#

i make absolutely nothing from my server as all the donations go right back into the server

livid crag
#

TPS is not the only thing that affect gameplay experience

young burrow
# livid crag I was more referring to the config side of things. Did you keep 10/10 view and s...

so on my server donations gets your higher render distance so default is 4 voting gets you 6 and im gonna be making it so if you just keep voting you'll gain 1 view distance per day people vote alot and most people have 6 render distance 4 simulation atm i make simulation 2 less than view distance because elytra hacks are enabled and the storage costs are insane per SSD its like 350 bucks US for 4tb and i upgrade in 4TB increments im sure that one of those folia forks with compression would help me there but i dont like using forks i like to be able to just update with folia and not rely on other peoples code as much as possible mob caps are from the paper chan optimization guide but i have adjusted them based upon what i notice im not gonna lie mostly just following main stream optimization guides has worked i usually have no lag at all unless someone is REALLY TRYING to and my server basically never crashes i do restarts every 24 hours

#

the highest render distance people have is 16 with 14 simulation

#

you can notice that fact its sata ssd's at that point a little bit but one day im gonna get some nvme pcie cards and raid them with zfs that way

#

and with each addiontial ssd chunks load faster they arent slow by any means but with very high view distances and fresh chunks itll take a few seconds

#

and for map size i just clear empty chunks with mca

#

i went from 9TB to 5TB with mca

#

you can apply most of it to folia just fine

#

and i can give people higher render distances default was 6 im just trying to get people to donate so i can fund future upgrades

#

for a while i had it at 8

#

it ran fine then aswell

#

you can tell it uses more cpu but its not like too much for the server i run it on

#

im gonna be getting a 28 core Dell R730XD soon

#

moving into the ddr4 era lol

#

fyi i ran servers on my paper 1.12.2 configs on a dell optiplex with over 200 players just fine

#

for like most of my servers life

#

i only updated last year once folia came out i went to pufferfish first and the player count went up so i went to folia around new years

#

i5 6500 Optiplex 7050

#

before that it was i5 4570 older model optiplex

#

and even 3rd gen i5 3470 for a bit

livid crag
open flume
#

i can't start folia nor paper with -nogui tag since typing within console on powershell is very buggy with it. if i type /reload confirm i'd get /rld crm

#

i've tried in windows powershell 7.2 and in standard windows powershell but the only way it seems to be bug free is if i use git bash with winpty tag in front of it (ai told me to do so) but i'd like to have it work in regular old powershell

#

i'm running jdk 22 and server has 4gb ram

arctic tapir
#

try java 21

fast dawn
#

Hello!
I have an anarchy server running Folia 1.20.4 in a Velocity proxy. The problem I'm facing is that the chunk generation runs slowly even stopping loading it. It happens on preloaded and new chunks.

#

I tried editing paper-global.yml and server.properties but without any results

#

Idk if it's about being the proxy and the server on 2 different machines or network related issues

#

The server is running on stable 20TPS

manic quarry
#

isn't 1.20.4 still affected by the recent dupe?

#

and at least one crash?

fast dawn
#

Yea, ik that im outdated xd. I have increased the io and worker treads to 5 without results

#

From -1

#

And using 1 o or 2

fast dawn
#

:/

golden elm
#

Which jar file do I run the server with?

fast dawn
#

Second one

bold osprey
rancid roost
#

@tranquil epoch (i hope its a valid reason)
just wanted to say thanks you for your work !

manic quarry
#

not a valid reason.
your skin will be removed now.

solar shard
#

Is it recommended to use Folia dev build 1.21.1 for normal server purposes? or i should just use paper for it?

#

Like an 10 or less people smp

inner swift
#

We'd usually recommend Paper in this case

solar shard
#

I see

inner swift
#

For 10 players it gets harder to justify Folia. It is harder to reach the required player spread, it's a lot of dev time for that small amount of players, and when it comes to the hardware requirements, it makes more sense to spend the money on a better CPU for Paper, as 10 players aren't normally too demanding

glossy narwhal
#

Does it make sense to run a Folia server on a system with 8 threads?

arctic tapir
#

no

glossy narwhal
arctic tapir
#

because we recommend at least 16 cores

glossy narwhal
#

Why

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.

arctic tapir
#

go read the readme and faq

glossy narwhal
#

Ideally, at least 16 cores (not threads).
Well, now i understand EVERYTHING

#

Why and how

arctic tapir
#

now go and read the rest

#

you can run it on 4 cores all you want

#

We do not recommend it

#

It will not work great

glossy narwhal
#

Thanks for the adequate response!
I'm going to test it soon

finite hinge
#

The 16 core thing is a simple cutoff

#

Below 16 cores whether it's worth it gets highly situational

#

Although whether Folia is ever worth it is situational anyway those cases are even worse

strong kelp
#

oh yeah speaking of cores and ram
what is the wecommended amount of dedonated wam i should add to a folia server

#

is 16 enough or should it be bumped up way higher

west lily
#

yes the devs don’t know what they’re talking about they don’t know their software!!!

west lily
#

comparing planes to folia is ridiculous when considering that pilots have had formal training in order to fly that aircraft properly - have you had formal training on folia? Where can I get that?

#

If he's planning on running a server that small, it is EXTREMELY likely he will see worse performance from folia

#

and folia absolutely does not magically turn your 13tps into 20 like you quoted above

primal oyster
#

Yap

pearl cloud
#

All I did was to add synchronized to all Bukkit calls
Well you clearly still don't understand its implications if the patch looks the same as it did a year ago 😄

primal oyster
#

Well the issue you will have is bottleneck in performance

primal oyster
warm hedge
#

Senior Folia Operator kekwhyper

primal oyster
#

well

#

if you run it then you very likely have more experience than people who just knows in the "flat" what folia does

#

and about this. yeah, I mean technically what kind of matters the most is some API. but if you think about it, in terms of bottleneck, event locking per plugin would trully only be an issue if the plugin itself is a bottleneck already

#

so it's not that bad of an idea if you want to just have plugins support the basic,
specially if you know it doesnt use executors etc

pearl cloud
#

That ignores the existence of already asynchronous events

#

forcefully synchronizing db lookups in async events with world events waytoodank

primal oyster
#

just don't?

stiff lantern
#

where could i download folia ?

timid grotto
#

you must compile it from source

#

refer to the paper readme for instructions

stiff lantern
#

thanks

wheat ginkgo
#

is folia 1.21.1 already released?

wheat ginkgo
#

I have problems compiling folia

#

I have windows

#

and java 21

#

ok

limber scaffold
#

Our Anarchy server has AMD Threadripper Pro 7995WX / 256 Ram running folia

primal oyster
#

can i see some profilers

#

thats a crazy cpu

limber scaffold
#

Rent for month ❓

limber scaffold
#

100 Tb raid of 5 it took 1 and half months to complete to get 1.20.6 and now players can join from 1.21

#

Too much costly

#

You run a server

#

finite hinge
#

You know you don't have to --forceUpgrade, right?

#

And Paper says you should never do so

primal oyster
#

theres no poiint in force upgraidng your world if you can do it run time

rugged nest
#

in prod? isn't there some missing stuff still? like world managment etc?

primal oyster
#

there's a patch available that actually works to load/unload world, of course it requires you to run into some stuff

#

everyone that uses folia currently has the capacity to modify the code to their needs

rugged nest
primal oyster
#

there's a patch that adds up the support for world loading

#

it's not fully safe and you use it at your own risk

#

it used to be a pr, but due to not covering up full safety spotted closed it

rugged nest
#

interesting, ty 🙂

small mauve
#

@primal oyster back from where I was in #folia-dev, nothing shows the region going down or missing. It was one particular area between 4 region borders that was causing it. Rolling back the regions to a backup restored the functionality. But seemingly at random, whoever teleported there would disconnect from the server and be stuck not in the world but on the server. It was weird

primal oyster
#

and if you try to kick them, it means they're still on the region

#

you should add debugs to the jar

#

usually that's plugin faulty, you should double check your log about it.

small mauve
#

While in their region too

#

I also did /execute at player run kick player

primal oyster
#

no

#

you didnt

#

because they're not in a region

#

how can you kick them in their region if they are not in a region

#

just because you teleported to them, does not mean you're in the same region as they are

#

their location is yes, on the region you're at, but no, they may not be exactly on the region you're at.

#

it's a transitive state

#

Something ahppened in between them leaving one region, and joining another, or, they were never added to one

#

There should be errors about it.

small mauve
#

That I'm sure of.

livid crag
#

it would be on closed PR on folia repo.

young burrow
#

anyone else seeing an issue where accounts that are logged off to even velocity can still be seen as online but you cannot tp to them

#

cause they are technically offline

arctic bear
#

I have no idea why the tickregion gets stuck frequency, this are the thread stack dumps when it got stuck

primal oyster
#

I was getting that too

#

that seems to be a change on 1.21.1 causing it

#

try gathering teh code for manageBlock

#

that is on the 99 but not 103

arctic bear
#

I looked the source code up several hours ago

primal oyster
#

it almost never gets reached

#

so thats probably why

arctic bear
arctic bear
#

I guess there is something wrong with this method

#

which made the target tick region which runs the task don't be created or computed into the section list

#

And it failed to get the queue in the following steps

#

Also because the tickregion didn't get created or computed

#

The async checks failed in the waiting of the load task

#

And then it fall back to use completablefuture.join() to wait for the unreachable task and then it got stuck here

tulip swift
fierce knotBOT
tulip swift
#

i imported my old world and this happened when i leave the server

tulip swift
#

caused by Bukkit.getOfflinePlayer(event.getPlayer().getUniqueId()).getPlayer().teleportAsync(loc);

#

whats wrong with it

bold osprey
viral stone
#

that type of thing is generally down to teleporting a player in an area that doing so causes a desync

#

that often creates trivial issues upstream, but, in folia where state is more of a sancity, it becomes a real issue

tulip swift
#

so theres no way to tp offline players? :((

obtuse basin
#

did you read the javadoc for OfflinePlayer#getPlayer()?

#

you cant TP a offlinePlayer regardless of Folia or Paper

lucid swallow
#

Quick question, which version is the most stable for Folia 1.20.6 (master) or 1.21.1 ?

livid crag
#

1.21.1

fair merlin
#

@shrewd delta please don’t post random memes/spam to help channels.

jaunty cliff
#

Should be running the latest folia ver on 1.21.1 branch

idle furnace
manic quarry
#

you technically can just edit their position in their save data

manic quarry
#

you need to modify their data files while the server is running, and that comes with a few caveats

#

for ex. a possibility of the player logging in while their data is being saved

hidden turtle
#

What is ShreddedPaper?

#

Is it a fork of Folia?

viral coral
#

no

#

clearly says it's a fork of purpur

#

not supported here

hidden turtle
#

Ah was just wondering

#

Thank you

proud atlas
#

I am considering trying Folia, is world generation asynchronous?

Will players in world 1 lag when world 2 is being generated and deleted repeatedly?
Thanks!

inner swift
#

You cannot create/delete worlds at runtime in Folia at all

proud atlas
#

Interesting, thank you

terse dock
#

how do I use the lastest 1.21.1 folia version for my server?

terse dock
#

tbh true

#

i follow the instructions on paper readme and get bugs out of nowhere

terse dock
#

now how to disable the moonrise plugin

#

it keeps making errors in my console

#

huh

#

nvm, it stopped

arctic tapir
#

it’s not a plugin

terse dock
#

well i see

terse dock
arctic tapir
#

and paper iirc

unique veldt
#

you cant just turn it off

terse dock
arctic tapir
#

show the errors

terse dock
#

well, i said the problem goes away

#

but i still want to know where to disable the plugin

unique veldt
chrome loom
#

thanks for the new copy pasta

inner swift
#

You can't disable Moonrise, it's not a plugin

manic quarry
tawdry gullBOT
tulip swift
#

is there any plugin that can let player respawn in a safe place within a specific radius

prime juniper
proper coyote
#

Would a 12 core server work well for Folia, or do I need more cores?

#

4.3 GHz max

#

10k by 10k area or should I go bigger?

inner swift
#

We can't infer the performance from clock speed and core amount, we need the exact CPU model

#

But 10k x 10k is definitely not enough, as players less than ~1000 blocks apart will always be in the same region, thus will not split the tick threads

proper coyote
#

Or is 10k by 10k just not a possibility

inner swift
#

Unless you have a very specific gamemode where every player will be confined at the corners of the map and can't move much, you will only get 1 region

#

Which will perform slightly worse than Paper on Folia

proper coyote
#

Btw, if a player travels between regions does it merge those regions?

#

And do regions ever un-merge?

proper coyote
# bold osprey yes

So, wouldn't that mean that eventually the entire world no matter how large would become one region?

bold osprey
inner swift
proper coyote
#

How far away do the chunks have to be to split?

inner swift
#

That I honestly don't know, but they do merge more easiily than they unmerge

bold osprey
proper coyote
#

Alright, I'm going to start with

  • 16 Cores (High single-core performance)
  • 20k by 20k world
  • ~100 GB RAM
#

Then I'll test it and work from there

proper coyote
proper coyote
#

event

#

1k player event

#

192gb ddr5 ram with a 7950x3d 16c 32t

#

I'm just going to try it out with 20k by 20k and work from there

#

We'll see how it does and make corrections

#

I have a question btw

#

Does changing the server view/simulation distance change how easily regions can split?

#

I would think a lower view and sim distance would mean that regions can split easier

#

but I'm not very familiar with Folia

proper coyote
#

Is there a reason they do that instead of taking the server render distance?

opaque rose
#

Anyone have plugins for folia in 1.21 about invsee or advancedban?

keen carbon
idle furnace
slender island
warm quarry
#

Is there any way to load plugins even if they don't officially support folia?

#

Reffering to this:

[00:56:58 ERROR]: [DirectoryProviderSource] Error loading plugin: Could not load plugin 'XXX vX' as it is not marked as supporting Folia!
bold osprey
warm quarry
#

alright thank you!

abstract pulsar
timid grotto
tacit tartan
#

Put another way, it's very intentional that plugins must explicitly, deliberately opt in to Folia. Folia is not compatible with the normal Paper APIs without code changes in the plugins

chilly hornet
#

Hey I know Folia doesn't do releases yet - how can I find the latest supported version? Trying to use jmp's run-task but keep getting Unknown Folia Version: 1.21, same for 1.21.1

#

ah nvm, I think from the project gradle.props it's 1.20.6...

#

that sucks there were a lot of changes in 1.21

#

would a 1.21 plugin still work there?

idle furnace
#

it must be marked as supporting folia

#

the rest dependes on the implementation

silver sierra
#

only master pushes builds that are resolvable by run-task

#

same with folia-api on maven

vernal wyvern
#

Hey, what version folia i should use for now?

#

1.20.4 or master ver?

dry scaffold
#

1.21.1 or master (1.20.5)

tulip swift
lost sonnet
#

Hey man!

#

do you guys think Folia it's stable at the moment? to be in a production server made for a survival style gamemode ?

naive fable
#

i think so

peak rapids
#

does using the async scheduler create a new thread every single time or does it use a thread pool?

viral stone
#

pool

peak rapids
#

cheers

manic quarry
young burrow
#

theres bugs

#

for example have you noticed some peoples accounts get stuck online even tho they are disconnected

#

too folia they are still online but to velocity they arent

little sable
young burrow
wide shale
chrome loom
#

I have found it happening when we (players and I) block updated ~3-4K long line of powered rails that were all unpowered but needed a block update to the unpowered state.

#

(watchdog did give a stacktrace for that tho)

manic quarry
grim patrol
#

hello
can someone tell me which are flags to be used for folia?

#

can i use still aikar flags?

tawdry gullBOT
livid crag
#

@grim patrol aikars flag works fine

grim patrol
grim patrol
#

What is folia bundler jar for?
I ran paperclip and it works fine

deft storm
#

Hello! I pulled the repo of the ver/1.20.4 branch, but when I'm trying to build a runnable task (such as :createMojmapPaperclipJar), I get this error: ```> ./gradlew.bat :createMojmapPaperclipJar

Configure project :
paperweight-patcher v1.5.15 (running on 'Windows 11')

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not determine the dependencies of task ':createMojmapPaperclipJar'.

Failed to read upstream data.

  • 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 680ms```

#

Could someone help me please?

#

It seems that a dependency is missing. When I run the gradle dependencies command, I get this output: ```> gradle dependencies

Configure project :
paperweight-patcher v1.5.15 (running on 'Windows 11')

Task :dependencies


Root project 'folia'

annotationProcessor - Annotation processors and their dependencies for source set 'main'.
No dependencies

(...some hidden output...)

runtimeOnly - Runtime-only dependencies for the 'main' feature. (n)
No dependencies

serverRuntimeClasspath
--- project :folia-server FAILED

(...some hidden output...)```
Is it possible to fix that by myself? If so, how?

grim patrol
#

any good permission manager plugins for Folia?

little sable