TASEmulators / TASEmulators/BizHawk

Add `userdata` to tastudio greenzone states

Open
#3,976 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Request: Feature/Enhancement Tool: TAStudio
Dominant language
C#
Stars
2.8k
Forks
468
PR merge metrics
No merged PRs in 30d

Description

The userdata lua library currently only works with regular savestates but not tastudio greenzone (which uses memory savestates iirc?), which makes it problematic to restore lua values from past tastudio frames for things that can't be calculated on the fly for every given frame.

I have a counter that increments on a memory hook, and I need to store it in savestates in some way so I could go back without it infinitely incrementing on every advance and rewind, and I need to it also go back and show me values it had back then.

I think memory savestates altogether should include userdata whenever it's there (which is rare anyway, so shouldn't mess up anyone's workflow).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the userdata Lua library is serialized for regular savestates and how Tastudio greenzone memory savestates are created or restored. Done means userdata values, including values changed by memory hooks, are restored when moving backward and forward through Tastudio greenzone frames without disrupting existing savestate workflows.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, lua
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.