Compare commits

...
Author SHA1 Message Date
FalsePattern f28d5fbc3e Immersive Cavegen compat 2022-07-03 23:18:52 +02:00
FalsePattern 3c53ecf624 add archaicfix to dev and readme 2022-07-03 23:17:13 +02:00
FalsePattern 0c3e745afa surround my dynamics 2022-07-03 22:35:19 +02:00
FalsePattern d594898485 fix archaicfix 2022-07-03 22:13:48 +02:00
FalsePattern 85689649bd update readme again 2022-07-03 20:15:37 +02:00
FalsePattern 04ddf0c29a update readme 2022-07-03 20:01:26 +02:00
10 changed files with 83 additions and 15 deletions

No files matched your search

+26 -8
View File
@@ -1,26 +1,44 @@
EndlessIDs is a modern rewrite of NotEnoughIDs which increases the limit even more, up to the maximum 24 bit unsigned integer value.
EndlessIDs is the unofficial successor of NotEnoughIDs, with more focus on compatibility, stability, and reaching
new limits.
| | Vanilla | NotEnoughIDs | EndlessIDs |
|-----------|---------|--------------|------------|
| Block IDs | 4096 | 32000 | 16777216 |
| Item IDs | 32000 | 32000 | 16777216 |
Comparison of the known limits:
| | Vanilla | NotEnoughIDs | EndlessIDs |
|-----------------|----------------------------------------------------|--------------|----------------------------------|
| Block IDs | 4,096 | 32,000 | 16,777,216 |
| Item IDs | 32,000 | 32,000 | 16,777,216 |
| Biome IDs | 256 | 256 | 65,536 |
| Entity IDs | 256 | 256 | 256 right now, extension planned |
| Potion IDs | 32 | 32 | 32 right now, extension planned |
| Enchantment IDs | 256 | 256 | 256 right now, extension planned |
| Dimension IDs | Theoretically unlimited, 4,294,967,295 in practice | Same | Same |
This mod also contains patches for the following mods:
- Anti ID Conflict
- Alternate Terrain Generation
- Anti ID Conflict
- ArchaicFix
- Biomes O' Plenty
- CoFH Lib
- DragonAPI
- GalactiCraft
- Immersive Cavegen
- More Fun Quicksand Mod
- Nature's Compass
- Realistic Terrain Generation
- Underground Biomes Constructs
- WorldEdit
Mods not listed here may or may not work. A good rule of thumb is that the more invasive a mod is, the higher the chance
it's broken without a patch once the IDs exceed 4096 and 32000.
Mods not listed here may or may not work.
- For item/block IDs:
- A good rule of thumb is that the more invasive a mod is, the higher the chance
it's broken without a patch once the IDs exceed 4096 and 32000.
- For biome IDs:
- If a mod adds a custom world generator, it has a high chance of invoking an old vanilla method in the worldgen code.
To avoid world corruption and broken biomes, this method has been replaced with an instant crash that refers the
user to this github repo.
If you find any crashes or incompatibilities, don't hesitate to open an issue.
+3
View File
@@ -18,5 +18,8 @@ dependencies {
compile(deobfMaven(curseMaven, "curse.maven:biomesoplenty-220318:2499612")) // 2.1.0.2308
compile(deobfMaven(curseMaven, "curse.maven:rtg-237989:2521557")) // 1.1.1.7
compile(deobfMaven(curseMaven, "curse.maven:naturescompass-252848:2451823")) // 1.3.1
compile(deobfMaven(curseMaven, "curse.maven:dynamicsurrounding-238891:2642381")) // 1.0.6.4
compile(deobfMaven(curseMaven, "curse.maven:immersivecavegen-521557:3649411")) // 1.2g
compile(files("lib/archaicfix-mc1.7.10-3d1392f-dev.jar"))
compileOnly(files("lib/GalacticraftCore-1.7-3.0.12.504-deobf.jar"))
}
Binary file not shown.
@@ -23,8 +23,10 @@ public abstract class BiomeGenBasePlaceholderMixin {
remap = false),
require = 1)
private int removePlaceholders(int id, boolean register) {
if (biomeList[id] instanceof PlaceholderBiome) {
biomeList[id] = null;
if (register) {
if (biomeList[id] instanceof PlaceholderBiome) {
biomeList[id] = null;
}
}
return AsmHooks.getBiomeID(id, register);
}
@@ -0,0 +1,19 @@
package com.falsepattern.endlessids.mixin.mixins.common.icg;
import com.falsepattern.endlessids.constants.ExtendedConstants;
import com.falsepattern.endlessids.constants.VanillaConstants;
import net.tclproject.mysteriumlib.asm.fixes.MysteriumPatchesFixesCave;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.Constant;
import org.spongepowered.asm.mixin.injection.ModifyConstant;
@Mixin(value = MysteriumPatchesFixesCave.class,
remap = false)
public abstract class MysteriumPatchesFixesCaveMixin {
@ModifyConstant(method = "<clinit>",
constant = @Constant(intValue = VanillaConstants.biomeIDCount),
require = 1)
private static int extendIDs(int constant) {
return ExtendedConstants.biomeIDCount;
}
}
@@ -34,8 +34,8 @@ public abstract class BiomeGenBaseMixin {
@Inject(method = "<init>(IZ)V",
at = @At(value = "RETURN"),
require = 1)
private void generatePlaceholders(int p_i1971_1_, boolean register, CallbackInfo ci) {
if (((Object) this) instanceof PlaceholderBiome) {
private void generatePlaceholders(int id, boolean register, CallbackInfo ci) {
if (((Object) this) instanceof PlaceholderBiome || !register) {
return;
}
if (biomeID >= 128 && biomeList[biomeID - 128] == null) {
@@ -7,6 +7,7 @@ import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Mutable;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.ModifyVariable;
import org.spongepowered.asm.mixin.injection.Redirect;
import net.minecraft.world.biome.BiomeGenBase;
@@ -22,15 +23,30 @@ public abstract class BiomeGenBasePlaceholderMixin {
@Final
public int biomeID;
private static ThreadLocal<Boolean> wantsRegister;
@Redirect(method = "<init>(IZ)V",
at = @At(value = "FIELD",
opcode = Opcodes.PUTFIELD,
target = "Lnet/minecraft/world/biome/BiomeGenBase;biomeID:I"),
require = 1)
private void removePlaceholders(BiomeGenBase instance, int id) {
if (biomeList[id] instanceof PlaceholderBiome) {
biomeList[id] = null;
if (wantsRegister.get()) {
if (biomeList[id] instanceof PlaceholderBiome) {
biomeList[id] = null;
}
}
biomeID = id;
}
@ModifyVariable(method = "<init>(IZ)V",
at = @At(value = "HEAD"),
index = 2,
require = 1,
argsOnly = true)
private static boolean modifyArg(boolean register) {
if (wantsRegister == null) wantsRegister = new ThreadLocal<>();
wantsRegister.set(register);
return register;
}
}
@@ -21,7 +21,7 @@ import net.minecraft.world.chunk.Chunk;
import java.util.Arrays;
@Mixin(Chunk.class)
@Mixin(value = Chunk.class, priority = 900)
public abstract class ChunkMixin implements IChunkMixin {
@Shadow
@Final
@@ -31,6 +31,7 @@ public abstract class ChunkMixin implements IChunkMixin {
public int zPosition;
@Shadow
private byte[] blockBiomeArray;
@Shadow public World worldObj;
private short[] blockBiomeShortArray;
@Inject(method = "<init>(Lnet/minecraft/world/World;II)V",
@@ -72,6 +73,10 @@ public abstract class ChunkMixin implements IChunkMixin {
public BiomeGenBase getBiomeGenForWorldCoords(int x, int z, WorldChunkManager manager) {
int id = this.blockBiomeShortArray[z << 4 | x] & ExtendedConstants.biomeIDMask;
if (id == ExtendedConstants.biomeIDNull) {
//Source: https://github.com/embeddedt/ArchaicFix/blob/3d1392f4db5a7221534a6f9b00c0c36a49d9be59/src/main/java/org/embeddedt/archaicfix/mixins/common/core/MixinChunk.java#L52
if (this.worldObj.isRemote) {
return BiomeGenBase.ocean;
}
BiomeGenBase gen = manager.getBiomeGenAt((this.xPosition << 4) + x, (this.zPosition << 4) + z);
id = gen.biomeID;
this.blockBiomeShortArray[z << 4 | x] = (short) (id & ExtendedConstants.biomeIDMask);
@@ -89,6 +89,10 @@ public enum Mixin implements IMixin {
GalactiCraftCoreConfigManagerCoreMixin(Side.COMMON, require(TargetedMod.GALACTICRAFTCORE),
"galacticraft.ConfigManagerCoreMixin"),
//endregion GalactiCraftCore->common
//region ICG->common
ICGMysteriumPatchesFixesCaveMixin(Side.COMMON, require(TargetedMod.ICG),
"icg.MysteriumPatchesFixesCaveMixin"),
//endregion ICG->common
//region MFQM->common
MFQMMixin(Side.COMMON, require(TargetedMod.MFQM), "mfqm.MFQMMixin"),
MFQMDataWatcherMixin(Side.COMMON, require(TargetedMod.MFQM).and(condition(() -> IEConfig.extendDataWatcher)),
@@ -17,6 +17,7 @@ public enum TargetedMod implements ITargetedMod {
COFHLIB("CoFH Lib", true, startsWith("cofhlib-")),
DRAGONAPI("DragonAPI", false, startsWith("dragonapi")),
GALACTICRAFTCORE("GalactiCraftCore", false, startsWith("galacticraftcore")),
ICG("Immersive Cavegen", true, startsWith("immersivecavegen")),
MFQM("More Fun Quicksand Mod", false, startsWith("morefunquicksandmod-")),
NATURESCOMPASS("Nature's Compass", true, startsWith("naturescompass")),
RTG("Realistic Terrain Generation", true, startsWith("rtg-")),