[Feature] Support for server-side save conversion

Open
#5,682 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
backend, databases

Research direction

Start by tracing the existing save sync orchestration and save download paths; the issue does not name specific files or tests. Determine how a requested format could be passed through sync and manual downloads, and how conversion relates to the stored save. Done means clients can request a supported format and receive the converted save without disrupting other clients, with coverage for the supported formats.

Written by the indexing model from the issue text.

Description

Is your feature request related to a problem? Please describe.
Emulators may require different formats of saves to work correctly, sometimes making very minute changes to the actual save file. Currently that means downloading a save, converting it by hand and then moving it into my emulator after which if i want it to sync through a client the new format is pushed to the server when i don't necessarily want all of my other clients to stop working because of this. This is primarily apparent in clients for actual consoles (I'm working on a ds/dsi one) where downloading, checking headers and then converting is a very expensive operation.

Describe the solution you'd like
It'd be nice if, both in UI and during save sync an additional parameter can be added to request a save in a specific format, primarily for platforms where the saves between various methods only differ slightly and the base format is the same (DesMuMe/MelonDS/Flashcart (assuming DSPico for now)). This would also save having to do this in the client itself which may, as described above be a very expensive operation on by today's standards very old and slow hardware and allow for easy conversion when manually downloading a save where possible.

Describe alternatives you've considered
Manually converting it may be a hassle and break integration on other clients, while having to convert AGAIN when uploading introduces a huge hassle. On automated systems (clients) this approach may not even be feasable due to the above constraints

Additional context
The sync orchestration process already takes a considerable amount of time taking in account the DS and DSi's poor wifi connection. If i were to add on the fly conversions for both down and uploads as requested by the orchestrator i don't even know if a client on this platform would be feasable at all, while i would love to be able to use my original hardware to play certain games as well, the reason to sync my saves with RomM would be that i could stop playing on my DS and start on an emulator and vice versa. This request goes not only for DS, but also other platforms where different emulators may use different save formats but the content is always a variation of the same data

I do understand if this is outside of RomM's scope, but since rom patching and save syncing itself is already introduced very nicely i think this would increase usability by users and developers considerably

Dominant language
Python
Stars
13.3k
Forks
747
Avg merge
20h 58m
Merged PRs (30d)
207

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from rommapp/romm

All issues in rommapp/romm

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.