Jump to content

Recommended Posts

Posted

These are the instructions in the readme:

Quote

Step 1: Open your command-line and browse to the folder where you extracted the zip file.

Step 2: You're left with a choice.
If you prefer to use Eclipse:
1. Run the following command: "gradlew genEclipseRuns" (./gradlew genEclipseRuns if you are on Mac/Linux)
2. Open Eclipse, Import > Existing Gradle Project > Select Folder 
   or run "gradlew eclipse" to generate the project.
(Current Issue)
4. Open Project > Run/Debug Settings > Edit runClient and runServer > Environment
5. Edit MOD_CLASSES to show [modid]%%[Path]; 2 times rather then the generated 4.

I prefer Eclipse, Forge explicitly supports developing with Eclipse, so "use IntelliJ" will not help me.

 

These instructions don't work (details in a moment). The alternate "more detailed" instructions at http://mcforge.readthedocs.io/en/latest/gettingstarted/ are even less useful. While it appears the IntelliJ instructions have been updated, the eclipse ones have not: Step 4 there is "run gradlew setupDecompWorkspace", yet if I do, I get the error "Task 'setupDecompWorkspace' not found in root project 'project'." and the instruction gradlew genEclipseRuns is missing entirely from the page (but does have gradlew genIntellijRuns).

 

Anyway. If I follow the above steps, step 2 fails. I cannot import an existing gradle project because one isn't found, regardless of if I run gradlew eclipse or not.

 

==fake edit: after writing the above, it suddenly worked. All I had to do was delete the folder and start over for the fourth time.==

 

But I'm back because:

 

1) Several forge classes are outright missing:

  • @Mod only has a value property, no name, no modid, no version or dependencies.
  • @Instance can't be found
  • FML lifetime events (eg FMLPreInitializationEvent) can't be found

2) Downloading a slightly older version (build 214 instead of build 219, matching Grey Ghost's Minecraft by Example) leaves me in the above position again: Installing doesn't work for no apparent reason and I don't know what I did that made it work the first time.

 

image.thumb.png.9a1429fd11127e1b919b376ada016fa8.png

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted (edited)

The install commands for eclipse are eclipse and then genEclipseRuns.

 

14 minutes ago, Draco18s said:

1) Several forge classes are outright missing:

  • @Mod only has a value property, no name, no modid, no version or dependencies.
  • @Instance can't be found
  • FML lifetime events (eg FMLPreInitializationEvent) can't be found

Everything is now in mods.toml. Example, Example
@Instance isn't used anymore. If you need the instance, store it yourself.
These events are now fired on the Mod event bus, like registry events. You can subscribe to these methods in the normal way or use the mod loading context given to you from the constructor. Example, Example

Edited by Cadiboo

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted
57 minutes ago, Cadiboo said:

The install commands for eclipse are eclipse and then genEclipseRuns.

Man, someone needs to update the readme. I know it's never been right, but for god's sake why has it never been right?

 

59 minutes ago, Cadiboo said:

Everything is now in mods.toml. Example, Example

Ah, yes, I recall hearing about this before. Thanks for the reminder.

 

Figuring things out for the first time is always a hassle and looking at the wrong source (it was called 1.13!) didn't help.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted (edited)

fml.modloading.missingclasses is a wonderfully descriptive error.

The log is also not helpful:

Quote

[05Jun2019 22:06:50.505] [Client thread/FATAL] [net.minecraftforge.fml.ModLoader/LOADING]: File C:\Users\Major\Documents\Minecraft\Forge 219\project\bin\main constructed 0 mods: [], but had 1 mods specified: [hardlib]
[05Jun2019 22:06:50.514] [Client thread/FATAL] [net.minecraftforge.fml.ModLoader/CORE]: Failed to initialize mod containers
[05Jun2019 22:06:50.515] [Client thread/FATAL] [net.minecraftforge.eventbus.EventBus/EVENTBUS]: EventBus 0 shutting down - future events will not be posted.

@Mod("hardlib")
public class HardLib {
	private static final Logger LOGGER = LogManager.getLogger();
	public static final IProxy PROXY = DistExecutor.runForDist(() -> () -> new ClientProxy(), () -> () -> new ServerProxy());
	
	public HardLib() {
		final IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();
		modEventBus.addListener((FMLCommonSetupEvent event) -> {
			LOGGER.log(Level.DEBUG, "Hello from startup");
		});
	}
}
modLoader="javafml" #mandatory
loaderVersion="[25,)" #mandatory (24 is current forge version)
[[mods]] #mandatory
modId="hardlib" #mandatory
version="${version}" #mandatory
displayName="Hard Lib" #mandatory
authors="Draco18s" #optional
description='''
Basic library.
'''
[[dependencies.hardlib]] #optional
    modId="forge" #mandatory
    mandatory=true #mandatory
    versionRange="[25,)" #mandatory
    ordering="NONE"
    side="BOTH"
[[dependencies.hardlib]]
    modId="minecraft"
    mandatory=true
    versionRange="[1.13.2]"
    ordering="NONE"
    side="BOTH"

 

Edited by Draco18s

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted
5 hours ago, diesieben07 said:

Draco, you know better than this... Full log please...?

The stack trace after is a generic stack trace.

Everything before it is a scan of literally every Minecraft class file for the @Mod annotation. There is nothing useful in any of it.

 

Also, the scan doesn't actually get dumped to the log. e.g. this is what shows up in latest.log:

[05Jun2019 22:24:29.126] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmluserdevclient, --fml.mcpVersion, 20190213.203750, --fml.mcVersion, 1.13.2, --fml.forgeGroup, net.minecraftforge, --fml.forgeVersion, 25.0.219, --version, MOD_DEV, --assetIndex, 1.13.1, --assetsDir, C:\Users\Major\.gradle\caches\forge_gradle\assets, --username, Dev, --accessToken, ????????, --userProperties, {}]
[05Jun2019 22:24:29.134] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher starting: java version 1.8.0_191
[05Jun2019 22:24:29.752] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust
[05Jun2019 22:24:30.812] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'fmluserdevclient' with arguments [--version, MOD_DEV, --gameDir, ., --assetsDir, C:\Users\Major\.gradle\caches\forge_gradle\assets, --assetIndex, 1.13.1, --username, Dev, --accessToken, ????????, --userProperties, {}]
[05Jun2019 22:24:37.200] [Client thread/INFO] [net.minecraft.client.Minecraft/]: Setting user: Dev
[05Jun2019 22:24:50.448] [Client thread/INFO] [net.minecraft.client.Minecraft/]: LWJGL Version: 3.1.6 build 14
[05Jun2019 22:24:53.405] [Client thread/INFO] [net.minecraftforge.fml.ModLoader/CORE]: Loading Network data for FML net version: FML2
[05Jun2019 22:24:53.461] [Client thread/FATAL] [net.minecraftforge.fml.ModLoader/LOADING]: File C:\Users\Major\Documents\Minecraft\Forge 219\project\bin\main constructed 0 mods: [], but had 1 mods specified: [hardlib]
[05Jun2019 22:24:53.466] [Client thread/FATAL] [net.minecraftforge.fml.ModLoader/CORE]: Failed to initialize mod containers
[05Jun2019 22:24:53.466] [Client thread/FATAL] [net.minecraftforge.eventbus.EventBus/EVENTBUS]: EventBus 0 shutting down - future events will not be posted.
java.lang.Exception: stacktrace
	at net.minecraftforge.eventbus.EventBus.shutdown(EventBus.java:274) ~[eventbus-0.9.2-service.jar:?]
	at net.minecraftforge.fml.client.ClientModLoader.begin(ClientModLoader.java:65) ~[forge-1.13.2-25.0.219_mapped_snapshot_20180921-1.13-recomp.jar:?]
	at net.minecraft.client.Minecraft.init(Minecraft.java:455) ~[forge-1.13.2-25.0.219_mapped_snapshot_20180921-1.13-recomp.jar:?]
	at net.minecraft.client.Minecraft.run(Minecraft.java:385) ~[forge-1.13.2-25.0.219_mapped_snapshot_20180921-1.13-recomp.jar:?]
	at net.minecraft.client.main.Main.main(Main.java:117) ~[forge-1.13.2-25.0.219_mapped_snapshot_20180921-1.13-recomp.jar:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_191]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_191]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_191]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_191]
	at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:55) ~[forge-1.13.2-25.0.219_mapped_snapshot_20180921-1.13-recomp.jar:?]
	at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:19) [modlauncher-2.1.1.jar:?]
	at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:32) [modlauncher-2.1.1.jar:?]
	at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:50) [modlauncher-2.1.1.jar:?]
	at cpw.mods.modlauncher.Launcher.run(Launcher.java:59) [modlauncher-2.1.1.jar:?]
	at cpw.mods.modlauncher.Launcher.main(Launcher.java:44) [modlauncher-2.1.1.jar:?]
	at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:98) [forge-1.13.2-25.0.219_mapped_snapshot_20180921-1.13-recomp.jar:?]
[05Jun2019 22:24:53.512] [Client thread/INFO] [net.minecraft.resources.SimpleReloadableResourceManager/]: Reloading ResourceManager: forge-1.13.2-25.0.219_mapped_snapshot_20180921-1.13-recomp.jar, main, Default
[05Jun2019 22:24:56.102] [Sound Library Loader/INFO] [net.minecraft.client.audio.SoundManager/]: Starting up SoundSystem version 201809301515...
[05Jun2019 22:24:56.334] [Thread-5/INFO] [net.minecraft.client.audio.SoundManager/]: Initializing No Sound
[05Jun2019 22:24:56.334] [Thread-5/INFO] [net.minecraft.client.audio.SoundManager/]: (Silent Mode)
[05Jun2019 22:24:56.490] [Thread-5/INFO] [net.minecraft.client.audio.SoundManager/]: OpenAL initialized.
[05Jun2019 22:24:56.709] [Sound Library Loader/INFO] [net.minecraft.client.audio.SoundManager/SOUNDS]: Preloading sound minecraft:sounds/ambient/underwater/underwater_ambience.ogg
[05Jun2019 22:24:56.717] [Sound Library Loader/INFO] [net.minecraft.client.audio.SoundManager/SOUNDS]: Sound engine started
[05Jun2019 22:25:08.420] [Client thread/INFO] [net.minecraft.client.renderer.texture.TextureMap/]: Max texture size: 16384

 

More shows up in the output window, though its tricky to get every line because it gets spammed with scanning lines.

 

2019-06-06 08:18:01,801 main WARN Disabling terminal, you're running in an unsupported environment.
[08:18:02.006] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmluserdevclient, --fml.mcpVersion, 20190213.203750, --fml.mcVersion, 1.13.2, --fml.forgeGroup, net.minecraftforge, --fml.forgeVersion, 25.0.219, --version, MOD_DEV, --assetIndex, 1.13.1, --assetsDir, C:\Users\Major\.gradle\caches\forge_gradle\assets, --username, Dev, --accessToken, ????????, --userProperties, {}]
[08:18:02.013] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher starting: java version 1.8.0_191
[08:18:02.107] [main/DEBUG] [cp.mo.mo.LaunchServiceHandler/MODLAUNCHER]: Found launch services [minecraft,fmldevclient,fmldevserver,fmluserdevserver,testharness,fmlclient,fmluserdevclient,fmlserver]
[08:18:02.126] [main/DEBUG] [cp.mo.mo.NameMappingServiceHandler/MODLAUNCHER]: Found naming services : [srgtomcp]
[08:18:02.147] [main/DEBUG] [cp.mo.mo.LaunchPluginHandler/MODLAUNCHER]: Found launch plugins: [eventbus,object_holder_definalize,runtime_enum_extender,field_redirect_net.minecraft.potion.PotionEffect/Lnet/minecraft/potion/Potion;,accesstransformer,capability_inject_definalize,runtimedistcleaner]
[08:18:02.169] [main/DEBUG] [cp.mo.mo.TransformationServicesHandler/MODLAUNCHER]: Discovering transformation services
[08:18:02.177] [main/DEBUG] [cp.mo.mo.TransformationServicesHandler/MODLAUNCHER]: Found additional transformation services from discovery services: []
[08:18:02.221] [main/DEBUG] [cp.mo.mo.TransformationServicesHandler/MODLAUNCHER]: Found transformer services : [fml]
[08:18:02.222] [main/DEBUG] [cp.mo.mo.TransformationServicesHandler/MODLAUNCHER]: Transformation services loading
[08:18:02.224] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Loading service fml
[08:18:02.224] [main/DEBUG] [ne.mi.fm.lo.FMLServiceProvider/]: Injecting tracing printstreams for STDOUT/STDERR.
[08:18:02.230] [main/DEBUG] [ne.mi.fm.lo.LauncherVersion/CORE]: Found FMLLauncher version 25.0
[08:18:02.231] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: FML 25.0 loading
[08:18:02.231] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: FML found ModLauncher version : 2.1.1+50+7052a0a
[08:18:02.231] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: Initializing modjar URL handler
[08:18:02.233] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: FML found AccessTransformer version : 0.16.0+44+853b469
[08:18:02.233] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: FML found EventBus version : 0.9.2+39+1e657e9
[08:18:02.234] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: Found Runtime Dist Cleaner
[08:18:02.240] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: FML found CoreMod version : 0.5.0+21+fd93452
[08:18:02.241] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: Found ForgeSPI package implementation version 0.13.0+25+9048a81
[08:18:02.241] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: Found ForgeSPI package specification 2
[08:18:02.682] [main/INFO] [ne.mi.fm.lo.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust
[08:18:02.685] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Loaded service fml
[08:18:02.690] [main/DEBUG] [cp.mo.mo.TransformationServicesHandler/MODLAUNCHER]: Configuring option handling for services
[08:18:02.705] [main/DEBUG] [cp.mo.mo.TransformationServicesHandler/MODLAUNCHER]: Transformation services initializing
[08:18:02.706] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Initializing transformation service fml
[08:18:02.707] [main/DEBUG] [ne.mi.fm.lo.FMLServiceProvider/CORE]: Setting up basic FML game directories
[08:18:02.708] [main/DEBUG] [ne.mi.fm.lo.FileUtils/CORE]: Found existing GAMEDIR directory : C:\Users\Major\Documents\Minecraft\Forge 219\project\run
[08:18:02.710] [main/DEBUG] [ne.mi.fm.lo.FMLPaths/CORE]: Path GAMEDIR is C:\Users\Major\Documents\Minecraft\Forge 219\project\run
[08:18:02.710] [main/DEBUG] [ne.mi.fm.lo.FileUtils/CORE]: Found existing MODSDIR directory : C:\Users\Major\Documents\Minecraft\Forge 219\project\run\mods
[08:18:02.710] [main/DEBUG] [ne.mi.fm.lo.FMLPaths/CORE]: Path MODSDIR is C:\Users\Major\Documents\Minecraft\Forge 219\project\run\mods
[08:18:02.711] [main/DEBUG] [ne.mi.fm.lo.FileUtils/CORE]: Found existing CONFIGDIR directory : C:\Users\Major\Documents\Minecraft\Forge 219\project\run\config
[08:18:02.711] [main/DEBUG] [ne.mi.fm.lo.FMLPaths/CORE]: Path CONFIGDIR is C:\Users\Major\Documents\Minecraft\Forge 219\project\run\config
[08:18:02.711] [main/DEBUG] [ne.mi.fm.lo.FMLPaths/CORE]: Path FMLCONFIG is C:\Users\Major\Documents\Minecraft\Forge 219\project\run\config\fml.toml
[08:18:02.711] [main/DEBUG] [ne.mi.fm.lo.FMLServiceProvider/CORE]: Loading configuration
[08:18:02.782] [main/DEBUG] [ne.mi.fm.lo.FMLServiceProvider/CORE]: Preparing launch handler
[08:18:02.783] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: Using fmluserdevclient as launch service
[08:18:02.791] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: Received command line version data  : MC Version: '1.13.2' MCP Version: '20190213.203750' Forge Version: '25.0.219' Forge group: 'net.minecraftforge'
[08:18:02.793] [main/DEBUG] [ne.mi.fm.lo.LibraryFinder/CORE]: Found JAR forge at path C:\Users\Major\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.13.2-25.0.219_mapped_snapshot_20180921-1.13\forge-1.13.2-25.0.219_mapped_snapshot_20180921-1.13-recomp.jar
[08:18:02.793] [main/DEBUG] [ne.mi.fm.lo.LibraryFinder/CORE]: Found JAR mcdata at path C:\Users\Major\.gradle\caches\forge_gradle\minecraft_repo\versions\1.13.2\client-extra.jar
[08:18:02.794] [main/DEBUG] [ne.mi.us.FMLUserdevLaunchProvider/CORE]: Injecting maven path C:\Users\Major\.gradle\caches\forge_gradle\minecraft_user_repo
[08:18:02.794] [main/DEBUG] [ne.mi.fm.lo.FMLCommonLaunchHandler/CORE]: Got mod coordinates examplemod%%C:\Users\Major\Documents\Minecraft\Forge 219\project\bin\main from env
[08:18:02.798] [main/DEBUG] [ne.mi.fm.lo.FMLCommonLaunchHandler/CORE]: Found supplied mod coordinates [{examplemod=[C:\Users\Major\Documents\Minecraft\Forge 219\project\bin\main]}]
[08:18:02.807] [main/DEBUG] [ne.mi.fm.lo.LanguageLoadingProvider/CORE]: Found 1 language providers
[08:18:02.809] [main/DEBUG] [ne.mi.fm.lo.LanguageLoadingProvider/CORE]: Found language provider javafml, version 25.0
[08:18:02.814] [main/DEBUG] [ne.mi.fm.lo.LanguageLoadingProvider/CORE]: Skipping adding forge jar - javafml is already present
[08:18:02.818] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Initialized transformation service fml
[08:18:02.819] [main/DEBUG] [cp.mo.mo.NameMappingServiceHandler/MODLAUNCHER]: Current naming domain is 'mcp'
[08:18:02.820] [main/DEBUG] [cp.mo.mo.NameMappingServiceHandler/MODLAUNCHER]: Identified name mapping providers {srg=srgtomcp:1234}
[08:18:02.820] [main/DEBUG] [cp.mo.mo.TransformationServicesHandler/MODLAUNCHER]: Transformation services begin scanning
[08:18:02.821] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Beginning scan trigger - transformation service fml
[08:18:02.822] [main/DEBUG] [ne.mi.fm.lo.FMLServiceProvider/CORE]: Initiating mod scan
[08:18:02.822] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/SCAN]: Scanning for Mod Locators
[08:18:02.831] [main/DEBUG] [ne.mi.fm.lo.LibraryFinder/CORE]: Found JAR classpath_mod at path C:\Users\Major\Documents\Minecraft\Forge 219\project\bin\main
[08:18:02.832] [main/DEBUG] [ne.mi.fm.lo.LibraryFinder/CORE]: Found JAR classpath_mod at path C:\Users\Major\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.13.2-25.0.219_mapped_snapshot_20180921-1.13\forge-1.13.2-25.0.219_mapped_snapshot_20180921-1.13-recomp.jar
[08:18:02.847] [main/DEBUG] [ne.mi.fm.lo.mo.ModListHandler/CORE]: Found mod coordinates from lists: []
[08:18:02.858] [main/DEBUG] [ne.mi.fm.lo.mo.ModDiscoverer/CORE]: Found Mod Locators : (userdev classpath:null),(mods folder:null),(maven libs:null),(exploded directory:null)
[08:18:02.858] [main/DEBUG] [ne.mi.fm.lo.mo.ModDiscoverer/SCAN]: Scanning for mods and other resources to load. We know 4 ways to find mods
[08:18:02.864] [main/DEBUG] [ne.mi.fm.lo.mo.ModDiscoverer/SCAN]: Trying locator net.minecraftforge.userdev.ClasspathLocator@53fe15ff
[08:18:02.873] [main/DEBUG] [ne.mi.fm.lo.mo.ModFile/SCAN]: Mod file C:\Users\Major\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.13.2-25.0.219_mapped_snapshot_20180921-1.13\forge-1.13.2-25.0.219_mapped_snapshot_20180921-1.13-recomp.jar has a manifest
[08:18:02.931] [main/DEBUG] [ne.mi.fm.lo.mo.ModDiscoverer/SCAN]: Found mod file forge-1.13.2-25.0.219_mapped_snapshot_20180921-1.13-recomp.jar of type MOD with locator net.minecraftforge.userdev.ClasspathLocator@53fe15ff
[08:18:02.932] [main/DEBUG] [ne.mi.fm.lo.mo.ModDiscoverer/SCAN]: Trying locator {ModJarsFolder locator at C:\Users\Major\Documents\Minecraft\Forge 219\project\run\mods}
[08:18:02.933] [main/DEBUG] [ne.mi.fm.lo.mo.ModsFolderLocator/SCAN]: Scanning mods dir C:\Users\Major\Documents\Minecraft\Forge 219\project\run\mods for mods
[08:18:02.962] [main/DEBUG] [ne.mi.fm.lo.mo.ModDiscoverer/SCAN]: Trying locator {Maven Directory locator for mods []}
[08:18:02.967] [main/DEBUG] [ne.mi.fm.lo.mo.ModDiscoverer/SCAN]: Trying locator {ExplodedDir locator}
[08:18:02.974] [main/DEBUG] [ne.mi.fm.lo.mo.ModFile/SCAN]: Mod file C:\Users\Major\Documents\Minecraft\Forge 219\project\bin\main is missing a manifest
[08:18:02.975] [main/DEBUG] [ne.mi.fm.lo.mo.ModDiscoverer/SCAN]: Found mod file main of type MOD with locator {ExplodedDir locator}
[08:18:02.996] [main/DEBUG] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Parsing mod file candidate C:\Users\Major\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.13.2-25.0.219_mapped_snapshot_20180921-1.13\forge-1.13.2-25.0.219_mapped_snapshot_20180921-1.13-recomp.jar
[08:18:03.141] [main/DEBUG] [ne.mi.fm.lo.mo.ModFile/LOADING]: Loading mod file C:\Users\Major\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.13.2-25.0.219_mapped_snapshot_20180921-1.13\forge-1.13.2-25.0.219_mapped_snapshot_20180921-1.13-recomp.jar with language javafml
[08:18:03.144] [main/DEBUG] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Parsing mod file candidate C:\Users\Major\Documents\Minecraft\Forge 219\project\bin\main
[08:18:03.156] [main/DEBUG] [ne.mi.fm.lo.mo.ModFile/LOADING]: Loading mod file C:\Users\Major\Documents\Minecraft\Forge 219\project\bin\main with language javafml
[08:18:03.170] [main/DEBUG] [ne.mi.fm.lo.mo.ModDiscoverer/SCAN]: Found 2 mod files with 2 mods
[08:18:03.196] [main/DEBUG] [ne.mi.fm.lo.ModSorter/LOADING]: Found 2 mandatory requirements
[08:18:03.198] [main/DEBUG] [ne.mi.fm.lo.ModSorter/LOADING]: Found 0 mandatory mod requirements missing
[08:18:03.272] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/SCAN]: Adding Access Transformer in C:\Users\Major\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.13.2-25.0.219_mapped_snapshot_20180921-1.13\forge-1.13.2-25.0.219_mapped_snapshot_20180921-1.13-recomp.jar
[08:18:03.709] [main/DEBUG] [ne.mi.us.MCPNamingService/CORE]: Loaded 11816 field mappings from fields.csv
[08:18:03.750] [main/DEBUG] [ne.mi.us.MCPNamingService/CORE]: Loaded 10770 method mappings from methods.csv
[08:18:03.826] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: End scan trigger - transformation service fml
[08:18:03.826] [main/DEBUG] [cp.mo.mo.TransformationServicesHandler/MODLAUNCHER]: Transformation services loading transformers
[08:18:03.828] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Initializing transformers for transformation service fml
[08:18:03.828] [main/DEBUG] [ne.mi.fm.lo.FMLServiceProvider/CORE]: Loading coremod transformers
[08:18:03.830] [pool-2-thread-1/DEBUG] [ne.mi.fm.lo.mo.AbstractJarFileLocator/SCAN]: Scan started: Mod File: C:\Users\Major\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.13.2-25.0.219_mapped_snapshot_20180921-1.13\forge-1.13.2-25.0.219_mapped_snapshot_20180921-1.13-recomp.jar
[08:18:03.832] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Initialized transformers for transformation service fml
[08:18:03.954] [main/DEBUG] [ne.mi.fm.lo.LibraryFinder/CORE]: Found JAR realms at path C:\Users\Major\.gradle\caches\modules-2\files-2.1\com.mojang\realms\1.13.9\88d2ecc34dba880fb4f10c7318b313e067e8b6ae\realms-1.13.9.jar
[08:18:03.970] [main/INFO] [cp.mo.mo.LaunchServiceHandler/MODLAUNCHER]: Launching target 'fmluserdevclient' with arguments [--version, MOD_DEV, --gameDir, ., --assetsDir, C:\Users\Major\.gradle\caches\forge_gradle\assets, --assetIndex, 1.13.1, --username, Dev, --accessToken, ????????, --userProperties, {}]
[08:18:03.971] [main/DEBUG] [ne.mi.us.FMLUserdevClientLaunchProvider/CORE]: Launching minecraft in cpw.mods.modlauncher.TransformingClassLoader@36a5cabc with arguments [--version, MOD_DEV, --gameDir, ., --assetsDir, C:\Users\Major\.gradle\caches\forge_gradle\assets, --assetIndex, 1.13.1, --username, Dev, --accessToken, DONT_CRASH, --userProperties, {}]
[08:18:03.994] [pool-2-thread-1/DEBUG] [ne.mi.fm.lo.mo.Scanner/SCAN]: Scanning Mod File: C:\Users\Major\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.13.2-25.0.219_mapped_snapshot_20180921-1.13\forge-1.13.2-25.0.219_mapped_snapshot_20180921-1.13-recomp.jar path /net/minecraftforge/versions/mcp/MCPVersion.class
[08:18:04.018] [pool-2-thread-1/DEBUG] [ne.mi.fm.lo.mo.Scanner/SCAN]: Scanning Mod File: C:\Users\Major\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.13.2-25.0.219_mapped_snapshot_20180921-1.13\forge-1.13.2-25.0.219_mapped_snapshot_20180921-1.13-recomp.jar path /net/minecraftforge/versions/forge/ForgeVersion.class
[08:18:04.022] [pool-2-thread-1/DEBUG] [ne.mi.fm.lo.mo.Scanner/SCAN]: Scanning Mod File: C:\Users\Major\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.13.2-25.0.219_mapped_snapshot_20180921-1.13\forge-1.13.2-25.0.219_mapped_snapshot_20180921-1.13-recomp.jar path /net/minecraftforge/userdev/MCPNamingService.class
[08:18:04.025] [pool-2-thread-1/DEBUG] [ne.mi.fm.lo.mo.Scanner/SCAN]: Scanning Mod File: C:\Users\Major\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.13.2-25.0.219_mapped_snapshot_20180921-1.13\forge-1.13.2-25.0.219_mapped_snapshot_20180921-1.13-recomp.jar path /net/minecraftforge/userdev/MCPNamingService$1.class

//** 4 billion more lines here **//

 [22:24:37.014] [pool-2-thread-1/DEBUG] [ne.mi.fm.lo.mo.Scanner/SCAN]: Scanning Mod File: C:\Users\Major\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.13.2-25.0.219_mapped_snapshot_20180921-1.13\forge-1.13.2-25.0.219_mapped_snapshot_20180921-1.13-recomp.jar path /net/minecraft/advancements/Advancement.class
[22:24:37.014] [pool-2-thread-1/DEBUG] [ne.mi.fm.lo.mo.Scanner/SCAN]: Scanning Mod File: C:\Users\Major\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.13.2-25.0.219_mapped_snapshot_20180921-1.13\forge-1.13.2-25.0.219_mapped_snapshot_20180921-1.13-recomp.jar path /net/minecraft/advancements/Advancement$Builder.class
[22:24:37.015] [pool-2-thread-1/DEBUG] [ne.mi.fm.lo.mo.Scanner/SCAN]: Scanning Mod File: C:\Users\Major\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.13.2-25.0.219_mapped_snapshot_20180921-1.13\forge-1.13.2-25.0.219_mapped_snapshot_20180921-1.13-recomp.jar path /net/minecraft/advancements/Advancement$1.class
[22:24:37.015] [pool-2-thread-1/DEBUG] [ne.mi.fm.lo.mo.Scanner/SCAN]: Scanning Mod File: C:\Users\Major\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.13.2-25.0.219_mapped_snapshot_20180921-1.13\forge-1.13.2-25.0.219_mapped_snapshot_20180921-1.13-recomp.jar path /mcp/MethodsReturnNonnullByDefault.class
[22:24:37.018] [pool-2-thread-1/DEBUG] [ne.mi.fm.lo.mo.Scanner/SCAN]: Scanning Mod File: C:\Users\Major\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.13.2-25.0.219_mapped_snapshot_20180921-1.13\forge-1.13.2-25.0.219_mapped_snapshot_20180921-1.13-recomp.jar path /mcp/client/Start.class
[22:24:37.019] [pool-2-thread-1/DEBUG] [ne.mi.fm.lo.mo.AbstractJarFileLocator/SCAN]: Scan finished: Mod File: C:\Users\Major\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.13.2-25.0.219_mapped_snapshot_20180921-1.13\forge-1.13.2-25.0.219_mapped_snapshot_20180921-1.13-recomp.jar
[22:24:37.019] [pool-2-thread-1/DEBUG] [ne.mi.fm.lo.mo.Scanner/SCAN]: Scanning C:\Users\Major\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.13.2-25.0.219_mapped_snapshot_20180921-1.13\forge-1.13.2-25.0.219_mapped_snapshot_20180921-1.13-recomp.jar with language loader javafml
[22:24:37.050] [pool-2-thread-1/DEBUG] [ne.mi.fm.ja.FMLJavaModLanguageProvider/SCAN]: Found @Mod class net.minecraftforge.common.ForgeMod with id forge
[22:24:37.052] [pool-2-thread-1/DEBUG] [ne.mi.fm.lo.mo.ExplodedDirectoryLocator/SCAN]: Scanning exploded directory C:\Users\Major\Documents\Minecraft\Forge 219\project\bin\main
[22:24:37.053] [pool-2-thread-1/DEBUG] [ne.mi.fm.lo.mo.ExplodedDirectoryLocator/SCAN]: Exploded directory scan complete C:\Users\Major\Documents\Minecraft\Forge 219\project\bin\main
[22:24:37.053] [pool-2-thread-1/DEBUG] [ne.mi.fm.lo.mo.Scanner/SCAN]: Scanning C:\Users\Major\Documents\Minecraft\Forge 219\project\bin\main with language loader javafml
[22:24:37.200] [Client thread/INFO] [minecraft/Minecraft]: Setting user: Dev
[22:24:50.448] [Client thread/INFO] [minecraft/Minecraft]: LWJGL Version: 3.1.6 build 14
[22:24:53.241] [Client thread/DEBUG] [ne.mi.fm.ForgeI18n/CORE]: Loading I18N data entries: 0
[22:24:53.405] [Client thread/INFO] [ne.mi.fm.ModLoader/CORE]: Loading Network data for FML net version: FML2
[22:24:53.422] [Client thread/DEBUG] [ne.mi.fm.ModList/LOADING]: Using 4 threads for parallel mod-loading
[22:24:53.425] [Client thread/DEBUG] [ne.mi.fm.ModLoader/LOADING]: ModContainer is cpw.mods.modlauncher.TransformingClassLoader@36a5cabc
[22:24:53.436] [Client thread/DEBUG] [ne.mi.fm.ja.FMLJavaModLanguageProvider/LOADING]: Loading FMLModContainer from classloader cpw.mods.modlauncher.TransformingClassLoader@36a5cabc - got cpw.mods.modlauncher.TransformingClassLoader@36a5cabc
[22:24:53.436] [Client thread/DEBUG] [ne.mi.fm.ja.FMLModContainer/LOADING]: Creating FMLModContainer instance for net.minecraftforge.common.ForgeMod with classLoader cpw.mods.modlauncher.TransformingClassLoader@36a5cabc & cpw.mods.modlauncher.TransformingClassLoader@36a5cabc
[22:24:53.458] [Client thread/DEBUG] [ne.mi.fm.ja.FMLModContainer/LOADING]: Loaded modclass net.minecraftforge.common.ForgeMod with cpw.mods.modlauncher.TransformingClassLoader@36a5cabc
[22:24:53.459] [Client thread/DEBUG] [ne.mi.fm.ModLoader/LOADING]: ModContainer is cpw.mods.modlauncher.TransformingClassLoader@36a5cabc
[22:24:53.461] [Client thread/FATAL] [ne.mi.fm.ModLoader/LOADING]: File C:\Users\Major\Documents\Minecraft\Forge 219\project\bin\main constructed 0 mods: [], but had 1 mods specified: [hardlib]
[22:24:53.466] [Client thread/FATAL] [ne.mi.fm.ModLoader/CORE]: Failed to initialize mod containers
[22:24:53.466] [Client thread/FATAL] [ne.mi.ev.EventBus/EVENTBUS]: EventBus 0 shutting down - future events will not be posted.
java.lang.Exception: stacktrace
	at net.minecraftforge.eventbus.EventBus.shutdown(EventBus.java:274) ~[eventbus-0.9.2-service.jar:?] {}
	at net.minecraftforge.fml.client.ClientModLoader.begin(ClientModLoader.java:65) ~[forge-1.13.2-25.0.219_mapped_snapshot_20180921-1.13-recomp.jar:?] {pl:eventbus:A,pl:object_holder_definalize:A,pl:runtime_enum_extender:A,pl:capability_inject_definalize:A,pl:runtimedistcleaner:A}
	at net.minecraft.client.Minecraft.init(Minecraft.java:455) ~[forge-1.13.2-25.0.219_mapped_snapshot_20180921-1.13-recomp.jar:?] {pl:accesstransformer:B,pl:object_holder_definalize:A,pl:runtime_enum_extender:A,pl:capability_inject_definalize:A,pl:runtimedistcleaner:A}
	at net.minecraft.client.Minecraft.run(Minecraft.java:385) ~[forge-1.13.2-25.0.219_mapped_snapshot_20180921-1.13-recomp.jar:?] {pl:accesstransformer:B,pl:object_holder_definalize:A,pl:runtime_enum_extender:A,pl:capability_inject_definalize:A,pl:runtimedistcleaner:A}
	at net.minecraft.client.main.Main.main(Main.java:117) ~[forge-1.13.2-25.0.219_mapped_snapshot_20180921-1.13-recomp.jar:?] {pl:object_holder_definalize:A,pl:runtime_enum_extender:A,pl:capability_inject_definalize:A,pl:runtimedistcleaner:A}
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_191] {}
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_191] {}
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_191] {}
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_191] {}
	at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:55) ~[forge-1.13.2-25.0.219_mapped_snapshot_20180921-1.13-recomp.jar:?] {}
	at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:19) [modlauncher-2.1.1.jar:?] {}
	at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:32) [modlauncher-2.1.1.jar:?] {}
	at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:50) [modlauncher-2.1.1.jar:?] {}
	at cpw.mods.modlauncher.Launcher.run(Launcher.java:59) [modlauncher-2.1.1.jar:?] {}
	at cpw.mods.modlauncher.Launcher.main(Launcher.java:44) [modlauncher-2.1.1.jar:?] {}
	at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:98) [forge-1.13.2-25.0.219_mapped_snapshot_20180921-1.13-recomp.jar:?] {}
[22:24:53.505] [Client thread/DEBUG] [ne.mi.fm.pa.ResourcePackLoader/CORE]: Generating PackInfo named mod:hardlib for mod file C:\Users\Major\Documents\Minecraft\Forge 219\project\bin\main
[22:24:53.510] [Client thread/DEBUG] [ne.mi.fm.pa.ResourcePackLoader/CORE]: Generating PackInfo named mod:forge for mod file C:\Users\Major\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.13.2-25.0.219_mapped_snapshot_20180921-1.13\forge-1.13.2-25.0.219_mapped_snapshot_20180921-1.13-recomp.jar
[22:24:53.512] [Client thread/INFO] [minecraft/SimpleReloadableResourceManager]: Reloading ResourceManager: forge-1.13.2-25.0.219_mapped_snapshot_20180921-1.13-recomp.jar, main, Default
[22:24:56.102] [Sound Library Loader/INFO] [minecraft/SoundManager]: Starting up SoundSystem version 201809301515...
[22:24:56.334] [Thread-5/INFO] [minecraft/SoundManager]: Initializing No Sound
[22:24:56.334] [Thread-5/INFO] [minecraft/SoundManager]: (Silent Mode)
[22:24:56.490] [Thread-5/INFO] [minecraft/SoundManager]: OpenAL initialized.
[22:24:56.709] [Sound Library Loader/INFO] [minecraft/SoundManager]: Preloading sound minecraft:sounds/ambient/underwater/underwater_ambience.ogg
[22:24:56.717] [Sound Library Loader/INFO] [minecraft/SoundManager]: Sound engine started
[22:25:08.420] [Client thread/INFO] [minecraft/TextureMap]: Max texture size: 16384

 

I already looked through all of this. As far as I can tell it can read the toml file and that that is set up correctly but it CAN'T find my @Mod class. Mostly because it doesn't even bother to actually look at any of my class files. It looks at the root folder says "nothing here" and leaves.

 

There's a reference that "Forge 219\project\bin\main is missing a manifest" but I can't tell what that actually means as there's no file that I don't have that Cadiboo's example mod does (I also have both the toml and pack.mcmeta).

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

GitHub repo pls?

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted
2 hours ago, Cadiboo said:

GitHub repo pls?

I haven't made one yet. You're looking at the entire project already. The only thing I didn't give is the proxies, and they're blank. I don't even have stub methods for things that they'll need to do eventually.

 

I have no textures, no lang file, no block states, no models, nothing. I have a default pack.meta and I modified the build.gradle file with an archive base name, version number, and group (but those shouldn't be relevant at this point).

 

That's why I posted the main mod file and the toml: that's literally all there is so far.

 

I can make one if you really want me to, but there isn't going to be anything else you can't either create or fetch from my post.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted
13 hours ago, Draco18s said:

[Client thread/FATAL] [net.minecraftforge.fml.ModLoader/LOADING]: File C:\Users\Major\Documents\Minecraft\Forge 219\project\bin\main constructed 0 mods: [], but had 1 mods specified: [hardlib]

[Client thread/FATAL] [net.minecraftforge.fml.ModLoader/CORE]: Failed to initialize mod containers

[Client thread/FATAL] [net.minecraftforge.eventbus.EventBus/EVENTBUS]: EventBus 0 shutting down - future events will not be posted. java.lang.Exception: stacktrace at net.minecraftforge.eventbus.EventBus.shutdown(EventBus.java:274) ~[eventbus-0.9.2-service.jar:?]

I would put a breakpoint at EventBus.java:274 and see what the actual error is. BTW I highly recommend using a constant MOD_ID in your class rather than hardcoding it in your @Mod

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted

That's just the shutdown method. It calls new Exception("stacktrace"). That method is triggered by a LoadingFailedException catch block in ClientModLoader.

 

That's caused by this line: if (!this.loadingExceptions.isEmpty()). Debugging on that line (there's two, actually), it turns out that this is what generates the underlying exception:

        final List<ModContainer> modContainers = loadingModList.getModFiles().stream().
                map(ModFileInfo::getFile).
                map(mf -> buildMods(mf, launchClassLoader)).
                flatMap(Collection::stream).
                collect(Collectors.toList());

And that underlying exception is the one that's displayed in the game UI (fml.modloading.missingclasses).

 

Digging into what this does, the loadingModList contains 2 known mods: Forge and mine (based on the details I can extract from it, it looks like data that's read from the toml). But it lists the Mod File as C:\Users\Major\Documents\Minecraft\Forge 219\project\bin\main, but that path is incomplete (missing java\mod\draco18s\hardlib\HardLib.java or whatever would point to the class file), though this may be intentional as just a root location to perform a scan from. I'm not sure.

 

Dipping into buildMods(...) it turns out modFile.namespace value (modFile being the info built from the toml file) is a string containing "hardlib" which is not the full namespace of my @Mod class. Should be more like "mod.draco18s.hardlib"

 

As a result modFile.getScanResult().getTargets() is an empty list, generating the logging line:
File C:\Users\Major\Documents\Minecraft\Forge 219\project\bin\main constructed 0 mods: [], but had 1 mods specified: [hardlib]

 

Looking deeper into the ModFileScanData instance here it has:

An empty set of annotations

An empty set of classData

An empty map of modTargets

A null map of functionalScanners (given that this is private and used nowhere...)

A 1-element list of modFiles (the toml data)

 

I have no idea how any of these fields are even useful, as they're all private and only modTargets has a setter. Lets go peek at what calls it and how.

 

        return scanResult -> {
            final Map<String, FMLModTarget> modTargetMap = scanResult.getAnnotations().stream()
                    .filter(ad -> ad.getAnnotationType().equals(MODANNOTATION))
                    .peek(ad -> LOGGER.debug(SCAN, "Found @Mod class {} with id {}", ad.getClassType().getClassName(), ad.getAnnotationData().get("value")))
                    .map(ad -> new FMLModTarget(ad.getClassType().getClassName(), (String)ad.getAnnotationData().get("value")))
                    .collect(Collectors.toMap(FMLModTarget::getModId, Function.identity(), (a,b)->a));
            scanResult.addLanguageLoader(modTargetMap);
        };

 

Given that we don't ever see a logging message with the "Found @Mod class" in the log, we can assume that the scan and filter finds bupkis.

 

Debugging here leads to ... nothing. scanResult.getAnnotations() returns an empty list. We already knew this. The problem is figuring out WHY its empty, but as I cannot see how the field is ever assigned a value I can't continue.

 

I also can't go investigate the ModFile class, as the source is not available, so I can't investigate what the namespace field is supposed to be used for, how its constructed, or anything else involving he translation of toml data into a instance object.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

IntelliJ comes with a built in decompiler, so you never have to worry about not being able to find the source. Someone’s also written a port of this for eclipse 

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted
9 minutes ago, Cadiboo said:

IntelliJ comes with a built in decompiler, so you never have to worry about not being able to find the source. Someone’s also written a port of this for eclipse 

Cool.

On 6/5/2019 at 8:15 PM, Draco18s said:

I prefer Eclipse, Forge explicitly supports developing with Eclipse, so "use IntelliJ" will not help me.

 

That also doesn't really help me narrow down the problem any. I'm sure I could dig into that code for quite a while, but it does me no good if @Mod is not going to do what @Mod is supposed to do.

 

What would you like me to do at this point? I have supplied all of the necessary information usually required to figure out what I did wrong, and then some. Yet no one has said what I've done wrong.

 

If I haven't done anything wrong and it's a bug in Forge, then tell me to file an issue with Forge and I can do that.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted
13 hours ago, Draco18s said:

I also can't go investigate the ModFile class, as the source is not available

1 hour ago, Cadiboo said:

decompiler, so you never have to worry about not being able to find the source

1 hour ago, Cadiboo said:

Someone’s also written a port of this for eclipse

I specifically did not tell you to go use IntelliJ.

 

I'm not sure whats wrong, it works perfectly for me.
I would recommend refreshing the gradle project and if that doesn't work, making a GitHub repo.

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted

Rerun genEclipseRuns and don't touch MOD_CLASSES, modifying it was a workaround for an issue that was fixed and once again things weren't updated.

  • Thanks 1

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

Spoiler

Logs (Most issues require logs to diagnose):

Spoiler

Please post logs using one of the following sites (Thank you Lumber Wizard for the list):

https://gist.github.com/100MB Requires member (Free)

https://pastebin.com/: 512KB as guest, 10MB as Pro ($$$)

https://hastebin.com/: 400KB

Do NOT use sites like Mediafire, Dropbox, OneDrive, Google Drive, or a site that has a countdown before offering downloads.

 

What to provide:

...for Crashes and Runtime issues:

Minecraft 1.14.4 and newer:

Post debug.log

Older versions:

Please update...

 

...for Installer Issues:

Post your installer log, found in the same place you ran the installer

This log will be called either installer.log or named the same as the installer but with .log on the end

Note for Windows users:

Windows hides file extensions by default so the installer may appear without the .jar extension then when the .log is added the log will appear with the .jar extension

 

Where to get it:

Mojang Launcher: When using the Mojang launcher debug.log is found in .minecraft\logs.

 

Curse/Overwolf: If you are using the Curse Launcher, their configurations break Forge's log settings, fortunately there is an easier workaround than I originally thought, this works even with Curse's installation of the Minecraft launcher as long as it is not launched THROUGH Twitch:

Spoiler
  1. Make sure you have the correct version of Forge installed (some packs are heavily dependent on one specific build of Forge)
  2. Make a launcher profile targeting this version of Forge.
  3. Set the launcher profile's GameDir property to the pack's instance folder (not the instances folder, the folder that has the pack's name on it).
  4. Now launch the pack through that profile and follow the "Mojang Launcher" instructions above.

Video:

Spoiler

 

 

 

or alternately, 

 

Fallback ("No logs are generated"):

If you don't see logs generated in the usual place, provide the launcher_log.txt from .minecraft

 

Server Not Starting:

Spoiler

If your server does not start or a command window appears and immediately goes away, run the jar manually and provide the output.

 

Reporting Illegal/Inappropriate Adfocus Ads:

Spoiler

Get a screenshot of the URL bar or copy/paste the whole URL into a thread on the General Discussion board with a description of the Ad.

Lex will need the Ad ID contained in that URL to report it to Adfocus' support team.

 

Posting your mod as a GitHub Repo:

Spoiler

When you have an issue with your mod the most helpful thing you can do when asking for help is to provide your code to those helping you. The most convenient way to do this is via GitHub or another source control hub.

When setting up a GitHub Repo it might seem easy to just upload everything, however this method has the potential for mistakes that could lead to trouble later on, it is recommended to use a Git client or to get comfortable with the Git command line. The following instructions will use the Git Command Line and as such they assume you already have it installed and that you have created a repository.

 

  1. Open a command prompt (CMD, Powershell, Terminal, etc).
  2. Navigate to the folder you extracted Forge’s MDK to (the one that had all the licenses in).
  3. Run the following commands:
    1. git init
    2. git remote add origin [Your Repository's URL]
      • In the case of GitHub it should look like: https://GitHub.com/[Your Username]/[Repo Name].git
    3. git fetch
    4. git checkout --track origin/master
    5. git stage *
    6. git commit -m "[Your commit message]"
    7. git push
  4. Navigate to GitHub and you should now see most of the files.
    • note that it is intentional that some are not synced with GitHub and this is done with the (hidden) .gitignore file that Forge’s MDK has provided (hence the strictness on which folder git init is run from)
  5. Now you can share your GitHub link with those who you are asking for help.

[Workaround line, please ignore]

 

Posted
10 hours ago, Cadiboo said:

I specifically did not tell you to go use IntelliJ.

Cool. I also addressed that. I can dig into the source all day long but it won't ever actually solve my problem because if it works for someone else and not for me, then that code isn't actually the problem is it?

 

8 hours ago, DaemonUmbra said:

Rerun genEclipseRuns and don't touch MOD_CLASSES, modifying it was a workaround for an issue that was fixed and once again things weren't updated.

Mind making a PR to fix the readme and readthedocs pages?

It'd be nice if those were accurate for once. I've attempted to in the past, but nothing ever gets done about it because it's apparently so horrifyingly low priority and that "it doesn't matter because people figure it out anyway" that I get ignored.

 

But yeah, sure, I'll nuke everything and start over. I don't mind one bit. I want to know where I went wrong, and if it was getting the dev environment set up correctly, then I would not be surprised: the instructions are wrong. I'd go somewhere else for a tutorial, but we all know how awful those tutorials are, silly me for thinking that the official instructions would actually be correct. Haha!

 

Anyway, that seems to have worked.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

Just a note: 1.14.2 is out, you might want to skip 1.13.2

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted
48 minutes ago, Cadiboo said:

Just a note: 1.14.2 is out, you might want to skip 1.13.2

I'm mostly just getting the feel for things at the moment. Working on my ancillary helper classes. Most of it should port forward to 1.14 anyway.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

  • 7 months later...
Posted

I don't have an idea of what I'm doing wrong. I followed  several tutorials for modding setup and all of them failed. I downloaded the forge 1.14.4 mdk, extracted it in the mod folder. I ran gradlew genEclipseRuns in the powershell. I imported the folder into Eclipse, and I still get errors! Missing libraries, incorrect build paths, like wtf??? I've been struggling with this for over two days now.

Posted
51 minutes ago, SpaceHQ said:

I don't have an idea of what I'm doing wrong. I followed  several tutorials for modding setup and all of them failed. I downloaded the forge 1.14.4 mdk, extracted it in the mod folder. I ran gradlew genEclipseRuns in the powershell. I imported the folder into Eclipse, and I still get errors! Missing libraries, incorrect build paths, like wtf??? I've been struggling with this for over two days now.

You should start your own thread instead of posting in another thread. That being said, I run gradlew eclipse and then gradlew genEclipseRuns (both commands are needed) from a cmdline/powershell before importing existing gradle project into my eclipse workspace.

I've run into issues where the sources do not get attached to the jars for some reason, but running the setup tasks a second time magically makes them appear for me.

Posted
22 minutes ago, SpaceHQ said:

Sadly, I start getting even more errors when I run it for a second time. 75 missing libraries

Start a new thread, and post what you're getting at the console, or perhaps a screenshot.

 

  • Guest locked this topic
Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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