Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#610 AGI inventory items

closed-fixed
None
5
2011-12-13
2010-10-25
sterv
No

Extract from AGI Studio's help:

"Inventory items are things that the player can carry around with them. Their names are stored in the OBJECT file. A game contain up to 256 objects (numbered from 0-255). Each object used by the game must be present in the OBJECT file.

Every object has a room number which is a value from 0-255. If the room number is 255, it is in the player’s inventory."

Thus inventory items, though originally meant to be used with association with Sierra's original AGI inventory, can be also utilized as flags and/or variables. Unfortunately ScummVM 1.2.05 did not recognize inventory items added to object file and/or the commands that were trying to access them. ScummVM gave following message when inventory items were attempted to manipulate via inventory item commands.

Error: Can't access object inventory-item-number-here.

It would be vital that correct this since 256 additional variables/2048 flags is welcome addition to any AGI-game developer.
I would like to request that at least following commands would be functional if possible:

drop
get.room.v
get.v
get
put.v
put

Discussion

  • sterv
    sterv
    2010-10-25

    On the right is game's internal settings which one can adjust, on the left is ScummVM's constanst errow flow. All values are zero since ScummVM gives error from get.room.v-cmd.

     
    Attachments
  • Could you please provide me the game where it is used? Perhaps with the source, but not necessary.

     
  • Fixed in git, however there is a big number of other bugs. Your game is a really good test case.

    Things to fix: option screen autoscroll, Alt+Q does not work at all, memory errors here and there, slowliness of inventory screen.

     
    • assigned_to: nobody --> sev
    • status: open --> closed-fixed