Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.16.5] Creating a Config File


Syric
 Share

Recommended Posts

I'm attempting to add a config file to one of my mods. Currently, the code appears to be referencing the configured variables just fine, but the problem is the file itself: it's not printing all the variables and comments, and what it is printing is out of order.

My config is broken into three sections. Each has several 'groups', with each group governing one variable, and containing four copies of it: one for each of the four configurable items (basic, epic, legendary, and godly/mythic). For instance, in the "ping chance stats" section, there's a group for the "minPingChance" variable, with entries for basic_minPingChance, epic_minPingChance, and so on.

Here's my config file:

package syric.dragonseeker;

import net.minecraftforge.common.ForgeConfigSpec;
import org.apache.commons.lang3.tuple.Pair;

public class DragonseekerConfig {

    public static class Common {
        //Basic Dragonseeker
        public final ForgeConfigSpec.ConfigValue<Integer> basic_optimalDistance;
        public final ForgeConfigSpec.ConfigValue<Integer> basic_maxDistance;
        public final ForgeConfigSpec.ConfigValue<Double> basic_minPingChance;
        public final ForgeConfigSpec.ConfigValue<Double> basic_maxPingChance;

        public final ForgeConfigSpec.ConfigValue<Integer> basic_pingCapRadius;
        public final ForgeConfigSpec.ConfigValue<Double> basic_sigPower;
        public final ForgeConfigSpec.ConfigValue<Double> basic_minVol;
        public final ForgeConfigSpec.ConfigValue<Double> basic_maxVol;
        public final ForgeConfigSpec.ConfigValue<Double> basic_minPitch;
        public final ForgeConfigSpec.ConfigValue<Double> basic_maxPitch;

        public final ForgeConfigSpec.ConfigValue<Boolean> basic_detectsCorpses;
        public final ForgeConfigSpec.ConfigValue<Boolean> basic_detectsTame;
        public final ForgeConfigSpec.ConfigValue<Integer> basic_durability;


        //Epic Dragonseeker
        public final ForgeConfigSpec.ConfigValue<Integer> epic_optimalDistance;
        public final ForgeConfigSpec.ConfigValue<Integer> epic_maxDistance;
        public final ForgeConfigSpec.ConfigValue<Double> epic_minPingChance;
        public final ForgeConfigSpec.ConfigValue<Double> epic_maxPingChance;

        public final ForgeConfigSpec.ConfigValue<Integer> epic_pingCapRadius;
        public final ForgeConfigSpec.ConfigValue<Double> epic_sigPower;
        public final ForgeConfigSpec.ConfigValue<Double> epic_minVol;
        public final ForgeConfigSpec.ConfigValue<Double> epic_maxVol;
        public final ForgeConfigSpec.ConfigValue<Double> epic_minPitch;
        public final ForgeConfigSpec.ConfigValue<Double> epic_maxPitch;

        public final ForgeConfigSpec.ConfigValue<Boolean> epic_detectsCorpses;
        public final ForgeConfigSpec.ConfigValue<Boolean> epic_detectsTame;
        public final ForgeConfigSpec.ConfigValue<Integer> epic_durability;


        //Legendary Dragonseeker
        public final ForgeConfigSpec.ConfigValue<Integer> legendary_optimalDistance;
        public final ForgeConfigSpec.ConfigValue<Integer> legendary_maxDistance;
        public final ForgeConfigSpec.ConfigValue<Double> legendary_minPingChance;
        public final ForgeConfigSpec.ConfigValue<Double> legendary_maxPingChance;

        public final ForgeConfigSpec.ConfigValue<Integer> legendary_pingCapRadius;
        public final ForgeConfigSpec.ConfigValue<Double> legendary_sigPower;
        public final ForgeConfigSpec.ConfigValue<Double> legendary_minVol;
        public final ForgeConfigSpec.ConfigValue<Double> legendary_maxVol;
        public final ForgeConfigSpec.ConfigValue<Double> legendary_minPitch;
        public final ForgeConfigSpec.ConfigValue<Double> legendary_maxPitch;

        public final ForgeConfigSpec.ConfigValue<Boolean> legendary_detectsCorpses;
        public final ForgeConfigSpec.ConfigValue<Boolean> legendary_detectsTame;
        public final ForgeConfigSpec.ConfigValue<Integer> legendary_durability;


        //Mythic Dragonseeker
        public final ForgeConfigSpec.ConfigValue<Integer> mythic_optimalDistance;
        public final ForgeConfigSpec.ConfigValue<Integer> mythic_maxDistance;
        public final ForgeConfigSpec.ConfigValue<Double> mythic_minPingChance;
        public final ForgeConfigSpec.ConfigValue<Double> mythic_maxPingChance;

        public final ForgeConfigSpec.ConfigValue<Integer> mythic_pingCapRadius;
        public final ForgeConfigSpec.ConfigValue<Double> mythic_sigPower;
        public final ForgeConfigSpec.ConfigValue<Double> mythic_minVol;
        public final ForgeConfigSpec.ConfigValue<Double> mythic_maxVol;
        public final ForgeConfigSpec.ConfigValue<Double> mythic_minPitch;
        public final ForgeConfigSpec.ConfigValue<Double> mythic_maxPitch;

        public final ForgeConfigSpec.ConfigValue<Boolean> mythic_detectsCorpses;
        public final ForgeConfigSpec.ConfigValue<Boolean> mythic_detectsTame;
        public final ForgeConfigSpec.ConfigValue<Integer> mythic_durability;



        public Common(ForgeConfigSpec.Builder builder){

            builder.comment("Ping Chance Stats").push("ping_chance_stats");

            builder.comment("Inside this distance, getting closer to the dragon will not increase the ping chance.");
            builder.comment("Defaults: 100, 150, 200, 500");
            basic_optimalDistance = builder.defineInRange("basic", 100, 1, 500);
            epic_optimalDistance = builder.defineInRange("epic", 150, 1, 500);
            legendary_optimalDistance = builder.defineInRange("legendary", 200, 1, 500);
            mythic_optimalDistance = builder.defineInRange("godly", 500, 1, 500);

            builder.comment("Maximum distance at which a dragon will be detected. Should be larger than the optimalDistance, but not larger than your render distance.");
            builder.comment("Defaults: 200, 225, 250, 500");
            basic_maxDistance = builder.defineInRange("basic", 200, 1, 500);
            epic_maxDistance = builder.defineInRange("epic", 225, 1, 500);
            legendary_maxDistance = builder.defineInRange("legendary", 250, 1, 500);
            mythic_maxDistance = builder.defineInRange("godly", 500, 1, 500);

            builder.comment("Minimum chance of a ping. This is the chance of a positive ping when no dragons are detected, i.e. the false positive rate.");
            builder.comment("Defaults: 0.12, 0.08, 0.04, 0");
            basic_minPingChance = builder.defineInRange("basic", 0.12, 0, 1);
            epic_minPingChance = builder.defineInRange("epic", 0.08, 0, 1);
            legendary_minPingChance = builder.defineInRange("legendary", 0.04, 0, 1);
            mythic_minPingChance = builder.defineInRange("godly", 0D, 0, 1);

            builder.comment("Maximum chance of a ping. This is the chance of a positive ping when there is a dragon within the optimalDistance.");
            builder.comment("Defaults: 0.8, 0.9, 0.95, 1");
            basic_maxPingChance =builder.defineInRange("basic", 0.8, 0, 1);
            epic_maxPingChance = builder.defineInRange("epic", 0.9, 0, 1);
            legendary_maxPingChance = builder.defineInRange("legendary", 0.95, 0, 1);
            mythic_maxPingChance = builder.defineInRange("godly", 1D, 0, 1);



            builder.pop();
            builder.comment("Ping Property Stats").push("ping_property_stats");

            builder.comment("Inside this radius, ping properties will not change. The smaller it is, the easier it will be to narrow down a dragon's location.");
            builder.comment("Defaults: 125, 125, 100, 0");
            basic_pingCapRadius = builder.defineInRange("basic", 125, 1, 500);
            epic_pingCapRadius = builder.defineInRange("epic", 125, 1, 500);
            legendary_pingCapRadius = builder.defineInRange("legendary", 100, 1, 500);
            mythic_pingCapRadius = builder.defineInRange("godly", 0, 1, 500);

            builder.comment("Mathematical property governing the relationship between distance and ping properties. The higher this is, the easier it will be to narrow down a dragon's location.");
            builder.comment("Defaults: 1.5, 1.5, 2.5, 3.5");
            basic_sigPower = builder.defineInRange("basic", 1.5, 1, 5);
            epic_sigPower = builder.defineInRange("epic", 1.5, 1, 5);
            legendary_sigPower = builder.defineInRange("legendary", 2.5, 1, 5);
            mythic_sigPower = builder.defineInRange("godly", 3.5, 1, 5);

            builder.comment("Minimum volume of a ping, for when there are no dragons in range.");
            builder.comment("Defaults: 0.05");
            basic_minVol = builder.defineInRange("basic", 0.05, 0, 1);
            epic_minVol = builder.defineInRange("epic", 0.05, 0, 1);
            legendary_minVol = builder.defineInRange("legendary", 0.05, 0, 1);
            mythic_minVol = builder.defineInRange("godly", 0.05, 0, 1);

            builder.comment("Maximum volume of a ping, for when you're inside the ping cap radius.");
            builder.comment("Defaults: 0.05, 0.4, 0.7, 1");
            basic_maxVol = builder.defineInRange("basic", 0.05, 0, 1);
            epic_maxVol = builder.defineInRange("epic", 0.4, 0, 1);
            legendary_maxVol = builder.defineInRange("legendary", 0.7, 0, 1);
            mythic_maxVol = builder.defineInRange("godly", 1D, 0, 1);

            builder.comment("Pitch of a negative result, i.e. no dragon detected.");
            builder.comment("Defaults: 0.5");
            basic_minPitch = builder.defineInRange("basic", 0.5, 0, 1);
            epic_minPitch = builder.defineInRange("epic", 0.5, 0, 1);
            legendary_minPitch = builder.defineInRange("legendary", 0.5, 0, 1);
            mythic_minPitch = builder.defineInRange("godly", 0.5, 0, 1);

            builder.comment("Pitch of a positive result, i.e. there is a dragon detected.");
            builder.comment("Defaults: 0.8, 0.8, 0.8, 1");
            basic_maxPitch = builder.defineInRange("basic", 0.8, 0, 1);
            epic_maxPitch = builder.defineInRange("epic", 0.8, 0, 1);
            legendary_maxPitch = builder.defineInRange("legendary", 0.8, 0, 1);
            mythic_maxPitch = builder.defineInRange("godly", 1D, 0, 1);



            builder.pop();
            builder.comment("Other Stats").push("other_stats");

            builder.comment("Whether or not the dragonseeker detects dead dragons.");
            builder.comment("Defaults: true, false, false, false");
            basic_detectsCorpses = builder.define("basic", true);
            epic_detectsCorpses = builder.define("epic", false);
            legendary_detectsCorpses = builder.define("legendary", false);
            mythic_detectsCorpses = builder.define("godly", false);

            builder.comment("Whether or not the dragonseeker detects tame dragons.");
            builder.comment("Defaults: true, true, false, false");
            basic_detectsTame = builder.define("basic", true);
            epic_detectsTame = builder.define("epic", true);
            legendary_detectsTame = builder.define("legendary", false);
            mythic_detectsTame = builder.define("godly", false);

            builder.comment("Durability of the item. Set to -1 to make it unbreakable.");
            builder.comment("Defaults: 128, 256, 512, -1");
            basic_durability = builder.defineInRange("basic", 128, -1, 2048);
            epic_durability = builder.defineInRange("epic", 256, -1, 2048);
            legendary_durability = builder.defineInRange("legendary", 512, -1, 2048);
            mythic_durability = builder.defineInRange("godly", -1, -1, 2048);
            builder.pop();
        }

    }

    public static final ForgeConfigSpec COMMON_SPEC;
    public static final Common COMMON;

    static {
        final Pair<Common, ForgeConfigSpec> commonSpecPair = new ForgeConfigSpec.Builder().configure(Common::new);
        COMMON_SPEC = commonSpecPair.getRight();
        COMMON = commonSpecPair.getLeft();
    }
}

And here's what currently happens in the .txt file:

Quote


#Ping Chance Stats
[ping_chance_stats]
    #Range: 0.0 ~ 1.0
    legendary = 0.95
    #Range: 0.0 ~ 1.0
    godly = 1.0
    #Range: 0.0 ~ 1.0
    epic = 0.9
    #Defaults: 0.8, 0.9, 0.95, 1
    #Range: 0.0 ~ 1.0
    basic = 0.8

#Ping Property Stats
[ping_property_stats]
    #Range: 0.0 ~ 1.0
    legendary = 0.8
    #Range: 0.0 ~ 1.0
    godly = 1.0
    #Range: 0.0 ~ 1.0
    epic = 0.8
    #Defaults: 0.8, 0.8, 0.8, 1
    #Range: 0.0 ~ 1.0
    basic = 1.0

#Other Stats
[other_stats]
    #Range: -1 ~ 2048
    legendary = 512
    #Range: -1 ~ 2048
    godly = -1
    #Range: -1 ~ 2048
    epic = 256
    #Defaults: 128, 256, 512, -1
    #Range: -1 ~ 2048
    basic = 128

As you can see, only the last 'group' of variables in each of the three sections is printing, and they're doing it out of order. (It should be basic, epic, legendary, godly.) The Defaults comment prints in the middle of the group instead of before it, and the explanatory comment doesn't print at all.

What am I doing wrong? Thanks for the help!

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.

Guest
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.

 Share



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • Here's my log without mods in the mod folder    
    • it keeps stating that the jar file "custom.jar" cannot be found, when it is clearly in the server directory. ----- [25.10 11:37:48] [Multicraft] Received start command [25.10 11:37:48] [Multicraft] Loading server properties [25.10 11:37:48] [Multicraft] Starting server! [25.10 11:37:48] [Multicraft] Loaded config for "Special: custom.jar" [25.10 11:37:48] [Multicraft] JAR file not found, copying from global JAR directory [25.10 11:37:48] [Multicraft] Failed to copy jarfile from global JAR directory [25.10 11:37:48] [Multicraft] JAR file not found. Go to "Settings"-"Update Minecraft" to download the JAR file. [25.10 11:37:48] [Multicraft] Updating eula.txt file [25.10 11:37:48] [Server] ErrorUnable to access jarfile /custom.jar [25.10 11:37:48] [Multicraft] Server shut down (starting)  [25.10 11:37:48] [Multicraft] Restarting crashed server in 2.0 seconds [25.10 11:37:48] [Multicraft] Looks like a crash, check the server console. Return value: 1
    • [25Oct2021 17:15:12.586] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, MarioBros__, --version, 1.16.5-forge-36.2.8, --gameDir, C:\Users\Jonny\AppData\Roaming\.minecraft, --assetsDir, C:\Users\Jonny\AppData\Roaming\.minecraft\assets, --assetIndex, 1.16, --uuid, 3fdef5666031477981d4e1e6076684ff, --accessToken, ????????, --userType, msa, --versionType, release, --launchTarget, fmlclient, --fml.forgeVersion, 36.2.8, --fml.mcVersion, 1.16.5, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20210115.111550] [25Oct2021 17:15:12.590] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 8.0.9+86+master.3cf110c starting: java version 1.8.0_51 by Oracle Corporation [25Oct2021 17:15:12.603] [main/WARN] [cpw.mods.modlauncher.SecureJarHandler/]: LEGACY JDK DETECTED, SECURED JAR HANDLING DISABLED [25Oct2021 17:15:12.858] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust [25Oct2021 17:15:12.897] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.4 Source=file:/C:/Users/Jonny/AppData/Roaming/.minecraft/libraries/org/spongepowered/mixin/0.8.4/mixin-0.8.4.jar Service=ModLauncher Env=CLIENT [25Oct2021 17:15:14.403] [main/INFO] [STDERR/]: [org.antlr.v4.runtime.ConsoleErrorListener:syntaxError:38]: line 1:0 token recognition error at: '~' [25Oct2021 17:15:14.988] [main/INFO] [mixin/]: Successfully loaded Mixin Connector [com.qouteall.hiding_in_the_bushes.MyMixinConnector] [25Oct2021 17:15:14.996] [main/INFO] [Portal/]: Invoking Mixin Connector [25Oct2021 17:15:15.002] [main/ERROR] [mixin/]: Mixin config imm_ptl_mixins.json does not specify "minVersion" property [25Oct2021 17:15:15.003] [main/ERROR] [mixin/]: Mixin config imm_ptl_mixins_forge.json does not specify "minVersion" property [25Oct2021 17:15:15.005] [main/ERROR] [mixin/]: Mixin config imm_ptl_peripheral_mixins.json does not specify "minVersion" property [25Oct2021 17:15:15.008] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'fmlclient' with arguments [--version, 1.16.5-forge-36.2.8, --gameDir, C:\Users\Jonny\AppData\Roaming\.minecraft, --assetsDir, C:\Users\Jonny\AppData\Roaming\.minecraft\assets, --uuid, 3fdef5666031477981d4e1e6076684ff, --username, MarioBros__, --assetIndex, 1.16, --accessToken, ????????, --userType, msa, --versionType, release] [25Oct2021 17:15:15.022] [main/WARN] [mixin/]: Reference map 'createdeco.refmap.json' for createdeco.mixins.json could not be read. If this is a development environment you can ignore this message [25Oct2021 17:15:15.025] [main/WARN] [mixin/]: Reference map 'hackforge.refmap.json' for creategears.mixins.json could not be read. If this is a development environment you can ignore this message [25Oct2021 17:15:16.809] [pool-3-thread-1/FATAL] [mixin/]: Mixin apply failed imm_ptl_peripheral_mixins.json:common.altius_world.MixinChunkStatus -> net.minecraft.world.chunk.ChunkStatus: org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException 'static' modifier of handler method does not match target in net/minecraft/world/chunk/ChunkStatus::redirectBuildSurface [PREINJECT Applicator Phase -> imm_ptl_peripheral_mixins.json:common.altius_world.MixinChunkStatus -> Prepare Injections -> -> handler$zia000$redirectBuildSurface(Lnet/minecraft/world/server/ServerWorld;Lnet/minecraft/world/gen/ChunkGenerator;Ljava/util/List;Lnet/minecraft/world/chunk/IChunk;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;)V -> Prepare] org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException: 'static' modifier of handler method does not match target in net/minecraft/world/chunk/ChunkStatus::redirectBuildSurface [PREINJECT Applicator Phase -> imm_ptl_peripheral_mixins.json:common.altius_world.MixinChunkStatus -> Prepare Injections -> -> handler$zia000$redirectBuildSurface(Lnet/minecraft/world/server/ServerWorld;Lnet/minecraft/world/gen/ChunkGenerator;Ljava/util/List;Lnet/minecraft/world/chunk/IChunk;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;)V -> Prepare] at org.spongepowered.asm.mixin.injection.code.Injector.checkTargetModifiers(Injector.java:347) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.mixin.injection.callback.CallbackInjector.sanityCheck(CallbackInjector.java:387) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.mixin.injection.code.Injector.find(Injector.java:237) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.prepare(InjectionInfo.java:421) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.mixin.transformer.MixinTargetContext.prepareInjections(MixinTargetContext.java:1319) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.prepareInjections(MixinApplicatorStandard.java:1042) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyMixin(MixinApplicatorStandard.java:393) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:325) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.mixin.transformer.TargetClassContext.apply(TargetClassContext.java:383) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:365) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:363) [mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:250) [mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.service.modlauncher.MixinTransformationHandler.processClass(MixinTransformationHandler.java:131) [mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.launch.MixinLaunchPluginLegacy.processClass(MixinLaunchPluginLegacy.java:131) [mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at cpw.mods.modlauncher.serviceapi.ILaunchPluginService.processClassWithFlags(ILaunchPluginService.java:154) [modlauncher-8.0.9.jar:8.0.9+86+master.3cf110c] at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:85) [modlauncher-8.0.9.jar:?] at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120) [modlauncher-8.0.9.jar:?] at cpw.mods.modlauncher.TransformingClassLoader$DelegatedClassLoader.findClass(TransformingClassLoader.java:265) [modlauncher-8.0.9.jar:?] at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:136) [modlauncher-8.0.9.jar:?] at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:98) [modlauncher-8.0.9.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) [?:1.8.0_51] at net.minecraftforge.registries.GameData.init(GameData.java:177) [?:?] at net.minecraftforge.registries.GameData.<clinit>(GameData.java:132) [?:?] at net.minecraft.util.registry.Registry.forge(Registry.java:347) [?:?] at net.minecraft.util.registry.Registry.forge(Registry.java:331) [?:?] at net.minecraft.util.registry.Registry.<clinit>(Registry.java:140) [?:?] at net.minecraft.util.registry.Bootstrap.func_151354_b(Bootstrap.java:38) [?:?] at net.minecraft.client.main.Main.lambda$main$0(Main.java:123) [?:?] at net.minecraft.client.main.Main$$Lambda$596/2047799833.run(Unknown Source) [?:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_51] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_51] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_51] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_51] [25Oct2021 17:15:16.825] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException [25Oct2021 17:15:16.826] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:39) [25Oct2021 17:15:16.826] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [25Oct2021 17:15:16.826] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [25Oct2021 17:15:16.826] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [25Oct2021 17:15:16.826] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [25Oct2021 17:15:16.826] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: Caused by: java.lang.reflect.InvocationTargetException [25Oct2021 17:15:16.826] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [25Oct2021 17:15:16.827] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [25Oct2021 17:15:16.827] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [25Oct2021 17:15:16.827] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at java.lang.reflect.Method.invoke(Method.java:497) [25Oct2021 17:15:16.827] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:51) [25Oct2021 17:15:16.827] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$493/2086945474.call(Unknown Source) [25Oct2021 17:15:16.827] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [25Oct2021 17:15:16.827] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: ... 4 more [25Oct2021 17:15:16.828] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]: Caused by: java.lang.RuntimeException: org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered [25Oct2021 17:15:16.828] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]: at net.minecraftforge.fml.loading.BackgroundWaiter.runAndTick(BackgroundWaiter.java:43) [25Oct2021 17:15:16.828] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]: at net.minecraft.client.main.Main.main(Main.java:123) [25Oct2021 17:15:16.828] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]: ... 11 more [25Oct2021 17:15:16.828] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: Caused by: org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered [25Oct2021 17:15:16.828] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:392) [25Oct2021 17:15:16.829] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:250) [25Oct2021 17:15:16.829] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at org.spongepowered.asm.service.modlauncher.MixinTransformationHandler.processClass(MixinTransformationHandler.java:131) [25Oct2021 17:15:16.829] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at org.spongepowered.asm.launch.MixinLaunchPluginLegacy.processClass(MixinLaunchPluginLegacy.java:131) [25Oct2021 17:15:16.829] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at cpw.mods.modlauncher.serviceapi.ILaunchPluginService.processClassWithFlags(ILaunchPluginService.java:154) [25Oct2021 17:15:16.829] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:85) [25Oct2021 17:15:16.830] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120) [25Oct2021 17:15:16.830] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at cpw.mods.modlauncher.TransformingClassLoader$DelegatedClassLoader.findClass(TransformingClassLoader.java:265) [25Oct2021 17:15:16.830] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:136) [25Oct2021 17:15:16.830] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:98) [25Oct2021 17:15:16.830] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at java.lang.ClassLoader.loadClass(ClassLoader.java:357) [25Oct2021 17:15:16.830] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at net.minecraftforge.registries.GameData.init(GameData.java:177) [25Oct2021 17:15:16.830] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at net.minecraftforge.registries.GameData.<clinit>(GameData.java:132) [25Oct2021 17:15:16.831] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at net.minecraft.util.registry.Registry.forge(Registry.java:347) [25Oct2021 17:15:16.831] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at net.minecraft.util.registry.Registry.forge(Registry.java:331) [25Oct2021 17:15:16.831] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at net.minecraft.util.registry.Registry.<clinit>(Registry.java:140) [25Oct2021 17:15:16.831] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at net.minecraft.util.registry.Bootstrap.func_151354_b(Bootstrap.java:38) [25Oct2021 17:15:16.831] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at net.minecraft.client.main.Main.lambda$main$0(Main.java:123) [25Oct2021 17:15:16.831] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at net.minecraft.client.main.Main$$Lambda$596/2047799833.run(Unknown Source) [25Oct2021 17:15:16.831] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [25Oct2021 17:15:16.832] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at java.util.concurrent.FutureTask.run(FutureTask.java:266) [25Oct2021 17:15:16.832] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [25Oct2021 17:15:16.832] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [25Oct2021 17:15:16.832] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at java.lang.Thread.run(Thread.java:745) [25Oct2021 17:15:16.832] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: Caused by: org.spongepowered.asm.mixin.throwables.MixinApplyError: Mixin [imm_ptl_peripheral_mixins.json:common.altius_world.MixinChunkStatus] from phase [DEFAULT] in config [imm_ptl_peripheral_mixins.json] FAILED during APPLY [25Oct2021 17:15:16.834] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.transformer.MixinProcessor.handleMixinError(MixinProcessor.java:636) [25Oct2021 17:15:16.834] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.transformer.MixinProcessor.handleMixinApplyError(MixinProcessor.java:588) [25Oct2021 17:15:16.834] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:379) [25Oct2021 17:15:16.834] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: ... 23 more [25Oct2021 17:15:16.835] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: Caused by: org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException: 'static' modifier of handler method does not match target in net/minecraft/world/chunk/ChunkStatus::redirectBuildSurface [PREINJECT Applicator Phase -> imm_ptl_peripheral_mixins.json:common.altius_world.MixinChunkStatus -> Prepare Injections -> -> handler$zia000$redirectBuildSurface(Lnet/minecraft/world/server/ServerWorld;Lnet/minecraft/world/gen/ChunkGenerator;Ljava/util/List;Lnet/minecraft/world/chunk/IChunk;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;)V -> Prepare] [25Oct2021 17:15:16.835] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.injection.code.Injector.checkTargetModifiers(Injector.java:347) [25Oct2021 17:15:16.835] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.injection.callback.CallbackInjector.sanityCheck(CallbackInjector.java:387) [25Oct2021 17:15:16.835] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.injection.code.Injector.find(Injector.java:237) [25Oct2021 17:15:16.835] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.prepare(InjectionInfo.java:421) [25Oct2021 17:15:16.835] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.transformer.MixinTargetContext.prepareInjections(MixinTargetContext.java:1319) [25Oct2021 17:15:16.836] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.prepareInjections(MixinApplicatorStandard.java:1042) [25Oct2021 17:15:16.836] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyMixin(MixinApplicatorStandard.java:393) [25Oct2021 17:15:16.836] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:325) [25Oct2021 17:15:16.836] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.transformer.TargetClassContext.apply(TargetClassContext.java:383) [25Oct2021 17:15:16.836] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:365) [25Oct2021 17:15:16.836] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:363) [25Oct2021 17:15:16.836] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: ... 23 more  
    • Yes, post the debug log with empty mods folder. And please use the spoiler option of the editor or something like pastebin.
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.