Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for editing RTTI object fields #11

Closed
ShadelessFox opened this issue Mar 7, 2022 · 2 comments
Closed

Support for editing RTTI object fields #11

ShadelessFox opened this issue Mar 7, 2022 · 2 comments
Assignees
Labels
feature xf: gui xp: high Issues with high priority

Comments

@ShadelessFox
Copy link
Owner

The purpose of this tool is not only to show data but also to allow modifying it.

An entire model for editors must be built to support such a feature.

We'll need to figure out a way of tracking our changes. There are some problems:

  1. An editor may be "dirty" e.g., contain changes. Since a single editor represents a single core file, we will repack an entire packfile after editing any file and saving it.
  2. We could track two different changes levels: the first is packfile-based, and the second one is core file-based (as described in no.1). Then, after editing a core file, we may submit it to the upper level (and maybe store it in some database to allow restarting the application without losing local changes?), and then the packfile could be repacked.

Also, we'll need to figure out a way of repacking data in the first place:

  1. We could write all changes to the "patch" packfile
  2. We could repack the source packfile (adaptive "in-place" repacking if possible, beware of segmentation)
@loitranit
Copy link

Hey bro, your project is great. I am in need of a tool that can export text and import text for translation. Fighting

ShadelessFox added a commit that referenced this issue Aug 8, 2022
@ShadelessFox
Copy link
Owner Author

An initial support for replacing contents of files was added. Currently it's only possible to create a separate "patch" file containing changes.

  1. Right-click on a desired file in the navigator tree ⇒ Replace Contents
  2. FileSave to persist changes

java_dynrMJZMJt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature xf: gui xp: high Issues with high priority
Projects
None yet
Development

No branches or pull requests

2 participants