sp614x / optifine

1.8k stars 418 forks source link

Invisible hostile mobs. #1892

Closed Numpty-Clodpole closed 3 years ago

Numpty-Clodpole commented 6 years ago

Edit as of 31 January 2021:

So, I've started poking around in Minecraft again, and this issue is still occurring in 1.16.5 for me. I exclusively play on servers (running the 'Paper' server software), and this is where I encounter invisible mobs.

According to the 72 (wow! o.o) comments on here, it seems this never stopped being an issue.

Right now I'm using these:

image

The issue is still as infrequent as ever, and annoying to reproduce. I'm currently unable to intentionally make it happen, but it happens when I really don't want it to... funny how the world works like that, lol.

Looks like there's another large thread (#5006) from 6 November 2020, where people are experiencing it as well.


Edit as of 03 August 2020:

I have not actively played Minecraft since I reported this issue, but based on the infrequent comments which keep reconfirming it, it's likely still an issue.

Please read through all the comments on this before replying. If at all possible, try to provide the same information sp614x asked of me when/if you do comment. This is important.

Since I am inactive on this, it may even be worth opening your own issue for it. I'm not really sure what sp614x's policy on this is.


Original submission on 12 October 2018:

This has affected all versions of the 1.13.1 previews, from alpha, through beta, and now in pre5. I am not the only one experiencing it, as others have asked me if it has been fixed yet.

Invisible zombie in OptiFine 1.13.1 pre5, with it attacking me and subtitles showing it's there: https://giant.gfycat.com/NeglectedCarefulJohndory.webm

Visible zombie in vanilla; same exact spot: https://giant.gfycat.com/ClutteredMildGrizzlybear.webm

The bug is random, and sometimes mobs are visible, other times they're not. In vanilla, it never occurs and all mobs are always visible. This is also not limited to servers; it happens in single player, and only with OptiFine. In my opinion, this is a rather game-breaking bug since I almost exclusively play Survival.

All needed information can be seen in both of the above webms, I have my F3 menu open, which displays hardware, game version, etc.

Side note: If you'd rather I use a different file host for the two webms (like YouTube) let me know. I know that not everyone is aware of Gfycat, so it can look like a sketchy link.

PossessedRyd commented 4 years ago

So im on 1.16.1 HD U G2 on a fabric-carpet server. And all the invisible mobs ive come across seem to happen when i make a dramatic change in elevation. Ive got a skeleton in a cage fully surrounded with glass and when i relog in the area i can see him fine. However if i fly up about 70 or so blocks and onto a ledge out of sight of the skelly he then becomes invisible when i come back. If i relog this will always fix the issue and any invisible mobs become visible again. For me this is happening within the spawn chunks but it doesnt only happen from my player getting so far away as to deload the entitiy. Getting about three to four chunks away and out of sight of the mob is what causes mobs to become invisbile. Also it seems to happen more often when im flying working in an area of my world that has a big hole that goes between sea level and bedrock. The unvisibleness only occurs when i travel between the two Y levels and i cant be within a chunk or so of the mob.

Edit: Also i seem to be able to hit the unvisible mobs just fine with a bow if i just launch a volley in the direction im pretty sure they are. Im not sure if i am unable to hit them with melee because they dont register or if im just aiming in the wrong spots.

santibag commented 4 years ago

1.16.3 Still happening. Vanilla single player. Happens with or without resource packs.

I noticed that visible mobs may become invisible after death/reload of their chunk.

I didn't notice this on pure vanilla without Optifine.

PhatBoi68419 commented 4 years ago

Still happening, I've only experienced this with optifine throughout 1.16, and am currently using 1.16.3. For me it happens most often in the nether, but that could just be because I constantly run into newly generated mobs there and almost never in the overworld. 9/25/20

SeaOfPixels commented 4 years ago

Still an issue and is a major one.

Cooliosity commented 4 years ago

Still an issue and is a major one.

spx probably will never fix this anyways and you should just switch to sodium anyways since it is a better mod

Numpty-Clodpole commented 4 years ago

Still an issue and is a major one.

spx probably will never fix this anyways and you should just switch to sodium anyways since it is a better mod

Uh, sp614x added this to their 'todo' pile, which is rather large. When they have time to work on issues that are not affecting the majority (we are an extreme minority) then they go through their 'todo' list.

Also, if you read through the first comments on this issue, you'll find that sp614x was unable to reproduce it on their end. They still need someone to give them an infallible way to reproduce it. A while back, I outlined this in an edit to the main issue.

Now regarding Sodium, as nice as its massive performance boost is for potatoes, it lacks many of the features OptiFine offers. Shaders, and CTM being two huge ones for me; neither of which function with Sodium, despite there being Fabric mods for them. Sodium is listed as being incompatible with them.

Cooliosity commented 4 years ago

Still an issue and is a major one.

spx probably will never fix this anyways and you should just switch to sodium anyways since it is a better mod

Uh, sp614x added this to their 'todo' pile, which is rather large. When they have time to work on issues that are not affecting the majority (we are an extreme minority) then they go through their 'todo' list.

Also, if you read through the first comments on this issue, you'll find that sp614x was unable to reproduce it on their end. They still need someone to give them an infallible way to reproduce it. A while back, I outlined this in an edit to the main issue.

Now regarding Sodium, as nice as its massive performance boost is for potatoes, it lacks many of the features OptiFine offers. Shaders, and CTM being two huge ones for me; neither of which function with Sodium, despite there being Fabric mods for them. Sodium is listed as being incompatible with them.

Maybe they should make optifine open-source then? I'm sure there is at least one person out there that is capable of reproducing and fixing this bug and has the time to do it.

bdotsamir commented 4 years ago

Maybe they should make optifine open-source then? I'm sure there is at least one person out there that is capable of reproducing and fixing this bug and has the time to do it.

@ShabanPlayz Hello, Support member checking in here, Optifine will never be open source. Taken directly from the discord:

The core of OptiFine consists of many, various changes to Minecraft's rendering code. Rather than simple patches, these are significant reorganizations. This means publishing the full source code of OptiFine would be a direct violation of Minecraft's EULA. Technically, it would be possible to extract the actual changes as patches, which can then be published to GitHub as source code. However, there are a number of issues with this idea. First, OptiFine is built on a custom version of Mod Coder Pack. This non-standard version of MCP is used to allow OptiFine to start development on new versions of the game much, much earlier. During this time, official MCP mappings are either completely missing, or otherwise very unstable. Unfortunately, according to the MCP license and Terms of Usage, modified versions of MCP scripts are not allowed to be distributed. This means that, even if OptiFine patches were released, nobody else would be able to collaborate on the code, defeating the entire purpose of going open-source. Even if somehow all of that was solved, this would still mean significantly changing how OptiFine development is handled. sp614x does not work on the mod using patches, which means he would have to either merge the patches manually, or completely change his entire workflow to use patches. Changing the development process like this would not be a trivial task in the slightest.

In summary, due to a multitude of legal and technical complications, sp614x cannot make OptiFine open-source

The-Archives commented 4 years ago

This is a huge, near-gamebreaking issue which has been reported on reddit too. occurs in both the overworld and the nether. please look into this.

ItsTheBat commented 3 years ago

Still happening, I've only experienced this with optifine throughout 1.16, and am currently using 1.16.3. For me it happens most often in the nether, but that could just be because I constantly run into newly generated mobs there and almost never in the overworld. 9/25/20

I faced similar issue in nether. Also in overworld sometimes. It especially occurs when entering a newly loaded chunks.

For example, I entered a new bastion in nether after travelling long distance through my nether highway. When I entered it, i could not see any Piglin or Piglin Brutes, but I could hear them and I took severe damage(even in full Netherite armor).

I retreated to a safe spot and then quit to main menu and re-entered the world, they are now visible. For players who suffer this issue, this might be a temporary fix.

When I reopened the world back there were 4 Piglins and 2 Piglin brutes waiting for me.

TomLewis commented 3 years ago

I run a 1.12.2 Paper server with ViaVersion that allows up to 1.16.3 clients to join, and all users that use Optifine experience Invisible entities, Including myself. F3+A shows them again, until they move out of your vision/chunk. I have tried all versions of Optifine for 1.12.2, they all make entities invisible, I have been trying to solve this for years thinking it was my server at fault.

I have found a way to re-produce this 100% of the time as this invisible entity bug produces another odd bug with blocks for my specific setup. I use a plugin called Movecraft that allows players to build vehicles (ships) out of normal Minecraft blocks they can sail across the sea, this means they can build a ship and sail it, the blocks of their ships get auto moved when they sail! Now I have found that this exact same glitch makes the bocks go invisible when they are updating after sailing for a few seconds. This never happens with a vanilla client.

This is what sailing a ship & invisible blocks look like with optifine:

Movecraft invisible blocks with optifine

What I have noticed with entities like players, is they still make sound and I can see where people are walking from particles near their feet.

@sp614x if there is a way for me to help debug by installing something on my server and testing with players, I can do this.

For my organisation, related ticket https://github.com/eirikh1996/Movecraft/issues/64

Incase you wanted to test yourself; https://piratemc.com mc.piratemc.com

You can find me on Discord GodsDead#4614 if you wanted to join when im online to create and sail a ship with you.

exapsy commented 3 years ago

This still happens, I'm reporting from Singleplayer, it's not in any way only a multiplayer issue. It's definitely a game breaking bug. :/ But it seems like there are no solutions, no way for anyone to contribute, nor I see any traction or interest from maintainers which is ... sad. :(

Siuolplex commented 3 years ago

Alright, I decided to pull together a current list of known things relating to this glitch. The current knowledge is:

  1. It seems to be a chunk loading thing.
  2. It is more common on Spigot Servers. But has happened in Vanilla Singleplayer+Multiplayer, and Fabric Multiplayer. Its unknown if Fabric SP and Forge Multi or Singleplayer suffer from it but it can be assumed so.
  3. It seems pretty random, as recreation of the glitch is pretty inconsistent.
  4. Reports date back to 1.12.2 Along with this, an idea of it being 8 core only problem has been thrown around. While seemingly not objected to, the glitch's sample size might indicate this as false. I personally recommend people try 1.11 and below to see if this is 1.12.2+ specific or not.
Cooliosity commented 3 years ago

Alright, I decided to pull together a current list of known things relating to this glitch. The current knowledge is:

1. It seems to be a chunk loading thing.

2. It is more common on Spigot Servers. But has happened in Vanilla Singleplayer+Multiplayer, and Fabric Multiplayer. Its unknown if Fabric SP and Forge Multi or Singleplayer suffer from it but it can be assumed so.

3. It seems pretty random, as recreation of the glitch is pretty inconsistent.

4. Reports date back to 1.12.2
   Along with this, an idea of it being 8 core only problem has been thrown around. While seemingly not objected to, the glitch's sample size might indicate this as false.
   I personally recommend people try 1.11 and below to see if this is 1.12.2+ specific or not.

I have a dual core processor and I suffer from this glitch

Siuolplex commented 3 years ago

I have a dual core processor and I suffer from this glitch

Duely noted.

Siuolplex commented 3 years ago

By the way, has there been ANY reports about this bug on 1.14.4?

BobBobilou commented 3 years ago

This really need to be fix because it almost made 1 years since each time I upgrade to an new version of optifine, almost each world had this bug. I play hardcore so there nothing more frustrating than get kill by an invisible mod. I use 1.16.4 HD_U_G5.jar you can it the invisible mod by punching with an sword an mod next to it can burn the mod by lighting the block below him. Please fix this bug it break the game a lot and I love optifine so I dont want to have to play minecraft without any mod.

Carlifoxy commented 3 years ago

Is there any solution ? I have a harcore world and I had to stop using optifine so that the invisible entities wouldn't kill me, it's not pretty to play at 20fps because I don't feel safe using optifine

Cooliosity commented 3 years ago

Is there any solution ? I have a harcore world and I had to stop using optifine so that the invisible entities wouldn't kill me, it's not pretty to play at 20fps because I don't feel safe using optifine

install sodium, lithium and phosphor

berkkrkc09 commented 3 years ago

This is happenning to me on 1.16.4(with forge) singleplayer as well. But I play with around 200 mods and it takes 5 minutes every time I launch the game, plus loading worlds take 1 to 2 minutes too. People keep telling to restart the game. Restarting is not a fix it is a workaround and this needs to get fixed. All mods that optimise the Vanilla lighting engine(Sodium, Lithium, Phosphor...) are for fabric so there is no other way but waiting for Forge users.

linustrain commented 3 years ago

I had this problem a while back and uninstalled Optifine, here was my F3 screen at the time: https://imgur.com/a/1xgGtGq (There are piglins in those glass bartering stations) I opened an issue (#4922) because I saw that this had been closed when it was still occurring in my 1.16.3 game. You can see some more information there. The invisible mobs would reappear if you save & exit and reenter the game. Optifine is my only mod, though at one point I did have shaders (BSL Shaders I think) but I don't think they affected anything. Let me know if there's any more information I can put here to help fix this, I'd like to reinstall Optifine if this gets fixed. I don't remember my specific settings I had in Optifine at the time since this was several months ago.

SkyeMors commented 3 years ago

Looks like this is (a?) main thread for this.

Encountering this (invisible hostile mobs) in MC 1.16.5 with OptiFine_1.16.5_HD_U_G6 and Forge 36.0.0. Walking around, hear Hmm and get shot at, nothing nearby and seems there's 2-3 wandering Pillagers that are active but are otherwise unloaded. No model, no shadow, still show up on Xaero's minimap. Reloading world temporarily fixes this.

ZenIsBestWolf commented 3 years ago

We're now treating #5016 as the main issue, as it has become much more focused around 1.16. Please direct all relevant conversation about it to that issue.

Tom28281 commented 1 month ago

still happening in 1.12 version HD_U_G5

TomLewis commented 1 month ago

I ended up moving to fabulously optimised, they won't fix this.