Jump to content

[Solved] Forge failing to load mods.toml (Setup wasn't correct)


_Cruelar_

Recommended Posts

Forge repeatedly claims this:

[20:25:59] [main/WARN] [ne.mi.fm.lo.mo.ExplodedDirectoryLocator/LOADING]: Failed to find exploded resource mods.toml

However my mods.toml is in src\main\resources\META-INF\mods.toml

Here is what it looks like

# The name of the mod loader type to load - for regular FML @Mod mods it should be javafml
modLoader="javafml" #mandatory

# A version range to match for said mod loader - for regular FML @Mod it will be the forge version
loaderVersion="[28,)" #mandatory (28 is current forge version)

# A list of mods - how many allowed here is determined by the individual mod loader
[[mods]] #mandatory

	# The modid of the mod
	modId="cruelars_triforcemod" #mandatory

	# The version number of the mod - there's a few well known ${} variables useable here or just hardcode it
	version=${file.jarVersion} #mandatory

	 # A display name for the mod
	displayName="Cruelars Triforcemod" #mandatory

	# A text field displayed in the mod UI
	authors="Cruelar" #optional

	# The description text for the mod (multi line!) (#mandatory)
	description='"A The Legend of Zelda Mod"'

	[[dependencies.cruelars_triforcemod]] #optional

		# the modid of the dependency
		modId="forge" #mandatory

		# Does this dependency have to exist - if not, ordering below must be specified
		mandatory=true #mandatory

		# The version range of the dependency
		versionRange="[28,)" #mandatory

		# An ordering relationship for the dependency - BEFORE or AFTER required if the relationship is not mandatory
		ordering="NONE"

		# Side this dependency is applied on - BOTH, CLIENT or SERVER
		side="BOTH"

	[[dependencies.cruelars_triforcemod]]

		# the modid of the dependency
		modId="minecraft"

		# Does this dependency have to exist - if not, ordering below must be specified
		mandatory=true

		# The version range of the dependency
		versionRange="[1.14.4]"

	   	# An ordering relationship for the dependency - BEFORE or AFTER required if the relationship is not mandatory
		ordering="NONE"

	   	# Side this dependency is applied on - BOTH, CLIENT or SERVER
 		side="BOTH"

Also a picture of the folder structure:

1452476836_explodedmods_toml.thumb.png.ce222bc735f29d480c1187742df4c183.png

 

So what could possibly cause this? Because all explanations I saw so far target the file being at the wrong location however this doesn't seem to be the case.

Edited by _Cruelar_
Forgot some lines

My Projects:

Cruelars Triforcemod (1.12 release; 1.14 alpha soon coming)

 

Important:

As my mod is on at least 10 different third party sites without my permission, I want to warn you about that with a link to StopModReposts

Link to comment
Share on other sites

Could somebody please tell me if I'm missing something obvious, I kinda feel dumb about this as I had something like this before and don't know how to fix it

My Projects:

Cruelars Triforcemod (1.12 release; 1.14 alpha soon coming)

 

Important:

As my mod is on at least 10 different third party sites without my permission, I want to warn you about that with a link to StopModReposts

Link to comment
Share on other sites

Sorry to bump this but I've been Searching for an error since I posted this and no matter what I did it, it keeps sending this message and nothing is registered. is there some hidden condition I'm not fulfilling?

My Projects:

Cruelars Triforcemod (1.12 release; 1.14 alpha soon coming)

 

Important:

As my mod is on at least 10 different third party sites without my permission, I want to warn you about that with a link to StopModReposts

Link to comment
Share on other sites

The only difference I can see between mine and yours is the format of the mods.toml file. I'm not sure if that makes any difference, but it's worth a shot.

 

Mine doesn't have any tabs at all. Not any good at this stuff, just trying to help out.

modLoader="javafml" #mandatory

loaderVersion="[31,)" #mandatory

issueTrackerURL="https://github.com/EricHedengren/StandardMaterials/issues" #optional

[[mods]] #mandatory

modId="standardmaterials" #mandatory

version="1.1.3" #mandatory

displayName="Standard Materials" #mandatory

updateJSONURL="https://gist.githubusercontent.com/EricHedengren/f7d07eea9072592838f24d2889713e6f/raw" #optional

displayURL="https://www.curseforge.com/minecraft/mc-mods/standardmaterials" #optional

logoFile="icon.png" #optional

credits="Isaac, Michael, Curseforge commenters, and the Internet" #optional

authors="BaconBombingDeveloper" #optional

description='''
This mod adds obsidian and emerald tools to the game. Obsidian tools are extremely durable, and emerald tools have high efficiency and attack damage.
'''

[[dependencies.standardmaterials]] #optional
    modId="forge" #mandatory
    mandatory=true #mandatory
    versionRange="[31,)" #mandatory
    ordering="NONE"
    side="BOTH"

[[dependencies.standardmaterials]]
    modId="minecraft"
    mandatory=true
    versionRange="[1.15.2]"
    ordering="NONE"
    side="BOTH"

 

Link to comment
Share on other sites

I'll try it, but I doubt this is the issue. I have a other mod with the same formatting which does work. Thanks for the effort though, highly appreciated

My Projects:

Cruelars Triforcemod (1.12 release; 1.14 alpha soon coming)

 

Important:

As my mod is on at least 10 different third party sites without my permission, I want to warn you about that with a link to StopModReposts

Link to comment
Share on other sites

On 3/28/2020 at 12:33 PM, _Cruelar_ said:

Here is what it looks like

You are missing these two lines.

modLoader="javafml"

loaderVersion="[31,)"

 

And both are mandatory.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

4 minutes ago, _Cruelar_ said:

No I don't I just for some reason seam to have decided to paste them in will fix that

I agree with Ugdhar. Would make this a little easier.

 However, try building your mod and checking if the built jar contains the mods.toml file. If it doesn't there was likely a problem with setting up your workspace and you will need to do it again.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

The file is in build/resources/main/META-INF which is what confuses me. It's working to build the mod but not to load it. Just a random guess as I saw that right now, does he have a problem with . , _ and similar in the build path?

My Projects:

Cruelars Triforcemod (1.12 release; 1.14 alpha soon coming)

 

Important:

As my mod is on at least 10 different third party sites without my permission, I want to warn you about that with a link to StopModReposts

Link to comment
Share on other sites

4 minutes ago, _Cruelar_ said:

does he have a problem with . , _ and similar in the build path?

I'm not sure what you are asking.

5 minutes ago, _Cruelar_ said:

The file is in build/resources/main/META-INF which is what confuses me. It's working to build the mod but not to load it. Just a random guess as I saw that right now

Is the file located in the built jar file? And could you post your code as a github repo so I can test it locally?

  • Thanks 1

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

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