Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Mod Will not generate data


Recommended Posts

I am having a problem. I ran my runData and i got this where it didnt run anything in my GatherDataEvent

 

[05:07:01] [main/DEBUG] [ne.mi.re.GameData/REGISTRIES]: Applying holder lookups: minecraft:worldgen/foliage_placer_type
[05:07:01] [main/DEBUG] [ne.mi.re.GameData/REGISTRIES]: Holder lookups applied: minecraft:worldgen/foliage_placer_type
[05:07:01] [main/DEBUG] [ne.mi.re.GameData/REGISTRIES]: Applying holder lookups: minecraft:worldgen/structure_feature
[05:07:01] [main/DEBUG] [ne.mi.re.GameData/REGISTRIES]: Holder lookups applied: minecraft:worldgen/structure_feature
[05:07:01] [main/DEBUG] [ne.mi.re.GameData/REGISTRIES]: Applying holder lookups: minecraft:worldgen/surface_builder
[05:07:01] [main/DEBUG] [ne.mi.re.GameData/REGISTRIES]: Holder lookups applied: minecraft:worldgen/surface_builder
[05:07:01] [main/DEBUG] [ne.mi.re.GameData/REGISTRIES]: Applying holder lookups: minecraft:worldgen/tree_decorator_type
[05:07:01] [main/DEBUG] [ne.mi.re.GameData/REGISTRIES]: Holder lookups applied: minecraft:worldgen/tree_decorator_type

Process finished with exit code 0

I then put breakpoints and runData again. the break points stopped at one of the breakpoint in the GatherDataEvent image.thumb.png.2e81870a8ff205982afd344f2323a1da.png

since that caught a break point i put a breakpoint in GenItemModels. It caught the first breakpoint but after i pressed resume it didnt catch the other break pointsimage.thumb.png.8793a5766af5961850c5fb8b41f12910.png


 

Link to post
Share on other sites
  • You should include the gradle wrapper in your repository, why did you explicitly exclude it using .gitignore?
  • You are using the Pair class from JavaFX, this will not work on non-Oracle JDKs, you should use the one from apache commons that Minecraft ships already.
  • Your data generator crashes with an exception due to a texture that is not found, hence I cannot reproduce your problem.
Link to post
Share on other sites

i updated my github with my gradle

also i dont know why it says cannot find texture for you. I also updated a few things on my new push. tell me what you get on the texture that is not found

Link to post
Share on other sites
[14:36:32] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:668]: Caused by: java.lang.IllegalArgumentException: Texture industrialtech:item/material_icons/gem_horizontal/gem does not exist in any known resource pack
[14:36:32] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:668]: 	at com.google.common.base.Preconditions.checkArgument(Preconditions.java:191)
[14:36:32] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:668]: 	at net.minecraftforge.client.model.generators.ModelBuilder.texture(ModelBuilder.java:152)
[14:36:32] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:668]: 	at mightydanp.industrialtech.api.common.datagen.GenItemModel.coloredMaterialPart(GenItemModel.java:184)
[14:36:32] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:668]: 	at mightydanp.industrialtech.api.common.datagen.GenItemModel.registerModels(GenItemModel.java:39)
[14:36:32] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:668]: 	at mightydanp.industrialtech.api.common.datagen.GenItemModel.<init>(GenItemModel.java:29)
[14:36:32] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:668]: 	at mightydanp.industrialtech.api.common.handler.DataGenEventHandler.gatherData(DataGenEventHandler.java:24)
[14:36:32] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:668]: 	at net.minecraftforge.eventbus.ASMEventHandler_12_DataGenEventHandler_gatherData_GatherDataEvent.invoke(.dynamic)
[14:36:32] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:668]: 	at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85)
[14:36:32] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:668]: 	at net.minecraftforge.eventbus.EventBus.post(EventBus.java:302)
[14:36:32] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:668]: 	at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283)
[14:36:32] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:668]: 	at net.minecraftforge.fml.javafmlmod.FMLModContainer.acceptEvent(FMLModContainer.java:120)
[14:36:32] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:668]: 	... 17 more

 

Link to post
Share on other sites

Oh i see it was a github issue it didnt relize i changed folder names from uppercase to lowercase. I did a push with it corrected so it shouldnt fail after replaceing the folders in src/main/resources/assets/industrialtech/textures/item/material_icons with tye new github push i just did

https://github.com/mightydanp/IndustrialTech/tree/master/src/main/resources/assets/industrialtech/textures/item/material_icons

Link to post
Share on other sites

I set up the breakpoints like you did and they all triggered fine. 

The reason nothing is generated is because you told Forge to only generate for mods with Mod ID "${mod_id}", whereas your Mod ID is "industrialtech".

Link to post
Share on other sites

Oh ok so this is a gradle problem for me. Alright isnt the way that i reference the gradle.properties folder the right way? I dont know much about gradle or if not what is the best way to do references from gradle.properties

Link to post
Share on other sites
28 minutes ago, diesieben07 said:

I set up the breakpoints like you did and they all triggered fine. 

The reason nothing is generated is because you told Forge to only generate for mods with Mod ID "${mod_id}", whereas your Mod ID is "industrialtech".

uhh i changed my build.gradle back to what i had before i changed it but it still isnt working for me
https://github.com/mightydanp/IndustrialTech/blob/master/build.gradle

Link to post
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.

Guest
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 Privacy Policy.