-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request support for Folia #250
Comments
I'm sorry, I'm not sure if you're a bot or not, but the content of this issue sounds like something a bot would generate. If you'd like to talk about this in greater details, please visit our discord server and ping me: RoyalBlueRanger. I've already read the above about 2 weeks ago, and I'm game to get prison working with Folia. I'm just not sure when I can get to this. |
I agree, sounds like a bot. |
Thank you for your reply. I don't know much English, so I can only copy other people's issues |
Folia Support in Prison... I've kept this ticket open for a few reasons, but I think it may be important to provide a short reason why I am not going to support folia right now.
I just read some documentation on Folia about their regions. Basically what I'm seeing, is that for a given mine, that mine should wholly live within one Folia region. "Should". If a mine contains more than one Folia region, then there may be a slight internal adjustments to those Folia regions by adding chunks or merging regions. Basically something prison will not need to be concerned about overall. So what I am now thinking, is that most of what I said above in items 2A, 2B, and 2C, they may still apply, but they may be less important. It also gives me the impression that when designing a prison server to run on Folia, the owner/admins must purposefully design the server to work with Folia. This means placing mines far enough away from each other, so that each will get it's own Folia region. Or, place some mines close enough so they share the same Folia region. The bottom line is that mine placement will be critical to ensure Folia works well. If this is true, then prison may work out-of-the-box with Folia... maybe with minor changes. |
Here is a summary of everything made with ChatGPT to save some time:
For plugin developers, there are a few key takeaways from the given text:
Folia introduces regionised multithreading, which means that plugins will require modification to function properly. Plugin developers should expect compatibility with existing plugins to be at zero.
Folia introduces new API additions, such as the RegionisedScheduler and EntityScheduler, which can help plugins run on the correct thread context.
To ensure compatibility with Folia, plugin developers must mark their plugin as compatible by placing "folia-supported: true" in the plugin.yml file. Additionally, plugins must take advantage of the RegionisedScheduler and EntityScheduler API to ensure correct behavior.
Plugins should not assume that they can access or modify data in other regions, as Folia regions tick in parallel and do not share data. Plugin developers should take advantage of the upcoming thread-check API to ensure correct behavior.
There are currently broken API, including the scoreboard API, and planned API changes, such as super aggressive thread checks, which may impact plugin development.
Overall, plugin developers should be prepared for significant changes in their plugins to ensure compatibility with Folia. They should take advantage of the new API additions and mark their plugin as compatible to ensure correct behavior. Additionally, they should be aware of the limitations and rules of Folia's regionised multithreading to avoid bugs and errors in their plugins.
The text was updated successfully, but these errors were encountered: