Jump to content

naturaGodhead

Members
  • Posts

    63
  • Joined

  • Last visited

Everything posted by naturaGodhead

  1. I finally got the build path working, but now it seems like my ModelManager class is not being registered.
  2. Shrug. Just the way I learned it by example. Will it break anything doing it the way I have? Or is it just inconvenience? https://imgur.com/BzGF6GH It looks like it to me, but maybe I'm not looking hard enough. I have issues reading strings of letters/number sometimes. Thanks for the heads up, but that didn't fix anything. Still no localization in the game. I double checked the unlocalized and registry names as well.
  3. [12:56:20] [Client thread/ERROR] [FML]: Exception loading model for variant survivalgear:fire_starter#inventory for item "survivalgear:fire_starter", normal location exception: net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model survivalgear:item/fire_starter with loader VanillaLoader.INSTANCE, skipping at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:161) ~[ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.loadItemModels(ModelLoader.java:302) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadVariantItemModels(ModelBakery.java:175) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:151) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:121) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.init(Minecraft.java:560) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:422) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_171] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_171] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_171] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_171] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_171] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_171] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_171] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_171] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:25) [start/:?] Caused by: java.io.FileNotFoundException: survivalgear:models/item/fire_starter.json at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:69) ~[SimpleReloadableResourceManager.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadModel(ModelBakery.java:334) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.access$1400(ModelLoader.java:115) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$VanillaLoader.loadModel(ModelLoader.java:861) ~[ModelLoader$VanillaLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:157) ~[ModelLoaderRegistry.class:?]
  4. I'm working on a small mod for a modpack, and having issues getting the assets to load. I've never really had this issue before, so I'm not sure what's going on. The textures, models, and lang files are not being loaded, so I know its affecting the entire assets folder. My file structure is this: https://imgur.com/XO2YfBI I've checked to make sure the modid is "survivalgear". All my code for loading models is the same as other mods I've written. I was getting a "FileNotFoundException" for my item's model in the console, but its no longer showing me that when I restart after I tried setupDecompWorkspace again. SurvivalGear.java ModelHandler.java The one line from my en_US.lang: item.fireStarter.name=Survivalist's Fire Starter EDIT: Build path here https://imgur.com/U8F1OoN
  5. I recently found out how to generate structures using structure blocks and the nbt files it creates. I noticed it begins generating on the position relative to where the corner structure block was, though and that creates floating structures on hills. Is there a way to start generating from the middle instead? (Bottom of the structure, not center)
  6. I haven't really started playing around with it yet, but I feel very limited by the need to generate a structure inside one chunk. Is the way that vanilla generates villages and strongholds the best way of doing this? What if the structure is one large building? Just wondering if anyone has done something similar and can help out with a little advice before I start digging into it, thanks!
  7. Update: Instead of crashing while making a new world, I get the "Minecraft has run out of memory" screen and it boots me back to the main menu.
  8. I'm kind of tired so maybe I'm overlooking something but I've been playing a custom group of mods for a few days now and have had no issues with crashes. Today I went to load up my world and Minecraft immediately hangs and crashes every time without fail. There is no crash report generated, only what I could find in the debug log. The log talks about an OutOfMemoryError, but I've had 5 GB of ram allocated since I first started playing. I've also never had this world crash and I haven't recently made any major changes or placed anything important down so I'm at a loss. Thanks for the help. latest.log
  9. I wound up fixing it by making a couple of methods to call from the right click method. Thank you for the help
  10. "It works" as in it functions without immediately crashing. Obviously I'm trying to fix it, so let's stay on topic. The methods for saving and loading nbt don't accept a player as a parameter, and that's where my issue is, as I need those methods to be completely server side, so I can't grab the world from the client to check the time.
  11. It does work in singleplayer as I've been using it. It's gone this long without being reported because I hadn't used it on a server. How can I get an entity from an item's class?
  12. I'm using nbt tags to create a cooldown for an item I made. It works fine in singleplayer when I was getting the minecraft instance and grabbing the world time from there, but obviously that doesn't work on servers. Is there a simple way I can use server side to get the world an item's holder is in?
  13. One of those changes seems to have fixed my problem
  14. Okay but is there an explanation for why I shouldn't have any arguments in my TE constructor? How would I get the player entity that placed the block into the tileentity otherwise?
  15. I've got a block with a tile entity. The block takes the player that placed it and passes it to the tile entity, where the tile entity saves it to NBT. When it tries to do this, though, getName() for EntityPlayer is throwing a null pointer. I know that the EntityPlayer is not null, as the tile entity was functioning correctly before I added the nbt methods. Any help would be appreciated, thanks! BlockGristGatherer.java TileEntityGristGatherer.java The crash report
  16. Iterating in the for loop worked, thanks for your help. I was really tired last night when I was working on this, and picked it back up this afternoon confused.
  17. Simple issue, I've got a tile entity for an RF generator, but even though its supposed to check every face for a connection to export power out of, it only exports power from the front of the block, specifically the north side. Here's the TE file. Here's the EnergyStorage file. Here's the Block file.
  18. Actually just wound up figuring that out after I opened it in block bench, thanks for the help though
  19. Hi, I'm working on a block that has a shorter height than a normal block. I used the block_slab models as a base, and then changed the size and some of the faces to fit what I needed. However, when I load the model in the game, the texture on the side is stretched up and weird looking. Here's the model files, the block images, and a screenshot of what I mean so hopefully someone can figure it out. base_power_hub.json power_hub.json The images, enlarged for visibility. I've tried having the texture file size at 12 height, 16 width just like the model's face, but minecraft won't load it as the aspect ratio is broken. I also tried filling in blank space on the 16x16.
  20. I use another mod as an api to make an addon for that mod. I have an issue where I'm trying to run from inside eclipse, and I get "You have mod sources that are duplicate within your system." There is only one copy of the jar located in run/mods, and my build path is pointed at that jar. I've tried moving the jar outside of run/mods to libs/ instead, and also trying to have jars in both places with the build path pointed at libs/, and still get the same issue. If I remove the jar from run/mods completely and only have the one in libs/ with the build path pointed at it, the game crashes because the dependency is not in the mods folder. If it's there, it sees 2 jars, but if it isn't it sees 0. Anyone have a similar issue?
  21. Command line. I ended up just needing to change my gradle version, thanks for the help though
  22. So I took the time earlier today to update my forge installation in my dev environment, and afterwards it seems to have broken building a new jar. I've checked my build.gradle to make sure the jars are in the right place, but it hasn't helped. I get a cannot find symbol on the mod that I use as an api. Never had this issue when building a new jar before updating. build.gradle All three of these jars are located in libs/. I can compile from within eclipse just fine. Any help would be appreciated
  23. Thanks for the reply. I was under the impression gui was client side for some reason
×
×
  • Create New...

Important Information

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