Voidswrath-Support / Bug-reports

Bug reports for the Voidswrath launcher, and Voidswrath modpacks
0 stars 5 forks source link

/Kill Or blackhole deathcycle(Bug/glitch) #7

Open GameSenseKri opened 4 years ago

GameSenseKri commented 4 years ago

Describe the bug I loaded into my world , I did /kill because I hoping it to reset my radiation contamination . but when I /kill I I didn't die and it didn't bring up the words "you died" . your screen would start shaking and you can't pick up items but you can break block and many other things(fly AoE on Red Katar etc.)

Steps to reproduce How to reproduce the bug goes here. For example: Step 1: / Kill or sometimes when you get sucked into a black hole ( This bug happened to Atlantic craft in a earlier episode of CC4) Step 2: There is no stop 2.

Expected Behavior I expected to die and I was just going to pick up back my loot since I was at my house.

Screenshots This isn't a great screenshot because I had to use the screenshot from xbox game bar but you can see that my screen is sideways . ( I accidently dropped my royal guardian sword and it disappeared while writing this report.

Crash Report ``` ```
Additional Information - Launcher bug [Y/N]: - Modpack: Crazy Craft 4 - Additional mods: Veinminer 1.7.10 - Operating system: Windows 10

Additional Information List any additional information you wish to provide. This exact glitch happened to Atlantic craft and this is what I think the glitch is, I think it might be just repeating the death animation over and over again. I made a copy of the world , it was also bugged in both the copy and the original .

HbmMods commented 4 years ago

Becoming a ghost like that is an interesting phenomenon that used to happen all the time with black holes (which should have been fixed by now but apparently still happens).

Basically, both the player's health and the absorption amount (i.e. the golden hearts granted by the potion effect) assume the value of NaN which often happens in calculations where infinity is involved. It's easy to reproduce since it will always happen if the player receives infinite damage while having more than 0 armor points (since having armor activates the resistance calculation, and divisions using infinity values create NaN).

A current workaround would be to commit suicide with a weapon that does not deal damage but rather sets the health to 0, direct assignment of the health value is the only real way to get rid of NaN. Off the top of my head, that would be getting hit by a schrabidium hammer or getting the ! ! ! potion effect (which can be caused by a direct hit of the B93 or by using a CBT device), so long the potion effect doesn't conflict with something else (which it usually does if witchery is installed, but that can be fixed in the config). However, dying like this will not drop the inventory nor any XP, but it will leave all other playerdata untouched.

Since this is an issue that also affects Nuclear Tech, I've added an automated check that detects NaN values and overrides them with the player's max health. That means that, assuming godzilla always causes NaN situations, every time you get hit your life will be restored, rendering him pretty much powerless (besides, you know, trampling the landscape). This fix will be in the release scheduled for Sunday, hopefully it'll prevent people from having to reset their player files in the future.

DoctorBang commented 4 years ago

So this is going to be fixed with the next HBM update @HbmMods ?

HbmMods commented 4 years ago

The fix is in the most recent version, X3654. I tested it with the health value getting set set to NaN directly as well as with infinite damage causing NaN, both times the player health got restored instantly, so I'm rather confident that it should work for all situations.

DoctorBang commented 4 years ago

Alright, awesome!