deathkiller / jazz2

🎮 · Jazz² Resurrection: Open-source reimplementation of Jazz Jackrabbit 2
https://deat.tk/jazz2/
GNU General Public License v3.0
492 stars 18 forks source link

Question: Is persisted data for imported data planned for easier updates? #81

Closed RavenMacDaddy closed 2 years ago

RavenMacDaddy commented 2 years ago

I'm currently creating a manifest for the CLI Scoop, so this question came to mind.

Of course I read your answer here, but for the purposes I'd greatly appreciate your take.

deathkiller commented 2 years ago

I'm not sure I understand your question, but in latest versions imported data don't change that much. I'm rewritting the game to C++ and planning to remove import process entirely. I can't do much about it until then.

RavenMacDaddy commented 2 years ago

To be clear about the situation, the point with having a CLI or package manager is that updates are seamless cause any data that should carry over is persisted.

As long as that's possible with the upcoming release, that's the solution.

As an example, I was able to persist the folders under Content, but since Main.dz gets replaced (rather than just filled with data like jazz2.settings) whenever you import, it doesn't work out.

Thank you for your time.

deathkiller commented 2 years ago

Main.dz contains all shared game data and problem is it's connected to each version - that's why I usually give a warning that you should delete the previous one and re-import with the new one. The only file that is safe after update is Jazz2.settings.

I'm planning to implement automatic re-importing, so the game automatically detects that something changed and do it automatically, but it's not done yet.

RavenMacDaddy commented 2 years ago

I'm planning to implement automatic re-importing, so the game automatically detects that something changed and do it automatically, but it's not done yet.

So, would that re-import from the same directory that was used last time, or do you have that part figured out? Would you mind elaborating?

deathkiller commented 2 years ago

I don't know yet. I thought original JJ2 will be in hardcoded subdirectory, but I'm afraid it might not be enough.

RavenMacDaddy commented 2 years ago

If it's possible it would be very easy to persist at least.

Fingers crossed you manage to figure it out.

deathkiller commented 2 years ago

This has been implemented in new C++ version, so this will not be resolved in this C# version.