Menu

#7000 Touche : Regression in money system

Touché
closed-fixed
None
5
2016-02-02
2016-01-26
albadross
No

ScummVM version : 1.8.0git6200-g5afdf32 (Jan 18 2016 04:08:31)
Language : English (downloaded from ScummVM website)
Windows 7 Ultimate 64-bit

I have been running this gane using a recent git version and have run into problems with the money system. I realised I had problems when I could not buy the ornamental cathedral despite having 25 francs, I replayed the game with a walkthrough to check I had made no mistakes - same result. But I knew this game had been around a long time without complaint so I tried again with an earlier stable version 1.2.0 (random choice). This made me see that the git version no longer :

  1. deducts 10 francs for the beggar
  2. deducts everything for the innkeeper
  3. gives you a franc from the hole in the floorboard.

I am providing 3 savegames for each version of the program. The number in brackets is the number of francs you have at that point.

  1. touche.62 - 1.2.0 - Outside tavern (15)
  2. touche.63 - 1.2.0 - In the bedroom (0)
  3. touche.64 - 1.2.0 - About to leave the bedroom (1)
  4. touche.65 - 1.8.0 git - Outside tavern (25)
  5. touche.66 - 1.8.0 git - In the bedroom (25)
  6. touche.67 - 1.8.0 git - About to leave the bedroom (25)
6 Attachments

Discussion

  • albadross

    albadross - 2016-01-26

    Having continued with the one franc (savegame 64 from 1.2.0) but using the git version instead, you still cannot buy the ornament.

    I am including a savegame just before you buy the ornament, The old stable version allows you to buy it.

    For now, I shall try to complete the game using the old version only

     
  • Willem Jan Palenstijn

    I'm suspecting 9d2cc7ce84107d93d56371e8266cbe2193a7923b.

    Before that, KeyChar::inventoryItems used to have 4 items, but inventoryItems[4] was accessed in a money-related function. The variable KeyChar::money was stored right behind inventoryItems.

    That commit changed the size of inventoryItems to 5, so removing this (accidental?) aliasing.

     
  • Willem Jan Palenstijn

    Thank you for the detailed bug report, by the way.

     
  • Willem Jan Palenstijn

    It looks like the asserts in the inventory access opcodes meant to prevent this are broken too.

     
  • albadross

    albadross - 2016-01-26

    As you might have expected, I did get to the end of the game with version 1.2.0.

    But if you can sort the problem out, I am happy to test a new version (at least, the start up to buying the junk).

     
  • Willem Jan Palenstijn

    This should be fixed now.

     
  • albadross

    albadross - 2016-02-02

    Tested fix (up to and including buying the junk) - worked as it should

     
  • Willem Jan Palenstijn

    Thank you for verifying.

     
  • Willem Jan Palenstijn

    • status: open --> closed-fixed
    • assigned_to: Willem Jan Palenstijn