Jump to content

Server Config loaded AFTER BiomeLoadingEvent is fired


DuckyCrayfish

Recommended Posts

If the following is true:

  • Using a "SERVER" config is the official way to build configuration files that only affect the logical server (like world generation).
  • Using the BiomeLoadingEvent is the official way to add features and modify biome generation.

Then you would expect SERVER config files to be loaded prior to the BiomeLoadingEvent event firing. However, it seems that the opposite is true, and SERVER configurations are not accessible during the BiomeLoadingEvent. Because of this, it seems that most people are reverting to using the COMMON configuration for their mod's generation settings. Towers of the Wild and OreTweaker are two examples of this.

However, this route does not allow users to tweak these generation settings on a world-by-world basis. World generation is, in my opinion, one of the most important things to be able to configure. Since it's such a pain to remove things after they have already been generated, it is important to be able to turn on and off certain features or structures.

 

Let me know if anything I have said is incorrect, or if a known workaround exists. If not, I'd like to post this suggestion through the correct communication channels. Could someone point me in the right direction?

Thanks!

Edited by DuckyCrayfish
Adding information
Link to comment
Share on other sites

Luis_ST gave me a summary of my own post with less punctuation.

I did not receive an answer, as the common config is not a suitable solution. As I mentioned, using common config does not allow world-gen configuration on a per-world/per-save basis. If, however, it is the only solution, then I asked in my OP if there is a proper line of communication I may use to suggest a change in the Forge event execution order.

Sorry if I sounded curt

Edited by DuckyCrayfish
Link to comment
Share on other sites

6 minutes ago, DuckyCrayfish said:

I did not receive an answer, as the common config is not a suitable solution.

a common config is the only config that you can use for that

6 minutes ago, DuckyCrayfish said:

As I mentioned, using common config does not allow worldgen configuration on a per-world/per-save basis.

not sure what you mean by "per-world"

7 minutes ago, DuckyCrayfish said:

If, however, it is the only solution, then I asked in my OP if there is a proper line of communication I may use to suggest a change in the Forge event execution order.

that's not possible since the Events are fired in the vanilla code and the vanilla code is fix you can't change the execution order

Link to comment
Share on other sites

45 minutes ago, Luis_ST said:

a common config is the only config that you can use for that

That's quite a shame considering world-gen is purely server-side.

45 minutes ago, Luis_ST said:

not sure what you mean by "per-world"

A client distribution may have many saves, and each save has its own server config file that contains logical-server related settings. This allows different saves to have different settings. This is, as I understand it, one of the main reasons that they switched to the current server/common/client config system. Of all of the configuration settings to be able to change on a per-world basis, I would expect world-gen to be one of them, considering all of the various world-gen options vanilla Minecraft allows you to change on a per-world basis.

45 minutes ago, Luis_ST said:

that's not possible since the Events are fired in the vanilla code and the vanilla code is fix you can't change the execution order

The entire configuration subsystem was added by Forge. I don't think that simply making a suggestion on the config load order of a modding platform is unreasonable.  Humor me and point me in the right direction?

Edited by DuckyCrayfish
Link to comment
Share on other sites

Thank you! That makes sense.

You don't think there's any way that the server directory can be deduced at that point, allowing a potential future version of Forge to pre-load the configs before the server is loaded? I'm aware of how ignorant that question probably sounds, we are steering away from my area of understanding.

Edited by DuckyCrayfish
Link to comment
Share on other sites

Quote

 This event fires when a Biome is created from json or when a registered biome is re-created for worldgen.

It fires a couple times, including when you load an existing save, which is when I make all of my modifications. But I understand what you mean now, and I can see why that would make a modification such as the one I suggested difficult. Oh well...

Hey thanks @diesieben07 for the technical replies. I appreciate the consideration!

Edited by DuckyCrayfish
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Baba  Serege [[+27-73 590 8989]] has experience of 27 years in helping and guiding many people from all over the world. His psychic abilities may help you answer and resolve many unanswered questions. He specialize in helping women and men from all walks of life.. 1) – Bring back lost lover. even if lost for a long time. 2) – My lover is abusing alcohol, partying and cheating on me I urgently need help” 3) – Divorce or court issues. 4) – Is your love falling apart? 5) – Do you want your love to grow stronger? 6) – Is your partner losing interest in you? 7) – Do you want to catch your partner cheating on you? – We help to keep your partner faithful and loyal to you. 9) – We recover love and happiness when relationship breaks down. 10) – Making your partner loves you alone. 11) – We create loyalty and everlasting love between couples. 12) – Get a divorce settlement quickly from your ex-partner. 13) – We create everlasting love between couples. 14) – We help you look for the best suitable partner. 15) – We bring back lost lover even if lost for a long time. 16) – We strengthen bonds in all love relationship and marriages 17) – Are you an herbalist who wants to get more powers? 18) – Buy a house or car of your dream. 19) – Unfinished jobs by other doctors come to me. 20) – I help those seeking employment. 21) – Pensioners free treatment. 22) – Win business tenders and contracts. 23) – Do you need to recover your lost property? 24) – Promotion at work and better pay. 25) – Do you want to be protected from bad spirits and nightmares? 26) – Financial problems. 27) – Why you can’t keep money or lovers? 28) – Why you have a lot of enemies? 29) – Why you are fired regularly on jobs? 30) – Speed up money claim spell, delayed payments, pension and accident funds 31) – I help students pass their exams/interviews. 33) – Removal of bad luck and debts. 34) – Are struggling to sleep because of a spiritual wife or husband. 35- ) Recover stolen property
    • OLXTOTO adalah situs bandar togel online resmi terbesar dan terpercaya di Indonesia. Bergabunglah dengan OLXTOTO dan nikmati pengalaman bermain togel yang aman dan terjamin. Koleksi toto 4D dan togel toto terlengkap di OLXTOTO membuat para member memiliki pilihan taruhan yang lebih banyak. Sebagai situs togel terpercaya, OLXTOTO menjaga keamanan dan kenyamanan para membernya dengan sistem keamanan terbaik dan enkripsi data. Transaksi yang cepat, aman, dan terpercaya merupakan jaminan dari OLXTOTO. Nikmati layanan situs toto terbaik dari OLXTOTO dengan tampilan yang user-friendly dan mudah digunakan. Layanan pelanggan tersedia 24/7 untuk membantu para member. Bergabunglah dengan OLXTOTO sekarang untuk merasakan pengalaman bermain togel yang menyenangkan dan menguntungkan.
    • Baba  Serege [[+27-73 590 8989]] has experience of 27 years in helping and guiding many people from all over the world. His psychic abilities may help you answer and resolve many unanswered questions. He specialize in helping women and men from all walks of life.. 1) – Bring back lost lover. even if lost for a long time. 2) – My lover is abusing alcohol, partying and cheating on me I urgently need help” 3) – Divorce or court issues. 4) – Is your love falling apart? 5) – Do you want your love to grow stronger? 6) – Is your partner losing interest in you? 7) – Do you want to catch your partner cheating on you? – We help to keep your partner faithful and loyal to you. 9) – We recover love and happiness when relationship breaks down. 10) – Making your partner loves you alone. 11) – We create loyalty and everlasting love between couples. 12) – Get a divorce settlement quickly from your ex-partner. 13) – We create everlasting love between couples. 14) – We help you look for the best suitable partner. 15) – We bring back lost lover even if lost for a long time. 16) – We strengthen bonds in all love relationship and marriages 17) – Are you an herbalist who wants to get more powers? 18) – Buy a house or car of your dream. 19) – Unfinished jobs by other doctors come to me. 20) – I help those seeking employment. 21) – Pensioners free treatment. 22) – Win business tenders and contracts. 23) – Do you need to recover your lost property? 24) – Promotion at work and better pay. 25) – Do you want to be protected from bad spirits and nightmares? 26) – Financial problems. 27) – Why you can’t keep money or lovers? 28) – Why you have a lot of enemies? 29) – Why you are fired regularly on jobs? 30) – Speed up money claim spell, delayed payments, pension and accident funds 31) – I help students pass their exams/interviews. 33) – Removal of bad luck and debts. 34) – Are struggling to sleep because of a spiritual wife or husband. 35- ) Recover stolen property
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.