Giter Site home page Giter Site logo

Comments (10)

HeyItsWaters avatar HeyItsWaters commented on July 24, 2024

@jbarker2160 do you have the same issue if you try to use auto?

I implemented the search value type dropdown and admittedly wasn't able to test the float options (my game library is pitiful...)

from memory-deck.

jbarker2160 avatar jbarker2160 commented on July 24, 2024

from memory-deck.

HeyItsWaters avatar HeyItsWaters commented on July 24, 2024

@jbarker2160 I definitely found some bugs around handling float values.

I don't have a great way to test, though, since I'm unaware of any of my games storing floats in memory.

If you are comfortable with using Desktop Mode on your Deck, can I provide some instructions on how to update a couple of files so you can test as well?

from memory-deck.

HeyItsWaters avatar HeyItsWaters commented on July 24, 2024

In case you are... here are the instructions. Otherwise you'll have to wait until I can get these fixes released.

cd ~/homebrew/plugins/memory-deck/
sudo cp main.py main.py.orig
sudo cp scanmem.py scanmem.py.orig

Open main.py using vim or kate, whatever you're more comfortable with.

1.) Change line 161 to val.flags |= MatchFlag.FLAG_F32B

2.) Update lines 163-166 to:

case "c_double":
    val.flags |= MatchFlag.FLAG_F64B
    val.float64_value = searchValue
case _:
    print("Invalid value!")
    return False

Close main.py and open scanmem.py

3.) Modify line 641 to val.flags |= MatchFlag.FLAGS_FLOAT

from memory-deck.

HeyItsWaters avatar HeyItsWaters commented on July 24, 2024

@jbarker2160 you know what, I think there is some opportunity to handle floats better, but I don't know how at the moment.

Maybe someone smarter will come along and help out with this issue.

from memory-deck.

jbarker2160 avatar jbarker2160 commented on July 24, 2024

from memory-deck.

kayon avatar kayon commented on July 24, 2024

There is indeed this problem.
#8 (comment)

from memory-deck.

cescofry avatar cescofry commented on July 24, 2024

@HeyItsWaters I can probably help. Can you send instructions on how to debug from desktop mode?

Actually, if you have general documentation ok how the different components in the plugin work that would generally help with development.

from memory-deck.

HeyItsWaters avatar HeyItsWaters commented on July 24, 2024

@cescofry there aren't currently any documents that explain how to debug very well.

I actually opened an issue for that very thing.

Essentially if you open the console/terminal, and cd into ~/homebrew/plugins/memory-deck you can run python3 main.py to run the plugin manually.

Doing it this way does force the plugin to behave differently, so you will likely need to open either main.py or scanmem.py and modify them as needed and then restart decky loader (or the SteamDeck entirely).

from memory-deck.

cescofry avatar cescofry commented on July 24, 2024

This is good enough. I was actually looking at that already. I'll poke a but and see if I can find something.

from memory-deck.

Related Issues (20)

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.