daid / EmptyEpsilon

Open source bridge simulator. Build with the SeriousProton engine.
https://daid.github.io/EmptyEpsilon/
GNU General Public License v2.0
533 stars 180 forks source link

FEATURE REQUEST: Save/Load mechanism #1043

Open ElectricErger opened 4 years ago

ElectricErger commented 4 years ago

Synopsis

"Homebrew GM"s tend to make a world that they want their people to explore, and this tends to come with RPG advancements (e.g. buying improvements). As of right now, if you want to resume a game later, either the server must be on, or you must remember all the relevant details (which is not exactly fun).

Additional details

We can get pretty far with a Lua script that generates the world, but after you've played in the world, you have to update it with various things that have changed. While this is doable, a save/load function sounds like a better feature, and would encourage sharing worlds that less tech-savvy people can work with.

Ask

A mechanism to save and load various game state data:

ElectricErger commented 4 years ago

I hope I did this correctly. I didn't see any other issues like it, and my group thought it would be cool.

daid commented 4 years ago

In the gm screen you can copy most of the gamestate as a script to your clipboard. It is not a full save&load, but does most of what you need i think.

czenker commented 4 years ago

Another Life Hack is to run EE inside Virtual Box or similar. If you stop playing, pause the VM. You can shut down your PC and continue later by unpausing the VM. You can even create a snapshot of the VM to have multiple savegames of the same instance.

I have not tried it real life yet, but I don't see why it should not work. And this is the way I would do it.

Especially with scenarios, adding save and load capabilities multiplies the effort it takes to write a scenario. So I do not think this will ever happen.

oznogon commented 3 years ago

Not that it'll move the needle, but GM screen copy functions don't work on macOS builds.

aBlueShadow commented 3 years ago

@oznogon iirc, on linux you need xclip for it to work. Is it possible to use this (or a similar tool) on macos too?

oznogon commented 3 years ago

@aBlueShadow As the code in SP stands now, Clipboard functions don't do or return anything unless you're on Windows or Linux. Macs have pbcopy built in. Since it looks like the SP implementation for Linux is essentially just:

https://github.com/daid/SeriousProton/blob/d4c6ea6aa147b62d6954370aa56700c4991b4251/src/clipboard.cpp#L82-L91

It might be doable.

EDIT: PR daid/SeriousProton#65 implements clipboard features on macOS via pbcopy/pbpaste.

daid commented 3 years ago

Note that the linux implementation most likely only works for small pieces of text, not sure when it fails, but it will most likely fail after a certain size.