cave-story-md
cave-story-md copied to clipboard
Sprites sometimes show as whiteboxes
Tested in real hardware, played the whole game and everything worked just fine, beautiful port by the way, but sometimes one or two sprites get corrupted. As i could notice, it seens to be just one frame of animation when it is on an animated objetc, other times is a droped item, some scrolling background, the weapon projectile sprites or a HUD element. Almost always is just one sprite that gets corrupted in the scene and it shows as a whitebox or garbage lines with the size of the sprite. Most of the time pausing and unpausing the game solves the problem, but not rarely a new sprite gets corrupted. Entering again a room or scene when theres a door available also fixes the corrupted sprites.
I think I know why this happened actually, forgot to do something that prevents an issue like this on some specific hardware models. Mind trying a patched ROM if I upload one here?
No problems! I'll happly test it and report back. If you need hardware specifics, i'm playing in a japanese Mega Drive model 1 (HAA-2510) with a 32X attached using a simples flashcart that i made (EPROM and FeRAM), i dont know exactly which motherboard revision, but if its important, i can look into it.
So yeah definitely forgot to pause the Z80 when doing DMA which can cause graphical issues. Don't remember which consoles it affects exactly but supposedly earlier model 1s are part of that group. Hopefully this build will fix that. If not, then maybe it isn't what I thought it was after all.
Hello, i have tested Egg Corridor and Grasstown and the problem seen to be almost gone. I had just two situations where the HUD level bar became white and another one that the gun projectile became corrupted. I will play more later to see if theres more situations
Ok, at least I'm on the right track. I bet it's just that there are more places I use DMA to upload graphics and need to take care of those too.
Might need to find a Japanese model 1 one of these days, but don't know if all of them do this or just the earlier board revisions. The spritesmind folks probably know.
Oh, and thank you for confirming!
Hello, I have a PAL Mega Drive VA6 modded for ntsc display, last couple of days i started playing this with version 0.6 , sprites were often corrupted. Now today checked the 0.7 release , its better : with fireball glitch is mostly gone , but still occurs on power triangles and enemy sprites... Otherwise, magnificent work Sir, I enjoy it a ton since genny/md lacked proper metroidvania
Edit: some evidence here https://share.icloud.com/photos/0pP2T1IjobDi-tU0rYDVQntjQ
Yesterday i tinkered a bit with ROM supplied within this topic. There are noticeable differences in behavior: fireball projectiles are less glitchy, but instead rocket launcher trail is all white boxes. Also in 0.7 when You spam fireball while exiting a room, projectiles appear in the new room (in build of 4 august they stay in the room where You fired it and reappear correctly with quick re-entering). The area I focused on is Labirynth W,H
Edit: and a blue screen, too https://share.icloud.com/photos/0Y7fNjJV4yrqh_J6FVSmGWIDQ
I think the white boxes are because I forgot to pause the z80 when loading sprite sheets during map load. That other thing your are describing is something different. I think the bullet array just needs to be cleared when the room loads too.
Aye, thanks for responding - now I know the overlord is watching this, thumbs up and fingers crossed. I'm realtively fresh to the mega drive. Gunstar Heroes will keep me occupied for now :)
I'd like to add my two cents. I have a PAL Mega Drive Model 1 VA6 with selectable dual main system oscillators and region/language switch. I play the game (v0.7.0) in NTSC mode, and while it works flawlessy most of the time, I have the same graphical glitches described here. I have not tested in PAL mode yet.
I got around this annoyance with pausing and unpausing the game, clears right up (0.7)
Mainly, the level bar becomes white often after I get damaged or change weapon if weapons are at the same level.
Now, I understand why the level bar becomes white. If I switch between weapons of the same level, the game thinks I haven't switched weapons and shows animation for weapon level point change. If I change back to the previous weapon while the level bar is white, the level bar stays white for ever.
The code for level bar detects level change, but not weapon change. When I switch between weapons of the same level, the game should not show level point change animation.
Hi I've seen there's been some progress lately, @andwn Would You consider an insider build to fool around? ( Yes I have bought Dezatopia and Mecha Ritz on Steam to show my support :) ) . Just yesterday I recieved new and fresh 8bitdo m30 gamepad , would love to jump in right into CS cheers
I was paid a flat sum to work on those lol. Here's what's currently in my build folder though: doukutsu-20220118.zip
Expect something to be broken somewhere I haven't even played past Egg Corridor, apart from testing random places from level select.
Thanks a lot sir, I played this build for some time yesterday, managed to get from waterway to the final boss -normal ending. The whiteboxes bug is mostly gone , visual corruption now happens on the outside edge of dialogue box (not always) , parallax clouds in outer wall area (minor) and water effects in waterway
https://share.icloud.com/photos/0afB4Aq_nWK0eRVa7yj1uPy0w
Overall it's much improved, and a blast to play
Yeah, the water tiles were being uploaded to the wrong place after I un-split the tiles, that was my mistake not a hardware issue luckily.
will try to dig some more when I have the time (it's working weekend for me - little or no time for gaming)
Today I started fresh from the beginning, aside from egg corridor background wonkiness (photo), it's all good zero issues all through sand zone so far
https://share.icloud.com/photos/0c86LVVAJSHpVoAiuBMPTz_3g
sometimes (outro sequence with kazuma and clouds) textbox outline blends well, in other instances it's not coherent, and occasional blinking but You may be well aware of it. If You accept PP donations I'm eager to throw some $ it's my favourite mega drive homebrew
Yep, turns out I wasn't stopping the Z80 when loading the backgrounds and credits images still...
The window thing is just kind of the way it is. The window layer overlaps the layer the map gets drawn on. I was considering changing the border to be flat instead of a zigzag in order to hide it.
latest batch of glitchizz
https://share.icloud.com/photos/01axvFonGgmtm6fK8diXcIaQg
I made a de-facto full run of the game, off the mecha-x boss to the normal ending, then starting fresh now in outer wall. No bloodstained sanctuary yet, stupid me did get Booster v0.8 ( the pun )
Trying something with the window now. Made the border flat to hide the overlap. Most of those graphical issues with the backgrounds/tiles should also be fixed.
WOAW excellent, you have fixed so many problems :) The last version 0.7.0 from 2020 is really old ... will you release a new official beta version ? Thanks a lot
I can feel the 1.0 is around the corner , 2.2.22 perhaps ? In other news, i swapped 8bitdo m30 dpad membrane for genuine saturn one it fits snug - less stiff, better diagonals
One more thing. I like the way MD/GEN renders this at 60hz 240p. In other versions (recent ps1, original freeware pc game , xbox port) running the game at 60 hz ruins fluidity, game was supposed to run 50. In THIS version it's much better or just GENESIS DOES
https://share.icloud.com/photos/061-1Ta66Jv0dBVAiwzcyq0zA
first one was pretty epic. i spammed pause unpause with map X button (plantation area), rendering takes a while, it started glitching for about 20 seconds with different colors and patterns than stopped on whats in the photo. all footage from 31.1 test build
map glitch is fixed, confirmed. Corruption on HP bar first slot save file persists on every bootup (even soft reset doesn't help) . Yesterday white box on Jellies/metroids happened only once - fingers crossed it's getting there
rn, a softlock
https://share.icloud.com/photos/091Wstld6SHvaRLxM6JGpFaWw
after beating monster X , without using Clinic Key first , can't progress right / left
edit: happens after using clinic key too
I would test it further if I was able to enter cheat codes? quick succession on the title screen? it's not my style but for science...