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

dun

Members
  • Posts

    18
  • Joined

  • Last visited

Converted

  • Gender
    Male
  • Personal Text
    I am new!

dun's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I tried to remodel my Config code into the Community Wiki's version: https://imgur.com/bjSKs5a and have called registerConfig for my code: https://imgur.com/etIjhTT But for some reason, when I change the value of my file, the game wouldn't register the change. It will always call the default value instead of the change value. I even followed changed my Config code to something similar to this: Here's my version: https://imgur.com/muWhCHG But again, it only calls the default value for my Config Integer. It only calls the changed value when I use the loadConfig method. Otherwise, it'll generate the file and ignore any modifications and use the default value. I have no clue why it cannot change values without the method.
  2. ๐Ÿ˜‘ Ya think? Did you even look into the imgur links? Maybe tell me what I'm doing wrong instead of giving non answers.
  3. When I remove it, my Config doesn't work. As in, if I change my value from 10000 to 1000, the game would not register the change without the loadConfig method. It's only when the method is called that the game registers the change.
  4. I HAVE FOUND THE PROBLEM. The boolean part of my config is what's causing the crashes! Once I've disabled the boolean part, not only does my game not crash upon starting, but my Config actually worked! https://imgur.com/ZXFX1kC For some reason, whenever the Config file is generated, the boolean part looks like that. It seems the format is what's causing the crashes. This seems like the obvious source of my problems, but I recalled disabling this part before and it was still crashing. I think that updating to 1.16.5 made it so that disabling that part makes the Config work. I'm not sure why it generates like that, but it seems for the foreseen future, my config would primarily be in Integers.
  5. Unfortunately, it still crashes before fully loaded. I've tried to change the value on my main mod file from this: https://imgur.com/2EFX7Xh to this: https://imgur.com/2EFX7Xh At first it seemed to worked, but it ended up generating two files: https://imgur.com/pvcHv5U and when I booted up the game again, it crashed once more: My first clue goes to this specific line: Which I think means that the reason why it kept crashing is due to a stray "=" in the config files! Unfortunately, if that's the case then I'm not sure how to properly fix it as the "=" is autogenerated in the file as it's part of the define function in the config class.
  6. Any ideas on how to make my config file valid? I'm quite stumped on figuring out how to make a Config for my mod...
  7. I've updated my mod to 1.16.5, but still crashes: The code remains the same as in the picture link.
  8. Hello! It's me again! I'm trying to make a Config file for my mod, but for some reason every time I tried to run the game, it crashes. Here's What it keeps on saying: Can someone help explain what I'm doing wrong? Here's the image of the Config Code
  9. Found a way to fix it! I went to the gradle folder on the right side of the project and press "Reload All Gradle Project" and now I can runClient without the errors showing up!
  10. For some reason, whenever I press runClient lately, I always get this error message: Exception in thread "main" java.lang.NoClassDefFoundError: cpw/mods/gross/Java9ClassLoaderUtil at cpw.mods.modlauncher.TransformationServicesHandler.discoverServices(TransformationServicesHandler.java:139) at cpw.mods.modlauncher.Launcher.run(Launcher.java:75) at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:105) Caused by: java.lang.ClassNotFoundException: cpw.mods.gross.Java9ClassLoaderUtil at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ... 4 more Can someone explained why this happens?
  11. Model wise? Through rotate Angles. Example: this.bipedRightLeg.rotateAngleX = -1.4137167F; Code wise? They sit when you right click on them. I tried to use rotationPointY to make them look like they are sitting on the ground, but as mentioned, I was using two models for the entity, and when I tried to lower their rotationPointY, it looked pretty funky even when the reduction is on both models.
  12. As you can see, when my entity is sitting, its sitting above the ground. I've tried to modify the entity's model but since this entity actually uses two models (the other model is for rendering their armor if they have one equipped) so it gets really wonky. I'm wondering if there's a way to move their body down a little so they can look like their sitting on the floor using other methods.
  13. NEVERMIND! I've figured it out! Looks like I was taking your code example too literally! ๐Ÿ˜… Now my code is taking the right constructor! I can finally create my own Projectiles now! Thank you so much! ๐Ÿ˜„
  14. Cannot resolve method 'of' in 'Builder' I'm still quite confused on how to use TypeParameter. The (...) part specifically as I've no clue what I'm supposed to put there. Where does the 'create' go into the code?
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.