#folia-help

1 messages · Page 35 of 1

umbral vault
#

i realized

#

rn

thin compass
#

make sense 💀 🙏

arctic bear
#

I remember some version of Gsit would cause this error

thin compass
#

i have question that does cpu amd that have 3D does it help any on minecraft server?

paper siren
#

it won't be a significant change most likely

thin compass
paper siren
#

that doesn't mean anything

thin compass
#

nvm 🙏

umbral vault
#

non 3d's beating 3d

#

lol

#

x3d cpus isnt designed for servers generally, but hostings using it

wicked mantle
spice helm
#

should i change my server software to folia? im using paper my members are far from each other like 5k between each player and my ghz speed is not too good

viral stone
#

We can't tell you if you should

#

The reality is that Folia is not a slap in replacement for Paper

icy crater
#

I do use parallel world ticking on my Survival server (I'm the creator of the parallel world ticking patch, I created it for my own Paper fork (SparklyPaper), which then Winds Studio's Leaf fork borrowed it). The patch is literally just "mom can we have folia?" -> "we already have folia at home" -> folia at home: parallel world ticking.

It was created as a stop gap while Folia was not "ready" yet, and because I knew that creating multiple individual servers for each world (which is what some servers do) would be EXTREMELY painful (also known as: "man I'm too lazy to make my plugins work with folia" makes something even harder) SCsleepybb6

My server does have multiple "Survival" worlds to spread out the ticks into multiple worlds. With Parallel World Ticking you need tailor your server around it to make it efficient, whereas with Folia you don't need to worry that much about it because it spreads out into multiple regions for you. Folia is more efficient, and better, and cooler, pets the spottedleaf... but PWT is also fun! [citation needed] SCfloppaSHY

In my experience on my own server I did not need to change a lot of plugins to make it work with parallel world ticking (only MyPet, NoCheatPlus and Citizens had bugs), but then again, most of my server plugins are coded by myself so ymmv

All of that was explained on my own fork's docs, but because it seems that most people learn about Parallel World Ticking because of Leaf, no one ends up learning the reasoning behind the patch lol SCmic https://github.com/SparklyPower/SparklyPaper/blob/ver/1.21.4/docs/PARALLEL_WORLD_TICKING.md

cc @umbral vault @little sable

umbral vault
elfin thicket
#

I'm experiencing lag on my server, even though TPS is stable at 20.

I'm running the server on a powerful CPU (Ryzen 9 9950X), and the performance metrics like MSPT and region TPS all look perfect. However, players (including myself) still feel some kind of delay — like everything is happening about one second late, even though there's no TPS drop.

I've tried optimizing the server, but I still can't fix it. It doesn't feel like tick lag — it's more like network or input delay, but I can't find the root cause.

Any suggestions or ideas on what might be causing this?

tawdry gullBOT
elfin thicket
fair merlin
scarlet ginkgo
#

they might not have it

viral stone
#

The paper version doesn't work, they'd need the plugin

#

We can't really advise much without information, if they can't/won't provide such info, there is little we can do

sleek fjord
#

Hello guys!
Can someone give a hint why one region has too many regions?
We have a barrier from -10000, -10000 to 10000, 10000
7 processor cores and 14 threads, region chunk shift is 2 (and also i changed ThreadedRegionizer maxDeadRegionPercent to 0.5 but its not important)
I tried to make debug /tps server for details but i think its useless

viral stone
#

You have 49 players in one region

#

they are going to be too close together

sleek fjord
manic quarry
#

so yeah, regions will merge

#

you want small groups of players with at least 2-3k blocks between them

wicked mantle
#

Yeah you've basically got 2 medium size paper servers in 2 regions

livid crag
sleek fjord
manic quarry
#

that's simply not how folia works

tawdry gullBOT
livid crag
#

that's fundementially not going to work, your server is better off running Paper @sleek fjord

cosmic pawn
#

Anyone know any folia-compatible alternatives to MyCommand? I just want to be able to define commands in yml

#

Like a command that outputs a message or a command that makes the server run a command

#

And them able be perm-based too

manic quarry
cosmic pawn
#

7 actually

tiny scroll
#

can you enable sand duping in folia?

tawdry gullBOT
fair merlin
#

Same as Paper.

open plinth
#

Can dual Xeon E5-2680 v2 CPUs handle 200–300 players on a Folia server if properly optimized?

paper siren
#

Folia is not designed for NUMA and a more than 10 year old CPU shouldn’t be touched with a stick for anything serious

thin compass
gray fable
#

does folia have all of the same global and world config options that paper does?

livid crag
#

Yes

autumn grail
leaden path
hexed ice
#

that would be way too close

little sable
real shale
#

java -Xms2G -Xmx4G -jar folia1.jar nogui
Error: Unable to initialize main class org.bukkit.craftbukkit.Main
Caused by: java.lang.NoClassDefFoundError: joptsimple/OptionException

I'm using the server jar for the dev branch 1.21.5.

Anyone else have this issue?
I'm using the Nightly builds posted here on the Folia To Go Downloads

#

Also, could someone explain the difference between the folia-paperclip, folia bundler and folia server jars?

livid crag
real shale
#

Oh okay sorry.

fervent nimbus
real shale
tardy zinc
#

Hello, I ran into the problem that when some players teleport to the rtp, their ping rises to 1k. I do not even know what this might be related to. Can someone help? (chunks are uploaded in advance via Chunky)

livid crag
#

Don’t cross post if it’s not folia related @tardy zinc

shut heron
#

Is there a plan to add support for additional worlds?

livid crag
shut heron
livid crag
somber isle
#

is there a folia version for 1.21 available as I can only see branches for the 1.21.1 1.21.3 1.21.4 1.21.5

livid crag
somber isle
dim merlin
#

especially with folia you should always be on the latest branch

edgy solstice
#

does folia not support datapacks?

inner swift
#

It supports world gen datapacks (and some other non-command stuff), but not ones with command functions

edgy solstice
#

but how do I see all loaded

#

since /datapack is not a valid command

daring nimbus
#

just look in the log on startup I guess

edgy solstice
#

ok now if I want to use plugins does it care if its a version below mine / are breaking changes mad during any version

inner swift
#

It depends on whether the plugin uses only API

#

If a plugin uses internals, it's bound to break on any version updates

#

API is less likely to change in between versions, but it does happen sometimes

rain musk
#

Attempting to get the tripwire hook dupe to work on a 1.21.4 server, option is not in the config, server is on folia

tawdry gullBOT
rain musk
#

Already checked the docs

fair merlin
#

You may want to re-read the docs.

rain musk
#

The config mentioned does not match the servers config

#

There is no tripwire exploit option in the servers config, when the docs have it

inner swift
#

How does your paper-global.yml look like?

tawdry gullBOT
fair merlin
#

Or do

tawdry gullBOT
inner swift
#

Ah, yeah, that's better ^

rain musk
hexed ice
#

what commit of folia are you running

rain musk
#

not sure what that is

hexed ice
#

run /ver and send the output

rain musk
#

alr

fair merlin
#

A spark report would be better, as stated above.

edgy solstice
#

How big is 1 Folia region?

rare hare
#

There is no set size for a Folia region. Regions grow and shrink depending on the location of players.

gusty parrot
#

Guys How do I build 1.21.5 Folia with gradlew

daring nimbus
#

just like how you build Paper

gusty parrot
viral stone
#

you can't run it all in one script

#

also need to use applyAllPatches instead, iirc

gusty parrot
viral stone
#

by asking gradle

wet arch
viral stone
#

ther eis a command which tells you all of them

#

only if you've already applied once can you reliably get away with a 1 liner, and even then it depends on what changed

wet arch
tepid bronze
viral stone
#

last I knew it was tempermental and not something i care to invest time into supporting/recommending

#

The ordering is just not stable

tepid bronze
#

that makes it unusable again then

prime juniper
#

Can someone help me with some info? I need to have an understanding of whether to use folia on my map or something else. Also, am I able to define the boundaries of the sharding?

#

The majority of players will be in zone 0. projected total average is 200 players inside zone 0. Projected for whole server, 500+.

#

map will be 30k x 30k

inner swift
#

You can't define the boundaries, regions move with players (and merge if players come close to each other from diff regions)

tawdry gullBOT
prime juniper
#

Thank you! It seems folia is not a good fit for my world'

#

you wouldnt happen to know of an ideal setup for my project? off the top of your head of course

inner swift
#

I'd say just regular Paper

daring nimbus
#

If you really want fixed boundaries like that, you could also run multiple Paper servers and simply move the players to another when they cross

prime juniper
#

the thing is, I cant have any loading near the borders, also i cant have any borders at all. I want a fully connected world at all times.

pseudo ibex
#

Heyy, I was having some issues logging in after updating to 1.21.5 https://mclo.gs/tzJKzr4 I keep on getting this error, and I can't figure out what plugin is causing it. Is it a plugin?

fair merlin
#

Well there's like 12 errors in there but they all look to be plugin related.

wet arch
#

i would assume the login one is probably related to some scoreboard (adjacent) plugin

#

did you update your plugins when you updated?

pseudo ibex
wet arch
#

well, as usual, try binary search

pseudo ibex
#

hahahaa sorry for the ping lol

tawdry gullBOT
pseudo ibex
#

Okkk

wet arch
# tawdry gull

the link in this bot command is wrong ever since the docs redesign

#

or at least, doesn't seem to scroll

livid crag
#

hmmm

#

@rare steppe I wonder if I fucked up that one
https://docs.papermc.io/paper/basic-troubleshooting#binary-search?utm_source=discord&utm_medium=app&utm_campaign=binary

rare steppe
#

yes

#

https://docs.papermc.io/paper/basic-troubleshooting?utm_source=discord&utm_medium=app&utm_campaign=binary#binary-search

livid crag
#

ohhhh the # goes to the end pepela

#

I wonder if there are any that I also fucked up

arctic tapir
#

probably

livid crag
#

riley will fix them happy

pseudo ibex
#

Oh wait so this wasn’t a plugin only issue?

fair merlin
pseudo ibex
prime juniper
#

Hey there, I just built Folia and just get no main manifest attribute, in folia-1.21.5.jar when trying to boot. I followed the Paper build intructions on the GitHub.

gusty parrot
viral stone
prime juniper
#

Just found folia-server-1.21.5-R0.1-SNAPSHOT.jar in /folia-server/build/libs, gonna give that one a try

viral stone
#

not the root build folder, it's from -server; but, that's not the right jar, as I said, you need the bundler jar

prime juniper
#

Yep, just realized. Thank you :)

wintry granite
#

I have a question does folia affect spawner range like from the normal 9x3x9 to like 5x3x5 or if there's a way to increase the range of them?

livid crag
#

Spawner range is same as Paper which is same as Vanilla.

wintry granite
#

But is there a way to change it ?

#

Without any plugin

livid crag
#

Not built in on Paper. You will need to make a custom plugin

wintry granite
#

Okay thanks 🙏

finite hinge
#

Or vanilla commands, if you want to change a single spawner

hollow flume
#

hey
i use velocity for my basic server using paper .
i would like to add a folia server for my new version of my server .
but i have a problem:
my connection is break with this error message :
[232049 INFO]: [connected player] royaljacques (/) has disconnected: Unable to connect to dev: If you wish to use IP forwarding, please enable it in your BungeeCord config as well!
my config is good no ?

# This is the global configuration file for Paper.
# As you can see, there's a lot to configure. Some options may impact gameplay, so use
# with caution, and make sure you know what each option does before configuring.
# 
# If you need help with the configuration or have any questions related to Paper,
# join us in our Discord or check the docs page.
# 
# The world configuration options have been moved inside
# their respective world folder. The files are named paper-world.yml
# 
# Docs: https://docs.papermc.io/
# Discord: https://discord.gg/papermc
# Website: https://papermc.io/

_version: 29
block-updates:
  disable-chorus-plant-updates: false
  disable-mushroom-block-updates: false
  disable-noteblock-updates: false
  disable-tripwire-updates: false
chunk-loading-advanced:
  auto-config-send-distance: true
  player-max-concurrent-chunk-generates: 0
  player-max-concurrent-chunk-loads: 0
chunk-loading-basic:
  player-max-chunk-generate-rate: 40.0
  player-max-chunk-load-rate: 40.0
  player-max-chunk-send-rate: 40.0
chunk-system:
  gen-parallelism: default
  io-threads: 30
  worker-threads: 10
collisions:
  enable-player-collisions: true
  send-full-pos-for-hard-colliding-entities: true
commands:
  fix-target-selector-tag-completion: true
  suggest-player-names-when-null-tab-completions: true
  time-command-affects-all-worlds: false
console:
  enable-brigadier-completions: true
  enable-brigadier-highlighting: true
  has-all-permissions: false
item-validation:
  book:
    author: 8192
    page: 16384
    title: 8192
  book-size:
    page-max: 2560
    total-multiplier: 0.98
  display-name: 8192
  lore-line: 8192
  resolve-selectors-in-books: false
logging:
  deobfuscate-stacktraces: true
messages:
  kick:
    authentication-servers-down: <lang:multiplayer.disconnect.authservers_down>
    connection-throttle: Connection throttled! Please wait before reconnecting.
    flying-player: <lang:multiplayer.disconnect.flying>
    flying-vehicle: <lang:multiplayer.disconnect.flying>
  no-permission: <red>I'm sorry, but you do not have permission to perform this command.
    Please contact the server administrators if you believe that this is in error.
  use-display-name-in-quit-message: false
misc:
  chat-threads:
    chat-executor-core-size: -1
    chat-executor-max-size: -1
  client-interaction-leniency-distance: default
  compression-level: default
  fix-entity-position-desync: true
  load-permissions-yml-before-plugins: true
  max-joins-per-tick: 5
  region-file-cache-size: 512
  strict-advancement-dimension-check: false
  use-alternative-luck-formula: false
  use-dimension-type-for-custom-spawners: false
packet-limiter:
  all-packets:
    action: KICK
    interval: 7.0
    max-packet-rate: 500.0
  kick-message: <red><lang:disconnect.exceeded_packet_rate>
  overrides:
    ServerboundPlaceRecipePacket:
      action: DROP
      interval: 4.0
      max-packet-rate: 5.0
player-auto-save:
  max-per-tick: -1
  rate: -1
proxies:
  bungee-cord:
    online-mode: false
  proxy-protocol: false
  velocity:
    enabled: true
    online-mode: true
    secret: 
scoreboards:
  save-empty-scoreboard-teams: true
  track-plugin-scoreboards: false
spam-limiter:
  incoming-packet-threshold: 300
  recipe-spam-increment: 1
  recipe-spam-limit: 20
  tab-spam-increment: 1
  tab-spam-limit: 500
spark:
  enable-immediately: false
  enabled: true
  early-warning-every: 5000

tawdry gullBOT
viral stone
#
  1. Don't share your secret, now anybody can join your backends if they find the IP
  2. if you're using modern forwarding, you need to keep bungee mode disabled in spigot.yml
hollow flume
#

OOOPS

#

sorry -_-

random valve
#

hi does luckperms work with folia? or is there an alternative?

#

same question for essentialsx

paper siren
#

you can probably also search for essentialsx in this channel

random valve
edgy solstice
#

Is there a way to find the main chunks that cause lag?

viral stone
#

not really

#

There are plugins like insights, idk if they support folia, which do some guess work based on how many events they see

wheat bloom
#

Hello! Could you please tell me if this server is suitable for folia? We are planning to use an SMP server with an average online of 200 people. I'm also worried about what they say about the 13th generation Intel Core not working well with Minecraft servers

#

Or maybe a simpler server, like this one, will be enough for my needs?

wet arch
#

probably wouldn't work super well

inner swift
#

The recommended minimums are 16 physical cores, the i5-13500 and the i5-13900 have, respectively, 6 and 8 of those

#

The others logical cores from these CPUs como from SMT or e-cores, these are not ideal for heavy workloads. Regions tend to be heavy

edgy solstice
#

Where do you even get those power horses like the one used for public testing

manic quarry
#
  1. there are stability issues with 13/14th gen of intels that go back like a year, a lot of cpus were/are affected and will give out really fast under heavy use
  2. intel uses the bullshit "p-core" and "e-core" system which basically means you only get a few actual cores that perform as expected and more crap cores that you can wipe your ass off with because they are just there to artificially bump core/thread count
jade canyon
#

Any good alternatives for folia for essentialsx plugin?

#

Also i need permission plugin for folia anyone know any good one?

wheat bloom
thin compass
#

Does enabling generate-random-seeds-for-all effectively stop users from using SeedCracker?

livid crag
#

stock seed cracker, yes possibly,

#

you also want to alter strcture seeds

thin compass
#

enable before render chunky right?

livid crag
#

but if people reallllllllllllllllllllllllllllllly want they can still get your seed but it wouldnt help them much as ore location wont align with world seed.

livid crag
thin compass
#

ah oki

livid crag
#

Just make sure you either NEVER open the server (or else spawn will generate)

#

or you open the server > set the spawnRadius gamerule to false > set the random-seed and structure seed then delete the world, this also works.

thin compass
#

thanks.

thin compass
#

Ryzen 7 7700 or Ryzen 9 7950X3D are great options. I currently run an SMP setup using cross-server architecture with 500–1000 players. With around 200 players online, my Ryzen 9 9950X typically uses only 20–30% CPU.

#

I assume the 9950X performs similarly to the 7950X3D.

heady halo
thin compass
# heady halo How do you divide your cross-server architecture?

In my cross-server architecture, I use several plugins to handle synchronization between servers. These include:

  • Sync – for syncing player data and other server-specific information (a custom fork of HuskSync).
  • RedisChat and RedisChatFilter – for cross-server chat and message filtering.
  • RedisEconomy – to synchronize the economy system across all servers.
  • zAuctionHouseRedis – for a shared global auction house.
  • BungeeRTP – for random teleportation between servers (a custom-developed plugin).

These plugins enable seamless communication and shared features across all my Minecraft servers.

-# This summary was generated by ChatGPT because I was too lazy to write it myself. 🙏

heady halo
#

Do you put your nether or end on different servers? Or is it just simple spawn & everything else.

thin compass
heady halo
thin compass
#

yes only Folia on SMP

heady halo
thin compass
heady halo
#

We've basically been doing:

  • 1 Paper server for Spawn, End, Nether and AFK
  • 1 Folia for SMP
thin compass
#

i see

heady halo
#

Somewhat scared that it would cause harm on the long run, but since we are in Beta i have at least more control over what to do with End, Nether and AFK worlds.

#

Your setup looks much safer to scale up though.

#

Must say

#

Are you planning on using Folia on end and afk on the long run?

thin compass
#

for the afk world, some plugins I use aren’t compatible with Folia, so I keep that server running on Paper for better stability..

heady halo
heady halo
#
  • It would have basically no use unless the players are really far away
thin compass
#

Also, why does the plugin I’m using, Packetevents, fail to inject when I set network-compression-threshold from 256 to -1?

heady halo
thin compass
#

I’ve heard from others that this might be a bug in Folia causing the injection failure.

#

I’m trying to reduce my CPU because Netty is using 400–600% CPU for 350–400 players. 🙏

thin compass
heady halo
thin compass
finite hinge
#

Folia README does say 4 cores for netty for 200-300 players so that doesn't sound too bad

finite hinge
#

And?

thin compass
#

nothing

finite hinge
#

You're using more than 4 cores too 😛

thin compass
#

😔

finite hinge
#

Just saying, it sounds like an expected amount of CPU usage

#

Disabling compression just means you'll run out of bandwidth and your users will suffer

thin compass
#

TCPShield -> Proxy <-Local Network-> Node

heady halo
thin compass
finite hinge
#

What version are you using?

thin compass
finite hinge
#

¯_(ツ)_/¯

#

Unless it's something that broke with newer versions and ulkernova is on an old one that doesn't help

thin compass
#

😔 😔 😔

finite hinge
#

Time for you to bust out your IDE and start inspecting source code

#

Maybe attach a debugger and see where it goes wrong

thin compass
#

wish me luck 🙏

heady halo
finite hinge
#

Yeah I think most people who use Folia do/should

#

Ideally they'd put some effort in to making their changes appropriate for upstream too but I know there are some major infrastructure bits missing for some of that to happen

heady halo
finite hinge
#

Yeah but you can't just add those events back in general, they're missing for a reason

#

But if your specific case doesn't run in to the issues with them then...

mild island
#

If I don't have 16 cores, isn't it worth running the folia?

icy flower
manic quarry
#

you don't need 16 cores to run it, you need 16 cores for it at minimum to actually utilise what folia's giving to you

#

if you run it with less it might aswell be worse than paper

inner swift
#

For the typical usecase (large servers), it gets hard to justify a lower core count compared to the number of regions you can get in a suitable server setup

tardy zinc
#

Hello, I ran into a problem in server.properites, I have a complex difficulty, but when I write a command /difficulty shows that it is peaceful and even if I set a complex command, hostile mobs will not spawn, what should I do?
my server version 1.21.5

inner swift
#

You need to run the difficulty command in each world

lofty magnet
#

do you have plugins installed?

tardy zinc
tardy zinc
fair merlin
#

You set the difficulty using a command for each world - just like on Paper.

#

Not in server.properties

tardy zinc
#

Hello, I ran into the problem that hostile mobs can't spawn through the summoning egg or even through the command in any way at all version 1.21.5 folia

livid crag
tardy zinc
#

0 plugins

#

at first, I also thought that one of the plugins was to blame, but when I installed an empty server, the problem remained

livid crag
#

Is the world difficulty set to peaceful?

#

And doMobSpawn gamerule set to true?

tardy zinc
tardy zinc
#

I only have hostile mobs not to spawn, but regular ones to spawn.

viral stone
#

Didn't that cause eggs to break due to upstream changes?

tardy zinc
#

?

#

I don't quite understand you.

viral stone
#

I thought that spigot made it so that if you disable hostile mob spawning you just quite simply can't spawn them at all

tardy zinc
#

so I don't seem to have disabled it anywhere and I don't even know where to disable them.

#

Maybe there really is a line in the configs that is responsible for this?

viral stone
#

No idea, too busy to look, but it's likely going to have been something you've set somewhere

tardy zinc
#

But I have a standard configuration, I just didn't touch anything.

viral stone
#

Just spun up a fresh test server and spawner eggs work fine for hostile mobs

pastel musk
#

hi, I have a question. sometimes folia only uses 2 tick threads instead of 12. how to like fix it in the settings?

idle furnace
#

not enough active regions to start them?

pastel musk
#

no

#

it says

[20:06:12] [Server thread/INFO]: [io.papermc.paper.threadedregions.TickRegions] Regionised ticking is enabled with 2 tick threads

inner swift
#

This is automatically determined from your amount of cores

#

Can be manually overriden in the folia config

pastel musk
#

where

pastel musk
#

?

#

???

dire pebble
pastel musk
#

oh oki

fair merlin
# pastel musk ???

Please be patient with people when asking questions in help channels. Posting a bunch of question marks in succession is neither helpful nor productive (not patient).

pastel musk
#

ok

fair merlin
umbral vault
#

he just sent ??? and u wrote this and i said meta questions

fair merlin
vital hare
#

folia has spark included?

#

I do not get the command

open plinth
tawdry gullBOT
tawdry gullBOT
remote rover
#

wrong channel

#

xd

#

but yeah vibe coding is just garbage

jade canyon
#

yo so is it worth replacing paper with folia cuz paper is lagging and i am getting like 15 tps i am running an anachy server on ryzen 5 5600g and 32gb ddr4

fair merlin
#

Probably not. Sounds like you most likely need to fix your issues or upgrade your hardware. Folia needs more resources than Paper, not less.

livid crag
prime juniper
#

Ryzen 9950x is better on folia than ryzen 7950x right sorry dumb question

quaint panther
#

both is good

#

same freq poeer

#

power

#

Just slightly good 9950X

#

if you can't find 9950 go for 7950, if you find 9950 go for it

#

both are good

prime juniper
#

For some reason I dont have spark on my server is there a place to redownload it specifically for folia? 1.21.4

viral stone
#

paper spark doesn't work on folia

#

There is a version of the plugin which does on their site or something

wet arch
prime juniper
#

ty

somber isle
#

is this the correct usage for folia: Duel server all in one world theres a hub and arenas 10k away from spawn with 5k block gap between the arenas?

#

i think it is but just need to double check as there will be alot of players in the spawn arena

#

but only 2 in each arena

livid crag
#

that will work yes.

somber isle
#

ok cool ty

fair merlin
#

Oh you already said 2 per arena. Duh. Ignore me.

somber isle
fair merlin
#

If you have a lot of people in the spawn area you might want to use velocity and have that be a different instance that people get transported from.

#

But that's dealer's choice, really.

somber isle
#

but good idea tho

last sand
viral stone
#

it configures the threaded regions system

#

grid exponent is how it deals with the region grid

#

threads is on the tin

last sand
#

I don't know if it's a thing

#

The server is gonna get like more than 500 players

viral stone
#

regioning is more based on how players are spread

last sand
#

That's what makes us crash a bit

viral stone
#

reducing the grid exponent can reduce the required distance between players a bit

#

Then they'll all be in the same region

#

There is no real avoiding that

#

You can't have regions overlapping

last sand
#

got it

#

Well thanks anyway for the help I appreciate it

last sand
#

Btw, any clue on how I could optimize this further? we've already got the best CPU we could get

#

Ryzen 9 9900X

viral stone
#

I mean, in terms of folia it's all about having enough player spread for regions

#

past then, it's the general tricks optimisation where each region is basically its own mini server

thin compass
#

optmize ur ghz

finite hinge
#

That should all setup the right way by default on recent distros

#

Maybe not on Debian stable until later this year but anything else should be fine

somber isle
#

is a Ryzen 9 5900X 12 cores 24 threads good enough to benefit from using folia or should i stick to paper?

livid crag
#

It largely depend on what your players are doing and how close they are to each other

somber isle
inner swift
#

Don't quote me on that as you're still in unsupported/below recommended minimums territory, but since there's no chunk gen, it may work out for you

small canopy
#

Is there a good library for managing nametags/scoreboard teams with packets? Since Folia doesn't have support for scoreboard?

daring nimbus
#

If you just want a scoreboard to display something, Fastboard works fine on Folia

tawdry gullBOT
small mauve
viral stone
#

the thing tried to load a chunk

#

You're also using a stupidly old version of folia

small mauve
#

Thanks for confirming

small mauve
pseudo jasper
#

how to custome crystal dame

inner swift
#

Huh?

pseudo jasper
#

i don't know how to buff crystal dame

livid crag
#

Can you provide more details and use ChatGPT to translate your message if English isnt your first language

pseudo jasper
#

in my server crystal damage is very low and i want to increase it

livid crag
#

Does it deal less damage than vanilla or do you just want to make it higher? There is a difference

#

Paper by default does not change the damage value unless you have a plugin making those changes

tawdry gullBOT
real shale
#

Does anyone have any suggestions for a Folia-Safe World Edit? Or will I have to build my own?

pseudo jasper
#

and i don't know which plugin affects it

livid crag
#

Start with the following guide

tawdry gullBOT
faint crown
#

Hey, does anybody know a good PlotSystem for Folia? PlotSquared doesn't seem to support it...

If not, I would try develop one myself,
but wouldn't this lead to problems, because i would need to have multiple worlds?

real shale
faint crown
#

But are there any alternatives?

real shale
#

Not that I know of unfortunatley 😦

#

States that it is Folia compliant

faint crown
#

hmm.it doesn't seem to have any feature to generate a plotworld like plotsquared does...

#

could i implement something like that in folia or would it break, since i need multiple worlds and a custom generator in my plugin for that?

real shale
#

I don't see why it wouldn't work, although I am not an expert on your problem, and I haven't looked into what your use case is.

inner swift
#

Folia does not support loading worlds at runtine

real shale
#

Seems like that problem could be worked around if implementing something custom.

faint crown
jolly horizon
faint crown
#

Interesting... I will take a look! Thank you

woeful zinc
#

Villagers don't get jobs in specific regions

#

In some they do in others they don't

fair merlin
tawdry gullBOT
woeful zinc
fair merlin
#

Just run it

woeful zinc
modest kestrel
#

all they can do is block themselves with the villager

#

and then the villager will pick up the job

woeful zinc
#

in some regions they always get a job in other its a 1% and when they get it after 3 minutes they lose it

#

anything I can do?

fair merlin
#

I mean, you're running an old/unsupported version of Folia, and you're in offline mode, which we also don't support.

woeful zinc
fair merlin
#

Sorry.

woeful zinc
woeful zinc
#

How do I decrease mob spawns?

inner swift
#

Reduce the spawn limits in bukkit.yml

woeful zinc
marsh mapleBOT
narrow bough
#

folia when 1.21.6

tawdry gullBOT
left swan
#

@narrow bough ^

narrow bough
#

ok thx

pseudo jasper
#

Damage from the explosion in the unusually high server but cannot be adjusted

random garnet
#

if I run folia in a 6 core server does it perform same as paper or it will perform like paper with less lag or it will perform worse than paper?

daring nimbus
#

That's significantly below the minimum recommended specs. The scheduling adds some overhead, so it might perform worse. And will have far less plugin compatibility.
So if that is your only hardware just stick with Paper

quaint panther
#

or just buy around 12 - 16cores cpu

#

if you really have alot of player

faint crown
#

Hi, until now i thought having multiple worlds with Folia isn't possible, but it seems to me i have misunderstood something there...
The Problem is just (un-)loading worlds at runtime, right?
So I could place a world in the serverfolder when the server is shut off and change the bukkit.yml so that it gets loaded when i start the Server. Or am i wrong?

#

And If so: Would it work to write a CustomWorldGenerator via. plugin and specifiy it in the bukkit.yml?

#

(please ping on reply)

jolly horizon
faint crown
#

And I sidnt't find something about registering worlds using datapacks...

lofty magnet
faint crown
#

Ohhh. It's about dimensions... Which is in multiplayer technichally not really different from having multiple worlds?
So i just have to put an Datapack into my main-world which defines another dimension and therefore another world, since it's a multiplayer Server?

daring nimbus
#

essentially yes. "worlds" just predate vanilla dimensions by around 10 years, but its essentially the same thing

faint crown
#

Okay, thank you guys!

inner yacht
#

when folia update 1.21.6?

tawdry gullBOT
velvet oracle
#

leaf as in spottedleaf the paper dev you idiot

umbral vault
#

oh

#

i didnt understood the joke

fair merlin
umbral vault
#

😦

#

i feel bad.

fair merlin
#

Probably better if you apologize to them, not me.

umbral vault
slender vortex
#

im testing stuff on an 8 core 3700x right now, is it possible to get more than 200% through configs or is this the set limit from the cpu?

inner swift
#

You can force more through the folia config

velvet oracle
#

If your utilisation is only 8.6% then you probably don't need more lol

rotund sigil
#

Who can check the panel for me which is spam?

tawdry gullBOT
rotund sigil
#

@inner swift

#

Send it here?

inner swift
#

Yes

rotund sigil
#

Sr I'm a bit busy so I'm late replying

tawdry gullBOT
rotund sigil
viral stone
#
  1. your log file does not show that error
#
  1. You are using a stupildly old version of 1.21.4
rotund sigil
#

...

#

I see it warning

viral stone
#

We don't support offline mode setups

rotund sigil
slender vortex
#

which config and what do i need to change

viral stone
#

there is a threaded-regions section or something somewhere

slender vortex
#

also what would it do for me if i increased it?

viral stone
#

it would create more threads for ticking regions in parallel?

slender vortex
#

so it would be a good thing to do?

viral stone
#

depends

slender vortex
#

how so

viral stone
#

Because if you overallocate you'll just stall out

#

Nobody here can give concrete answers because we don't know your setup and all of the variables involved

slender vortex
#

i cant find anything about this on the docs but im assuming that if i increase the grid exponent it will go to 400%?

viral stone
#

no

#

the grid exponent is something else

slender vortex
#

oh

#

so i am limited to 200% then since threads is at -1

viral stone
#

-1 means "calculate it"

slender vortex
#

aha, changed the -1 to 2, still at 200% then changed it to 4, went to 400%

pseudo igloo
#

Hello! I would like to know, is there any plan for Folia to eventually be integrated directly into Paper, or not at all? I'm wondering because Folia still seems quite experimental at the moment, and it's not available for direct download (I know it needs to be built manually). I'm really curious about its future development prospects. Wishing you a wonderful day !

daring nimbus
#

no, its intended to stay a separate project.
Folia requires plugins to specifically adapt for it, so integrating it into Paper would mean breaking all existing plugins. It also has different, higher, hardware requirements than just Paper. And its only really beneficial for certain kinds of servers (players being very spread out)

pseudo igloo
severe hedge
#

Hey, I saw 2 days ago that y'all added support for 1.21.6. I built the server by running:

./gradlew applyAllPatches && ./gradlew build

But when I run /usr/lib/jvm/openjdk21/bin/java -jar ./folia-server/build/libs/folia-server-1.21.6-R0.1-SNAPSHOT.jar I get the following error:

Error: Unable to initialize main class org.bukkit.craftbukkit.Main
Caused by: java.lang.NoClassDefFoundError: joptsimple/OptionException

Did I do something wrong?

viral stone
#

you need to create a bundler jar

#

see the paper readme

severe hedge
#

OH

#

That makes sense. Thank you!

forest wing
#

Can someone please tell me what Ufolia is

inner swift
#

Assuming that you mean Folia (wouldn't be surprised if there's a fork called Ufolia)

tawdry gullBOT
forest wing
#

@inner swift could you help out would you know why i'm having these weird item drops

tawdry gullBOT
fair merlin
forest wing
forest wing
forest wing
fair merlin
#

Well you look like you’re below the recommend system specs for Folia.

But if you’re just testing by yourself for now try without plugins.

forest wing
#

Everything else worked fine just the drop

#

is weird

crimson solstice
#

@fair merlin It is a 1.21.6 issue. this has nothing to do with the plugins.

fair merlin
severe hedge
#

I keep getting intermittent crashes with 1.21.5. I originally experienced this on 1.21.6 with no plugins, which was why I downgraded. As either a dev or as a server host, what can I do to help fix this?

severe hedge
#

Now, my system does not meet the Folia requirements, I am very well aware of that. Right now I'm preparing the server in a test environment before I move it onto a beefier machine because I'd rather not test in prod

fair merlin
#

Hard to tell from the log but really just looks like an overloaded server.

severe hedge
#

Oh doggokek

#

Get a better dev server. Got it

fair merlin
calm fable
#

i see the method by which you build folia has changed

#

how would i build the mojang mapped jar now?

#

i tried running it the normal way with applypatches first but it fails

#

i also tried just ./gradlew build and that fails aswell using java21 jdk

finite hinge
#

No it's still just apply patches then create mojmap bundler jar

#

hmm, or maybe applyAllPatches?

#

I remember folia being a bit weird there

calm fable
#

ill try

#

yes its now applyAllPatches

white laurel
#

is there a way to check how many group chunks are there? or how many chunks are used by a group? If there is also a setting to decide how many chunks fall in a group

viral stone
#

chungs are split into regions based upon distance between other regions

#

you can tweak the grid-exponent but the whole "regions cannot ever touch" is always true

#

iirc, the tps command in velocity prints out a bunch more info relating to the region system

white laurel
#

you mean the tps command in folia?

viral stone
#

yes

white laurel
#

My main purpose was to lower the number of chunks in a group in order to guarantee better TPS across all the world. I will try to see with TPS command.

viral stone
#

then you need player spread, there is no way around that

tawdry gullBOT
white laurel
#

ah thank you, didn't know that. So the server kinda need to implement a strategy to make players spread across the world

What is the explanation for the grid-exponent?

viral stone
#

No idea, there might be one in the commit that added it like, a year or two or three ago, what even is time; but, idk where it would be documented across the scattering of documentation

white laurel
#

I will try to look, thank you

#

65 regions 179 players, I think this is good?

viral stone
#

if it's performing fine then yea, you just have 65 mini servers in a sense

hardy scarab
white laurel
white laurel
# tawdry gull

back to this there can be a case where there is only 1 region? due to players being too close?

viral stone
#

yes

white laurel
#

thank you now its more clear for me how it works

torpid citrus
#

Hi everyone, who understand in Folia and know Russian language?

fair merlin
#

We want to keep to English in this server.

Best to just ask your questions and use a translator.

torpid citrus
torpid citrus
# fair merlin We want to keep to English in this server. Best to just ask your questions and ...

Okay, I'll ask a question. I don't understand these aspects:

  1. Are the regions divided in the same way as in the first screenshot? Or are they without gaps and adjacent to each other? Or is the middle of the first region aligned with the middle of the coordinate system? The idea that the regions have gaps between them arises from a lack of understanding of the second invariant.
  2. Help me understand the example of region division. I've indicated what is unclear to me in the second and third screenshots. (17;-5) is not in the region (1;-1).
wicked mantle
#

Regions are never a fixed size

#

They will merge and split depending on how close players are to one another

torpid citrus
#

Or maybe it will always have sides that are a power of two?

torpid citrus
#

Who knows?

paper siren
#

best is to make as little assumptions about how regions look like as possible

paper siren
#

because relying on anything means things might break after changes

torpid citrus
paper siren
#

well that's described in the docs

torpid citrus
paper siren
#

and basically also the second one

cursive willow
#

is dual socket fine for folia?

#

i have a machine already with dual socket high core or should i get another with an epyc for single socket high core

#

nevermind~ searched messages and it doesn't seem like a decent idea with NUMA

cursive willow
#

i have an epyc server on hand

#

will just use that instead

#

yee

#

makes sense

#

i know the interconnect on this server atleast is pretty slow- hope it'll be fine lol

young burrow
#

how does one disable the data fixer upper if its causing log files to be 6 gigs in size

arctic tapir
#

wrong question

daring nimbus
#

could you post (a part) of that log?

young burrow
#

sec

tawdry gullBOT
young burrow
#

my 2013 imac lacks enough ram to open it so i gotta transfer it to my pc

daring nimbus
#

6GB might be too much for most text editors tbh.
Easiest would be just restarting the server so it creates a new one

young burrow
#

after like 10 minutes of uptime its already 1.38 gigs

#

i think its some sort of new exploit being abused

arctic tapir
#

restartserver and basically immediatly stop it?

young burrow
#

also for some reason 1.21.6 folia builds velocity cant see it but 1.21.6 clients can well heres the thing it happens only sometimes like its people doing it on purpose and stopping yesterday and prior days 24 hours uptime i restart at midnight daily and then today now its insane spamming to the point of 6 gigabyte log files

#

sublime text can handle it

subtle wasp
#

head -n 2000 latest.log | less

young burrow
#

just did a restart hopefully i can catch it before it gets too big

subtle wasp
#

You could probably just less latest.log and it wouldn't read the whole thing into memory

young burrow
#

its that spammed over and over

arctic tapir
#

reproduce on folia

young burrow
#

ok

arctic tapir
#

but also don't put legacy text in components

young burrow
#

the 1.21.6 builds are busted tho i tried them earlier

fair merlin
tawdry gullBOT
tawdry gullBOT
tawdry gullBOT
rare steppe
velvet oracle
#

Is it correct to assume that Folia is still considered unstable?

thick eagle
wicked mantle
#

I wouldn't say unstable, moreso, not meant for everyone

velvet oracle
wicked mantle
#

It can be stable and missing features lol

#

Anyway, not an argument for this channel nodd

viral stone
#

I mean, there are some stuff pending an bunch of work on the event system; vanilla feature support is mostly on par with paper outside of some stuff relying on tick sematics, which is just never going to be fixable (but, does not impact what 'stable' means)

#

if you require perfect vanilla parity, somethimg which completely changes how ticking works is probably not your first port of call; it's also generally just not as burnt in as much other software, it will likely never be a general consumer piece of software

livid crag
velvet oracle
#

fair enough I suppose

livid crag
#

And it being on 2t is really a good treatment as you know those anarchy kids would be doing their best to break it kekw

vital path
#

FYI for anyone running Folia, using CarbonChat with more than maybe 250 players will overwhelm netty and completely annihilate your server until it's removed. Found that out the hard way. Went from barely able to handle 250 people with rubberbanding to 450+ perfectly stable just removing CarbonChat

#

rubber banding, multi second pings and then mass Timed Out disconnects

viral stone
#

ideally would be nice if you profiled it and sent it to them

noble ridge
#

Hi,
I heard that folia requires 16 cores to work.
is this true or the recommended amount ?
just wondering as it was working on a 3 threaded server for me when testing.

viral stone
#

doesn't require that

#

that is just the expectation of the hardware/expense you'd have to burn to be able to justifyibly use it and some level of "we don't want people running it on potatos and complaining because it performs much worse than paper on their dual core pentium"

fair merlin
#

Yeah, it'll "run" on 3 threads just for testing. Once you start adding players it's not gonna be happy.

#

In that case you're better off running Paper.

noble ridge
#

tbh it was faster than paper on an old xeon

#

and using less power

vital path
#

took me a few hours of instability to figure it out, will have to test with bots later

viral stone
#

Well, yea, cos old xeons generally had a bunch of cores sitting around usually doing nothing on paper, so, being able to flex them if you've got the spread is always nice

noble ridge
#

i see

#

also i like the new tps page ngl

north shale
#

What would happen if you use less than 16?

vital path
#

you can get away with less than 16, you're just more likely to get into issues with threads hanging up on eachother when loads get high

north shale
#

👍🏻

noble ridge
#

example of folia on few cores/threads

vital path
#

I'm on a EPYC 4584PX with vanilla SMP-ish, 10 view dist 3 sim dist with 450 players

noble ridge
#

1 thread per world rather than multiple regions per world

north shale
#

So basically each world ticks separately?

noble ridge
viral stone
#

I mean, regions are regions

noble ridge
#

but each world can have multiple regions

viral stone
#

if your players are too close together, the regions in a world will become a huge uber region

noble ridge
#

so 9 threads munich have 3 regions per world

north shale
#

Would each region basically tick like a paper server?

fair merlin
#

Basically.

fair merlin
#

Lots of questions answered there.

viral stone
#

basically, yes; just there are some overheads which end up being taken out by a big folia server vs running multiple paper instances

#

where the balance between instances and overheads sit, idk

vital path
#

if you just need combined chat and inv sync across multiple places where you don't need vanilla level continuity it'd prob make more sense to just use paper, save a lot of headache with concurrency issues

#

but being able to more evenly distribute the resources and not waste anything is nice too

swift hinge
#

Is Folia still experimental or can it already be used in production?

fair merlin
#

The status hasn't really changed. It's still missing some stuff. Whether to use it in production is your choice. Some folks do.

#

It's still not a 1:1 replacement for Paper. It has different uses.

#

So not everyone will want to run it.

autumn grail
#

in which thread should manipulating to bossbar be ran ? global region or region ?

fair merlin
#

There is no global thread.

autumn grail
#

this one ?

autumn grail
lapis finch
#

since you're manipulating the player's state

#

nvm im dumb

lapis finch
fair merlin
# autumn grail

Sorry, my brain is fried. I was transposing "thread" to "region"

autumn grail
#

bossbar works really weird, like you add player to the bossbar, not the bossbar to the player

lapis finch
#

it seems to work fine

autumn grail
#

ok lemme try

lapis finch
#

kinda messy though cause it's being called from an event, I'm assuming this event just passes off to the player's thread

plucky mountain
#

hi guys im new using folia

#

how to fix that bug guys

autumn grail
#

not really, i am porting a plugin over to folia

#

not really the choice i can choose since i want it to be maintainable with upstream

tacit harness
#

folia became stable enough to make builds public?

quaint panther
#

there are some missing things

#

but yeah, it should be stable if you know what you're doing

flat ridge
vital path
#

I'm using LPC currently without issue, which tbh may use legacy colors or something to function but unsure

#

carbon may just be a little too fancy for its own good somehow

flat ridge
#

interesting, less is more ig

vital path
#

yeah i think theyre just doing some insanely complicated nested components or something

#

the networking was getting bogged down on serialization

#

which is a little hilarious considering that i'm doing a rewriting pass on every single packet with an itemstack on the server atm for modded content support but /shrug just a design oversight on their part im sure

flat ridge
#

well, good to know, thanks!

tawdry gullBOT
hardy scarab
#

Does Folia crash randomly on its own, or is it caused by plugins? My server sometimes encounters an issue where a chunk at [x,z] stops ticking, but the watchdog doesn't show anything related to plugins

viral stone
#

I mean, we can't really tell you, it's your job to look at the stacktraces and see what is generally going on

#

it could be induced by many plugins, the platform itself seems to be okay for most but is not bug free/smoke tested as much as other platforms

vital path
#

as electronic said it's more likely there's some plugin thats causing regions to break

#

id check the logs for any exceptions from any plugins prior, and also make sure your on the latest folia available

#

if you're on like, 1.20 or something months old there were definitely occasional situations where regions could die but newer versions don't have that problem in my experience

hardy scarab
#

oh ive check the whole stacktrace of watchdog error, it didnt show any plugins

#

im using 1.21.4

viral stone
#

1.21.4 covers several builds

#

But, that thread is locked pending on some other thread

hardy scarab
hardy scarab
viral stone
#

And this is why we still have humans inside of these channels

vital path
#

yeah i suspect there's some earlier error thats occuring during an unload or save that triggered that

zealous hill
#

ok to update to Folia .6 from LEAF .6?

vital path
#

could really be anything tho

vital path
# hardy scarab im using 1.21.4

fwiw I'm built on top of 80ab57d right now and haven't had any regions die, if your building against an older commit id update

viral stone
#

migrating is also generally not a trivial operation due to the nature of plugin support being sparsely different

zealous hill
#

all our plugins have folia versions

vital path
#

iirc based on the bot messages ive seen, is there a chance we'll get the newest folia patched backported to older 1.21 builds? or is folia also just a latest-only targeted software still

viral stone
#

No, we as an org generally do not backport stuff outside of major security issues; and folia doesn't really get that due to its more niche nature too

vital path
#

gotcha

#

bot msg is slightly misleading then imo, unintentionally implies that it might be backported

viral stone
#

It's saying that folia as a whole will not be backported to older versions of mc

vital path
viral stone
#

i.e. there isn't going to be folia for 1.8.8

vital path
#

yeah but specifying a version there with a < makes it sound like newer than 1.19.4 it might be backported

viral stone
#

I don't see how

#

folia for 1.20.x exists

#

it's just unmaintained

vital path
#

suppose so

#

I've just interpreted it as, for whatever reason, "new patches could be backported"

#

doesn't have to change but if folks badger about it would be worth rewording imo

azure flower
#

Heya, I'm having an weird issue where, when you place a block of obsidian and then a crystal on top of it after, the latter only happens with a delay. Ironically, if you go far out, say 200.000 blocks, that issue just magically vanishes - The exact same sometimes happens for ender pearls as well - throwing is slightly delayed, completely vanishes when you go far out.

It doesn't appear to have anything to do with playercounts close to ( 0 | 0 ), as the MSPT in that region is always below 8, and we were able to replicate the issue in different regions with a single player.

quasi imp
#

Is folia good for SMP?

tawdry gullBOT
prime juniper
daring nimbus
#

and they are spread out. Unlikely on an SMP unless you specifically take that into consideration when creating the server

quasi imp
#

Its like a DSMP type server

quasi imp
daring nimbus
#

that does not sound like something Folia would help with

pastel musk
#

hey ever since when did they put folia downloads

#

was it like yesterday?

subtle wasp
pastel musk
#

I found that very interesting

#

less than 24 hr ago there was a /command saying don't provideo folia downloads. is it that now folia is stable enough?

livid crag
#

yes a command changes

#

idk how hard that is to understand. There is no deeper meaning than that.

pastel musk
#

like its so quick

dire pebble
#

I mean, it have to change at the same time. When there is no (in this case unnecessary announcement that says "we will make Folia builds in 1 week to download") it will always be "quick". And such an announcement would leed neccesary to the question "Why not make it now instead in 1 week?".

fair merlin
pastel musk
#

no it was the /folia-dl

#

that one got removed lol

fair merlin
#

I'm not following. We removed the command - which has been there for a long time - because downloads are now available on the website.

pastel musk
#

I see

#

how did you update your websit eso fast? what do you guys use for the site?

thorny cedar
#

Redstone doesn’t tick note blocks dose someone know how to fix I am on 1.21.4 folia

tawdry gullBOT
thorny cedar
scarlet ginkgo
#

try updating to 1.21.6

#

a lot changed since 1.21.4

#

with folia you should always stay on latest

#

even more important than paper

thorny cedar
livid crag
#

Folia is made for server with unique situation such as individual players are thousands of block apart majority of the time and the server network has good hardwares and a dedicated development team to address the issue with plugin compatibilities. A few good example you can look at is DonutSMP and 2b2t.

#

Exactly. Majority of people are perfectly fine using Paper.

#

Unless you are rocking 100+ players and ALSO meet the unique situation mentioned above, there is little to no gain switching from Paper to Folia.

thorny cedar
livid crag
#

Look at issue tracker and see if there is one like that. Assuming you already tested with no plugins

#

I am currently in bed so is unable to further looking into your issue. I can still answer simple question like the one from above though paperOhhh

fair merlin
tawdry gullBOT
thorny cedar
#

already fixed thanks anyway

fair merlin
hardy scarab
#

erm.. where can i get lastest .jar of 1.21.4 folia..

fair merlin
#

On the website, but you really should be running Folia 1.21.6

#

There's been a lot of changes/updates/improvements in Fola.

hardy scarab
fair merlin
#

For Folia, probably.

#

But at least 1.21.6 for now.

#

It's not a 1:1 swap for Paper.

#

Make sure you read the docs/caveats/requirements/etc

hardy scarab
#

got it, thanks

hardy scarab
#

cant wait for stable folia folia

tawdry gullBOT
dusty aurora
#

wait what, is folia considered stable now?

#

I mean, yeah, it just feels like yesterday

velvet oracle
#

If you're not sure if you need it, then you don't

prime juniper
#

speaking of that, what is the map size that folia is designed for? 50k? 100k?

lofty magnet
#

1000 blocks between players/player groups you want to isolate

#

iirc

random valve
#

congratulations on launching folia on the website🙏‼️

small mauve
#

So, there was that Signed Velocity bug that made them upgrade to 1.3.0, the fix works on Paper but does not work on Folia. I have someone actively using it. I have tried and confirmed the same

viral stone
#

The primary fix is on the proxy side, not the backend side

strange hinge
#

hey i am looking forward to creating my first folia plugin, is there some template I could have a look at to get the gist of what to expect and how to get started?

rare hare
strange hinge
#

ah i figured #folia-dev was for development of folia and help was for help with folia development
now im realising help is for help with using folia

small mauve
teal sleet
#

Hey, do you guys think folia is worth it for me?
For the next SMP I expect around 75 to 100 players, I have good Servers, newest hardware.
I think the plugins shouldn't be a problem because I can switch to ones that are working or code some.

Did you think I should stick with purpur or paper or folia? Please explain your decision
Thanks for your help

inner swift
#

Depends on what exactly the server you're talking about is, and, more importantly, player spread

tawdry gullBOT
teal sleet
inner swift
#

Be careful not to overestimate how spread the players are and how willing they are to come close to each other

#

Yes, server specs

teal sleet
#

I have a dedicated server so I'm free - 16 cores AMD Ryzen 9 9950X 64gb ddr5 ram nvme SSD

inner swift
#

The bot image gives you an idea

#

If any two players are within ~1000 blocks of each other, they will be in the same region. If any two players that were far apart move towards each other and eventually reach less than that distance, they will force a region merge that will not unmerge as easily as they merged

tawdry gullBOT
lunar mica
#

Do you support 1.21.4 in folia?

tawdry gullBOT
hexed ice
#

scroll down to folia there

tawdry gullBOT
finite hinge
#

#bot-spam

trim meteor
#

Do you happen to have a VoidTeleport plugin compatible with Folia?

dim merlin
#

Or look for alternative plugins that offer the same features

trim meteor
#

A plugin that will teleport us to the spawn point when we fall into the void

lapis finch
#
java.lang.UnsupportedOperationException: Configuration mode is not supported in its current state
        at net.minecraft.server.network.ServerCommonPacketListenerImpl.onDisconnect(ServerCommonPacketListenerImpl.java:97) ~[folia-1.21.7.jar:1.21.7-DEV-6cc7f5b]
        at net.minecraft.server.network.ServerConfigurationPacketListenerImpl.onDisconnect(ServerConfigurationPacketListenerImpl.java:73) ~[folia-1.21.7.jar:1.21.7-DEV-6cc7f5b]
        at net.minecraft.network.Connection.handleDisconnection(Connection.java:923) ~[folia-1.21.7.jar:1.21.7-DEV-6cc7f5b]
        at io.papermc.paper.threadedregions.RegionizedServer.tickConnections(RegionizedServer.java:376) ~[folia-1.21.7.jar:1.21.7-DEV-6cc7f5b]
        at io.papermc.paper.threadedregions.RegionizedServer.globalTick(RegionizedServer.java:325) ~[folia-1.21.7.jar:1.21.7-DEV-6cc7f5b]
        at io.papermc.paper.threadedregions.RegionizedServer$GlobalTickTickHandle.tickRegion(RegionizedServer.java:161) ~[folia-1.21.7.jar:1.21.7-DEV-6cc7f5b]
        at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:418) ~[folia-1.21.7.jar:1.21.7-DEV-6cc7f5b]
        at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:546) ~[concurrentutil-0.0.3.jar:?]
        at java.base/java.lang.Thread.run(Thread.java:1570) ~[?:?]

anyone getting this on the 1.21.7 branch?

fair merlin
#

Don't think 1.21.7 is ready yet.

#

(Thus no downloads on the website)

lapis finch
#

yeah i'd assume it would've been like of the 'toggle experiemental builds' or whatever paper used to have

#

yk where it turns red

fair merlin
#

When there's an experimental build there will be, yeah.

#

But Leaf's still working on it to be ready to build properly.

lapis finch
#

👍

tawdry gullBOT
unkempt harbor
#

<@&748618676189528155>

spiral crane
#

i've banned

#

discord is just taking ages to clear the messages

#

there we go 😌

proud sandal
#

I am thinking about adding a skyblock server to my Minecraft network. But I have a couple questions about folia.

  1. Is it compatible with all plugins that support Paper?
  2. Is folia currently stable enough for a public Minecraft server?
  3. Is it compatible with velocity + legacy forwarding for pre 1.13 support?
arctic tapir
#

no

#

sure

#

yes

tawdry gullBOT
vital path
#

Just had my server crash with a weird series of events, anyone seen anything like this before?
On Folia 1.21.4 FYI

  1. Server stopped letting new players join
  2. Players start being randomly timed out
  3. Players stop being able to see block entities
  4. Autocomplete in the console caused the console to freeze
  5. Everyone is disconnected
  6. A message codecache appeas
  7. The server force quits after disconnecting everyone

There are no exceptions in the console to denote any thread specifically crashing, but here's the thread dump where everything seems suddenly parked.

#

Is there anything here indicating something like a deadlock caused by the anticheat?

daring nimbus
#

pretty concerning error tbh, the JVM running out of CodeHeap is pretty unusual for a Minecraft server.

You probably have something creating a massive amount of different classes, or very heavily/wrongly using reflection or bytecode manipulation of some sort.
The other issues are likely related, the JVM having to fall back on purely interpretation will be awfully slow, too slow to properly run a server.

Probably best to figure out what causes that. jcmd <PID> Compiler.CodeHeap_Analytics should give you helpful output for that. Probably best to pipe it to some file, cause its a lot lol

sudden tusk
#

I mean, the plugman reload call has me suspicious as to the cause of filling things up

daring nimbus
#

oh thats tiny, I didn't see that. But yeah that could cause that. Especially if you did it multiple times before. Do not use plugman in production, terrible idea.

jolly glen
#

is there no spark by default? or am I missing something, it's the first time I start up a Folia server

viral stone
#

spark-paper is not designed for folia

#

you would need the plugin for folia

jolly glen
#

yep but I thought it was bundled with Folia by default, I found the right version tho

feral sundial
#

hey, can folia be used to have one singular world in multiple regions?

#

im just extremely curious as to how that works as i saw that kind of integration in donut smp

inner swift
#

One world can have multiple regions depending on how spread players are

feral sundial
#

how would that work? like what would the backend look like?

inner swift
#

What do you mean with backend?

autumn grail
#

like how they have multiple servers in different continents?

feral sundial
#

yeah, but all linked to one world

autumn grail
#

i dont think they do that

#

lots of work to do in syncing world data

#

you can ask the man himself, pedro pagini

#

from what i have researched, they just dont

#

each region has a different world

feral sundial
#

they do, its based off of coordinates as well

autumn grail
#

not sure how to handle edge chunks of the world

#

or they do flexible regionize like how folia do

feral sundial
#

no idea honestly, might have a plugin that checks player locations every interval and redirects you to different regions based on it, but I have no idea how they would have all the servers synced to one world

worthy oar
#

hello everyone

#

im having trouble with folia

#

how do I allocate more ram for the server ?

arctic tapir
#

if you need to ask that then folia is not for you

worthy oar
#

nvm i did it my bat file wasnt starting for some reason but now it does

wild gazelle
#

can someone come mp to help with the creation of my server with folia ?

errant wyvern
#

Why do you need folia?

wild gazelle
# errant wyvern Why do you need folia?

i am making a minecraft server with friends on java and the last time i did that we were having bugs, so i try something else and i saw a video saying folia was a good way for no bug

errant wyvern
#

No

fair merlin
#

Can you link whatever video that was?

wild gazelle
#

can u help me i dont know minecraft world i just want to make a good server without bug

#

paper is better so ?

errant wyvern
#

For your case, yes

fair merlin
icy thicket
#

I need some help, why am i not able to import these?

#
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>eu.hibermc</groupId>
    <artifactId>BetterSell</artifactId>
    <version>1.0</version>
    <packaging>jar</packaging>

    <name>BetterSell</name>

    <properties>
        <java.version>21</java.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <build>
        <defaultGoal>clean package</defaultGoal>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.13.0</version>
                <configuration>
                    <source>${java.version}</source>
                    <target>${java.version}</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>3.5.3</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
            </resource>
        </resources>
    </build>

    <repositories>
        <repository>
            <id>papermc</id>
            <url>https://repo.papermc.io/repository/maven-public/</url>
        </repository>
        <repository>
            <id>sonatype</id>
            <url>https://oss.sonatype.org/content/groups/public/</url>
        </repository>
        <repository>
            <id>jitpack.io</id>
            <url>https://jitpack.io</url>
        </repository>
    </repositories>

    <dependencies>
        <dependency>
            <groupId>com.github.MilkBowl</groupId>
            <artifactId>VaultAPI</artifactId>
            <version>1.7</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>dev.folia</groupId>
            <artifactId>folia-api</artifactId>
            <version>1.21.6-R0.1-SNAPSHOT</version>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>ru.spigotmc.destroy.primeseller</groupId>  <artifactId>PrimeSeller</artifactId>              <version>2.4.7</version>                          <scope>system</scope>
            <systemPath>${project.basedir}/../HiberSell/lib/PrimeSeller-v2.4.7.jar</systemPath>
        </dependency>

    </dependencies>
</project>```
tawdry gullBOT
viral stone
#

no need to flood chat

icy thicket
#

My bad, sorry

viral stone
#

that is probably because your IDE is outdated

icy thicket
#

I use intellij

viral stone
#

COol

#

what version of it?

icy thicket
viral stone
#

update

icy thicket
#

thats why it doesnt work?

viral stone
#

Probably, yes

#

Your IDE likely doesn't understand java 21 properly

icy thicket
#

Well i use java 21 to do all my plugins with

#

this is the first time using folia

finite hinge
#

2024.* supports Java 21

#

I think Vault-API is pulling in a copy of spigot-api?

viral stone
#

That wouldn't cause a class to be unavailable

finite hinge
#

It should only affect new methods on existing classes, right

viral stone
#

yes

#

and that's a paper only class

finite hinge
#

I guess try to build without the IDE and see if it's actually broken or if your IDE is

icy thicket
#

im installing 2025 version to see if that fixes it

wet arch
#

does that 2nd import even exist

icy thicket
#

What import?

finite hinge
#

Oh are you vibe coding?

icy thicket
#

Still in the learning phase

livid crag
#

Using AI =/= Learning.

icy thicket
#

I knew nothing about folia tbh

#

Asked chatgpt why was it not importing and he probably messed something

finite hinge
#

You can probably just use paper-api, it has almost all of the API from Folia and the things it doesn't have you likely don't need anyway

tawdry gullBOT
finite hinge
#

But it would be the same imports, although those are apparently just wrong

icy thicket
#

Updating intellij made this get imported
import io.papermc.paper.threadedregions.scheduler.ScheduledTask;

#

but the other one playerscheduler didnt

wet arch
#

because that doesn't exist

finite hinge
#

AI makes shit up

icy thicket
#

oh

finite hinge
#

Especially for niche/new things that it didn't slurp up a lot of data for

wet arch
#

(of which folia certainly is)

finite hinge
#

Oh that's about internals, bleh

#

Anyway you want the EntityScheduler, RegionScheduler, GlobalRegionScheduler, and/or AsyncScheduler depending on what you're doing

icy thicket
#

Thank you very much

little sable
#

<@&748618676189528155>

rare hare
#

^ Handled

polar tusk
#

Hey, quick question—why doesn’t Folia use Project Reactor? It’s literally built for multithreading and async tasks. I get that you can’t just drop it in overnight since the server codebase is huge, but still, seems like a good fit long-term?

fair merlin
# polar tusk Hey, quick question—why doesn’t Folia use Project Reactor? It’s literally built ...

It’s a little clunky to answer this kind of question. “Why didn’t you” or “why don’t you” doesn’t really have a direct answer. You’re basically asking “why didn’t you rewrite the entire codebase” or “why don’t you do it the way I would do it?”

There’s a million ways to approach these kinds of things. Folia is a fork of Paper, and the further it deviates from Paper the more difficult it becomes to manage.

I’m not Leaf so I can’t speak to his reasons exactly but I would guess that library doesn’t really have the approach he wants to take.

#

Or it’s more work than it’s worth to integrate.

But at the end of the day, philosophical programming design questions probably aren’t the best topic for this channel.

And probably don’t have clear black and white answers anyway.

polar tusk
#

Thanks for the explanation--totally fair that there are a ton of ways to approach concurrency and that Folia needs to maintain some compatibility with Paper. I wasn't trying to say "why didn't you rewrite everything," just genuinely curious about the design direction.

Reactor stood out to me since it's purpose-built for async/multithreaded work and has a mature operator model. But i get that adopting something like that means a big architectural shift, and Folia might have different priorities or design goals. Appreciate the insight either way!

prime juniper
#

How is folia going?

#

I'd like to get into modding minecraft for servers, and I'm wondering if it's worth learning about paper and how to mod / use it in case Folia succeeds, otherwise I'll stick to Fabric

lofty magnet
#

what do you mean by "succeeds"?

prime juniper
#

I hadn't realised that it's available for download now

#

and that 2b2t uses it

#

which means that it's ready to use in servers

#

So I guess it already has suceeded

arctic tapir
#

(it's always been available to download, just not shown on the website)

prime juniper
#

You had to compile it yourself in the past

#

And it had a lot of bugs

arctic tapir
#

It's been available on the api day 1

prime juniper
#

I just installed it and am testing it out

#

btw is there a command to change the render / simulation distance at runtime or do I have to restart the server?

prime juniper
#

I'm pretty sure I asked around and everyone told me to compile

arctic tapir
prime juniper
arctic tapir
#

Because if you couldn't compile folia then it wasn't for you

prime juniper
#

No, I DID compile it

#

and test it

#

I just said that it didn't have a publicly available jar

#

And the fact that it didn't means it wasn't ready yet

arctic tapir
fair merlin
fair merlin
north shale
#

Will Folia get world loading support for stuff like multiverse?

#

Is that planned at all?

inner swift
#

It's currently very difficullt/low priority

dire pebble
#

Also, this topic is broadly discussed (here and in dev) and has some "solutions"/plugins.. when Discord search does not fail again.

last sand
fair merlin
last sand
proud sandal
#

Any recommendations for a good skyblock plugin that works with folia?

prime juniper
#

How much is folia's overhead compared to paper? If everyone had their base in around the same area, how much slower would it be than paper? And even if they do have it in the same place, don't people go out exploring all the time? Wouldn't folia help in those cases?

Let's say the server has an infinite amount of the fastest cores available right now

daring nimbus
#

players very rarely go out exploring several thousands of blocks away from other players

prime juniper
#

They don't have to be several thousands of blocks away. Don't they just have to be out of simulation distance?

daring nimbus
#

no

tawdry gullBOT
prime juniper
#

Render distance?

daring nimbus
#

much much more

prime juniper
#

What?

#

How much?

#

Why is that the case?

#

What difference does it make if a player is 1000 blocks away or 10000?

daring nimbus
#

So unless you have players that far spread out, and can ensure they stay that way (e.g. skyblock, very large map), Folia pretty much only has downsides. There are overheads to the region logic, though its hard to give actual numbers here. And you will have to make sure that all your plugins are specifically compatible with it.

prime juniper
#

Folia is doing this to simplify the regionizer logic and to lower its overhead?

#

Isn't this a huge tradeoff though?