sp614x / optifine

1.81k stars 418 forks source link

[1.16.x] Hostile mobs appearing invisible and invulnerable. #5016

Closed dabulue closed 3 years ago

dabulue commented 4 years ago

https://github.com/sp614x/optifine/issues/4351

This exact issue is still in this mod and it makes the game unplayable with OptiFine. Stop closing issues that are not fixed.

Horos402 commented 3 years ago

Also they're not just invisible, they're invincible to melee attacks. This is not just a visual glitch.

I tried shooting them with projectile weapons like bow, crossbow, trident and I can kill them.

Lythael commented 3 years ago

Also they're not just invisible, they're invincible to melee attacks. This is not just a visual glitch.

I tried shooting them with projectile weapons like bow, crossbow, trident and I can kill them.

Invincible to MELEE ATTACKS. Ranged attacks including Trident throw can kill them just fine but melee attacks don't register at all.

thealagator commented 3 years ago

Trying to contribute as well here. My experience playing in multiplayer server / realms this already happened in pretty much every hostile mobs as far as I can remember, including skeletons, creepers, zombies, wither skeletons, piglins, zombified piglins, hoglins, and the baby variants. I already lost count how many times I died because of this.

Invincible to MELEE ATTACKS. Ranged attacks including Trident throw can kill them just fine but melee attacks don't register at all.

I remember specifically killing a few glitched mobs by randomly swinging my swords, so I'm guessing this is purely visual (gotta admit it's pretty hard to even get a hit once, I got a clean hit by running into a corner and start spamming clicks). And if I remember correctly even when hitting one of them even with fire aspect sword the fire animation isn't even visible on them though I can still hear them taking fire damage.

I use only some datapacks from vanillatweaks and I mostly play with no shaders. I don't tweak any setting other than what's already installed iirc.

Hopefully this gets fixed soon.

optionsof.txt options.txt

iobiarg commented 3 years ago

I'm having the same issue, but it affects all entities, both modded and not modded. Villagers appear some with normal body and white head, others in black with almost all the shaders I've tried, but with sildurs, and there they are transparent. Modded animals have weird black parts. Humanoid enemies the same.

I was running on a msi gtx 560 ti, and i though "okey, this thing is old AF, maybe if I get a newer this will be fixed", so I bought a used Evga 1060 3gb, but for my surprise the glitch is still there, just with more fps... -.-°

Next to me, there is a super-duper modern pc from my bf, with a graphic card that cost the double than my full computer, and I copied every single mod, shader, forge version, optifine, and he is not having the issue... so I feel like killing myself since I installed Mc there just to try this issue, because he doesn't like the game....

So, is there a way to use a fricking shaderpack but with entities working or I have to give up on the idea...?

sp614x commented 3 years ago

The invisible mobs are now 100% reproducible thanks to @Zombie (discord) for providing the exact steps

sp614x commented 3 years ago

There is a specific combination of factors that triggers the bug

  1. Smooth World ON - this seems to be the main trigger
  2. Render distance between 8 and 16
  3. Entity Distance 100%
  4. Move along the chunk diagonals for 7 or 8 chunks, then come back

And the most strange:

The simple solution for now is to disable Smooth World

sp614x commented 3 years ago

The client and server mobs were getting out of sync in a very specific distance from the player when smooth world was enabled

The entity behavior have been changed in 1.15.x, but OF 1.15.x is not affected as there the client entities know that they are persistent. In 1.16.x the client entities don't know that they are persistent and the desync allows them to despawn. 1.14.x and older shouldn't be affected.

This specific bug is also present in 1.15.x, but can't produce invisible entities because the client entities know they shouldn't despawn. The same bug is not present in 1.14.x, the logic there is correct.

Reports for older versions may be a different bug, mod conflicts or even a vanilla bug.

sp614x commented 3 years ago

Fixed in 1.16.5_HD_U_G7_pre9

Lythael commented 3 years ago

Fixed in 1.16.5_HD_U_G7_pre9

Nice thanks. Hopefully this issue is gone for good now.

iobiarg commented 3 years ago

at least for me the issue is still there with the new preview and changing to the settings you mention... T_T i get this issue with most of the shadders but with two as i posted on discord.. let me know if this information is of any help

takinotomo commented 3 years ago

IT IS ACTUALLY GETTING FIXED HALLELUJAH

NoMoreStars commented 3 years ago

Just thought I'd mention that I'm still experiencing problems with invisible mobs in 1.16.5_HD_U_G7_pre10 when I encountered an invisible Zombie Villager the other day. Strangely enough, I was able to see a small bit of a texture on it (it may have been wearing some modded armor?) and was able to damage it, but I think that bug is still there as of writing. Here's also an example of a villager with a broken texture that I'm assuming is related to this issue.

2021-02-18_09 07 45

iobiarg commented 3 years ago

Just thought I'd mention that I'm still experiencing problems with invisible mobs in 1.16.5_HD_U_G7_pre10 when I encountered an invisible Zombie Villager the other day. Strangely enough, I was able to see a small bit of a texture on it (it may have been wearing some modded armor?) and was able to damage it, but I think that bug is still there as of writing. Here's also an example of a villager with a broken texture that I'm assuming is related to this issue.

2021-02-18_09 07 45

I have the same issue, but Xavi from MakeUpUltraFast, made a version of his shader that fix this, (but some of the nether mobs still have problems)

NoMoreStars commented 3 years ago

I have the same issue, but Xavi from MakeUpUltraFast, made a version of his shader that fix this, (but some of the nether mobs still have problems)

Thought I'd give the MakeUp shaders a try, and while it does fix invisible textures, the textures are still broken, just no longer transparent. But I think this at least confirms that the issue of broken textures on mobs isn't exclusive to any one shaderpack.

2021-02-18_12 17 21

iobiarg commented 3 years ago

Check the shader config, there should be a option on the bottom left... if not talk to Xavi, 2021-02-18_15 30 19

iobiarg commented 3 years ago

There are other 2 shaders that not give black entities, but one gives OpenGL error all the time (vanilla plus), and the other at least in my case that I have an old computer, it kills the fps (NV Shader),

Anyhow, if you talk to Xavi he is usually willing to help everyone (you can tell by the comments)

thatdude69420 commented 3 years ago

Hi guys. I had a similar problem where some entities would be invisible. And you would see two tile like features just hovering in the air in place of the entity. I am however able to attack and kill the entity.

The solution that worked for me was to simply turn off fast render in the performance settings. video settings/performance/fast render

But note that I have my mipmaps and antialiasing off. I also have my render distance to 2 chunks. My chunk update is 1. Smooth fps/world can either be on or off. I have a low end pc. I can't speak for higher end pc's or high settings. I do not have any shaders on. I have resource packs installed (along with pixel luminance). I also have about a 100 mods installed. So yea...

I hope this can help someone.

Sir-Satan commented 2 years ago

Has there been a fix for this yet? me and my wife play mc together a lot and using Optifine really helps with fps, i play with her on LAN servers exclusively and seem to have mobs becoming invisible, players becoming invisible if they spawn outside of the loaded chunks (if someone spawns in and the player isn't in a chunk they load they become invisible for some reason) and that in order to fix this you can relog into the world or use a mod to pick up the player that can't see you(idk why this works but it does, i mainly use tinkers piggy back to do this).

SeaOfPixels commented 2 years ago

I haven't run into this bug for a long time I just assumed it was fixed. Try updating your OptiFine if you haven't.

Sir-Satan commented 2 years ago

I haven't run into this bug for a long time I just assumed it was fixed. Try updating your OptiFine if you haven't.

it's the latest version of 1.16.5 and hasn't been updated in a year

NatsuiroShiroi commented 2 years ago

Hello guys, i put in Google "optifine invisible entities" and this thread came up, so I will comment on my problem here seeing that there are some who also suffered from it in past versions. With the optifine mod installed for 1.18.2 (version OptiFine_1.18.2_HD_U_H7) and practically all the performance improvements activated in the graphic options I get very good fps, and since there is no other mod for Forge as good (there is for Fabric ) I have come here to find a solution.

First I will explain the context in which the problem is developed:

I'm playing with the MineColonies mod and a few others that don't affect the graphics. The colony expands in chunks as I build new buildings, and once I got past 12 chunks of render distance and simulation distance, two different options, the entities that were outside of there could become invisible and you couldn't touch them even if you listen to them. If I moved away from some chunks and got closer to them, they would appear again, and that's quite annoying if I want to go from one point to another to work with npcs and they don't appear.

But the worst came today when i had several villagers with books of all kinds stored in a room that had open. Several pillagers appeared and I killed the one with the banner and a raid began, which in principle is not difficult to kill. What happened? Of the first five pillagers, only four appeared, and the last one remained invisible because it sure spawned a chunk more than it should have, right on the edge. I checked the minimap, all over town, underground and nothing. I went to where the villagers were, I went out to the main menu, I went back in and surprise surprise, 7 pillagers from the next raid were waiting for me in my face next to the villagers. Well, I killed them thinking it was a temporary graphical bug, but the raid didn't send me any more waves and I decided to go back to the main menu and go back in. Surprise surprise again, a ravager and 8 pillagers appeared right in front of me, they killed me and they killed a villager and a colony guard, all because they were invisible, and when I say they were invisible it's not that they could be beaten, it's that they still existed in the game and were moving as expected, but the player is not renderering them and it is impossible to locate them.

When the MineColonies npcs started to become invisible I thought it was because of that mod with some graphical glitch, which wouldn't make much sense either, but now I know it's because of Optifine, either because of the version itself or because of the mod itself, because it affected a vanilla part of the game without any mod content.

I don't know if there is any solution for the problem, some graphic option that I have to modify so that this stops happening. The mod optimizes the fps well, but I will have to stop using it if it starts to give these serious problems at a general level on the server I host.

If the person in charge of the mod or any other user can help me with this problem I would greatly appreciate it.

Tom28281 commented 2 months ago

still happening in 1.12 version HD_U_G5