Jump to content

Recommended Posts

Posted (edited)

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
Posted (edited)

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
Posted
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

Posted (edited)
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
Posted (edited)

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
Posted (edited)
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

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



×
×
  • Create New...

Important Information

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