Improved Mobs (Fabric)

Improved Mobs (Fabric)

170k Downloads

Crash on setting the "Enable difficulty scaling" to false on common.toml

ItsYuriil opened this issue ยท 3 comments

commented

Modloader

Forge

Minecraft version

1.19.2

Modloader version

43.3.0

Mod version

1.11.0

TenshiLib version

1.6.15-forge

Description

Trying to manually change the "Enable difficulty scaling" to false in false common.toml leads to a server crash on startup. I haven't modified any other value, nor other file.

I don't know why it happens but thats the only thing I wanted out from the mod, sadly, trying to change it crashes the server.

Error log here:

[05:43:59] [main/ERROR] [minecraft/Main]: Failed to start the minecraft server com.electronwill.nightconfig.core.io.WritingException: An I/O error occured at com.electronwill.nightconfig.core.io.ConfigWriter.write(ConfigWriter.java:90) ~[core-3.6.4.jar%2356!/:?] {} at com.electronwill.nightconfig.core.file.WriteSyncFileConfig.save(WriteSyncFileConfig.java:61) ~[core-3.6.4.jar%2356!/:?] {} at com.electronwill.nightconfig.core.file.AutosaveCommentedFileConfig.save(AutosaveCommentedFileConfig.java:80) ~[core-3.6.4.jar%2356!/:?] {} at net.minecraftforge.fml.config.ModConfig.save(ModConfig.java:81) ~[fmlcore-1.19.2-43.3.0.jar%23360!/:?] {} at net.minecraftforge.fml.config.ConfigTracker.openConfig(ConfigTracker.java:63) ~[fmlcore-1.19.2-43.3.0.jar%23360!/:?] {} at net.minecraftforge.fml.config.ConfigTracker.lambda$loadConfigs$1(ConfigTracker.java:50) ~[fmlcore-1.19.2-43.3.0.jar%23360!/:?] {} at java.lang.Iterable.forEach(Iterable.java:75) ~[?:?] {re:mixin} at java.util.Collections$SynchronizedCollection.forEach(Collections.java:2131) ~[?:?] {} at net.minecraftforge.fml.config.ConfigTracker.loadConfigs(ConfigTracker.java:50) ~[fmlcore-1.19.2-43.3.0.jar%23360!/:?] {} at net.minecraftforge.fml.core.ModStateProvider.lambda$new$3(ModStateProvider.java:68) ~[forge-1.19.2-43.3.0-universal.jar%23364!/:?] {re:classloading} at net.minecraftforge.fml.ModLoader.lambda$dispatchAndHandleError$23(ModLoader.java:207) ~[fmlcore-1.19.2-43.3.0.jar%23360!/:?] {} at java.util.Optional.ifPresent(Optional.java:178) ~[?:?] {re:mixin} at net.minecraftforge.fml.ModLoader.dispatchAndHandleError(ModLoader.java:207) ~[fmlcore-1.19.2-43.3.0.jar%23360!/:?] {} at net.minecraftforge.fml.ModLoader.lambda$loadMods$17(ModLoader.java:191) ~[fmlcore-1.19.2-43.3.0.jar%23360!/:?] {} at java.lang.Iterable.forEach(Iterable.java:75) ~[?:?] {re:mixin} at net.minecraftforge.fml.ModLoader.loadMods(ModLoader.java:191) ~[fmlcore-1.19.2-43.3.0.jar%23360!/:?] {} at net.minecraftforge.server.loading.ServerModLoader.load(ServerModLoader.java:33) ~[forge-1.19.2-43.3.0-universal.jar%23364!/:?] {re:classloading} at net.minecraft.server.Main.main(Main.java:113) ~[server-1.19.2-20220805.130853-srg.jar%23359!/:?] {re:classloading} at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {} at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {} at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {} at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {} at net.minecraftforge.fml.loading.targets.CommonServerLaunchHandler.lambda$launchService$0(CommonServerLaunchHandler.java:29) ~[fmlloader-1.19.2-43.3.0.jar%2367!/:?] {} at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) [modlauncher-10.0.8.jar%2354!/:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-10.0.8.jar%2354!/:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-10.0.8.jar%2354!/:?] {} at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) [modlauncher-10.0.8.jar%2354!/:?] {} at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-10.0.8.jar%2354!/:?] {} at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-10.0.8.jar%2354!/:?] {} at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-10.0.8.jar%2354!/:?] {} at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) [bootstraplauncher-1.1.2.jar:?] {} Caused by: java.nio.file.AccessDeniedException: /var/lib/pufferpanel/servers/f0177b16/config/improvedmobs/common.toml at sun.nio.fs.UnixException.translateToIOException(UnixException.java:90) ~[?:?] {} at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106) ~[?:?] {} at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) ~[?:?] {} at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:218) ~[?:?] {} at java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:484) ~[?:?] {} at java.nio.file.Files.newOutputStream(Files.java:228) ~[?:?] {} at com.electronwill.nightconfig.core.io.ConfigWriter.write(ConfigWriter.java:87) ~[core-3.6.4.jar%2356!/:?] {} ... 30 more

Steps to reproduce

  1. Step one: change "Enable difficulty scaling" from true to false at line 5 on common.toml

Mods that might affect the issue

None that I can think of, the mod works fine if I don't alter that value on the settings.

Logs

https://paste.gg/p/anonymous/af7998f7c0d141088721837ec55c25c6

commented

your server is failing to access the config. seems you have some file permission problem. Caused by: java.nio.file.AccessDeniedException: /var/lib/pufferpanel/servers/f0177b16/config/improvedmobs/common.toml idk what the cause it though. its unrelated to this mod though

I think its some invalid statement I've placed in the config, anyways, writing a correct config solved the configuration from resetting, my bad

it was probably trying to correct the config cause of your wrong stuff which caused it. my point still stands though in that you should probably look into what causes the permission problem

commented

your server is failing to access the config. seems you have some file permission problem.
Caused by: java.nio.file.AccessDeniedException: /var/lib/pufferpanel/servers/f0177b16/config/improvedmobs/common.toml
idk what the cause it though. its unrelated to this mod though

commented

your server is failing to access the config. seems you have some file permission problem. Caused by: java.nio.file.AccessDeniedException: /var/lib/pufferpanel/servers/f0177b16/config/improvedmobs/common.toml idk what the cause it though. its unrelated to this mod though

I think its some invalid statement I've placed in the config, anyways, writing a correct config solved the configuration from resetting, my bad