Git Product home page Git Product logo

Comments (3)

gmarty avatar gmarty commented on August 19, 2024

Oh nice! I didn't know about that, I thought a script was responsible for that. This is definitely something that's needed.

That's what is referenced as globdata in the resource pointers. So we've got this offset value for all the different versions. The code to parse it on SCUMMVM looks straightforward too.

from scumm-nes.

gmarty avatar gmarty commented on August 19, 2024

I implemented it in e27374a.
I figured that bit 0b10000000 (128) was responsible for the initial active or inactive state. The only issue is the cassette tape in room 3 (living room) that is displayed on top of the closed cabinet door.

It's unclear what the other bits are doing. Couldn't find anything in the SCUMMVM codebase. If this is incorrect or incomplete, we can address it in another PR.

Thanks again @gzip for pointing me in the right direction 🎉

from scumm-nes.

gzip avatar gzip commented on August 19, 2024

Here are the notes I have related to the state byte. These deal with the upper 4 bits. I think that high bit is the only one relevant for the tool at the moment. Not sure if the lower 4 bits are actually used, seems like they're always 0xF or 0x0.

setState08 - triggers the alternate image
clearState08 - restores original background image
setState04 - locks the door
clearState04 - unlocks the door (grate and phone fixed as well)
setState02 - deactivates the object from mouse
clearState02 - activates the object for mouse
setState01 - unknown/unused?
clearState01 - unknown/unused?

from scumm-nes.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.