#folia-help

1 messages Ā· Page 30 of 1

grim patrol
#

oh ok

#

thanks

deft storm
#

How can I build a runnable jar of Folia please?

#

I tried this way, but I had an error. Is there any documentation to do so?

grim patrol
#

is it possible/safe to pre-load (using Chunky plugin for example) map on folia server? And then set worldborder using ChunkyBorder?

viral stone
#

because that error would suggest that you failed to setup the project properly

deft storm
#

Oh, no I didn't

#

Okay it's done

#

Thank you, it works correctly. I did not know I could use the Paper documentation to build Folia šŸ˜…

opaque rose
#

guys how do you solve the problem that spark can't use in folia?

#

I've been plagued by this problem for a long time

livid crag
#

Use the branch of spark that supports it. @opaque rose

pallid radish
#

how do i build Folia?

#

same way as paper?

inner swift
#

Yep

opaque rose
arctic bear
#

šŸ¤”

tulip swift
#

i want to allow players to fly (by using cheat clients) but limit the speed to prevent lag, is there any plugin for this?

idle furnace
#

made something for that , check coolprotection, there is a config for that, you can disable all the rest

tulip swift
#

does it support folia?

arctic tapir
#

try it?

#

I have no clue what that’s supposed to be

idle furnace
#

2.0.1 version

#

updated description, thanks for the notice

nimble shell
#

how i can download folia

#

i want to test some plugins with it

arctic tapir
#

you build it yourself

#

see papers 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.

keen gale
#

not a link but it's a pretty clear method to getting folia

viral stone
#

if you're asking for a build, clone the repo and follow the same build instructions from the paper repo on it

keen gale
#

no no not asking for a build, that was in reference to someone mentioning FoliaToGo

#

which is basically saying just get it from here you don't need to build

viral stone
#

So, they're referring people to a link rather than just providing a link straight up

#

same difference with extra steps

keen gale
#

ah ok, just thought it might not be allowed

viral stone
#

Yea, no, sorry; I complete brain fart, we generally ask that people don't provide links or point people to links

keen gale
#

šŸ‘

little sable
#

Hello, I have a question. I realized that with large farming machines, a single region could use 1 Core CPU on its own. So, is it possible to "limit" the maximum load a region can take?

finite hinge
#

Just the standard ways you would limit a paper server, I guess?

little sable
bold osprey
#

(and yeah, this ofc will create lag spikes in that region, but will lower the cpu usage)

viral stone
#

Well, basically, no, not without basically utilising plugins that would prevent things like redstone events (of which many of them can hurt the performance more than they help)

little sable
#

ok I was wondering, thank you very much

calm nest
#

Hi, wanted to ask, is Folia 1.21.1 out already?

gentle raven
terse dock
#

Does folia compromise vanilla features bc it is a fork of paper?

finite hinge
#

I think that's the main vanilla breakage though, the rest of it is API breakage

visual trail
#

Do Folia plugins work with paper plugins?

#

Sorry, I mean do paper plugins work on Folia*

silver sierra
#

plugins must explicitly add folia support and mark themselves as such in their metadata

#

paper-plugin.yml supports the folia-supported field if that's what you mean though

prime juniper
#

Does the Folia still far away from the official public builds? Like, will it take at least 1 more year? Or we are more close now?

tawdry gullBOT
#
__There Is No ETA__

Updates to Paper do not have any sort of estimate for when they release, ever. Any and all updates will arrive when they are ready, and the only thing to do is wait for them patiently along with everyone else.

wet arch
#

basically, "no one knows"

manic quarry
#

support for folia is still very, very scarce in plugins

#

you will need custom plugins in most scenarios

wet arch
#

as well as a developer to deal with any issues that arise

calm nest
arctic tapir
#

google dot com

calm nest
# arctic tapir google dot com

omg, instead of actually helping in a help channel, youre telling me to type google dot com. thank you for helping me. wow.

viral stone
#

clone the repo with git, and then checkout that branch, and run the build script akin to the paper repo readme

obtuse basin
wet arch
#

fit repo

obtuse basin
#

Auto correct isn’t a software engineer it seems

onyx creek
#

I’m experiencing the same issue on my Folia server. There are no plugins installed, and the render distance is set to 8 chunks. However, even when walking around the world, the internet usage stays above 500KB/s, and my ping spikes. Does anyone know how to fix this? Please help!

chrome loom
#

got a spark profile, or at least some hardware specs? 500 kbps is normal, pretty ok for 1 player.

onyx creek
last gale
young burrow
#

and also having the regions suddently dies thing i guess because regions do suddenly have every increasing mstp increase

fair merlin
young burrow
#

alr

fair merlin
#

Wait, your server is in offline mode?

young burrow
#

no

fair merlin
# young burrow 6b6t.ca

Not familiar with the server, but when I go to the website and click on wiki it sends me to a an "8b8t page" which says "8builders8tools, also known popularly as 8b8t, is a semi-vanilla cracked Minecraft anarchy server, based on the 1.21.1 version of Minecraft. "

young burrow
#

the wiki is outdated

#

i own multiple servers tho

fair merlin
#

So just to confirm, your server does not allow anyone to join unless they own a Minecraft account, correct?

young burrow
#

ye

#

its a bedrock / java server

fair merlin
#

Well send a log and a spark report when the issue happens again then.

gloomy vault
#

Hello, is there a plugin that, when you die u spawns in an X radius of blocks and not in a single block?

green moon
#

Hi, does anyone have the guit 1.16.5 from Folia?thonk

fair merlin
#

There is no 1.16.5 Folia.

last depot
#

who works on folia developement?

timid grotto
#

mainly leaf

fair merlin
#

Not sure why you would, once again, mention forks here when the question was specifically about Folia.

#

We do not endorse or condone anyone using a fork of Folia, especially forks that have unsafe practices.

livid crag
#

Slightly off topic, but I think if you have a fork, you should have your own discord for discussion. We encourage people to contribute back with PRs, but solely exist in a support channel to shill your fork or options in your fork just strike me as a bad taste. (Not directly at you but I’ve seem it happen in many mc communities)

finite hinge
#

Eh, I dunno, they weren't saying to use the fork

#

It would be good to make a PR, if nothing else that would let you know if leaf thinks your solution would actually work

#

But I suspect most serious folia users have their own fork anyway

#

Or are at the level where having their own fork isn't a big deal

last depot
#

idk where is the problem in making their own fork? the main reason for the question is because the pr section was kinda of empty compared to paper

#

but it is cool that other people are working on it

last depot
finite hinge
#

There is no problem with making your own fork but if you're trying to get people to use it we don't want you to use this discord for that

#

Or trying to get help with a fork

livid crag
#

Exactly. It’s basically self advertising in name of ā€œproviding supportā€

finite hinge
#

But with folia sharing patches like that is not really the same as telling you to use a fork, I dunno

fair merlin
#

Zero problem with making a fork. We provide a lot of tooling to help people make forks.

It's suggesting a fork constantly or bringing up the fork when no one asked that's the weird part.

#

Just doesn't really make sense in the context of a help channel.

#

People are here to ask for help and questions about Folia. When someone says "Who works on Folia" there's a clear answer. Talking about other projects is at best distracting.

finite hinge
#

#folia-help isn't even supposed to exist, it's just a place to funnel people so they won't put requests to help compile it in to #folia-dev šŸ˜›

fair merlin
#

Pretty much.

fair merlin
#

I do think most big servers running Folia are likely to have their own fork.

#

We've seen a lot of instances of that here.

last depot
#

i find it a bit sad that many big servers that use folia don't end up contributing just because "i have my own dev team", it creates a very closed community/circle

fair merlin
#

For sure. But the question was specifically "who works on Folia?" and you answered with a statement about forks.

I don't want to go around in circles on this, especially in a help channel. We are not anti-fork, we are anti-suggesting unsafe stuff to general populace in help channels, and tangental suggestions that aren't related to the questions asked.

fair merlin
marsh zealot
#

Yo hey there guys, if been running in this issue for the past week and I'm quite desperate at the moment to find a solution to this problem, but I can't figure it out. If you need more system information and stuff, just ping me. If I am wrong in this channel here, I am sorry for the disturbance

fierce knotBOT
fair merlin
#

At first glance it looks like an issue with zEssentials

marsh zealot
#

Welp ok, thanks. I hoped it was something else. Seems like I will have to start searching for alternatives.

Appreciate the fast response tho. Enjoy your day, evening or whatever.

runic eagle
#

but what im looking for is multiverse core

runic eagle
#

btw im also having lp

#

btw im here to help anyone releated to folia

fair merlin
runic eagle
#

im looking for multiverse core folia supported

finite hinge
runic eagle
#

šŸ’€

#

rip

#

i hope someone soons make it work

finite hinge
#

Unlikely, it's a major thing

#

People have hacked in the ability to load worlds in forks which kind of works sometimes if you're careful about when you load them but unloading is still out of reach

runic eagle
#

really?

#

cine

#

btw i dont want to load works while running

#

i just wanted to setup multiple worlds

#

like for login

finite hinge
#

Then you don't need multiverse, just make a datapack

#
{
  "type": "minecraft:overworld",
  "generator": {
    "type": "minecraft:noise",
    "biome_source": {
      "type": "minecraft:multi_noise",
      "preset": "minecraft:overworld"
    },
    "settings": "minecraft:overworld"
  }
}
#

Not much to it

dawn marsh
#

does folia support 1.21.1?

hexed ice
#

there is a 1.21.1 dev branch

short compass
#

Has anyone encountered this where blocks cant be mined and items cant be picked up in some chunks until they get unloaded?

short compass
#

Yeah the tps didn’t show anything weird

#

1.21.1

#

And when you teleport away for a few minutes and go back, it’s fixed

little sable
#

This happened to me on my Skyblock server too, I restarted the server and the problem did not reappear.

#

Tps was 20 thonk

prime juniper
marsh zealot
#

Does anyone know a working Fast Leaf Decay plugin, because the vanilla tweaks datapack isnt working on folia 1.21.1, correct me if i am wrong

timid grotto
#

pretty sure datapack functions just dont work on folia

jaunty cliff
#

Alongside weird region crashes like this ^

viral stone
#

that doesn't look like a crash as such

jaunty cliff
#

or timeouts *

#

sorry

viral stone
#

that looks like you have a metric ton of entities somewhere

jaunty cliff
#

yea, but I'm unsure as to why it'd suddenly stop responding vs a gradual TPS drop in that region prior (maybe we just haven't caught it?) & we should be limiting drops per chunk

#

should be noted that the region starts responding when all dropped items are manually killed

viral stone
#

There is no built in drop limit per chunk

jaunty cliff
#

I meant within our plugins, so it's unexpected behaviour in our environment

viral stone
#

and most issues relating to item entities is people having mechanisms which end up piling entities of some variation into chunks which aren't fully loaded, which then stalls out whenever somebody then causes that chunk to become an entity ticking chunk

#

so, traditional entity limiting plugins will often fail there as upstream doesn't expose those concepts

jaunty cliff
viral stone
#

Every solution is an opionated mess

jaunty cliff
#

willing to try anything so these regions stop timing out

viral stone
#

well, the built in save limits only apply to de/serialisation of chunks

#

I'd listen to the entity load event and limit the entities inside of a chunk that can be loaded

#

might need to utilise the scheduler to get onto the next tick to safely mess with the loaded entity list for a chunk though, don't remember how that was handled

jaunty cliff
#

i'll look into it, thank you

real flame
#

hello, i have a server that players usually sit at spawn for afk and hanging out, probally around 80-100 players in radius of 100 blocks, and it keep getting crash cause a region in spawn failed to tick, sometimes its another region outside of spawn, is theres any solutions ?

net.minecraft.ReportedException: Exception ticking world```
viral stone
#

That just says an exception occured

#

you cut out all of the actual relevant information in ther

fair merlin
real flame
#

but can i ask one question tho

#

if my server get around 100 regions

fair merlin
#

Oh. Yes, we do not support offline mode.

#

Sorry.

real flame
#

how much core do i need

fair merlin
#

There's no math for that.

#

But we don't support offline mode servers, sorry.

elder nest
#

Sorry, but how to download folia

#

I can't use /folia-dl

fair merlin
#

You have to compile it yourself. There are no downloadable builds.

elder nest
#

How to compile

#

And can i compile using github actions?

arctic tapir
#

sure

#

see papers readme

twin spindle
#

Hi guys, AMD Ryzen 5 3600X in dedicated server is better "just virtual cpu"?

lofty magnet
#

it's better than not knowing what you have, but not better what you might get

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.

leaden folio
#

hmmm, interessing

fair merlin
#

If you want to use it, you have to build it yourself.

modest ore
#

is that recommended to have folia for very small servers (like 4 players max) ?

#

Like to be used on huge velocity platform

modest ore
dawn marsh
#

does folia takes longer than paper to update to 1.21.3?

finite hinge
#

Folia can't even start until Paper is done

dawn marsh
#

i see

prime juniper
dawn marsh
prime juniper
dawn marsh
prime juniper
# dawn marsh

yeah but that branch says dev/ instead of ver/ like the the others im confused

dawn marsh
prime juniper
dawn marsh
prime juniper
#

Does it make sense to use folia instead of paper on an SMP on a server that has poor single thread performance but a ton of cores (server cpu) even if the player number isn’t extremely big?

dawn marsh
prime juniper
#

wdym fps

dawn marsh
#

frames per sec

viral stone
#

It depends on the player spread, and if you're willing to deal with 90% of your common plugins not working

dawn marsh
#

and TPS also

finite hinge
#

If your low number of players all play in the same area it'll just be slower than Paper

#

If they all live thousands of blocks from each other it might be better

prime juniper
finite hinge
#

Usually servers with low player counts stick together though

prime juniper
prime juniper
real flame
#

hello, is netty thread have something to do with folia, and can someone explain what is the best netty-thread settings for most case

viral stone
#

No, that's the number of threads dedicated to the netty pipeline

#

if there was a magical setting it wouldn't be exposed as a config option

#

The scattering of folia documentation generally has some advice on that last I knew

real flame
viral stone
#

unless you're having contention issues, no

real flame
#

anyone know how to fix this, i want to join a server and it keep showing this

daring nimbus
#

Is that an 1.21 client?

#

Something sent an invalid packet. Would be interesting ti know if its the server kicking you, or your client disconnecting. If its your client there should be a button below that on 1.21 that shows you more info

dawn marsh
#

yo i am unable to clone folia 1.21.1 using the web URL

viral stone
#

No idea what you mean by that

#

you clone the github repo and then checkout that branch

prime juniper
dawn marsh
prime juniper
prime juniper
#

U use git clone (url) -b dev/1.21.1

dawn marsh
prime juniper
#

or just git clone url and then inside the dir git checkout dev/1.21.1

dawn marsh
dawn marsh
#

What does this mean?

swift night
#

did u compile it correctly

prime juniper
#

gradlew createPaperClipJar

dawn marsh
prime juniper
#

@dawn marsh

dawn marsh
#

ok

dawn marsh
#

i even agained cloned

#

the whole file

little sable
arctic tapir
#

you’re using the wrong jar

#

wrong directory

dawn marsh
prime juniper
twin spindle
fair merlin
twin spindle
winged torrent
# twin spindle https://spark.lucko.me/02Pcs40OK4

What are those useless Flags? also why so much Ram? Suggest to use normal Aikar's Flags and maybe use 16GB of Ram. Also Folia is still experimental and running on a Ryzen 5 3600X doesn't sound like the best idea for Folia.

lofty magnet
#

the 3600X is a pretty good CPU for it's age though šŸ‘€

#

(but I agree: most likely not worth it running folia on it)

livid crag
#

-Xms32768M -Xmx32768M -XX:+UseZGC -XX:+ZGenerational @twin spindle all you need. nothing else if you just wanna use generational zgc

jolly ember
#

Hey paper 1.12.1 won't launch anymore

royal swallow
jolly ember
#

Oops sorry

#

Wrong channel

daring nimbus
#

might be alright? not the fastest CPU for sure

#

I would worry a bit about that connection, 300mbps really is not a lot

lofty magnet
#

OVH's cheap servers really have a low bandwidth :S

twin spindle
lofty magnet
#

why do you need folia then if you have such a low player count?

twin spindle
daring nimbus
#

Folia is anything but stable

chrome loom
#

^^

#

Fun graph of my logs over time

#

24.7M WARN messages from folia

twin spindle
#

so for folia is not bad cpu?

late flax
#

So 16 cores is ideal for folia… my server has 12 cores split between 2 cpus, will folia slow the server down?

fair merlin
finite hinge
#

I don't think anyone has ever actually tested NUMA to see how much it hurts

late flax
#

I might text it then

finite hinge
#

We're pretty sure it'll have a performance cost just because it does in general, aside from the memory latency issues multiple CPU sockets and NUMA means locking overhead will be much higher

#

So presumably your per-region performance will be lower

#

Is that 5% lower? 20%? 50%? No idea

#

It probably will run though, shouldn't have to worry about that

late flax
#

I’ll have to figure out how to set folia up

#

I’m just getting into this stuff

#

First time on Ubuntu server as well… it has been quite the learning curve

finite hinge
#

If you just have a multi-socket machine sitting around some testing of per-region performance with only one socket enabled and with all of them to get comparisons could be useful

#

But since multi-socket setups usually have the slowest single core performance CPUs in them taking an extra performance hit doesn't sound appealing

late flax
#

If I need any help I’ll probably be back.

#

I’ve been trying to set it up on a vm on my home computer first. Just for the ease of rolling it back if I screw something up

#

Need longer Ethernet cable for this server and then I should have it up and running

thick yoke
#

Actually this would be a fun experiement

#

I have some multi socket servers in my basement that havent been turned on in a few years. One of these days I might do some Folia tests with multisocket

#

If I recall though, there has been a multisocket test of Folia. I just dont think the A/B tested it

fair merlin
#

Feel free to tinker, but especially at larger counts and memory amounts it's not going to be something the average person wants to mess with.

#

We did a test with a dual CPU mobo but we disabled one of the CPUs.

#

Not sure if anyone else did one.

#

But especially at a lower power/core count CPU it's not likely not terribly useful data for most people.

thick yoke
#

Im thinking of the one done on the dual EPYC system with the 2TB of RAM

chrome loom
#

innovation may be happening

fair merlin
thick yoke
#

ah I guess I missed the part about disabling a CPU

fair merlin
#

It's in the pins in here.

#

Was our first public test, really.

fair merlin
chrome loom
fair merlin
#

It's not likely to be something supported just due to the nature of how Java/Minecraft handles that stuff.

#

So nothing to get excited about.

thick yoke
#

It would still be somewhat interesting to see how well it scales

chrome loom
#

i still find it nice to watch people test things ĀÆ_(惄)_/ĀÆ

thick yoke
#

I could do 1P, 2P, and 4P scaling one day

#

may or may not be worth the effort, but still interesting

chrome loom
#

I run folia in prod, it’s hard enough to take care of day to day. I don’t wanna stray too far off the beaten path atm.

thick yoke
#

I've played with it and that's about it. I mostly stopped after realizing how far away plugin support is. It would take significant work for me to use it in prod, but its still fun to play with and really cool

fair merlin
#

Folia has plugin support. It just doesn't support plugins that want to do things like global state.

#

So some stuff needs to be re-written and/or re-thought.

thick yoke
#

Sorry let me rephrase, the plugins I need dont support Folia at the moment

hexed palm
#

where do you find this cheap servers omg

twin spindle
hexed palm
#

the bandwith can become a problem, unless I use compression

#

Oh fuck, only NA

twin spindle
hexed palm
twin spindle
#

speed of ram is 2400mhz

hexed palm
twin spindle
#

here

hexed palm
#

Where country is your community based?

twin spindle
hexed palm
#

Which country?

#

All the EU?

twin spindle
#

but before for buying dedicated server I need verificate my account I guess

hexed palm
twin spindle
#

you can please help me with ovh?

hexed palm
twin spindle
twin spindle
hexed palm
# twin spindle for buy

its pretty simple, just create an account, then select the server you want, then buy it with paypal or cc

twin spindle
hexed palm
twin spindle
hexed palm
twin spindle
#

so I'm afraid of it

twin spindle
hexed palm
twin spindle
hexed palm
twin spindle
hexed palm
livid crag
#

This is not a place to recruit member to bypass CYA process of any company or tax evasion @twin spindle

#

Please do not do that here in the future

keen rose
#

does folia have world loding, or something that can load multiple different worlds like multiverse?

fair merlin
#

Don't think Multiverse works for Folia right now.

finite hinge
#

There is a plugin library thing that sort of works to load worlds at runtime, if you are careful about when you do it, but there is no supported way to load worlds and no way at all to unload worlds

real flame
#

hey uh, general question cause i dont really know what does grid-exponent and threads actually do in this config

spice citrus
#

how can I optimize folia? while preserving mostly vanilla?

tawdry gullBOT
inner swift
#

The guide still applies

little sable
spice citrus
#

I'll take a look at the guide

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

spice citrus
#

Heh. Isn't velocity require offline mode backend server?

little sable
#

You use SkinRestorer

arctic tapir
#

the backends require it to be offline

#

the proxy needs it to be true

spice citrus
#

it is true

# Config version. Do not change this
config-version = "2.7"

# What port should the proxy be bound to? By default, we'll bind to all addresses on port 25565.
bind = "0.0.0.0:25565"

# What should be the MOTD? This gets displayed when the player adds your server to
# their server list. Only MiniMessage format is accepted.
motd = "<#09add3>A Velocity Server"

# What should we display for the maximum number of players? (Velocity does not support a cap
# on the number of players online.)
show-max-players = 150

# Should we authenticate players with Mojang? By default, this is on.
online-mode = true

``` ^ here right?
obtuse basin
#

yes

viral stone
#

Your server is not setup for velocity properly

#

that spark profile was created with an offline mode account

#

if your proxy actually was in online mode, you forgot to setup forwarding; and now all your player data is effectively doomed unless you can convert it

spice citrus
#

O man. I need to recheck thanks

little sable
#

And you can delete SkinRestorer

tranquil raven
#

In the project our dev version of Folia 1.21.1 is not found although we have followed the steps on your github this error code comes up all the time.

Could not find artifact dev.folia:folia-api:pom:1.21.1-R0.1-SNAPSHOT in papermc (https://repo.papermc.io/repository/maven-public/)

arctic tapir
#

1.21 is not published

tranquil raven
arctic tapir
#

publish it to your maven local

twin spindle
#
ticks-per:
  axolotl-spawns: 30
  water-underground-creature-spawns: 30
  animal-spawns: 30
  monster-spawns: 1
  water-spawns: 30
  water-ambient-spawns: 30
  ambient-spawns: 30

what is better?

livid crag
#

There is no ā€œbetterā€

#

Pick a value that’s most suitable for your player count and hardware

#

Using spark report to see how your server is doing

#

Also your animal spawn is way too fast. Default is 400. Idk why you make it 30.

tranquil raven
#

If i want to use the registerNewTeam method from the Scoreboard class, but then it cause following error. I'm currently using the paper-spigot dependency, to get this working on folia? šŸ™‚

daring nimbus
#

Scoreboard doesn't exist on Folia

tranquil raven
#

oh okay

daring nimbus
#

relies on a global state that doesn't exist. If you want to use it to display stuff (sidebar, displaynames), you have to use packets

tranquil raven
#

Allrigth, thank u šŸ˜„

lavish peak
tranquil raven
#

We have loaded a plugin and for some reason this error message comes up on our dev server nothing has happened except now on this server.
We currently have no idea how to solve it

fierce knotBOT
inner swift
#

I don't think you can TP a player on the PlayerJoinEvent, delay it by a tick

raven mesa
#

Does the Spark profiler normaly work with Folia?
I get the following Problem:

[11:52:48 INFO]: [spark] This server bundles the spark profiler. For more information please visit https://docs.papermc.io/paper/profiling
[11:52:51 INFO]: [spark] The spark plugin has been preferred but was not loaded. The bundled spark profiler will enabled instead.
[11:52:51 INFO]: [spark] The spark profiler will not be enabled because it is currently disabled in the configuration.

But i couldnt find any configuration that would disable the profiler ... the only setting i found was laying inside the paper-global.yml and there it is activated:

spark:
enable-immediately: true
enabled: true

Or if spark currently doesnt work can you guys suggest any other monitoring plugin working with Folia?

livid crag
#

You will need to grab the Folia branch of spark.

raven mesa
#

thanks šŸ™‚

raven mesa
viral stone
#

That's the folia tps command iirc

#

there is a spark branch for folia

#

but, realtime monitoring of any game is pretty hard, especially if you wanna collect useful metrics

prime juniper
#

Unfortunately, using folia doesn't solve anyone's problems, and most people here don't need an environment like folia, if you really need any high-performance (if you don't need any vanilla features), it makes more sense to use solutions like minestom because when using folia, you have to write most plugins yourself or use broken forks

daring nimbus
#

except that Minestom has zero vanilla features

#

Most people actually want a server that does more than just being able to connect to

prime juniper
#

I think the folia mismarketed it here, when people saw that they could handle 1000 players on the same server at once, they started to use this fork in nonsense server types

inner swift
#

https://papermc.io/software/folia/
Folia won't be useful for the majority of servers out there and will break most public plugins. It's ideal for servers with very high players counts, that offer gamemodes that naturally spread players out, such as SkyBlock or SMP.
The marketing seems to address this?

prime juniper
daring nimbus
#

I still haven't seen a single public server use Minestom in like five years, lol

#

Folia on the other hand does actually have all vanilla functionality except for some datapack/command stuff, and plugins are pretty easily adaptated to it (instead of needing to be rewritten from the ground up)

finite hinge
#

minestom is for minigames

prime juniper
daring nimbus
#

not sure what your point is

inner swift
#

I think the PaperMC team mismarketed it here
So, third parties, not Paper

prime juniper
finite hinge
#

If you want little to no vanilla functionality implementing just what you want to begin with using minestom can make more sense than trying to disable/block things

#

It won't get 1000 players on a single server though

prime juniper
livid crag
prime juniper
finite hinge
#

Folia is for people who want all of the vanilla features (well, not all, but most), have large worlds where people spread out or cluster in small spread out groups, have a ton of players, and have a full time developer to work on the server

#

That is basically like 10-20 servers in the whole world I think

livid crag
finite hinge
#

Well, the other group that would benefit is people who don't need many/any plugins, only play with a few friends, but each one wants to have their own farms and crap so on a normal server they'd choke it out with entities

#

It has very narrow uses, I don't think anyone has said otherwise

prime juniper
#

Thread safe is not suitable for vanilla Minecraft in my opinion, it breaks a lot of things and mojang's terrible policies make it harder to develop code, I think a software that supports vanilla features should be made from scratch, but since it's too hard, no one tries it.

naive fable
chrome loom
#

for example for us (i run folia in prod full time now) use the multi-threading to allow our more technical players to build really laggy farms that only effect the region that player is in.

#

while allowing all the other players doing other uses of their time to have good tps

opaque rose
#

don't know why, but is it a bug that the items on the trapdoor go back up after experiencing the flap door opening and closing quickly, and the items that were flowing out go back up again?

#

just like this

royal swallow
#

Could I benefit with using Folia for my SMP (vanilla styled) with around ~50 players online all time. Right now using paper We had to nerf simulation distance and do a lot of non-vanilla changes.

I think most of the crazy farms players build - so the TPS is good for the others. This is the big reason I see with going with Folia.. the question is If my specs are enough…

This is my specs currently:

https://www.ovhcloud.com/en/bare-metal/rise/rise-game-2/

Or is paper the better alternative? Only plugins we really use is CoreProtect which has Folia support.

fair merlin
#

You're probably better off sticking to Paper and tweaking your configs.

tawdry gullBOT
inner swift
#

Your specific case seems like it'd require little dev time to just try and see, if you do try it, please report results

#

Just, the usual disclaimers apply, there's limited data on setups of this kind for Folia and you're too below the recommended minimums

chrome loom
#

As Kyle said, try it and see. We put the dev time in for it and it worked out pretty well for my server. allows for the players to build crazy machines and it not break down.

#

Although we are running closer to the recommended specs for folia.

humble mesa
#

We are about to switch our server from paper to folia. We have all of our plugins converted over, and everything is working great. Are there any bugs i should be aware of that we may have missed? Anything to look for in particular?

livid crag
#

You can look at the Folia issue trackers for confirmed bugs; otherwise, if you find any issue, and know how to reproduce it, welcome to open a report.

humble mesa
#

yep, thats the idea

#

ty

undone storm
#

Hello
Does anyone know any good minecraft server hostings?
I am really excited about Folia's multithread and want to check it, but all hostings that I find offer max 6-8 cores, not 16

inner swift
#

You'd need a dedi, so you're looking at hosts such as Hetzner and OVH

inner swift
#

A deficated server

#

So, all of the hardware for yourself

viral coral
onyx oracle
#

Hello guys, does anyone know a good folia fork for smp servers?

manic quarry
#

uh... folia.

onyx oracle
flint wren
#

im not sure why but my cpu usage is peaking to 80% sometimes while its chilling at 3 percent most of the time, this causes big lags for the 10 players that are online, 56threads @ 2.4 Ghz and 52gb ram

tawdry gullBOT
#
Please provide a spark report

spark is a profiler bundled in Paper for troubleshooting performance-related issues. Please run /spark profiler start --timeout 300 while the performance issue persists.

After 5 minutes, paste the URL given here so it can be reviewed.

flint wren
#

spark isnt a valid command for me

fair merlin
#

You have to download the Folia build of Spark.

#

Look in this channel for where to find it.

flint wren
#

alright thanks

tepid bronze
#

Mind running just /tps? On Folia it has a bit more functionality, like showing the most performance heavy regions

flint wren
#

currently 1 player online and its not lagging anymore as he told me, if a lag happens again ill tell you šŸ™‚

finite hinge
#

You should try ZGC

#

Or at least Aikar's flags if you stick with G1GC

tulip swift
fair merlin
arctic bear
#

šŸ¤”

orchid sluice
#

Is folia still worked on?

fair merlin
#

Yes.

viral coral
fair merlin
flint wren
viral stone
#

Folia is not designed to be ran in a memory constrained environment

#

3-4G of ram is pretty much the minimum for vanilla these days, and that only has a small number of threads spewing memory around

inner swift
#

They have the Xmx set to 50GB, the number Spark shows is just the current heap size

viral stone
#

Not letting the jvm just have that means that you’re going to be leaving the JVMs expansion logic to deal with that

#

It’s better than it was in the past, but, not something I’d recommend for folia at all

inner swift
#

Oh, you're talking about the flags, fair

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.

viral stone
#

Xmx == Xms

#

your thing only has 4G of ram allocated

#

and it's spending a good chunk of time in the collector, so might be some wider issues

flint wren
#

Xms == Xmx right now should i change that im kinda stupid rn

viral stone
#

I would generally look towards using generational ZGC for folia

flint wren
#

Thate spark above is an old one sorry

#

Im using aikars flags rn with 30 xms and xmx

#

every time those lags occur the proxmox cpu usage spikes from 6% to 70-90%

strong kelp
#

ETA on 1.21.3?

manic quarry
strong kelp
#

i see

obtuse basin
#

1.21.1 isnt even merged yet

fair merlin
#

It's generally a "when Leaf gets the time" kinda thing.

granite quartz
#

why folia is 1.20.6 and not 1.21.1

#

i really need it

#

when it will be updated

fair merlin
#

There's a 1.21.1 branch.

granite quartz
#

how i get it

#

for the 1.21.1

fair merlin
#

You have to build Folia yourself.

granite quartz
fair merlin
#

If you can't build Folia you probably shouldn't be using it, because building it is going to be the least of your issues.

granite quartz
#

it

#

C:\Users\jxstc\Desktop\server>java -jar server.jar
Error: Unable to initialize main class org.bukkit.craftbukkit.Main
Caused by: java.lang.NoClassDefFoundError: joptsimple/OptionException

#

this error is ouccuring

viral stone
#

you likely grabbed the wrong jar

#

build it as per the paper readme

granite quartz
#

this read me?

tacit tartan
#

Cat said the paper readme

granite quartz
#

Okay

#

so this here

viral stone
#

yes

granite quartz
#

thank you i'll try it

#

it works

#

but how i can make my plugin compatible?

livid crag
#

Sounds like you should stick to using Paper, Folia is for advanced user only @granite quartz

granite quartz
#

i have java knowledge

#

i'm coding since i'am 9 years old

viral stone
#

it's covered in the general smattering of documentation around

#

your plugin needs to have the folia token thingy inside of the plugin def file, and then you also need to make sure that you follow the "laws" of folia

granite quartz
#

i cant click on it

viral stone
#

yes, that is empty

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.

viral stone
#

see the info in those links, etc

granite quartz
#

where i can find general smattering

granite quartz
viral stone
#

yes

granite quartz
#

and i can use paper api?

#

or folia api

#

what is the difference

viral stone
#

paper supports all of the folia API

granite quartz
#

that means?

#

and bukkit api?

viral stone
#

The folia API needed to be able to play by the rules of folia exist within paper

#

there are some api breakages when using folia

granite quartz
#

what do i have to do to make my plugin support folia?

viral stone
#

depends on your plugins

#

read the readme

granite quartz
#

which readme? folia or paper

viral stone
#

folia

granite quartz
#

wait

#

i read it but how i can implement it now in my plugin :c

viral stone
#

I can't really help on that front

#

it is once again going to be 100% down to the plugin

#

you need to adjust the plugin to ensure that it works in a multithreaded environment

#

and follows the rules of folias regioning logic, i.e. ensuring that any world access is 'safe'

granite quartz
#

do you have any documentation?

viral stone
#

not really, all of that is once again covered in the scattering of readme things around the place

#

This is pre-release quality software

dire pebble
#

The Docs of it are like the regions shattered, a bad joke in my ears.

granite quartz
#

do i just have to use "folia-supported: true" in my plugin.yml?

fair merlin
#

No.

#

You need to make sure it works in a multithreded environment, as cat said.

#

Search the pins in this channel and the various bits of documentation

granite quartz
#

okay

#

does anyone have a tutorial for it?

livid crag
#

Not really. This is basically your Java knowledge

timid grotto
#

there is no "just make these changes" type of tutorial you could follow for something like this

#

you have to actually understand what threading means for your plugin

granite quartz
#

i have java knowledge but i dont understand what exacly this means for my plugin and how i can make it support folia

viral stone
#

Once again, there is no magical guide of how to migrate a plugin to supporting folia

#

We cannot see your plugin

#

We cannot tell you the scope of changes you'd need to make

#

The general rules of engagement are in the readme, outside of that, its on you to figure out how you need to adopt your plugin to run inside of those rules

granite quartz
#

do i have to add classes like Scheduler for folia?

viral stone
#

you don't have to add any classes

#

you'd just want to use the folia scheduler as the bukkit one will not be accessible to you

granite quartz
#

but how i can use it

#

for example

viral stone
#

the exact same as the older schedulers, only it requires you to specify where in the world you want it to run

granite quartz
#

okay

#

but does i have to use it with the folia api or with the paper api?

granite quartz
#

hmm okayy i understand, works it as the same? (bukkit / paper / folia) like the main class etc.?

#

and i just can implement it into my plugin yml

viral stone
#

plugins are still loaded as plugins

granite quartz
#

okay

granite quartz
#

do you know whats happened to the /save-all command?

#

in folia

#

i understood the api a little bit

#

i have made my first folia supported plugin omg

tacit tartan
manic quarry
strong kelp
#

also its pretty stable i havent run into any errors yet

granite quartz
manic quarry
granite quartz
#

even when the server crashs?

manic quarry
#

it saves constantly

#

every tick x amount of chunks is saved

#

by default it's 24 iirc

#

paper doesn't have the entire "saving full world in one go" thing for years now

#

cause, surprise, that stops the server for the time it takes to save

chrome loom
granite quartz
#

when does folia will become stable?

livid crag
#

It is by all means stable

#

Big network like 2b2t and DonutSMP has been using them for over a year at this point. You just require a dev team to adept what you do to Folia.

strong kelp
#

yeah

#

even with dev versions

#

it seems stable enough

#

the only drawback is the lack of scoreboarding and other features

#

though some plugins can just use their own API as a workaround like tab

void agate
#

I have a question: is it a good idea to use Folia on a production server now?

strong kelp
void agate
#

100+ players

strong kelp
#

is the map spread out?

void agate
#

yes

strong kelp
#

yea then if you have that much and the map is that big, go for it

void agate
#

Oke but folia is still in beta and the compatibility with plugins is not that good yet ?

finite hinge
#

Compatibility with plugins will never be that good

#

Unless plugins rewrite for Folia

#

If plugins are written for Folia they work on Paper so in theory most could some day be compatible but that's up to plugins, not Folia

void agate
#

okay thanks

supple hinge
#

Hello there, i cant seem to build the dev or any other version and i cant find docs towards any kind of such build problems
Could not set process working directory to '/home/me/projects/Folia/Folia-Server': could not setcwd() (errno 2: No such file or directory)

arctic tapir
#

how are you building it

#

also see paper's readme for build instructions

supple hinge
supple hinge
arctic tapir
#

no

supple hinge
#

aaah, same principle
alright, thanks for the help

#
> Task :paper:patchSpigotApi

Committer identity unknown

*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

Why does it try to commit stuff onto an api tho? xD

arctic tapir
#

ĀÆ_(惄)_/ĀÆ

#

but it's required

supple hinge
#

alright

#

damn it uses the global ones not the project ones
That sucks

calm fable
#

any reason i cant compile dev/1.21.1 with java 21?

fair merlin
#

Should be able to. Post your error/log.

calm fable
#

> Configure project :
paperweight-patcher v1.7.3 (running on 'Linux')

> Task :folia-api:compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':folia-api:compileJava'.
> error: release version 21 not supported

* 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 6s
3 actionable tasks: 3 executed
mcftp@mc2:~/Folia$ 
little sable
calm fable
#

? openjdk 21.0.5 2024-10-15
OpenJDK Runtime Environment (build 21.0.5+11-Ubuntu-1ubuntu122.04)

little sable
#

I had the same problem, had to update it

calm fable
#

ok will do!

calm fable
#

says theres no update candiate

fair merlin
#

Make sure you're on the right branch?

#

Paste the output of git status

calm fable
#

mcftp@mc2:~/Folia$ git branch

  • dev/1.21.1
    master
#

mcftp@mc2:~/Folia$ git status
On branch dev/1.21.1
Your branch is up to date with 'origin/dev/1.21.1'.

nothing to commit, working tree clean

#

ill try rebooting the server

#

lol everyone gets mad when i say "server reboot coming in 30, get safe"

#

didnt help ocel

fair merlin
#

Uh yeah I wouldn't expect rebooting to help.

#

Is this Folia or a fork of Folia?

calm fable
#

its folia

#

i dont use forks, dont trust

fair merlin
#

I mean you could try checking out the branch again in a different directory. The error you're getting is kinda weird

calm fable
#

i can live stream it if that would help

fair merlin
#

It would not.

calm fable
#

ok

#

ok done next im running checkout dev/1.21.1

#

Switched to a new branch 'dev/1.21.1'

#

running ./gradlew applypatches

#

BUILD SUCCESSFUL in 50s

#

./gradlew createReobfPaperclipJar

#

same error

#

anyone know what would cause this?

fair merlin
#

I'm on Debian 12.

java version "21.0.5" 2024-10-15 LTS Java(TM) SE Runtime Environment (build 21.0.5+9-LTS-239)

#

So it seems like something with your system or Java install is breaking it.

#

Best suggestion is to run make sure the Java install is working properly, and run through the build steps on the Paper repo to make sure you aren't missing something.

calm fable
#

linux

#

i mean it is working properly cuz the actual server is running on it

#

let me setup a "build" system

calm fable
#

also has anyone seen this? ```Highest 3 utilisation regions

  • Region around block [w:'world',7,80,7]:
    100.0% util at 212,236.68 MSPT at 0.00 TPS
    Chunks: 0 Players: 0 Entities: 0
  • Region around block [w:'world',-697,80,455]:
    100.0% util at 212,182.31 MSPT at 0.00 TPS
    Chunks: 0 Players: 0 Entities: 0
  • Region around block [w:'world_nether',7,80,7]:
    0.0% util at 0.02 MSPT at 20.00 TPS
    Chunks: 49 Players: 0 Entities: 2
#

i cant join the world is not initialized and it sits there uses 100 percent of those cores

#

if i pick other seeds it loads fine

#

2217231467331653763 <---- seed that freezes

naive fable
#

I have had issues with minecarts

calm fable
tawdry gullBOT
#

Please send large files/logs to a pastebin

fair merlin
calm fable
#

getting that every time a seed is used where spawn is water

#

err rather 0 0 is water

#

the server locks up and never initializes world. the server remains unjoinable tps shows spawn chunks utilizing 100 percent of core

#

2217231467331653763 example seed that does this

fair merlin
# calm fable https://paste.gg/p/anonymous/bad9f6954d174f6cb13d7571a6431bd9

We tested this and confirmed it was an issue using the seed you provided. Leaf pushed a fix, which we re-tested with the same seed and confirmed it loads now.

https://github.com/PaperMC/Folia/commit/2e7bc0721af95196c85500c7bb136aeea0bc12ce

GitHub

The spawn selection may actually be farther than 32 blocks,
so we need a larger load radius to prevent a deadlock on startup.

Additionally, re-insert thread checks for sync loads that were
previou...

#

Hopefully that fixes your issue.

calm fable
#

sweeet thanks so much!

ornate warren
#

Hi, we're speccing up a custom plugin for a new Folia-based server we are planning. It's going to be managing a lot of real-time data of players riding horses (blocks traveled while riding), as well as the horse data itself (blocks traveled with rider, speed, location and other stats) - where we previously just utilised an sqlite db for something similar on a Paper server, would we be better to start with a different db type (MySQL, MariaDB, MongoDB) for a Folia implementation? (or maybe even using Redis for live caching with intermittent writing of relevant data to another db for persistent storage?)

manic quarry
ornate warren
finite hinge
#

iirc you have to compile sqlite with a non-standard flag to get multithreading support

#

Which has a performance cost even if you don't use it so I'm not sure if the standard Java JNI packages do it

#

WAL is generally what you want and makes it possible for multiple processes to work with it but apparently multiple threads is a different issue

#

Oh it looks like the default compile flags actually leave it open to enable the other options, I thought it defaulted to single threaded which blocks the ability to change it but it defaults to serialized

manic quarry
#

sqlite is pretty much as good as any standalone sql server nowadays

#

which is actually insane if you think about it

#

there's also a fork of sqlite called libSQL that is working towards having a database per user model

calm fable
#

that would be cool if we could get redis support into folia

#

for a central memory store or somethign

bold osprey
finite hinge
#

Central anything is kind of missing the point šŸ˜„

calm fable
#

but there are now and will be in the future plugins and such that depend on shared ram

finite hinge
#

You should be designing things to need less centralized sources of data

viral stone
#

Folia doesn't need redis support

calm fable
#

right redis is distributed šŸ˜„

viral stone
#

No?

#

It's an external data store intended to be a central point for accessing stuff remotely

finite hinge
#

No no I mean your plugin shouldn't have too much concern about the performance of concurrent data structures or locking because you shouldn't need many global data stores

viral stone
#

it might support things like sharding, but that's for HA and large scale deployments, something which is pretty much irrelevant to most block game servers

finite hinge
#

It should all be things that are localized to a player or area

viral stone
#

redis solves nothing for folia

#

and for plugins, if they want redis, they can do that themselves

calm fable
#

pardon my let me speak more clearly, you can distribute data on multiple redis servers so it can act as a distributed store

viral stone
#

Which is irrelevant to folia

#

How your external data store can manage data stored elsewhere is irrelevant

calm fable
#

the reason i mention it at all is many plugin dev's i have spoken with about possibly getting a folia port, have mentioned this issue as theres no place a mod withing folia can go to keep data in ram

#

where more than 1 plugin interact*

viral stone
#

nothing in terms of plugin interactivety changes here

calm fable
#

im not a dev so its possible i misunderstood what they were saying

viral stone
#

and folia supporting redis is literally 100% irrelevant

#

that would be on the plugins to support that

calm fable
#

fair enough

viral stone
#

like, even if folia bundled the redis client, you'd still need to setup a redis server elsewhere, and you'd still need plugins to integrate with redis

calm fable
#

well

#

for the sake of a for instance if you will indulge me

#

couldnt folia itself write that data to redis directly via api for plugins?

viral stone
#

what data?

#

plugins aren't storing their runtime data inside of the API, they're storing it in generic java collections, like hashmaps

calm fable
#

yes that makes sense

#

i guess maybe it wasnt explained properly why its difficult to make plugins for folia

viral stone
#

Folia requires that plugins support working in a multithreaded environment

#

This is a concern because most devs within the ecosystem have generally not had too much experience with threading, but, also, because converting a codebase from running in a primarily single-threaded environment into one that your entry points can be called concurrently is often non-trivial

#

accessing world state is also more complex, because now you have to get into the correct 'context' to do that

bold osprey
calm fable
#

so the plugin has to designed such that any information u stored is kinda stateless? am i understanding that right?

viral stone
#

No?

#

Plugins need to be designed in a manner that any information they store is accessible in the manner that they need it

#

but, that is more going to tilt towards ensuring that their own data is thread safe

calm fable
#

sorry for any delays im googling a lot right now hah

#

ok now this is making more sense, thread-safe was the keyword there

#

so yesterday i uncovered a deadlock bug in starting folia on a world in specific seeds where 0, 0 is water and there no spawnable locations within 32 blocks. that "32" was changed to 1024 i believe. id be interested to find out what causes the deadlock in that scenario

viral stone
#

loading chunks on the region threads often blows up in weird manners

#

the game tries to look for a specific biome for you, and will go searching for it

calm fable
#

right but why would that lock up the spawn chunks indefinitely?

viral stone
#

Because the thing needs to go look for a valid spawn biome, etc, and that is not with a player standing in a puddle unless it fails

#

The thing failed here because the needed chunks weren't already loaded, and the thing stalled out because it couldn't go and get the chunk

calm fable
#

ahhh

#

ok

viral stone
#

The fix here was to basically ensure that the chunks are loaded in some for it to be able to do stuff

spice helm
#

Why people even use folia

#

Not useable with 99% of plugins

viral stone
#

Because if you have the resources for it then it makes a lot of sense for a niche set of usecases

spice helm
#

Like paper is 100% time better

viral stone
#

until you want to handle a few hundred players on an instance, sure

haughty gale
fair merlin
#

Paper is faster if you're using a crappy CPU.

#

Or like a tiny VM.

chrome loom
#

paper is better general purpose

spice helm
sullen temple
#

Tbf folia / multi-paper only applies to survival based gamemodes

#

You can hold up to 1k players on prison on latest versions which is surprising in itself

young burrow
#

2 words:

#

Coordinate Exploit

#

theres a bot on my server in a hole in the ground holding a sword swatting in 1 direction for a bit then turning around and doing it another direction

#

coordinates of peoples bases being spammed in my discord

fair merlin
young burrow
#

nah dev

#

1.21.1

#

idk how to figure out what they are doing

fair merlin
#

Can you open a report in the exploit report channel along with a bunch of info including logs?

young burrow
#

yeah

mild temple
#

does folia support world-generation datapacks like terralith?

inner swift
#

I'd say try it and seeā„¢ļø, I'd expect the worldgen part to work, but I'm unsure whether Terralith has non-world gen related parts. These would not work

mild temple
#

alright i'll try, thanks

arctic fulcrum
#

<@&748618676189528155>

marsh mapleBOT
#

(673bf5b46ed5010734cf19e1) // @rancid fog (@rose_miller0078 / 1298278209246335092) has been banned by @livid crag (177150983258767360)
Reason: spam bot

calm fable
#

why do some mods not work on paperclip jar, but do work on mojangmapped ones? whats the difference?

lofty magnet
#

well one is mapped with mojang mappings the other isn't

calm fable
#

what does that mean though? if you dont mind answering šŸ˜„

lofty magnet
#

which part of my statement? also are you asking about Folia or in general?

calm fable
#

well folia because theres a plugin called fancynpc's which we use. using the create paperclip jar command on gradlew creates the folia jar but the plugin screams about issues. i talked to the devs of the plugin that said we have to use the create mojang mapped jar , so i did and it worked. i guess im asking whats missing from paperclip?

lofty magnet
#

ah yes, folia is mojang mapped by default

#

as there is no reason to try to be compatible with plugins using spigot mapped nms as it breaks anyways

#

your only chance is using plugins made especially for folia or some that only use Bukkit API that isn't broken by folia, other plugins are unlikely to work without issues

calm fable
#

thats what fancynpc's is

#

its bukkit but folia compatible

lofty magnet
#

then it shouldn't have any issues with mapping

calm fable
#

somehow it still needed the mojang mapped folia jar

lofty magnet
#

the fact that they have mapping issues means that they are using internal stuff that isn't part of the Bukkit API

calm fable
#

oh im sorry i said something wrong, it doesnt use bukkit it uses paper

#

api

lofty magnet
#

(and seeing as it's an NPC plugin and you can't do NPCs with just the API that's a given)

calm fable
#
[16:04:45 INFO]: Paper Plugins:
[16:04:45 INFO]:  - FancyNpcs
[16:04:45 INFO]: Bukkit Plugins:
[16:04:45 INFO]:  - ArmorStandEditor, AxGraves, BBeeChecker, BlueMap, Chunky, ChunkyBorder, CoreProtect, Craftorithm, DiscordSRV, GSit
[16:04:45 INFO]:  InstantRestock, LuckPerms, PlayerDoll, SuperExpress, TabList, voicechat
#

so its using some other paper specific api i assume

lofty magnet
#

doesn't make a difference, there is no API to do what the plugin does

calm fable
#

oh i see

lofty magnet
#

they are using server internals which they need to adjust to be compatible with folia

calm fable
#

now i understand thanks, they are manipulating the mojang's code so they need mojang's mapping to be in place

silver sierra
#

you should never use createReobfBundler/Paperclip in production on 1.20.5+

#

always use the mojmap one, the reobf one only exists still because it can be useful for us to debug things

high quest
#

hey sry for a little stupid question I mean a really stupid question, Okay so I want to make an SMP with 200+ Players on a Cloud based Network on a Dedicated Server with 16 Cores ig and just want to know if it really worth it to use Folia instead of forks like Purpur?

fair merlin
#

And plugin support for Folia is limited.

#

Can’t really speak to forks of Paper because it isn’t our software. Generally if you aren’t sure if you should use a fork, you’re better off sticking with Paper.

high quest
#

Okay thx

#

That info helped me a lot

marsh mapleBOT
#

(673d52b86ed5010734cf19e6) // @royal cosmos (@robinson0138 / 1308453619963662497) has been banned by @fair merlin (188417437295706113)
Reason: Spam

bleak vortex
#

hello! can you help me, how i can resize region ? now i tested, 2500x2500

#

what does the grid-exponent mean?

bleak vortex
#

i going stress-test, players join and random teleport to 1000-10000 coords, and i have this :

how i can fix that?

r9 7950x + 128gb ddr5 +nvme

manic quarry
#

well, one of the regions has something going on

#

teleport there and locate the issue

#

did you mess with resizing regions?

#

did you change anything you did not understand

hexed ice
#

your players are not spread out enough for it to put them in seperate regions, everybody's in the same one

bleak vortex
hexed ice
#

you can't do much to reduce the size of regions, rather you should increase the distance between players

bleak vortex
bleak vortex
bleak vortex
manic quarry
#

the logic only works when the regions are separated from each other

#

otherwise you're just making things actively worse

#

think at minimum 2k blocks

#

there needs to be absolutely no possibility of 2 regions "colliding"

#

if there is, server will merge them

#

regions cannot exist close to each other

bleak vortex
manic quarry
#

golden rule of configs

#

if you don't understand what it does, don't change it

#

reset everythingg to default if you're not sure

bleak vortex
#

I generally understand what I’m setting up, but the problem is that I want to see a smoother TPS during such stress tests.

Can a world that is not preloaded drop TPS so much?

manic quarry
#

chunk generation has little to do with tps

viral stone
#

increasing the number of threads is going to do nothing when you've grouped your players too close together that they're all in a super region

#

at this point you need to get players to spread out, otherwise you'd be better off just using paper

bleak vortex
viral stone
livid crag
#

Unless those 300 players will never meet at any given point of your event and will always be 2000+ blocks apart from each other, Folia doesnt seem to be an ideal solution for an event.

smoky owl
#

Hi! We have server with like 250-300 players and we are considering switching to folia. Now we have very optimized and limited version of Paper (for our specification we don't need monsters etc), but our machine only has 8 3.6 GHz cores (I can send more specs later). On folia docs it is recommended to have at least 16. So will folia even help on our machine? Do you maybe have some benchmarks?

fair merlin
#

Folia wants more cores because it's breaking up into regions, and it's going to run a thread for each of those regions. You'll be able to get away with more if you have no monsters but if you have no monsters I'm guessing the players are going to be in a small space which will likely negate the benefits of Folia.

#

It wants players to be ~2000 blocks from each other. If everyone's in one small area then Paper would be faster.

marsh zealot
#

Hey there, short question to the ChunkUnloadEvent based on player logouts, are there some special rules with Folia, because we have had some issues the past weeks, where items insta-despawned after death and logout of a player. Shouldn't the Chunk get nearly instantly unloaded after a player disconnects out of this chunk?

hollow grotto
#

anyone have compiled version of Folia i can test?

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.

left swan
#

@hollow grotto ^

smoky owl
#

Okay, but on folia website they recommend 16+ cores

#

Is folia still a better option for servers with 12, 8 cores?

timid grotto
smoky owl
#

we have very big map

#

and players live in nation

#

so I think we can benefit from golia

#

folia

timid grotto
#

how far apart will players be from eachother

smoky owl
#

Idk, like 1k in europe and like even 5 between continents

lofty magnet
#

in the minecraft world

smoky owl
#

yeah, it's all in one word

timid grotto
#

how far apart are the players in the minecraft world

smoky owl
#

like 1k blocks

#

so they are like 10-30 players in one place and then like 1k blocks to other group

timid grotto
#

you need players to be farther apart than that to make sure you get multiple regions

smoky owl
#

Okay

#

But I'm mostly considered about my machine having only 8 cores, while the recommended amount is 16

#

even if players are far apart

#

thanksss

inner swift
#

But note that if players groups are at most ~1k blocks apart from each other, you will get one big region. That'll perform slightly worse than Paper

smoky owl
#

ohhhh

severe hedge
#

How much RAM will Folia require? I saw on the 300+ testing server y'all allocated over 500GB. Right now with our Paper server we're allocating 24GB since we're told that anything higher than that will cause memory leaks from the base game

finite hinge
#

The test was just throwing as many resources as possible at it and seeing what happened

#

afaik it doesn't use much more than Paper with the same user count although since you'll be working to keep players more separated with Folia you'll have more chunks loaded than an average Paper server

severe hedge
#

Oh thank goodness lol

#

I'm also looking to start developing plugins for Folia. I understand that development on Folia in general has stagnated a little bit, but our 1.21.1 Paper server is crawling out of the pits of hell, struggling to run at 150 players. Is there a getting started guide anywhere for plugin development?

manic quarry
severe hedge
#

As in the API's for it are different or as in it hasn't been implemented at all

manic quarry
#

you will get not implemented errors

#

you will know.

severe hedge
#

Ah okay

manic quarry
#

and one more thing, scheduler is defunct, use one of the ones paper and folia api provides

severe hedge
#

Tysm

manic quarry
#

so Bukkit.getAsyncScheduler, Bukkit.getRegionScheduler, etc

#

some things might be kinda awkward, but that's what you get when you're trying to synchronize multiple threads ticking in parallel

severe hedge
#

I'm not stressed about multi-threaded programming, the concept isn't new to me. The API's however... ablobwhistle

#

Normally I work with C# instead of Java

#

We'll see how it goes.

manic quarry
#

microsoft javaā„¢ļø

#

you should be fine

severe hedge
#

Makes sense

storm sun
#

When to take action for broken API in folia, Otherwise I will have to use paper

inner swift
#

Is this a question about when Paper will re-add the API or are you asking about actions you have to take to get around the limitations?

storm sun
#

No, just the broken API. When will it be fixed?

tawdry gullBOT
#
__There Is No ETA__

Updates to Paper do not have any sort of estimate for when they release, ever. Any and all updates will arrive when they are ready, and the only thing to do is wait for them patiently along with everyone else.

storm sun
#

šŸ‘

fair merlin
#

But yeah, no ETAs.

storm sun
#

okey

cosmic pawn
#

Does anyone here actually run folia with a sizable amount of players

#

I need to ask questions

cosmic pawn
#

Basically I'm asking if I had 48k*48k world, with 100-200 players online, would there actually be multiple separate regions? Or would they all merge together

rare hare
#

Assuming you don't have all the players clumped together, yeah, there'd be multiple regions

ashen meteor
#

Hi, sorry to disturb you, but I have a question. We are planning to use Folia for our Towny server. Currently, we run four separate Paper servers with a total of 700 online players. The map size is 73728 x 36864, and the Nether/End dimensions are disabled. Players build farms like cactus and pumpkin, and occasionally, 40–50 players can gather in one region for PvP in player-made arenas.

We’re considering running two Folia servers on two dedicated machines with these specs:
Ryzen 9 7950X | 128GB RAM | 10GB UPLINK.

Would Folia be beneficial in these conditions? How should we allocate threads? Since you have experience with Folia, what are your thoughts on this setup? I’d greatly appreciate any insights you can provide.

primal oyster
#

idk why youre asking me

livid crag
#

You can try to survey how close players are typically are in your server to see how Folia can or cannot benefit you. This is something you have to do yourself. Asking Pedro wont really help you there pepela

haughty gale
#

700 is a lot you would need like a 100k by 100k map

ashen meteor
haughty gale
#

thats still a lot your main goal should be getting as big a map as possible

ashen meteor
haughty gale
#

when all the players are in one big region folia performs worse than paper
on 7950x3d towny server tps in a region would dip below 20 ~80-90 ppl (there was a lot more stuff than towny which affects performance) the map was like ~10k by ~10k
then we swapped to like a ~40k by ~40k and had like 4 regions each with 20-30 ppl and each region had 20 tps

#

also this was 1.19 or 1.20 so it might be a little better now

haughty gale
#

but idk if its enough for 400 players

#

u can use scale operation in world painter to 2x the size so its 80k by 140k

ashen meteor
haughty gale
#

yea same happened to us on 10k by 10k map at peace they were spread out and tps was fine but during war it was laggy because it was one big region

#

idk how you are getting 17-18 tps in a region with only 20-30 players

pulsar schooner
#

Hey together me and my frriend are trying to compile folia for 1.21 is this possible and if yes how to do it because were lost and dont know what we need to do.

livid crag
#

Look at how to compile Paper

#

but do it on Folia

polar bloom
#

Hi, what is the best and easiest way to serialize, deserialize, store and restore the fragment of an area.
I just need to do something like in world edit
//pos1, //pos2, //copy, //paste, //schem save, //schem load

viral stone
#

I mean, really, use worldedit

polar bloom
viral stone
#

Well, actually, some people had a fork, nothing official, and no idea how stable it is, etc

crude robin
#

Is the 1.21.1 Folia update not coming?

wet arch
mild fog
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.

pulsar schooner
#

Hello together i am trying to compile Folia with the compilation guide on the paper github repo but if i start the first command ./gradlew applyPatches then this error occures. What should i do. pls help. If you have an answer or something like that ping me pls.thx

lofty magnet
#

try running it outside OneDrive

#

syncing programs tend to mess with things

pulsar schooner
#

ok i will do it

#

i will will say if it works

lofty magnet
#

also just saw that you reposted it ;_; don't do that

pulsar schooner
#

sry it was in the wrong channeld an d i havent deletet it yet

#

now its away

finite hinge
#

Build it in C:\Folia, Windows and/or git don't do well with long paths (Windows fails at it by default, git doesn't use the "new" API that would allow it to work anyway)

dawn cosmos
#

Hey, I'm also having Issues when building. I cloned the repo in C:/Folia

arctic tapir
#

try excluding the gradle and folia paths from your anti virus

dawn cosmos
#

Disabled my antivirus

#

still the same Issue

sudden tusk
#

Because it's Windows, I'd do a full system restart and try again

dawn cosmos
#

I tried it on my mac aswell, failed there aswell tho

sudden tusk
#

Share that error too please?

dawn cosmos
#

1 sec

proud mountain
#

at that point you should probably just use WSL

dawn cosmos
arctic tapir
#

whole different error

#

did you make any changes

dawn cosmos
#

nope

#

just plain of cloned and ./gradlew applyPatches

#

I recloned the repository now in Desktop/Folia still this issue tho

gilded mirage
#

Hey

#

I am currently running a test on Folia with over 300 players, but I am experiencing some memory problems. Does anyone have any idea why this is happening?
https://spark.lucko.me/HR9nwjoJOt

spark is a performance profiler for Minecraft clients, servers, and proxies.

viral coral
#

what is the memory issue

gilded mirage
viral coral
#

right

#

you're giving it 100gb in -xmx flags

#

it will use 100gb or a high amount in general

#

the pterodactyl memory usage information is pretty useless

gilded mirage
#

Yeah, but it crashes tho

silver sierra
#

do not use createReobfPaperclip for 1.20.5+

viral coral
#

but 90gb in pterodactyl

silver sierra
#

use createMojmapPaperclip

gilded mirage
#

alright

dawn cosmos
#

tried arout a bit but still getting this error..

pulsar schooner
#

I am trying to upload folia to the Crafty server manager but its uploading for hours and nothing happens. Can anybody pls tell me why ?

dawn cosmos
fair merlin
haughty gale
#

what is leaf profiler

#

spark alternative?