[Bug]: AE2 Channel Mode Commands/Config not Working
Dragonsissiy opened this issue ยท 3 comments
Possible Fixes
Yes
Modpack Version
2.18
What happened?
For many versions now, I've been unable to change the AE2 Channel Mode via commandline or via config files for my server. It just says "An unexpected error occurred trying to execute that command." If I check the channel mode, it acts like I changed the mode. But if I check my channels, it most definitely hasn't change and stays default.
Command I'm using: /ae2 channelmode infinite or any of the other modifiers
Easy to reproduce, just try to change the mode as an op.
latest.log
No response
Developer reports
No response
I had the same issue (on Apex hosting server). I was able to resolve the issue by having a non-server-owner account type the command first - they get the error message. Then, have the server owner, (or in your server's console) type the command again. Then it works. As the server owner, if you type the command without a non-server-owner typing it first, it acts like the command went through, but, your channels are still limited. When you do the 2 steps above, you get a different output in the console - it'll add the server owner's name (SERVEROWNER has set channels to infinite). If you're playing locally and not on a server, I'm not sure a work around for that.
Ok i found out. When i set in the config X4 it does not work. But x4 is accepted.
The command /ae2 channelmode X4 (only accepted like this) put X4 in the config and this does not work. it need to be x4 in the config atm. so its a case sensitive problem.
I tried to set this in the config file first, it was ignored, then i tried the command and got the same problem.
Might be useful to have also the error:
/ae2 channelmode x4
[19:03:37] [Server thread/INFO] [AE2:S/]: net.minecraft.commands.CommandSourceStack@34f1e4d3 is changing channel mode to X4
[19:03:37] [Server thread/ERROR] [minecraft/Commands]: Command exception: /ae2 channelmode x4
java.lang.NullPointerException: Cannot save config value without assigned Config object present
at MC-BOOTSTRAP/[email protected]/com.google.common.base.Preconditions.checkNotNull(Preconditions.java:921) ~[guava-32.1.2-jre.jar%2383!/:?] {re:mixin}
at TRANSFORMER/[email protected]/net.neoforged.neoforge.common.ModConfigSpec.save(ModConfigSpec.java:178) ~[neoforge-21.1.95-universal.jar%23499!/:?] {re:classloading}
at TRANSFORMER/[email protected]/appeng.core.AEConfig.save(AEConfig.java:416) ~[appliedenergistics2-19.1.3-beta.jar%23532!/:?] {re:mixin,re:classloading}
at TRANSFORMER/[email protected]/appeng.server.subcommands.ChannelModeCommand.setChannelMode(ChannelModeCommand.java:45) ~[appliedenergistics2-19.1.3-beta.jar%23532!/:?] {re:classloading}
at TRANSFORMER/[email protected]/appeng.server.subcommands.ChannelModeCommand.lambda$addArguments$0(ChannelModeCommand.java:29) ~[appliedenergistics2-19.1.3-beta.jar%23532!/:?] {re:classloading}
at MC-BOOTSTRAP/[email protected]/com.mojang.brigadier.context.ContextChain.runExecutable(ContextChain.java:73) ~[brigadier-1.3.10.jar%23101!/:?] {}
at TRANSFORMER/[email protected]/net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:29) ~[server-1.21.1-20240808.144430-srg.jar%23498!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:13) ~[server-1.21.1-20240808.144430-srg.jar%23498!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.commands.execution.UnboundEntryAction.lambda$bind$0(UnboundEntryAction.java:8) ~[server-1.21.1-20240808.144430-srg.jar%23498!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.commands.execution.CommandQueueEntry.execute(CommandQueueEntry.java:8) ~[server-1.21.1-20240808.144430-srg.jar%23498!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.commands.execution.ExecutionContext.runCommandQueue(ExecutionContext.java:107) ~[server-1.21.1-20240808.144430-srg.jar%23498!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.commands.Commands.executeCommandInContext(Commands.java:363) ~[server-1.21.1-20240808.144430-srg.jar%23498!/:?] {re:mixin,re:classloading,pl:mixin:A}
at TRANSFORMER/[email protected]/net.minecraft.commands.Commands.performCommand(Commands.java:284) ~[server-1.21.1-20240808.144430-srg.jar%23498!/:?] {re:mixin,re:classloading,pl:mixin:A}
at TRANSFORMER/[email protected]/net.minecraft.commands.Commands.performPrefixedCommand(Commands.java:264) ~[server-1.21.1-20240808.144430-srg.jar%23498!/:?] {re:mixin,re:classloading,pl:mixin:A}
at TRANSFORMER/[email protected]/net.minecraft.server.dedicated.DedicatedServer.handleConsoleInputs(DedicatedServer.java:336) ~[server-1.21.1-20240808.144430-srg.jar%23498!/:?] {re:mixin,re:classloading,pl:mixin:APP:resourcefulconfig.mixins.json:common.DedicatedServerAccessor from mod resourcefulconfig,pl:mixin:APP:lithostitched.mixins.json:server.DedicatedServerMixin from mod lithostitched,pl:mixin:APP:mixins/common/nochatreports.mixins.json:server.MixinDedicatedServer from mod nochatreports,pl:mixin:APP:tombstone.mixins.json:DedicatedServerMixin from mod tombstone,pl:mixin:A}
at TRANSFORMER/[email protected]/net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:321) ~[server-1.21.1-20240808.144430-srg.jar%23498!/:?] {re:mixin,re:classloading,pl:mixin:APP:resourcefulconfig.mixins.json:common.DedicatedServerAccessor from mod resourcefulconfig,pl:mixin:APP:lithostitched.mixins.json:server.DedicatedServerMixin from mod lithostitched,pl:mixin:APP:mixins/common/nochatreports.mixins.json:server.MixinDedicatedServer from mod nochatreports,pl:mixin:APP:tombstone.mixins.json:DedicatedServerMixin from mod tombstone,pl:mixin:A}
at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:917) ~[server-1.21.1-20240808.144430-srg.jar%23498!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:servercore.common.mixins.json:features.misc.MinecraftServerMixin from mod servercore,pl:mixin:APP:modernfix-common.mixins.json:core.MinecraftServerMixin from mod modernfix,pl:mixin:APP:modernfix-common.mixins.json:perf.dedicated_reload_executor.MinecraftServerMixin from mod modernfix,pl:mixin:APP:balm.neoforge.mixins.json:MinecraftServerMixin from mod balm,pl:mixin:APP:servercore.common.mixins.json:MinecraftServerMixin from mod servercore,pl:mixin:APP:kubejs.mixins.json:MinecraftServerMixin from mod kubejs,pl:mixin:APP:regions_unexplored.mixins.json:MinecraftServerMixin from mod regions_unexplored,pl:mixin:APP:ae2.mixins.json:spatial.MinecraftServerMixin from mod ae2,pl:mixin:APP:extended_industrialization.mixins.json:TeslaNetworkHolderMinecraftServerMixin from mod extended_industrialization,pl:mixin:A}
at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:707) ~[server-1.21.1-20240808.144430-srg.jar%23498!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:servercore.common.mixins.json:features.misc.MinecraftServerMixin from mod servercore,pl:mixin:APP:modernfix-common.mixins.json:core.MinecraftServerMixin from mod modernfix,pl:mixin:APP:modernfix-common.mixins.json:perf.dedicated_reload_executor.MinecraftServerMixin from mod modernfix,pl:mixin:APP:balm.neoforge.mixins.json:MinecraftServerMixin from mod balm,pl:mixin:APP:servercore.common.mixins.json:MinecraftServerMixin from mod servercore,pl:mixin:APP:kubejs.mixins.json:MinecraftServerMixin from mod kubejs,pl:mixin:APP:regions_unexplored.mixins.json:MinecraftServerMixin from mod regions_unexplored,pl:mixin:APP:ae2.mixins.json:spatial.MinecraftServerMixin from mod ae2,pl:mixin:APP:extended_industrialization.mixins.json:TeslaNetworkHolderMinecraftServerMixin from mod extended_industrialization,pl:mixin:A}
at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:267) ~[server-1.21.1-20240808.144430-srg.jar%23498!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:servercore.common.mixins.json:features.misc.MinecraftServerMixin from mod servercore,pl:mixin:APP:modernfix-common.mixins.json:core.MinecraftServerMixin from mod modernfix,pl:mixin:APP:modernfix-common.mixins.json:perf.dedicated_reload_executor.MinecraftServerMixin from mod modernfix,pl:mixin:APP:balm.neoforge.mixins.json:MinecraftServerMixin from mod balm,pl:mixin:APP:servercore.common.mixins.json:MinecraftServerMixin from mod servercore,pl:mixin:APP:kubejs.mixins.json:MinecraftServerMixin from mod kubejs,pl:mixin:APP:regions_unexplored.mixins.json:MinecraftServerMixin from mod regions_unexplored,pl:mixin:APP:ae2.mixins.json:spatial.MinecraftServerMixin from mod ae2,pl:mixin:APP:extended_industrialization.mixins.json:TeslaNetworkHolderMinecraftServerMixin from mod extended_industrialization,pl:mixin:A}
at java.base/java.lang.Thread.run(Thread.java:1583) [?:?] {re:mixin}