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

[1.7.10] Config File Editing


UnnamedProdigy
 Share

Recommended Posts

Hey, if you are interested in an easier way to edit configFiles.(and actualy ingame through for example a command) I would suggest to take a look at my api. I made especialy for these purposes :D

https://github.com/N247S/N2Configuration

Projects:

Discontinued:

- N2ConfigAPI

- Meachanical Crafting Table

 

Latest:

- CollectionUtils

 

Coöperations:

- InGameConfigManager

Link to comment
Share on other sites

Like what others have said, if you have a reference to your Config object stored somewhere, such as your Main class, then writing to it from a command is as simple as using that reference to access a value in the file like you do when you first load the config.

 

However, what would be the point of this? Do you just want the command to change the config setting that is currently being used in the game? If so, you need to change THAT reference, not write to the config file - the only reason you would write to the config file is to save the change for the next time the player loads the game, but you'd still have to change the current value of the config setting for it to have any immediate effect.

Link to comment
Share on other sites

However, what would be the point of this? Do you just want the command to change the config setting that is currently being used in the game? If so, you need to change THAT reference, not write to the config file - the only reason you would write to the config file is to save the change for the next time the player loads the game, but you'd still have to change the current value of the config setting for it to have any immediate effect.

 

To clarify a bit more. While it is possible to read from the actual config file every time you need one of the config settings, that causes a file read access which can affect performance. So best practice is to read the config file once during the mod initialization and store the values in public fields that can then be accessed in your code.

 

So assuming you have it set up that way, in the command processing code what you want to invoke is a config "sync" method which both writes to the config file but also updates any fields that are supposed to hold values read from the config file.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

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.
Note: Your post will require moderator approval before it will be visible.

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

    • NEVER MIND I AM STUPID I HAD EXTRACTED MODS IN MY MOD FOLDER IM SORRY
    • My forge for 1.12.2 isn't working and I'm about to blow my brains out you guys are my last resort. Please help. Here's my logs: [20:39:15] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [20:39:15] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [20:39:15] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [20:39:15] [main/DEBUG] [FML]: Injecting tracing printstreams for STDOUT/STDERR. [20:39:15] [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2855 for Minecraft 1.12.2 loading [20:39:15] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_51, running on Windows 10:amd64:10.0, installed at C:\Program Files (x86)\Minecraft Launcher\runtime\jre-legacy\windows-x64\jre-legacy [20:39:15] [main/DEBUG] [FML]: Java classpath at launch is: [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\net\minecraftforge\forge\1.12.2-14.23.5.2855\forge-1.12.2-14.23.5.2855.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\ow2\asm\asm-debug-all\5.2\asm-debug-all-5.2.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\net\minecraft\launchwrapper\1.12\launchwrapper-1.12.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\jline\jline\3.5.1\jline-3.5.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\typesafe\akka\akka-actor_2.11\2.3.3\akka-actor_2.11-2.3.3.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\typesafe\config\1.2.1\config-1.2.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-actors-migration_2.11\1.1.0\scala-actors-migration_2.11-1.1.0.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-compiler\2.11.1\scala-compiler-2.11.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\scala-lang\plugins\scala-continuations-library_2.11\1.0.2_mc\scala-continuations-library_2.11-1.0.2_mc.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\scala-lang\plugins\scala-continuations-plugin_2.11.1\1.0.2_mc\scala-continuations-plugin_2.11.1-1.0.2_mc.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-library\2.11.1\scala-library-2.11.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-parser-combinators_2.11\1.0.1\scala-parser-combinators_2.11-1.0.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-reflect\2.11.1\scala-reflect-2.11.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-swing_2.11\1.0.1\scala-swing_2.11-1.0.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-xml_2.11\1.0.2\scala-xml_2.11-1.0.2.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\lzma\lzma\0.0.1\lzma-0.0.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\java3d\vecmath\1.5.2\vecmath-1.5.2.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\net\sf\trove4j\trove4j\3.0.3\trove4j-3.0.3.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\apache\maven\maven-artifact\3.5.3\maven-artifact-3.5.3.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\net\sf\jopt-simple\jopt-simple\5.0.3\jopt-simple-5.0.3.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\mojang\patchy\1.3.9\patchy-1.3.9.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\oshi-project\oshi-core\1.1\oshi-core-1.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\net\java\dev\jna\jna\4.4.0\jna-4.4.0.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\net\java\dev\jna\platform\3.4.0\platform-3.4.0.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\ibm\icu\icu4j-core-mojang\51.2\icu4j-core-mojang-51.2.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\paulscode\codecjorbis\20101023\codecjorbis-20101023.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\paulscode\codecwav\20101023\codecwav-20101023.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\paulscode\libraryjavasound\20101123\libraryjavasound-20101123.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\paulscode\librarylwjglopenal\20100824\librarylwjglopenal-20100824.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\paulscode\soundsystem\20120107\soundsystem-20120107.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\io\netty\netty-all\4.1.9.Final\netty-all-4.1.9.Final.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\google\guava\guava\21.0\guava-21.0.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\apache\commons\commons-lang3\3.5\commons-lang3-3.5.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\commons-io\commons-io\2.5\commons-io-2.5.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\commons-codec\commons-codec\1.10\commons-codec-1.10.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\net\java\jinput\jinput\2.0.5\jinput-2.0.5.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\net\java\jutils\jutils\1.0.0\jutils-1.0.0.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\google\code\gson\gson\2.8.0\gson-2.8.0.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\mojang\authlib\1.5.25\authlib-1.5.25.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\mojang\realms\1.10.22\realms-1.10.22.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\apache\commons\commons-compress\1.8.1\commons-compress-1.8.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\apache\httpcomponents\httpclient\4.3.3\httpclient-4.3.3.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\commons-logging\commons-logging\1.1.3\commons-logging-1.1.3.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\apache\httpcomponents\httpcore\4.3.2\httpcore-4.3.2.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\it\unimi\dsi\fastutil\7.1.0\fastutil-7.1.0.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\apache\logging\log4j\log4j-api\2.8.1\log4j-api-2.8.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\apache\logging\log4j\log4j-core\2.8.1\log4j-core-2.8.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl\lwjgl\2.9.4-nightly-20150209\lwjgl-2.9.4-nightly-20150209.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl\lwjgl_util\2.9.4-nightly-20150209\lwjgl_util-2.9.4-nightly-20150209.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\mojang\text2speech\1.10.3\text2speech-1.10.3.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\versions\1.12.2-forge-14.23.5.2855\1.12.2-forge-14.23.5.2855.jar [20:39:15] [main/DEBUG] [FML]: Java library path at launch is: [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\bin\eeeb-e5b9-51d8-e2c2 [20:39:15] [main/DEBUG] [FML]: Determined Minecraft Libraries Root: C:\Users\joshu\AppData\Roaming\.minecraft\libraries [20:39:15] [main/DEBUG] [FML]: Cleaning up mods folder: C:\Users\joshu\AppData\Roaming\.minecraft\mods [20:39:15] [main/DEBUG] [FML]: Enabling runtime deobfuscation [20:39:15] [main/DEBUG] [FML]: Instantiating coremod class FMLCorePlugin [20:39:15] [main/DEBUG] [FML]: Found signing certificates for coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin) [20:39:15] [main/DEBUG] [FML]: Found certificate e3c3d50c7c986df74c645c0ac54639741c90a557 [20:39:15] [main/DEBUG] [FML]: Added access transformer class net.minecraftforge.fml.common.asm.transformers.AccessTransformer to enqueued access transformers [20:39:15] [main/DEBUG] [FML]: Enqueued coremod FMLCorePlugin [20:39:15] [main/DEBUG] [FML]: Instantiating coremod class FMLForgePlugin [20:39:15] [main/DEBUG] [FML]: Found signing certificates for coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin) [20:39:15] [main/DEBUG] [FML]: Found certificate e3c3d50c7c986df74c645c0ac54639741c90a557 [20:39:15] [main/DEBUG] [FML]: Enqueued coremod FMLForgePlugin [20:39:15] [main/DEBUG] [FML]: All fundamental core mods are successfully located [20:39:15] [main/FATAL] [FML]: There appear to be jars extracted into the mods directory. This is VERY BAD and will almost NEVER WORK WELL [20:39:15] [main/FATAL] [FML]: You should place original jars only in the mods directory. NEVER extract them to the mods directory. [20:39:15] [main/FATAL] [FML]: The directories below appear to be extracted jar files. Fix this before you continue. [20:39:15] [main/FATAL] [FML]: Directory Unconfirmed 301077 contains [MANIFEST.MF, maven, pixelmon_at.cfg, versions] [20:39:15] [main/FATAL] [FML]: #@!@# FML has crashed the game deliberately. Crash report saved to: #@!@# C:\Users\joshu\AppData\Roaming\.minecraft\crash-reports\fml-crash-2022-07-04_20.39.15.txt [20:39:15] [main/ERROR] [LaunchWrapper]: Unable to launch java.lang.RuntimeException: An error occurred trying to configure the Minecraft home at C:\Users\joshu\AppData\Roaming\.minecraft for Forge Mod Loader     at net.minecraftforge.fml.relauncher.FMLLaunchHandler.setupHome(FMLLaunchHandler.java:111) ~[forge-1.12.2-14.23.5.2855.jar:?]     at net.minecraftforge.fml.relauncher.FMLLaunchHandler.setupClient(FMLLaunchHandler.java:81) ~[forge-1.12.2-14.23.5.2855.jar:?]     at net.minecraftforge.fml.relauncher.FMLLaunchHandler.configureForClientLaunch(FMLLaunchHandler.java:42) ~[forge-1.12.2-14.23.5.2855.jar:?]     at net.minecraftforge.fml.common.launcher.FMLTweaker.injectIntoClassLoader(FMLTweaker.java:141) ~[forge-1.12.2-14.23.5.2855.jar:?]     at net.minecraft.launchwrapper.Launch.launch(Launch.java:115) [launchwrapper-1.12.jar:?]     at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] Caused by: java.lang.RuntimeException: Extracted mod jars found, loading will NOT continue     at net.minecraftforge.fml.relauncher.CoreModManager.findDerpMods(CoreModManager.java:292) ~[forge-1.12.2-14.23.5.2855.jar:?]     at net.minecraftforge.fml.relauncher.CoreModManager.discoverCoreMods(CoreModManager.java:332) ~[forge-1.12.2-14.23.5.2855.jar:?]     at net.minecraftforge.fml.relauncher.CoreModManager.handleLaunch(CoreModManager.java:265) ~[forge-1.12.2-14.23.5.2855.jar:?]     at net.minecraftforge.fml.relauncher.FMLLaunchHandler.setupHome(FMLLaunchHandler.java:107) ~[forge-1.12.2-14.23.5.2855.jar:?]     ... 5 more [20:39:15] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: net.minecraftforge.fml.relauncher.FMLSecurityManager$ExitTrappedException [20:39:15] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]:     at net.minecraftforge.fml.relauncher.FMLSecurityManager.checkPermission(FMLSecurityManager.java:49) [20:39:15] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]:     at java.lang.SecurityManager.checkExit(SecurityManager.java:761) [20:39:15] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]:     at java.lang.Runtime.exit(Runtime.java:107) [20:39:15] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]:     at java.lang.System.exit(System.java:971) [20:39:15] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]:     at net.minecraft.launchwrapper.Launch.launch(Launch.java:138) [20:39:15] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]:     at net.minecraft.launchwrapper.Launch.main(Launch.java:28)  
    • My forge for 1.12.2 isn't working and I'm about to blow my brains out you guys are my last resort. Please help. Here's my logs: [20:39:15] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [20:39:15] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [20:39:15] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [20:39:15] [main/DEBUG] [FML]: Injecting tracing printstreams for STDOUT/STDERR. [20:39:15] [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2855 for Minecraft 1.12.2 loading [20:39:15] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_51, running on Windows 10:amd64:10.0, installed at C:\Program Files (x86)\Minecraft Launcher\runtime\jre-legacy\windows-x64\jre-legacy [20:39:15] [main/DEBUG] [FML]: Java classpath at launch is: [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\net\minecraftforge\forge\1.12.2-14.23.5.2855\forge-1.12.2-14.23.5.2855.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\ow2\asm\asm-debug-all\5.2\asm-debug-all-5.2.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\net\minecraft\launchwrapper\1.12\launchwrapper-1.12.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\jline\jline\3.5.1\jline-3.5.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\typesafe\akka\akka-actor_2.11\2.3.3\akka-actor_2.11-2.3.3.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\typesafe\config\1.2.1\config-1.2.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-actors-migration_2.11\1.1.0\scala-actors-migration_2.11-1.1.0.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-compiler\2.11.1\scala-compiler-2.11.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\scala-lang\plugins\scala-continuations-library_2.11\1.0.2_mc\scala-continuations-library_2.11-1.0.2_mc.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\scala-lang\plugins\scala-continuations-plugin_2.11.1\1.0.2_mc\scala-continuations-plugin_2.11.1-1.0.2_mc.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-library\2.11.1\scala-library-2.11.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-parser-combinators_2.11\1.0.1\scala-parser-combinators_2.11-1.0.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-reflect\2.11.1\scala-reflect-2.11.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-swing_2.11\1.0.1\scala-swing_2.11-1.0.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-xml_2.11\1.0.2\scala-xml_2.11-1.0.2.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\lzma\lzma\0.0.1\lzma-0.0.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\java3d\vecmath\1.5.2\vecmath-1.5.2.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\net\sf\trove4j\trove4j\3.0.3\trove4j-3.0.3.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\apache\maven\maven-artifact\3.5.3\maven-artifact-3.5.3.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\net\sf\jopt-simple\jopt-simple\5.0.3\jopt-simple-5.0.3.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\mojang\patchy\1.3.9\patchy-1.3.9.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\oshi-project\oshi-core\1.1\oshi-core-1.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\net\java\dev\jna\jna\4.4.0\jna-4.4.0.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\net\java\dev\jna\platform\3.4.0\platform-3.4.0.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\ibm\icu\icu4j-core-mojang\51.2\icu4j-core-mojang-51.2.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\paulscode\codecjorbis\20101023\codecjorbis-20101023.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\paulscode\codecwav\20101023\codecwav-20101023.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\paulscode\libraryjavasound\20101123\libraryjavasound-20101123.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\paulscode\librarylwjglopenal\20100824\librarylwjglopenal-20100824.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\paulscode\soundsystem\20120107\soundsystem-20120107.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\io\netty\netty-all\4.1.9.Final\netty-all-4.1.9.Final.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\google\guava\guava\21.0\guava-21.0.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\apache\commons\commons-lang3\3.5\commons-lang3-3.5.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\commons-io\commons-io\2.5\commons-io-2.5.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\commons-codec\commons-codec\1.10\commons-codec-1.10.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\net\java\jinput\jinput\2.0.5\jinput-2.0.5.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\net\java\jutils\jutils\1.0.0\jutils-1.0.0.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\google\code\gson\gson\2.8.0\gson-2.8.0.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\mojang\authlib\1.5.25\authlib-1.5.25.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\mojang\realms\1.10.22\realms-1.10.22.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\apache\commons\commons-compress\1.8.1\commons-compress-1.8.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\apache\httpcomponents\httpclient\4.3.3\httpclient-4.3.3.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\commons-logging\commons-logging\1.1.3\commons-logging-1.1.3.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\apache\httpcomponents\httpcore\4.3.2\httpcore-4.3.2.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\it\unimi\dsi\fastutil\7.1.0\fastutil-7.1.0.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\apache\logging\log4j\log4j-api\2.8.1\log4j-api-2.8.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\apache\logging\log4j\log4j-core\2.8.1\log4j-core-2.8.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl\lwjgl\2.9.4-nightly-20150209\lwjgl-2.9.4-nightly-20150209.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl\lwjgl_util\2.9.4-nightly-20150209\lwjgl_util-2.9.4-nightly-20150209.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\mojang\text2speech\1.10.3\text2speech-1.10.3.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\versions\1.12.2-forge-14.23.5.2855\1.12.2-forge-14.23.5.2855.jar [20:39:15] [main/DEBUG] [FML]: Java library path at launch is: [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\bin\eeeb-e5b9-51d8-e2c2 [20:39:15] [main/DEBUG] [FML]: Determined Minecraft Libraries Root: C:\Users\joshu\AppData\Roaming\.minecraft\libraries [20:39:15] [main/DEBUG] [FML]: Cleaning up mods folder: C:\Users\joshu\AppData\Roaming\.minecraft\mods [20:39:15] [main/DEBUG] [FML]: Enabling runtime deobfuscation [20:39:15] [main/DEBUG] [FML]: Instantiating coremod class FMLCorePlugin [20:39:15] [main/DEBUG] [FML]: Found signing certificates for coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin) [20:39:15] [main/DEBUG] [FML]: Found certificate e3c3d50c7c986df74c645c0ac54639741c90a557 [20:39:15] [main/DEBUG] [FML]: Added access transformer class net.minecraftforge.fml.common.asm.transformers.AccessTransformer to enqueued access transformers [20:39:15] [main/DEBUG] [FML]: Enqueued coremod FMLCorePlugin [20:39:15] [main/DEBUG] [FML]: Instantiating coremod class FMLForgePlugin [20:39:15] [main/DEBUG] [FML]: Found signing certificates for coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin) [20:39:15] [main/DEBUG] [FML]: Found certificate e3c3d50c7c986df74c645c0ac54639741c90a557 [20:39:15] [main/DEBUG] [FML]: Enqueued coremod FMLForgePlugin [20:39:15] [main/DEBUG] [FML]: All fundamental core mods are successfully located [20:39:15] [main/FATAL] [FML]: There appear to be jars extracted into the mods directory. This is VERY BAD and will almost NEVER WORK WELL [20:39:15] [main/FATAL] [FML]: You should place original jars only in the mods directory. NEVER extract them to the mods directory. [20:39:15] [main/FATAL] [FML]: The directories below appear to be extracted jar files. Fix this before you continue. [20:39:15] [main/FATAL] [FML]: Directory Unconfirmed 301077 contains [MANIFEST.MF, maven, pixelmon_at.cfg, versions] [20:39:15] [main/FATAL] [FML]: #@!@# FML has crashed the game deliberately. Crash report saved to: #@!@# C:\Users\joshu\AppData\Roaming\.minecraft\crash-reports\fml-crash-2022-07-04_20.39.15.txt [20:39:15] [main/ERROR] [LaunchWrapper]: Unable to launch java.lang.RuntimeException: An error occurred trying to configure the Minecraft home at C:\Users\joshu\AppData\Roaming\.minecraft for Forge Mod Loader     at net.minecraftforge.fml.relauncher.FMLLaunchHandler.setupHome(FMLLaunchHandler.java:111) ~[forge-1.12.2-14.23.5.2855.jar:?]     at net.minecraftforge.fml.relauncher.FMLLaunchHandler.setupClient(FMLLaunchHandler.java:81) ~[forge-1.12.2-14.23.5.2855.jar:?]     at net.minecraftforge.fml.relauncher.FMLLaunchHandler.configureForClientLaunch(FMLLaunchHandler.java:42) ~[forge-1.12.2-14.23.5.2855.jar:?]     at net.minecraftforge.fml.common.launcher.FMLTweaker.injectIntoClassLoader(FMLTweaker.java:141) ~[forge-1.12.2-14.23.5.2855.jar:?]     at net.minecraft.launchwrapper.Launch.launch(Launch.java:115) [launchwrapper-1.12.jar:?]     at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] Caused by: java.lang.RuntimeException: Extracted mod jars found, loading will NOT continue     at net.minecraftforge.fml.relauncher.CoreModManager.findDerpMods(CoreModManager.java:292) ~[forge-1.12.2-14.23.5.2855.jar:?]     at net.minecraftforge.fml.relauncher.CoreModManager.discoverCoreMods(CoreModManager.java:332) ~[forge-1.12.2-14.23.5.2855.jar:?]     at net.minecraftforge.fml.relauncher.CoreModManager.handleLaunch(CoreModManager.java:265) ~[forge-1.12.2-14.23.5.2855.jar:?]     at net.minecraftforge.fml.relauncher.FMLLaunchHandler.setupHome(FMLLaunchHandler.java:107) ~[forge-1.12.2-14.23.5.2855.jar:?]     ... 5 more [20:39:15] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: net.minecraftforge.fml.relauncher.FMLSecurityManager$ExitTrappedException [20:39:15] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]:     at net.minecraftforge.fml.relauncher.FMLSecurityManager.checkPermission(FMLSecurityManager.java:49) [20:39:15] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]:     at java.lang.SecurityManager.checkExit(SecurityManager.java:761) [20:39:15] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]:     at java.lang.Runtime.exit(Runtime.java:107) [20:39:15] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]:     at java.lang.System.exit(System.java:971) [20:39:15] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]:     at net.minecraft.launchwrapper.Launch.launch(Launch.java:138) [20:39:15] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]:     at net.minecraft.launchwrapper.Launch.main(Launch.java:28)  
    • https://imgur.com/a/l8Dg8BF
    • Or even simpler, just reject re-entrant calls? private boolean inTick = false; @Override public void tick() { if (inTick) return; inTick = true; // Your code inTick = false; }  
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.