Realistic Terrain Generation

Realistic Terrain Generation

3M Downloads

ASM

whichonespink44 opened this issue ยท 8 comments

commented

Right, so I've been thinking about using ASM to resolve #531 (Oceancraft bug).

What are everyone's thoughts on ASM in general?

My personal opinion (at least as far as RTG is concerned) is that it should be avoided at all costs. But it really bothers me that RTG isn't fully-compatible with Oceancraft, so I've been thinking of making an exception here.

My idea is to add a config option called "Allow full compatibility with Oceancraft" (disabled by default). If enabled, RTG would use ASM to modify the relevant OC file to ensure compatibility.

Would we be opening up a can of worms by doing something like that? Or am I making a mountain out of a molehill here?

commented

Since @thomassu is completely unresponsive to requests, and since a wide majority still relies heavily on MC 1.7.10, its probably the best solution. That said, if he decides to change his 1.7.10 version to decorate correctly, then it should probably reverted.

commented

I really don't think it's worth the hassle, especially for something disabled by default.
I don't know ASM (don't even know if anyone on our team does) but it seems pretty messy and difficult from some Forge code I checked. (in cpw.mods.fml.common.asm.transformers)

commented

@VelocityRa ๐Ÿ‘ wtf is asm?

commented
commented

More specifically: https://www.wikiwand.com/en/ObjectWeb_ASM
@srs-bsns I'm sure it's simpler than writing pure x86 assembly :P
Still though, nope.

commented

Ok, unless @Zeno410 comes in and says "ASM, piece of cake!", then the general consensus seems to be that we shouldn't consider ASM for this.

Instead, I'm going to message @thomassu on MCF to see if he'll consider tweaking WorldGeneratorOceancraft.java to use biome ID checks instead of biome equality checks, and if he does, then great, and if not... well, at least we tried.

commented

@VelocityRa, I know it's ObjectWeb_ASM, I just wanted to see how Topi would react to seeing true low-level Assembly. :P

@whichonespink44, I don't think there's enough people that use Oceancraft, or atleast with RTG, that we need to consume anymore time with.

commented

"Message sent."