Skip to content
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

Question about RTG compat implementation #63

Closed
han-thony opened this issue Jul 8, 2024 · 3 comments
Closed

Question about RTG compat implementation #63

han-thony opened this issue Jul 8, 2024 · 3 comments

Comments

@han-thony
Copy link

han-thony commented Jul 8, 2024

How is RTG compatibility implemented? I went through all @jchung01's commits but couldn't figure it out. It seems like implementing "IModSupportsJEID" just causes RTG's chunk generator to bypass the REID injection. Is there compatibility implemented on the RTG side? I couldn't find it in their repo. I'm curious because I'm interested in adding compatibility for similar mods.

@jchung01
Copy link

jchung01 commented Jul 8, 2024

It seems like implementing "IModSupportsJEID" just causes RTG's chunk generator to bypass the REID injection.

This is correct, previous versions explicitly checked for RTG's ChunkGeneratorRTG, but this does the same thing.

Compatibility is explicitly provided on RTG's side, but only from forks of the mod. The forks that I'm aware of that do this are RTG Unofficial (compat impl) and RTG+ (compat impl).

Generally, any mods that implement IChunkGenerator shouldn't need explicit compatibility as the only thing that needs to be done is set REID's biome array, which is already done in MixinChunkProviderServer after the mod's IChunkGenerator#generateChunk is called. RTG seems to be a special case as it handles its biome gen (specifically river gen) in a unique way that breaks if REID's injection is run. I'm curious to know which mods you have in mind, as REID should be compatible with most modded chunk generators as is.

@han-thony
Copy link
Author

That makes sense, thank you for the response.

I was specifically interested in OTG for 1.12.2. Based on the code I've looked at, I think it's very possible OTG would work out of the box but on the OTG discord server the developers consistently say JEID type mods aren't compatible.

I haven't tested them together or investigated closely yet but if you're already familiar with how REID and OTG interact that would be helpful.

@jchung01
Copy link

jchung01 commented Jul 8, 2024

I believe @Mysticpasta1 has a working build of OTG that's compatible with REID, as mentioned in #5. You would need to build the jar yourself off of PG85/OpenTerrainGenerator#1000 though. Last time I checked there didn't seem to be any issues with it, but I didn't test throughly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants