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

Feature Request: Savegame Import / Export #11

Closed
ChaosMarc opened this issue Aug 2, 2019 · 6 comments
Closed

Feature Request: Savegame Import / Export #11

ChaosMarc opened this issue Aug 2, 2019 · 6 comments

Comments

@ChaosMarc
Copy link

Hey @d07RiV

first of all great work! I've been following the devilution project for a while now and this is my favorite port so far 😃

From some other issues I've found out that savegames can be exported via DownloadSaves() or DownloadFile("single_X.sv") / DownloadFile("spawnX.sv"). Great thing! I tried using them locally and they load flawlessly 😃

My question is if you would be willing to implement an import for savegames as well. This way one could download them and continue playing on other devices.

I'm fine with js commands for the developer console but an UI (like for the MPQs) for both of those features would probably be better received from the majority of users 😇

Thank you very much for the outstanding port :)
ChaosMarc

@d07RiV
Copy link
Owner

d07RiV commented Aug 2, 2019

Already did, you can drop savefiles on the page before starting the game. It was a feature I quickly added for debuggong, will definitely want to add some UI eventually.

@d07RiV d07RiV closed this as completed Aug 2, 2019
@Porkechebure
Copy link

What it means "drop savefiles on the page?"
And how to export it? From the browser developer console? Can you explain the procedure to export and load them? Thanks

@d07RiV
Copy link
Owner

d07RiV commented Aug 20, 2019

Yes, exporting replays is only possible through developer console at the moment (and from the error screen). I'll add more options eventually when I have the time.

Loading save files works the same way as selecting MPQ - either drag-and-drop them on the browser window, or click the Select MPQ button.

@richardrega
Copy link

richardrega commented Aug 20, 2019

Is there more official documentation somewhere? When you say 'developer console' do you mean Firefox? Chrome? Safari? Edge? I can drop an MPQ file into a browser and play, but I've yet to figure out how to export a saved game from cookie data with Windows Chrome. Google is OK with me deleting my cookies, but they don't make it obvious how to export them. @d07RiV Maybe just some screenshots of what you're talking about?

@d07RiV
Copy link
Owner

d07RiV commented Aug 20, 2019

It's better for me to add a menu to export saves, really. I'll try to do that tonight.

@Porkechebure
Copy link

Thanks, the menu is awesome.
For anyone wondering though, on chrome press f12 and in the console tab write download, it should hint some command "DownloadSaves" or something and you should get the file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants