Jump to content

Animus_Surge

Members
  • Posts

    87
  • Joined

  • Last visited

Everything posted by Animus_Surge

  1. ok I would try to instead of having the package like: *.models.item.weapon.starter.sword I would have it like: *.models.item.weapon for right now. That is common. It makes you use 'block' instead of 'item' unless you're not using a 3D model. Then it has you using 'block'. Can you paste your code and JSON setup for the weapon's class
  2. the document, depending on what you have opening JSON files, is supposed to be a word file. If not, then a blank file with a .json tag after it.
  3. file explorer will automatically correct the /s with \s because it has a better sense of what you meant. Other applications, not so much.
  4. the entire location should have all backslashes (\) and I see a forward slash in between the Users and the computer profile name: C:\Users/[profileName]\...
  5. what does the "install location"(I believe there is one in the forge installer) field look like when you try to install it?
  6. there are some non-mod options like: - set the "max fps" to Unlimited - decrease the "render distance" a little bit (to whatever's comfortable for you, I wouldn't make it lower than 8 chunks) - use fast graphics
  7. okay so I restart on the mod then... right? with real code this time?
  8. Where is your OBJ file located? and what does your code for the item look like?
  9. Can you tell us what would happen if you imported the model as an OBJ file? and what file extension were you using when you got the error?
  10. I use it to help me make blocks with 3d models,
  11. Different thing that involves importing external jars... I've imported an external jar file to start making an addon (the JAR was made using MCreator, imported the file into eclipse), but it says it requires a source, and I know jack about sources like that. Anyone know where to find the source?
  12. I fixed it. Thank you!
  13. then does the ClientProxy class sort of need to look like this: package net.overgrownportal.mod.proxy; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.item.Item; import net.minecraftforge.client.model.ModelLoader; import net.overgrownportal.mod.OvergrownPortal; public class ClientProxy extends CommonProxy { public void registerItemRenderer(Item item, int meta, String id) { ModelLoader.setCustomModelResourceLocation(item, meta, new ModelResourceLocation(OvergrownPortal.modId + ":" + id, "inventory")); } } and can you please clarify what you mean when you say: "you also do not tell the @SidedProxy which class to use as the ClientProxy."
  14. What do you mean when you say "ditch proxies"? So I need to override which methods?
  15. I'm using a tutorial (found here). My code has no errors in it. It looks like this: (Main Class File:) package net.overgrownportal.mod; import net.minecraft.item.Item; import net.minecraftforge.event.RegistryEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.SidedProxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net.overgrownportal.item.ModItems; import net.overgrownportal.mod.proxy.CommonProxy; @Mod(modid = OvergrownPortal.modId, name = OvergrownPortal.name, version = OvergrownPortal.version) public class OvergrownPortal { public static final String modId = "oc"; public static final String name = "OvergrownPortal"; public static final String version = "dev"; @Mod.Instance(modId) public static OvergrownPortal instance; @Mod.EventHandler public void preInit(FMLPreInitializationEvent event) { System.out.println(name + " is loading!"); } @Mod.EventHandler public void init(FMLInitializationEvent event) { } @Mod.EventHandler public void postInit(FMLPostInitializationEvent event) { } @SidedProxy(serverSide = "net.overgrownportal.mod.proxy.CommonProxy") public static CommonProxy proxy; @Mod.EventBusSubscriber public static class RegistrationHandler { @SubscribeEvent public static void registerItems(RegistryEvent.Register<Item> event) { ModItems.register(event.getRegistry()); ModItems.registerModels(); } } } (common proxy:) package net.overgrownportal.mod.proxy; import net.minecraft.item.Item; public class CommonProxy { public void registerItemRenderer(Item item, int meta, String id) { } } (client proxy:) package net.overgrownportal.mod.proxy; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.item.Item; import net.minecraftforge.client.model.ModelLoader; import net.overgrownportal.mod.OvergrownPortal; public class ClientProxy { public void registerItemRenderer(Item item, int meta, String id) { ModelLoader.setCustomModelResourceLocation(item, meta, new ModelResourceLocation(OvergrownPortal.modId + ":" + id, "inventory")); } } item base class: package net.overgrownportal.item; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.overgrownportal.mod.OvergrownPortal; public class ItemBase extends Item { protected String name; public ItemBase(String name) { this.name = name; setUnlocalizedName(name); setRegistryName(name); } public void registerItemModel() { OvergrownPortal.proxy.registerItemRenderer(this, 0, name); } @Override public ItemBase setCreativeTab(CreativeTabs tab) { super.setCreativeTab(tab); return this; } } mod items class: package net.overgrownportal.item; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraftforge.registries.IForgeRegistry; public class ModItems { public static ItemBase filmStrip = new ItemBase("film_strip").setCreativeTab(CreativeTabs.MATERIALS); public static void register(IForgeRegistry<Item> registry) { registry.registerAll(filmStrip); } public static void registerModels() { filmStrip.registerItemModel(); } } The log report: [20:32:53] [main/INFO] [GradleStart]: Extra: [] [20:32:53] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/swag100107/.gradle/caches/minecraft/assets, --assetIndex, 1.12, --accessToken{REDACTED}, --version, 1.12.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [20:32:53] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [20:32:53] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [20:32:53] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [20:32:53] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [20:32:53] [main/INFO] [FML]: Forge Mod Loader version 14.23.4.2739 for Minecraft 1.12.2 loading [20:32:53] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_172, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_172 [20:32:53] [main/ERROR] [FML]: Apache Maven library folder was not in the format expected. Using default libraries directory. [20:32:53] [main/ERROR] [FML]: Full: C:\Users\swag100107\.gradle\caches\modules-2\files-2.1\org.apache.maven\maven-artifact\3.5.3\7dc72b6d6d8a6dced3d294ed54c2cc3515ade9f4\maven-artifact-3.5.3.jar [20:32:53] [main/ERROR] [FML]: Trimmed: c:/users/swag100107/.gradle/caches/modules-2/files-2.1/org.apache.maven/maven-artifact/3.5.3/ [20:32:53] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [20:32:53] [main/INFO] [FML]: Detected deobfuscated environment, loading log configs for colored console logs. 2018-07-26 20:32:54,522 main WARN Disabling terminal, you're running in an unsupported environment. [20:32:54] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin), we are in deobf and it's a forge core plugin [20:32:54] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin), we are in deobf and it's a forge core plugin [20:32:54] [main/INFO] [FML]: Searching C:\Users\swag100107\Desktop\forge 1.12.2\run\.\mods for mods [20:32:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [20:32:54] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [20:32:54] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [20:32:54] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [20:32:54] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [20:32:54] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [20:32:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [20:32:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [20:32:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [20:32:56] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [20:32:56] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [20:32:56] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [20:32:57] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [20:32:57] [main/INFO] [GradleStart]: Remapping AccessTransformer rules... [20:32:57] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [20:32:57] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [20:32:57] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [20:32:58] [main/INFO] [minecraft/Minecraft]: Setting user: Player855 [20:33:05] [main/WARN] [minecraft/GameSettings]: Skipping bad option: lastServer: [20:33:06] [main/INFO] [minecraft/Minecraft]: LWJGL Version: 2.9.4 [20:33:07] [main/INFO] [FML]: -- System Details -- Details: Minecraft Version: 1.12.2 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_172, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 675610088 bytes (644 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: Loaded coremods (and transformers): GL info: ' Vendor: 'Intel' Version: '4.5.0 - Build 22.20.16.4836' Renderer: 'Intel(R) HD Graphics 620' [20:33:07] [main/INFO] [FML]: MinecraftForge v14.23.4.2739 Initialized [20:33:07] [main/INFO] [FML]: Starts to replace vanilla recipe ingredients with ore ingredients. [20:33:07] [main/INFO] [FML]: Replaced 1036 ore ingredients [20:33:08] [main/INFO] [FML]: Searching C:\Users\swag100107\Desktop\forge 1.12.2\run\.\mods for mods [20:33:09] [main/INFO] [FML]: Forge Mod Loader has identified 7 mods to load [20:33:10] [Thread-3/INFO] [FML]: Using sync timing. 200 frames of Display.update took 140864648 nanos [20:33:10] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, oc, ichunutil, portalgun] at CLIENT [20:33:10] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, oc, ichunutil, portalgun] at SERVER [20:33:11] [main/ERROR] [FML]: An error occurred trying to load a proxy into proxy.java.lang.ClassNotFoundException: net.overgrownportal.mod.OvergrownPortal$ClientProxy [20:33:12] [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629]: ---- Minecraft Crash Report ---- // Oops. Time: 7/26/18 8:33 PM Description: There was a severe problem during mod loading that has caused the game to fail net.minecraftforge.fml.common.LoaderException: java.lang.ClassNotFoundException: net.overgrownportal.mod.OvergrownPortal$ClientProxy at net.minecraftforge.fml.common.ProxyInjector.inject(ProxyInjector.java:102) at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:603) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91) at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150) at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76) at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399) at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71) at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116) at com.google.common.eventbus.EventBus.post(EventBus.java:217) at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:218) at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:196) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91) at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150) at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76) at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399) at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71) at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116) at com.google.common.eventbus.EventBus.post(EventBus.java:217) at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:135) at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:593) at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:226) at net.minecraft.client.Minecraft.init(Minecraft.java:513) at net.minecraft.client.Minecraft.run(Minecraft.java:421) at net.minecraft.client.main.Main.main(Main.java:118) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:25) Caused by: java.lang.ClassNotFoundException: net.overgrownportal.mod.OvergrownPortal$ClientProxy at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at net.minecraftforge.fml.common.ModClassLoader.loadClass(ModClassLoader.java:75) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at net.minecraftforge.fml.common.ProxyInjector.inject(ProxyInjector.java:85) ... 43 more Caused by: java.lang.NullPointerException at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182) ... 49 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.12.2 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_172, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 706819752 bytes (674 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP 9.42 Powered by Forge 14.23.4.2739 7 mods loaded, 7 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored | State | ID | Version | Source | Signature | |:----- |:--------- |:------------ |:-------------------------------- |:--------- | | UC | minecraft | 1.12.2 | minecraft.jar | None | | UC | mcp | 9.42 | minecraft.jar | None | | UC | FML | 8.0.99.99 | forgeSrc-1.12.2-14.23.4.2739.jar | None | | UC | forge | 14.23.4.2739 | forgeSrc-1.12.2-14.23.4.2739.jar | None | | UE | oc | dev | bin | None | | U | ichunutil | 7.0.2 | iChunUtil-1.12.2-7.0.2.jar | None | | U | portalgun | 7.0.2 | PortalGun-1.12.2-7.0.2.jar | None | Loaded coremods (and transformers): GL info: ' Vendor: 'Intel' Version: '4.5.0 - Build 22.20.16.4836' Renderer: 'Intel(R) HD Graphics 620' [20:33:12] [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\swag100107\Desktop\forge 1.12.2\run\.\crash-reports\crash-2018-07-26_20.33.12-client.txt Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release There are no coding errors that show up in the editor, but it crashes (tried twice, same thing.)
  16. I just removed them
  17. package net.overgrownportal.item; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.item.Item; import net.minecraft.util.ResourceLocation; import net.minecraftforge.client.model.ModelLoader; import net.minecraftforge.fml.common.registry.GameRegistry; public class ModItems{ @GameRegistry.ObjectHolder("overgrownportal:itemlightbridge") public static final Item ItemLightBridge = null; @SideOnly(Side.CLIENT) public static void initModels() { ModelLoader.setCustomModelResourceLocation(ItemLightBridge, 0, new ModelResourceLocation(getRegistryName(), getUnlocalizedName())); } private static String getUnlocalizedName() { // TODO Auto-generated method stub return null; } private static ResourceLocation getRegistryName() { // TODO Auto-generated method stub return null; } } scratch that thought I have one of those in my initModel already
  18. So do I put it in the client proxy class?
  19. It worked when I replaced itemLightBridge with (this). I removed it when I replaced itemLightBridge with (this).
  20. package net.overgrownportal.mod; import net.minecraft.item.Item; import net.minecraftforge.event.RegistryEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net.overgrownportal.item.ItemLightBridge; @Mod.EventBusSubscriber public class CommonProxy { @SubscribeEvent public static void registerItems(RegistryEvent.Register<Item> event) { event.getRegistry().register(new ItemLightBridge()); } } package net.overgrownportal.mod; import net.minecraftforge.client.event.ModelRegistryEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net.overgrownportal.item.ModItems; import net.minecraftforge.fml.relauncher.Side; @Mod.EventBusSubscriber(Side.CLIENT) public class ClientProxy extends CommonProxy { @SubscribeEvent public static void registerModels(ModelRegistryEvent event) { ModItems.initModels(); } }
  21. What does it need to be instead?
×
×
  • Create New...

Important Information

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