Jump to content

[1.13] Setting up dev environment / Getting Started


Draco18s

Recommended Posts

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.

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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]

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 7 months later...

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • 파나마 특상품 위치 ♤BCGAME4.COM▨ 몽골 특상품 인스타그램 예멘 특상품 사이트  파나마 특상품 주소찾기 [본사문의 텔레 @JBOX7] 소말릴란드 특상품 노하우 기니 특상품 막힘  파나마 특상품 스토리 [총판문의 카톡 JBOX7] 아르헨티나 특상품 스토리 호주 특상품 성인  파나마 특상품 유투브 [각종 오피 커뮤니티 제작] 남유럽 특상품 하는곳 그레나딘 특상품 텔레그램  파나마 특상품 주소찾기 [마케팅문의] 모로코 특상품 사이트 터키 특상품 추천  파나마 특상품 막힘 [카지노본사] 중앙아시아 특상품 라인 한국 특상품 우회  파나마 특상품 오픈채팅 [스포츠본사] 콩고 특상품 투어 브루나이 특상품 텔레그램  파나마 특상품 라인 [토토본사 문의] 리조트월드카지노 특상품 접속 북아프리카 특상품 오픈채팅  파나마 특상품 막힘 [토토총판 구매] 라오스 특상품 우회 레바논 특상품 주소찾기  파나마 특상품 라인 [카지노총판] 아리아카지노 특상품 추천 벨라루스 특상품 유투브  파나마 특상품 여행 [야마토본사] 리조트월드카지노 특상품 시스템 미크로네시아 특상품 막힘  파나마 특상품 오픈채팅 [바카라총판] 브루나이 특상품 유튜브 세인트루시아 특상품 텔레그램  파나마 특상품 위치 [경마총판] 쿠바 특상품 스토리 브루나이 특상품 막힘  파나마 특상품 사이트 [BCGAME 비씨게임 총판문의]알림 설정 추천 구독 좋아요
    • 군포카페 §BCGAME88·COM▥ 천왕카페 신정카페 역삼카페 광양카페 gpl19 본동카페 학방카페 공릉카페 신도림카페 nij14 미근카페 관악카페 연건카페 화성카페 anp98 길음카페 부암카페 안산카페 예산카페 nsg30 안양카페 군포카페 서소문카페 마포카페 lio97 안양카페 용두카페 마천카페 고덕카페 aqu93 문정카페 효제카페 수원카페 수송카페 bwl38 구산카페 양재카페 완주카페 창천카페 cid39 냉천카페 속초카페 초동카페 관훈카페 esa49 화방카페 창전카페 흥인카페 여의도카페 vkh65 도화카페 공덕카페 도원카페 효자카페 ota85 세곡카페 동두천카페 송현카페 광명카페 yax28 명일카페 오산카페 원남카페 오산카페 dpv07 합정카페 무교카페 마곡카페 소공카페 gfk07 무안카페 청운카페 동두천카페 고창카페 vrj81 양주카페 교남카페 신천카페 김포카페 mrq17 영암카페 효자카페 안산카페 경운카페 ekc89 거여카페 태평로카페 순천카페 도렴카페 uxl70 필운카페 신천카페 압구정카페 상암카페 yop40 홍파카페 서린카페 중랑카페 오산카페 eyv67 광명카페 창전카페 용두카페 종암카페 pue10 개포카페 상계카페 보광카페 동작카페 loa92 공항카페 강남카페 토정카페 광양카페 oos22
    • 인터넷 도박 접속▧BCGAME4.COM# 세네갈 도박 동영상 인터넷 남아메리카 도박 사이트 [본사문의 텔레 JBOX7]인터넷 도박 ▲→ 포커대회 우즈베키스탄 도박 포커대회 인터넷 중앙아프리카 인터넷 도박 검증 [총판문의 카톡 JBOX7]인터넷 도박 ▥↕ 홀덤바 아이티 도박 검증 인터넷 파라과이 인터넷 도박 사이트 [각종 오피 커뮤니티 제작]인터넷 도박 ☎△ 사이트 아제르바이잔 도박 검증 인터넷 아랍 인터넷 도박 전략 [마케팅문의]인터넷 도박 ♭♡ 게임 동아프리카 도박 싸이트 인터넷 동아시아 인터넷 도박 단톡방 [카지노본사]인터넷 도박 〓* 여행 세인트빈센트 도박 홀덤펍 인터넷 케냐 인터넷 도박 놀이터 [스포츠본사]인터넷 도박 ☜☞ 캐쉬게임 산마리노 도박 방법 인터넷 통가 인터넷 도박 여행 [토토본사 문의]인터넷 도박 ●◁ 게임장 탄자니아 도박 접속 인터넷 러시아 인터넷 도박 접속 [토토총판 구매]인터넷 도박 ▼□ 여행 산마리노 도박 경기 인터넷 브라질 인터넷 도박 업체 [카지노총판]인터넷 도박 №™ 싸이트 탄자니아 도박 동영상 인터넷 남아프리카 인터넷 도박 게임장 [야마토본사]인터넷 도박 ↖▤ 동영상 라이베리아 도박 캐쉬게임 인터넷 이스라엘 인터넷 도박 본사 [바카라총판]인터넷 도박 ◇㏂ 본사 산마리노 도박 업체 인터넷 라트비아 인터넷 도박 경기 [경마총판]서아프리카 도박 사이트 키리바시 도박 방송 [BCGAME 비씨게임 총판문의]알림 설정 추천 구독 좋아요
    • 내발산하숙집 ㏇BCGAME4·COM▶ 후암하숙집 원서하숙집 광장하숙집 주교하숙집 aau38 의왕하숙집 음성하숙집 화동하숙집 강릉하숙집 gpe72 관악하숙집 재동하숙집 서계하숙집 미아하숙집 llv97 중동하숙집 풍납하숙집 오금하숙집 고척하숙집 vra27 합동하숙집 구의하숙집 북가좌하숙집 정읍하숙집 ico59 청담하숙집 행당하숙집 궁정하숙집 과천하숙집 pov88 상봉하숙집 대조하숙집 김천하숙집 길동하숙집 bxu97 하남하숙집 동두천하숙집 마곡하숙집 광주하숙집 acy76 미근하숙집 무악하숙집 개포하숙집 교남하숙집 fyr89 신수하숙집 수유하숙집 이태원하숙집 밀양하숙집 jct67 삼청하숙집 여수하숙집 예관하숙집 군자하숙집 ish08 가양하숙집 교남하숙집 신도림하숙집 영천하숙집 amo12 양산하숙집 천안하숙집 여주하숙집 거제하숙집 ury96 불광하숙집 군포하숙집 능동하숙집 청담하숙집 guj58 중동하숙집 성산하숙집 학방하숙집 서귀포하숙집 fyr62 송정하숙집 성구하숙집 서초하숙집 입정하숙집 swc68 묵동하숙집 인천하숙집 효제하숙집 마곡하숙집 iuc29 사간하숙집 소격하숙집 상도하숙집 상일하숙집 alq11 구의하숙집 도원하숙집 종로하숙집 중계하숙집 uqo91 김해하숙집 후암하숙집 속초하숙집 토정하숙집 mnd95 정읍하숙집 교남하숙집 홍은하숙집 양산하숙집 swc42 계동하숙집 상수하숙집 하남하숙집 신설하숙집 kdy49 군자하숙집 홍익하숙집 압구정하숙집 염곡하숙집 kda47
    • 라이브 로또 바카라펍↖BCGAME4.COM□ 콜롬비아 로또 도박장 라이브 폴란드 로또 쿠푼 [본사문의 텔레 JBOX7]라이브 로또 ▨♡ 카지노펍 스웨덴 로또 놀이터 라이브 아일랜드 라이브 로또 경기 [총판문의 카톡 JBOX7]라이브 로또 ▽↓ 놀이터 레바논 로또 단톡방 라이브 캄보디아 라이브 로또 업체 [각종 오피 커뮤니티 제작]라이브 로또 ♣♩ 주소 콩고민주 로또 홀덤바 라이브 팔라우 라이브 로또 캐쉬게임 [마케팅문의]라이브 로또 ▥※ 중계 파나마 로또 본사 라이브 아일랜드 라이브 로또 경기 [카지노본사]라이브 로또 ♥■ 모집 나이지리아 로또 놀이터 라이브 남아시아 라이브 로또 리그 [스포츠본사]라이브 로또 *★ 본사 몰타 로또 리그 라이브 아리아카지노 라이브 로또 검증 [토토본사 문의]라이브 로또 #〓 접속 바누아투 로또 커뮤니티 라이브 일본 라이브 로또 홀덤바 [토토총판 구매]라이브 로또 ▩▣ 도박장 슬로바키아 로또 접속 라이브 나이지리아 라이브 로또 게임장 [카지노총판]라이브 로또 ▨㏇ 쿠푼 세르비아 로또 리그 라이브 솔로몬제도 라이브 로또 포커대회 [야마토본사]라이브 로또 ☜™ 투어 토고 로또 바카라펍 라이브 그랜드리스카지노 라이브 로또 유투브 [바카라총판]라이브 로또 ♨△ 도박장 겐팅하이랜드카지노 로또 바카라펍 라이브 바티칸시국 라이브 로또 주소 [경마총판]카메룬 로또 캐쉬게임 캄보디아 로또 게임 [BCGAME 비씨게임 총판문의]알림 설정 추천 구독 좋아요
  • Topics

×
×
  • Create New...

Important Information

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