Categories
Uncategorized

Finishing audio and polishing the engine code for PR

Hi all, welcome back to my progress blog for CRAB. This week, I worked on finishing the audio and made many other minor changes to gear up for getting my fork merged into the main branch.

The audio subsystem is fully in-place aside from the background music’s “fade-in” effect. You are able to set the SFX volume and the music volume from ScummVM’s game options menu. I fixed a variety of bugs in the audio system which could lead to crashes sometimes.

Next, I made various other minor tweaks such as moving some warnings to debugs and cleaning up the codebase as suggested by my mentor Strangerke. Wanting to have some fun, I compiled ScummVM with the CRAB engine for my Android phone to check whether it would run and if yes, to what stage I could proceed. To my delight, it ran wonderfully – till stage 5 where it just crashed without any logs. 🙂

Unrest running on Android 13

Furthermore, I had a function stubbed out which made my saves unplayable. After un-stubbing the function and performing some little fixes, I tried again on my laptop and this time I made it all the way to the end!

I did notice some small issues in my gameplay which I was able to fix eventually. There was this interesting graphical glitch in stage 5 where the layering was broken.

If you look at this screenshot again, the character is supposed to be in a room but instead, due to the broken layering, she appears over the wall. This was happening due to incorrect handling of “Autohide” layers, and once I fixed the mechanism, it worked perfectly.

The room is drawn correctly.

Once you enter the room, these walls are supposed to simply disappear, so that you can see the characters in the room.

Yay! Fixed 🙂

This is all that I achieved this week, and since the game is working without any crashes I decided to open a PR for merging my branch into the main branch. PR #5229. I should note that it might take a while for the PR to get merged, but once merged, you all should be able to play Unrest using ScummVM on your favourite devices.

Thanks for reading!

 

Leave a Reply

Your email address will not be published. Required fields are marked *