Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Eclipse com.electronwill.nightconfig.core.io.ParsingException: Invalid newline in string error when testing mod[SOLVED]

Featured Replies

Posted

Everytime i try to run the mod i get this error and also when i tried compiling the mod it happened too

So here's the error:

Spoiler

2022-02-23 11:15:30,135 main WARN Advanced terminal features are not available in this environment
[11:15:30] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--launchTarget, forgeclientuserdev, --version, MOD_DEV, --assetIndex, 1.18, --assetsDir, C:\Users\Lu\.gradle\caches\forge_gradle\assets, --gameDir, ., --fml.forgeVersion, 39.0.79, --fml.mcVersion, 1.18.1, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20211210.034407]
[11:15:31] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 9.1.0+9.1.0+main.6690ee51 starting: java version 17.0.2 by Eclipse Adoptium
[11:15:31] [main/DEBUG] [cp.mo.mo.LaunchServiceHandler/MODLAUNCHER]: Found launch services [fmlclientdev,forgeclient,minecraft,fmlserveruserdev,fmlclient,fmldatauserdev,forgeserverdev,forgeserveruserdev,forgeclientdev,forgeclientuserdev,forgeserver,forgedatadev,fmlserver,fmlclientuserdev,fmlserverdev,forgedatauserdev,testharness]
[11:15:31] [main/DEBUG] [cp.mo.mo.NameMappingServiceHandler/MODLAUNCHER]: Found naming services : [srgtomcp]
[11:15:31] [main/DEBUG] [cp.mo.mo.LaunchPluginHandler/MODLAUNCHER]: Found launch plugins: [mixin,eventbus,object_holder_definalize,runtime_enum_extender,capability_token_subclass,accesstransformer,runtimedistcleaner]
[11:15:31] [main/DEBUG] [cp.mo.mo.TransformationServicesHandler/MODLAUNCHER]: Discovering transformation services
[11:15:31] [main/DEBUG] [cp.mo.mo.TransformationServicesHandler/MODLAUNCHER]: Found additional transformation services from discovery services: java.util.stream.ReferencePipeline$3@65e61854
[11:15:31] [main/DEBUG] [cp.mo.mo.TransformationServicesHandler/MODLAUNCHER]: Found transformer services : [mixin,fml]
[11:15:31] [main/DEBUG] [cp.mo.mo.TransformationServicesHandler/MODLAUNCHER]: Transformation services loading
[11:15:31] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Loading service mixin
[11:15:31] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Loaded service mixin
[11:15:31] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Loading service fml
[11:15:31] [main/DEBUG] [ne.mi.fm.lo.LauncherVersion/CORE]: Found FMLLauncher version 1.0
[11:15:31] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: FML 1.0 loading
[11:15:31] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: FML found ModLauncher version : 9.1.0+9.1.0+main.6690ee51
[11:15:31] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: FML found AccessTransformer version : 8.0.4+66+master.c09db6d7
[11:15:31] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: FML found EventBus version : 5.0.7+5.0.7+master.6d3407cc
[11:15:31] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: Found Runtime Dist Cleaner
[11:15:31] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: FML found CoreMod version : 5.0.2+5.0.2+master.303343f8
[11:15:31] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: Found ForgeSPI package implementation version 4.0.11+4.0.11+master.ce88bbba
[11:15:31] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: Found ForgeSPI package specification 4
[11:15:31] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Loaded service fml
[11:15:31] [main/DEBUG] [cp.mo.mo.TransformationServicesHandler/MODLAUNCHER]: Configuring option handling for services
[11:15:31] [main/DEBUG] [cp.mo.mo.TransformationServicesHandler/MODLAUNCHER]: Transformation services initializing
[11:15:31] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Initializing transformation service mixin
[11:15:31] [main/DEBUG] [mixin/]: MixinService [ModLauncher] was successfully booted in cpw.mods.cl.ModuleClassLoader@72d1ad2e
[11:15:32] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/C:/Users/Lu/.gradle/caches/modules-2/files-2.1/org.spongepowered/mixin/0.8.5/9d1c0c3a304ae6697ecd477218fa61b850bf57fc/mixin-0.8.5.jar%2327!/ Service=ModLauncher Env=CLIENT
[11:15:32] [main/DEBUG] [mixin/]: Initialising Mixin Platform Manager
[11:15:32] [main/DEBUG] [mixin/]: Adding mixin platform agents for container ModLauncher Root Container(ModLauncher:4f56a0a2)
[11:15:32] [main/DEBUG] [mixin/]: Instancing new MixinPlatformAgentMinecraftForge for ModLauncher Root Container(ModLauncher:4f56a0a2)
[11:15:32] [main/DEBUG] [mixin/]: MixinPlatformAgentMinecraftForge rejected container ModLauncher Root Container(ModLauncher:4f56a0a2)
[11:15:32] [main/DEBUG] [mixin/]: Instancing new MixinPlatformAgentDefault for ModLauncher Root Container(ModLauncher:4f56a0a2)
[11:15:32] [main/DEBUG] [mixin/]: MixinPlatformAgentDefault accepted container ModLauncher Root Container(ModLauncher:4f56a0a2)
[11:15:32] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Initialized transformation service mixin
[11:15:32] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Initializing transformation service fml
[11:15:32] [main/DEBUG] [ne.mi.fm.lo.FMLServiceProvider/CORE]: Setting up basic FML game directories
[11:15:32] [main/DEBUG] [ne.mi.fm.lo.FileUtils/CORE]: Found existing GAMEDIR directory : C:\Users\Lu\Downloads\Minecraft Modding\Mod1.18.1\UnimplementedFeaturesMod\run
[11:15:32] [main/DEBUG] [ne.mi.fm.lo.FMLPaths/CORE]: Path GAMEDIR is C:\Users\Lu\Downloads\Minecraft Modding\Mod1.18.1\UnimplementedFeaturesMod\run
[11:15:32] [main/DEBUG] [ne.mi.fm.lo.FileUtils/CORE]: Found existing MODSDIR directory : C:\Users\Lu\Downloads\Minecraft Modding\Mod1.18.1\UnimplementedFeaturesMod\run\mods
[11:15:32] [main/DEBUG] [ne.mi.fm.lo.FMLPaths/CORE]: Path MODSDIR is C:\Users\Lu\Downloads\Minecraft Modding\Mod1.18.1\UnimplementedFeaturesMod\run\mods
[11:15:32] [main/DEBUG] [ne.mi.fm.lo.FileUtils/CORE]: Found existing CONFIGDIR directory : C:\Users\Lu\Downloads\Minecraft Modding\Mod1.18.1\UnimplementedFeaturesMod\run\config
[11:15:32] [main/DEBUG] [ne.mi.fm.lo.FMLPaths/CORE]: Path CONFIGDIR is C:\Users\Lu\Downloads\Minecraft Modding\Mod1.18.1\UnimplementedFeaturesMod\run\config
[11:15:32] [main/DEBUG] [ne.mi.fm.lo.FMLPaths/CORE]: Path FMLCONFIG is C:\Users\Lu\Downloads\Minecraft Modding\Mod1.18.1\UnimplementedFeaturesMod\run\config\fml.toml
[11:15:32] [main/DEBUG] [ne.mi.fm.lo.FMLServiceProvider/CORE]: Loading configuration
[11:15:32] [main/DEBUG] [ne.mi.fm.lo.FileUtils/CORE]: Found existing default config directory directory : C:\Users\Lu\Downloads\Minecraft Modding\Mod1.18.1\UnimplementedFeaturesMod\run\defaultconfigs
[11:15:32] [main/DEBUG] [ne.mi.fm.lo.FMLServiceProvider/CORE]: Preparing ModFile
[11:15:32] [main/DEBUG] [ne.mi.fm.lo.FMLServiceProvider/CORE]: Preparing launch handler
[11:15:32] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: Using forgeclientuserdev as launch service
[11:15:32] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: Received command line version data  : VersionInfo[forgeVersion=39.0.79, mcVersion=1.18.1, mcpVersion=20211210.034407, forgeGroup=net.minecraftforge]
[11:15:32] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Initialized transformation service fml
[11:15:32] [main/DEBUG] [cp.mo.mo.NameMappingServiceHandler/MODLAUNCHER]: Current naming domain is 'mcp'
[11:15:32] [main/DEBUG] [cp.mo.mo.NameMappingServiceHandler/MODLAUNCHER]: Identified name mapping providers {srg=srgtomcp:1234}
[11:15:32] [main/DEBUG] [cp.mo.mo.TransformationServicesHandler/MODLAUNCHER]: Transformation services begin scanning
[11:15:32] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Beginning scan trigger - transformation service mixin
[11:15:32] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: End scan trigger - transformation service mixin
[11:15:32] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Beginning scan trigger - transformation service fml
[11:15:32] [main/DEBUG] [ne.mi.fm.lo.FMLServiceProvider/CORE]: Initiating mod scan
[11:15:32] [main/DEBUG] [ne.mi.fm.lo.mo.ModListHandler/CORE]: Found mod coordinates from lists: []
[11:15:32] [main/DEBUG] [ne.mi.fm.lo.mo.ModDiscoverer/CORE]: Found Mod Locators : (mods folder:null),(maven libs:null),(exploded directory:null),(minecraft:null),(userdev classpath:null)
[11:15:32] [main/DEBUG] [ne.mi.fm.lo.ta.CommonLaunchHandler/CORE]: Got mod coordinates examplemod%%C:\Users\Lu\Downloads\Minecraft Modding\Mod1.18.1\UnimplementedFeaturesMod\bin\main;examplemod%%C:\Users\Lu\Downloads\Minecraft Modding\Mod1.18.1\UnimplementedFeaturesMod\bin\main from env
[11:15:32] [main/DEBUG] [ne.mi.fm.lo.ta.CommonLaunchHandler/CORE]: Found supplied mod coordinates [{examplemod=[C:\Users\Lu\Downloads\Minecraft Modding\Mod1.18.1\UnimplementedFeaturesMod\bin\main, C:\Users\Lu\Downloads\Minecraft Modding\Mod1.18.1\UnimplementedFeaturesMod\bin\main]}]
[11:15:33] [main/DEBUG] [ne.mi.fm.lo.mo.ModFileInfo/LOADING]: Found valid mod file forge-1.18.1-39.0.79_mapped_official_1.18.1-recomp.jar with {minecraft} mods - versions {1.18.1}
[11:15:33] [main/DEBUG] [ne.mi.fm.lo.mo.ModFile/LOADING]: Loading mod file C:\Users\Lu\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.18.1-39.0.79_mapped_official_1.18.1\forge-1.18.1-39.0.79_mapped_official_1.18.1-recomp.jar with languages [LanguageSpec[languageName=minecraft, acceptedVersions=1]]
[11:15:33] [main/DEBUG] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Considering mod file candidate C:\Users\Lu\Downloads\Minecraft Modding\Mod1.18.1\UnimplementedFeaturesMod\bin\main
Exception in thread "main" com.electronwill.nightconfig.core.io.ParsingException: Invalid newline in string. Are you missing a " quote? Use \n to include a newline in the string.
    at MC-BOOTSTRAP/[email protected]/com.electronwill.nightconfig.toml.StringParser.parseBasic(StringParser.java:32)
    at MC-BOOTSTRAP/[email protected]/com.electronwill.nightconfig.toml.ValueParser.parse(ValueParser.java:45)
    at MC-BOOTSTRAP/[email protected]/com.electronwill.nightconfig.toml.ValueParser.parse(ValueParser.java:69)
    at MC-BOOTSTRAP/[email protected]/com.electronwill.nightconfig.toml.TableParser.parseNormal(TableParser.java:57)
    at MC-BOOTSTRAP/[email protected]/com.electronwill.nightconfig.toml.TomlParser.parse(TomlParser.java:72)
    at MC-BOOTSTRAP/[email protected]/com.electronwill.nightconfig.toml.TomlParser.parse(TomlParser.java:37)
    at MC-BOOTSTRAP/[email protected]/com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:113)
    at MC-BOOTSTRAP/[email protected]/com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:219)
    at MC-BOOTSTRAP/[email protected]/com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:202)
    at MC-BOOTSTRAP/[email protected]/com.electronwill.nightconfig.core.file.WriteAsyncFileConfig.load(WriteAsyncFileConfig.java:138)
    at MC-BOOTSTRAP/[email protected]/net.minecraftforge.fml.loading.moddiscovery.ModFileParser.modsTomlParser(ModFileParser.java:58)
    at MC-BOOTSTRAP/[email protected]/net.minecraftforge.fml.loading.moddiscovery.ModFileParser.readModList(ModFileParser.java:45)
    at MC-BOOTSTRAP/[email protected]/net.minecraftforge.fml.loading.moddiscovery.ModFile.identifyMods(ModFile.java:119)
    at MC-BOOTSTRAP/[email protected]/net.minecraftforge.fml.loading.moddiscovery.ModValidator.validateFiles(ModValidator.java:49)
    at MC-BOOTSTRAP/[email protected]/net.minecraftforge.fml.loading.moddiscovery.ModValidator.stage1Validation(ModValidator.java:38)
    at MC-BOOTSTRAP/[email protected]/net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer.discoverMods(ModDiscoverer.java:76)
    at MC-BOOTSTRAP/[email protected]/net.minecraftforge.fml.loading.FMLLoader.beginModScan(FMLLoader.java:180)
    at MC-BOOTSTRAP/[email protected]/net.minecraftforge.fml.loading.FMLServiceProvider.beginScanning(FMLServiceProvider.java:100)
    at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.TransformationServiceDecorator.runScan(TransformationServiceDecorator.java:112)
    at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.TransformationServicesHandler.lambda$runScanningTransformationServices$8(TransformationServicesHandler.java:100)
    at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
    at java.base/java.util.HashMap$ValueSpliterator.forEachRemaining(HashMap.java:1779)
    at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
    at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
    at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575)
    at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260)
    at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616)
    at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:622)
    at java.base/java.util.stream.ReferencePipeline.toList(ReferencePipeline.java:627)
    at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.TransformationServicesHandler.runScanningTransformationServices(TransformationServicesHandler.java:102)
    at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.TransformationServicesHandler.initializeTransformationServices(TransformationServicesHandler.java:55)
    at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.run(Launcher.java:87)
    at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.main(Launcher.java:77)
    at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26)
    at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23)
    at [email protected]/cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:149)

I can't find a solution online because it looks like it isn't anywhere on the internet

did you create a config (*.toml) for your mod?
-> if yes show the classes where you create the config

did you modify any config file from Forge/other Mods?
-> if yes, use \n to create new lines in String values and check if the String values starts and ends with "

did you use any dependencies?

this is your error:

Spoiler

[11:15:33] [main/DEBUG] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Considering mod file candidate C:\Users\Lu\Downloads\Minecraft Modding\Mod1.18.1\UnimplementedFeaturesMod\bin\main
Exception in thread "main" com.electronwill.nightconfig.core.io.ParsingException: Invalid newline in string. Are you missing a " quote? Use \n to include a newline in the string.

Edited by Luis_ST

  • Author
8 minutes ago, Luis_ST said:

did you modify any config file from Forge/other Mods?

mods.toml in the META-INF folder

that's the only .toml file i found

and yes i changed it a little to put the info of the mod

  • Author

I DISCOVERED WHAT WAS WRONG

i forgot a quote mark in the mods.toml lol

thanks for the aid, i wouldn't have ever noticed without your help!

Edited by ModderBoi42

  • ModderBoi42 changed the title to Eclipse com.electronwill.nightconfig.core.io.ParsingException: Invalid newline in string error when testing mod[SOLVED]

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.