Jump to content

DestinySpork

Members
  • Posts

    66
  • Joined

  • Last visited

Everything posted by DestinySpork

  1. Try allocating more memory to the game. Providing you have enough ram on your system, change your memory to -Xmx2048M -Xms2048M, which should do the trick. 4 gigabytes, 4096Mb, is usually good for modded minecraft, but a small pack shouldn't use that much.
  2. I should've said setCustomModelResourceLocation, my mistake. Fixed now.
  3. I should've said setCustomModelResourceLocation, my mistake. Fixed now.
  4. Ok, I seem to have it sorted. My proxies were messed up, so it turned out preInit wasn't getting called on the common proxy. That would explain things. ModelLoader.setCustomModelResourceLocation goes in preInit setCustomModelResourceLocation.register goes in Init (or it gets null items and crashes) OBJLoader goes in preInit If the modelmesher should be in preInit then... it works in Init so it's going to stay like that unless there is a good reason not to. This thread can now be closed.
  5. Ok, I seem to have it sorted. My proxies were messed up, so it turned out preInit wasn't getting called on the common proxy. That would explain things. ModelLoader.setCustomModelResourceLocation goes in preInit setCustomModelResourceLocation.register goes in Init (or it gets null items and crashes) OBJLoader goes in preInit If the modelmesher should be in preInit then... it works in Init so it's going to stay like that unless there is a good reason not to. This thread can now be closed.
  6. ModelLoader#setCustomModelResourceLocation crashes the game with a nullpointer, log here: https://gist.github.com/anonymous/e51d50dc534d1536fd6fd4893d543f4f Edit: If it's put in postInit it doesn't crash. It just doesn't work either. You say to put it in preInit, but my items are not registered until Init. I tried registering in preInit and it crashed. Maybe my whole setup is just weird.
  7. ModelLoader#setCustomModelResourceLocation crashes the game with a nullpointer, log here: https://gist.github.com/anonymous/e51d50dc534d1536fd6fd4893d543f4f Edit: If it's put in postInit it doesn't crash. It just doesn't work either. You say to put it in preInit, but my items are not registered until Init. I tried registering in preInit and it crashed. Maybe my whole setup is just weird.
  8. https://gist.github.com/anonymous/b341d432601672d4d415b92315735d77 The copper works here because it was registered as an item http://prntscr.com/b9va9c -> I will try the different render methods now
  9. https://gist.github.com/anonymous/b341d432601672d4d415b92315735d77 The copper works here because it was registered as an item http://prntscr.com/b9va9c -> I will try the different render methods now
  10. I have created a bunch of ingots which are all currently separate items, and I want to put them all into one item with metadata. I have the items created, but cannot get the models to load. If I have an item using the model, it works in the meta item. However, once I unregister the ingot the model no longer loads on the meta item. Is the item model not getting loaded by the meta item or something? Thanks, Destiny PS. All variants of the meta item are registered in the ItemModelMesher, so that is not the issue.
  11. I have created a bunch of ingots which are all currently separate items, and I want to put them all into one item with metadata. I have the items created, but cannot get the models to load. If I have an item using the model, it works in the meta item. However, once I unregister the ingot the model no longer loads on the meta item. Is the item model not getting loaded by the meta item or something? Thanks, Destiny PS. All variants of the meta item are registered in the ItemModelMesher, so that is not the issue.
  12. Yeah I had textures upside down too. Solution? Invert the textures on your model. Maybe not the correct way, but it works.
  13. I want to make a light that can face in any direction, and cast a beam of light in that direction. How could I do this without using fake air blocks? And if the light level can be greater than 15 that would be cool. Thanks
  14. Use an OBJ model both of these problems will be solved. Unless you need it to do special stuff.
  15. If it's showing the escape menu because it thinks it's lost focus or whatever, do F3+P and it won't auto-pause.
  16. So you've looked at CommandBase... Clearly, not for long enough to realise that processCommand takes the arguments ICommandSender sender, String[] args, and none of your double nonsense. If you don't understand how to get your numbers from the arguments, go learn java.
  17. If you want to actually create json models I would recommend MrCrayfish's model maker, if you haven't found it already. https://mrcrayfish.com/tools?id=mc
  18. I may be wrong, but I believe 3D models are better for framerate. I don't know for certain, but TESRs seem to be discouraged, given that they update on every frame. Also, models are easier. But if you need anything custom then TESR is kinda necessary. I am probably wrong. I usually am.
  19. I'm assuming you can't use an obj model for this? It would be much easier, providing it's a static model. Also TESRs are kinda weird - if you look up at one it will disappear... although I'm sure there's a GLStateManager option to disable this.
  20. Ok I have a model mostly working. I know you can rotate voxels, using "variable" : "angle", and specify an axis with "variable" : "axis_whatever", but is there a way to define where the voxel will rotate around? I'm having this issue with rotations:
  21. Well, after staring at that code for literally 2 days, I kinda get it. So I made this: [embed=425,349] <iframe width="640" height="360" src="https://www.youtube.com/embed/dqI9TyHCnBg" frameborder="0" allowfullscreen></iframe> [/embed] But I don't know how to change the rotation centres... because at the moment they all rotate around the centre front block. Clearly at the moment it's not right
  22. This is what I've been trying to do for the last... a long time. Be warned, the system isn't exactly easy to use. It also limits you to json files from what I can tell*, so models can't be bigger than 3** blocks or they just don't render. *There is a mention of b3d in the example - it didn't work when I enabled it **JSON files, god damn JSON files. If you find a good solution for this, please let me know. Edit: Obj models work, for the base, but then the top will not work.
  23. Ok, so a while back, Choonster pointed me towards the Forge animation system. I have that working now (I know, a long time - I kinda dismissed it the first time around, it didn't work), but I really do not understand the system. Could someone explain how this is done? Adding parts, setting animation clips for them, etc. I modified the example jsons to make this: http://prntscr.com/apeof7 (left: modified, right: example code) But I do not know how to change things beyond the json file (which I kinda half-guessed and figured out) And sorry to make so many posts - but there are no tutorials that I can find on this
  24. Try setting your Kd values to 1.00, 1.00, 1.00. I believe they alter brightness, which is probably what your issue is here.
  25. Look in the EnumChatFormatting class.
×
×
  • Create New...

Important Information

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