New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] [Powerslave/Exhumed] Raze 1.1.2 - Using heart item causes graphical error #415
Comments
You are not the first person to report corruption when using the heart, but I can't reproduce it myself. |
It shouldn't be mod related, but I have no idea what causes this random stupidity. I used to be able to trigger it randomly in vanilla, but nothing as of late. It seemed to be more common when continuing a game from a save as opposed to starting fresh. |
It's probably one of the animation sequences being fucked up. That entire code is an atrocity of bad sprite offsets being compensated by animations that have the screen offset baked in. |
How many Exhumed mods actually exist? Might be worth doing that anyway. |
Not many, that's for sure. And from what I've seen, they're all just maps. |
@coelckers I can attach a save file. |
Well.... zero? There's only one custom map pack with 3 levels. Voxel pack which only replaces some sprites with voxels. Skybox addon which just updates skyboxes and a small mini addon which replaces M60 sprites. Powerslave/Exhumed is not really good for modding and its low popularity never spawned serious mods, You should go ahead and torn that apart and then built proper animations out of the sprites. |
That's... very interesting. Actually all there ever was made for PS/Exhumed are very small scale mods and some visual enhancements? Great news since it means this can be reworked in a sane fashion without risking to break any mods at all (since there's almost... nothing to break to begin with). |
Yeah, and there's also upscale pack for that too, but again, this is just a visual enhancement. So @coelckers should go ahead and rewrite that if that helps. Nothing will be lost. |
Closing because I have never been able to reproduce this. |
After writing the comment above, it occurred to me that I had used the heart item several times in that level prior to encountering this glitch — perhaps, say, about half a dozen times (while wondering why I wasn't running out of hearts), but I wasn't counting — and 250 is pretty close to a power of two — off by half a dozen, in fact — as if the counter for this item had been corrupted by some kind of overflow bug. Meanwhile, as I noted in my testing of the graphical glitch, the game seemed to be using the heart when I loaded my save from the main menu immediately after starting Raze. So I got an idea for reproducing the glitch from scratch, and it works. The following was done after renaming my
If you unzip that third save and open "items":[255,0,0,0,0,0,0,0] where the number of hearts which should be At this point, I jumped into the water so the fish kept biting, and repeatedly
After doing this enough times, the glitch appeared: save0003.zip The weird sprites start showing up on the screen when the heart item's counter reaches 249. So I believe the root cause of the graphics glitch is that, when loading a save in which the player has less than full health, the game may erroneously use a heart even if there is no heart to use. I tested this on I started a new game, ran to the first enemies, took damage, saved the game (save0004.zip), exited Raze, opened Raze, loaded the save, and saved again (save0005.zip). In this last save, I now have a heart selected in the inventory, and it shouldn't exist. Unzipping this last save's Edit: The bug I'm seeing is clearly not just a graphics glitch, even if it is the root cause of one, so I've created a separate issue, #888. |
Happened in level 2- using the heart item causes a glitch where a sprite covers the center of the screen, and makes the game virtually unplayable.
The text was updated successfully, but these errors were encountered: