Hmm. OK thanks for confirming. The bug was very similar though I think.I just double checked, the bug is still in 1.8. Maybe you are thinking of another bug, but this is the first time it has been seen
Hmm. OK thanks for confirming. The bug was very similar though I think.I just double checked, the bug is still in 1.8. Maybe you are thinking of another bug, but this is the first time it has been seen
How he even noticed that I have no idea...
And I can honestly say that I would never notice one misplaced symbol no matter how carefully I looked.He literally looked for it one hunk of the code at a time.
Well I'm guessing he listened for packets and logged their size, then saw how many entries they had. Thought it was wrong, then looked to where the packet came from. He then would've noticed it wasn't going through the if statement that only send specific tiles and found the issue. When I have an issue in anything I code I log every variable I can to see where it went wrong so it's not an unusual practiceAnd I can honestly say that I would never notice one misplaced symbol no matter how carefully I looked.
I'm glad he did, though, because that means now things might not be as horrible as they were before for people who decided to stick to 1.7.10 until 1.8 is stable (which is still going to take a long, long while).He could have not wasted his time. This issue has been spoken about, that is why it was fixed in 1.8, however if he can solve it for 1.7 that is good.
And I need to learn how to do this, it sounds amazing.Well I'm guessing he listened for packets and logged their size, then saw how many entries they had. Thought it was wrong, then looked to where the packet came from. He then would've noticed it wasn't going through the if statement that only send specific tiles and found the issue. When I have an issue in anything I code I log every variable I can to see where it went wrong so it's not an unusual practice
So skyboy found something interesting in minecraft's code: IRC Log
If you are interested, here is the method causing the issue (The problem occurs on line 25): Pastebin
More technical description of issue:So as a result skyboy has put a fix into the latest CoFHCore which patches this method. The latest update can be downloaded hereThe method I have linked in the pastebin will check if the number of tiles that need to update is 64. If it is equal to 64, use this method that sends data related to tiles that are in the y-levels the player will see. If it is anything else (above or below) then use this method that sends data for every tile (even underground). In 1.6 instead of it only being 64 it would send only needed tiles if the number of tiles was 64 or greater and send all if it was less.
The problem is that in 1.7 pretty much every time it will send data for every single tile to the client regardless of whether it is visible. Even if there are 4000 or so tiles. The intended method is to reduce the amount of tiles we need to update by only updating tiles that are in a given range of y values. However since mojang used == (equal to) instead of >= (greater than or equal to) we get the terrible worldgen lag
I should also point out that net.minecraftforge.common.ForgeModContainer.clumpingThreshold which you see in line 25 of that pastebin is equal to 64
http://minecraft.curseforge.com/mc-mods/69162-cofhcore/files/2222240
It seems like an extremely easy mistake to make though.A "==" doesn't make any sense there whatsoever.
Maybe it was one Mojang employee who wasn't pleased with the Microsoft thing and snuck in this tiny bug.
Just speculating here...
What I'm thinking is that it's a stab at the people who will be affected by that kind of change *coughs* us *coughs*. But I could be completely wrongA "==" doesn't make any sense there whatsoever.
Maybe it was one Mojang employee who wasn't pleased with the Microsoft thing and snuck in this tiny bug.
Just speculating here...
*cough* Microsoft's offices *cough*Make it into Direwolf? Make it to the Mojang offices, I'd say. If they can fix this for every copy of Minecraft by changing one letter, it'd be worth the effort.
Make it into Direwolf? Make it to the Mojang offices, I'd say. If they can fix this for every copy of Minecraft by changing one letter, it'd be worth the effort.
No it's vanillaIf I understood correctly, this is an issue with Forge, not vanilla Minecraft.
HuehuehuehueOne more post on this subject and, according to my personal code of ethics, I get to be a total ass
So...I'm totally loving this discussion about recent events. Can't help but wonder tho: what's new in modded minecraft today?The bug only causes problems in modded Minecraft (please look in my sig for a disclaimer ).
Hmmmmm let me see... no idea.So...I'm totally loving this discussion about recent events. Can't help but wonder tho: what's new in modded minecraft today?
You were warned...