Jump to content

LexManos

Forge Code God
  • Posts

    9273
  • Joined

  • Last visited

  • Days Won

    68

Everything posted by LexManos

  1. That's because there really is no block equivelent for that. You could listen for a entity spawn event for lightning and react to that.. But lighting can be anywhere. Where you propose the hook be placed?
  2. Update to 1.10.2.
  3. Logs and code.. Seriously should be simple if you read your thing..
  4. Can't keep up means that it takes longer then it should to tick everything on the server. Ticking has nothing to do with RAM. Its how fast your processor can work. There isn't a universal fix because there could be a lot of things slowing it down when it comes to mods. You have to use a profiler, like jprofiler or something to figure out the exact hot spots. But you could also just try killing mods and seeing if it helps.
  5. 1) Stop copy/pasting decompiled code 2) Stop copy/pasting decompiled code Seriously, you should learn what you're doing and why instead of copy pasting code.
  6. Update to 1.10.2.
  7. How many times do I have to explain this. when server call chunk.unload we stick it in a cache if the server calls chunk.load and it's in the cache it loads it instantly. When a DIMENSION UNLOADS it does world.unloadALLTHETHINGS When it does that it doesn't give a shit about the cache it just UNLOADS EVERYTHING. This isn't a hard concept. I told you what you have to do to do what you want in my first post. Throw down a chunkloader, there are TONS of mods out there that add them. All this config does is increase the size of that cache. The cache is ONLY used while the world is loaded. If a player walks across a chunk boundary the chunks on the edge of his view get unloaded. If he walks back and forth repeatidly, it loads and unloads the same chunks a lot. The cache saves those rapidly loaded/unloaded chunks in memory so they dont have to hit the disk. Its a REALLY simple concept.
  8. As I said before, No this is NOT the case. IF the DIMESNION unload ALL chunks unload, even the ones in the cache.
  9. the chunk cache does not prevent dimensions from unloading, if you want to do that throw a chunk loader into the world, or make sure you registry the dimension as a 'keepLoaded' dimension in code. The cache just helps the edge chunks that are being constantly loaded/unloaded.
  10. This is caused by either having a corrupt install or using a broken launcher. Delete the libraries folder, reinstall Forge and use the vanilla launcher.
  11. What launcher are you using?
  12. You're not initalizing the items whenever you want, you're doing it whenever the class is referenced. Which could be in placed you have no idea. Such as when other mods re running and then FML is like "Where the hell are these items coming from!?" And it screws up the registry and things go to hell... Its also a level of indirection magic that makes your code harder to understand. Technically YES you could write things like this, but you shouldn't as it has a lot of downfalls.
  13. Creating items in static constructors is typically a bad thing to do. Just setup your items normally in your init methods.
  14. Developing for 1.7.10 is not supported. Update. Beyond this 'expanding data types' is a rats nest that isn't worth going down. Looking at your old posts, there is no reason you need to expand biome ids. There are only ever 256 possible biomes per chunk. Fits perfectly in a byte.
  15. Commands shouldn't be localized. They should return text components that are localized automatically on the client side. Hence why the server side I18N is deprecated.
  16. Hey folks!!!! Great news. The contest was a hit and we've turned out some amazing new designs and logos. From everyone on the Forge team I want to say thanks for participating and giving us some awesome things to work with. With that said though you all aren't reading this to see me say thanks so lets get down to the important stuff, like you know, who the hell won. So without further distraction I present you our winner: By: PitchBright Now with every new thing something old must pass. So with that I'm also happy to announce that here is the next while we will also be updating the forums, website, and a few other things, to match our new branding. Thanks again to everyone who submitted entries to the contest. Cheers TheTrotter
  17. Oh dear god, start removing all those coremods.
  18. Read the comments. Deprecated methods happen all the time.
  19. No there isnt.
  20. And I dont know who you think you are to call a mod shit and say it should never be released or encouraged... The idea of modding is allowing people to work creativly on whatever they want to do.... I am LexManos, the lead developer of the most popular modding api for the Minecraft environment. I have over 4 years of experience working with Minecraft mods and the community. As well as over 20 years of development and modding experience in non-Minecraft realms. THAT is who I am. The ability for mods to kill the client SILENTLY was removed because people like YOU abused it for egotistical and petty reasons which harmed the end user and purposefully sent users to the wrong place for the cause. I have NOT removed any functionality. I have NOT hindered any mod in any way. You can still stop the process of you wish. I simply force the log to capture the correct cause so that the end user, and us here doing support, know how to handle it.
  21. Note: For runtime compatiblity with the most users, you should STILL have Java6 as your target. Most of the J7 features can be compiled to J6 specs.
  22. Either way we dont support hiding the cause. So you're out of luck, however just make your information as clear as possible as it will be printed directly above the trace.
  23. This is the exact reason we added the security manager, so that people CAN'T exit minecraft "without extra log lines" If minecraft closes, you NEED to know why. And if any mod is trying to HIDE from explaining why then that is a shit mod and should never be release/encouraged. We don't prevent the stop functionality, we just add a stacktrace so you know WHO stopped it. Just use the systems in place.
  24. That's already a thing. Biomes can specify what 'flowers' they want to have in their biome for bonemealing so if its not how you like it, either write a mod, or ask the mod author nicely to increase the ratios.
  25. Also, DO NOT run fundemental aspects of your code based off string comparisons of registry names. Seriously... Set a field for the opaquenss and use that...
×
×
  • Create New...

Important Information

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