femloy / OpenTower

A Pizza Tower decompilation.
https://discord.gg/thenoise
Creative Commons Zero v1.0 Universal
47 stars 19 forks source link

Mr. Mooney and Noisette Crash #21

Closed burnedpopcorn closed 2 months ago

burnedpopcorn commented 2 months ago

(Not tested on Windows export, only gx.games)

The game crashes when paying Mr. Mooney (or Noisette) for clothes on the Last Level of the Tower

This is after paying for the PizzaFace Boss Gate

Picture of Crash is located here

Seems to be an issue with obj_mrmooney (at Step), and after looking within it, I see this bit of code:

        with obj_palettedresser
        {
            var _clothes = (!obj_player1.ispeppino || global.swapmode) ? "feminine" : "mooney";
            for (var j = 0; j < array_length(player_palettes); j++)
            {
                for (var i = 0; i < array_length(pals); i++)
                {
                    if pals[i][0] == _clothes
                    {
                        player_palettes[j][i][1] = true;
                        break;
                    }
                }

The pals variable seems to be the problem, as I could not find a definition of it anywhere, including in obj_palettedresser, but obj_palettedresser did have a similar pal variable, but replacing that didn't work.

So I have no idea how to fix this or even if anything I listed above is of any use. Any help would be appreciated.

Also, Clothes don't change in my web build, so that could also be the problem But since Windows export doesn't work for me, I can't tell whether this is a build export problem

femloy commented 2 months ago

Hashtag Fixed