Jump to content

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


Recommended Posts

Posted (edited)

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

Posted

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

Posted

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

Posted

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"

 

Posted

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

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

Here is what it looks like

Expand  

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.

Posted

You should post your entire mod as a buildable git repo on github or something, makes it easier for people to see errors (or to build the mod to help debug) and prevents forgetting to paste code to a forum post :)

Posted
  On 4/3/2020 at 9:15 AM, _Cruelar_ said:

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

Expand  

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.

Posted

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

Posted
  On 4/3/2020 at 9:30 AM, _Cruelar_ said:

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

Expand  

I'm not sure what you are asking.

  On 4/3/2020 at 9:30 AM, _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

Expand  

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.

Posted

I don't know or can find where it is which might already be the issue so I guess I should try to resetup my workspace

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

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.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • This mod lets you choose an element power, Earth, Wind, Fire, or Water. Also two secret element powers Light and Darkness. Each power gives good a bad things, Earth lets you dig through anything but ores and bedrock, Wind lets you jump high in the air every three seconds, Fir lets you throw fire balls and you are immune to any flame/lava but you can't go into water or else you take damage, Water you swim and break blocks under water quicker and you can get rid of water like a sponge but you take more damage when in fire/lava, Light makes you faster at day but slower at night you are able to throw light spears that do four hearts and can go through any armor, Darkness let's you be faster at night but slower at day mobs don't harm you but peaceful mobs run away from you you are able to spawn ink creatures around you that are like dogs but are stronger. another thing in the mod is that there are other dimensions that can get you ores to make better armor and weapons, each dimensions are are good for a certain element though each dimension has a boss depending on which dimension one dimension has more than one boss, each elements are required to defeat the bosses with each others help.
    • Read the posts above yours, it tells you exactly how to do it, instructions are the same if it's making a forge installation or a vanilla one, just make a new folder for the game directory.
    • Yes that’s the full log, I managed to get it working last night, the anvil fix mod is what was causing it to crash
    • Hey guys, i'm currently developping a mod with forge 1.12.2 2860 and i'm using optifine and gradle 4.9. The thing is i'm trying to figure out how to show the player's body in first person. So far everything's going well since i've try to use a shader. The player's body started to blink dark when using a shader. I've try a lot of shader like chocapic, zeus etc etc but still the same issue. So my question is : How should i apply the current shader to the body ? At the same time i'm also drawing a HUD so maybe it could be the problem?   Here is the issue :    And here is the code where i'm trying to display the body :    private static void renderFirstPersonBody(EntityPlayerSP player, float partialTicks) { Minecraft mc = Minecraft.getMinecraft(); GlStateManager.pushMatrix(); GlStateManager.pushAttrib(); try { // Préparation OpenGL GlStateManager.enableDepth(); GlStateManager.depthMask(true); GlStateManager.enableAlpha(); GlStateManager.alphaFunc(GL11.GL_GREATER, 0.1F); GlStateManager.enableBlend(); GlStateManager.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); // Éclairage correct pour shaders GlStateManager.enableLighting(); RenderHelper.enableStandardItemLighting(); GlStateManager.enableRescaleNormal(); // Active la lightmap pour les shaders mc.entityRenderer.enableLightmap(); // Position de rendu interpolée double px = player.lastTickPosX + (player.posX - player.lastTickPosX) * partialTicks; double py = player.lastTickPosY + (player.posY - player.lastTickPosY) * partialTicks; double pz = player.lastTickPosZ + (player.posZ - player.lastTickPosZ) * partialTicks; GlStateManager.translate( px - mc.getRenderManager().viewerPosX, py - mc.getRenderManager().viewerPosY, pz - mc.getRenderManager().viewerPosZ ); // Rendu du joueur sans la tête Render<?> render = mc.getRenderManager().getEntityRenderObject(player); if (render instanceof RenderPlayer) { RenderPlayer renderPlayer = (RenderPlayer) render; boolean oldHeadHidden = renderPlayer.getMainModel().bipedHead.isHidden; boolean oldHeadwearHidden = renderPlayer.getMainModel().bipedHeadwear.isHidden; renderPlayer.getMainModel().bipedHead.isHidden = true; renderPlayer.getMainModel().bipedHeadwear.isHidden = true; setArmorHeadVisibility(renderPlayer, false); renderPlayer.doRender(player, 0, 0, 0, player.rotationYaw, partialTicks); renderPlayer.getMainModel().bipedHead.isHidden = oldHeadHidden; renderPlayer.getMainModel().bipedHeadwear.isHidden = oldHeadwearHidden; setArmorHeadVisibility(renderPlayer, !oldHeadwearHidden); } // Nettoyage post rendu mc.entityRenderer.disableLightmap(); GlStateManager.disableRescaleNormal(); } catch (Exception e) { // silent fail } finally { GlStateManager.popAttrib(); GlStateManager.popMatrix(); } }   Ty for your help. 
    • Item successfully registered, but there was a problem with the texture of the item, it did not insert and has just the wrong texture.     
  • Topics

×
×
  • Create New...

Important Information

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