romibi / Scrap-Packed-Explorer

With this App it is planned to make it userfriendly to create a new or modify the contents of an existing .packed file for the Game Scrapland.
MIT License
3 stars 3 forks source link

Create Command Line Interface #1

Open romibi opened 2 years ago

romibi commented 2 years ago

Things to do for the Command Line Interface

Strongleong commented 2 years ago

Now with -s and -f I think this one done

romibi commented 1 year ago

@Strongleong

This you wanted me to implement, right?

And:

How's the status of this?

Evaluating if the remaining tasks here should get their own issues and this issue be closed.

Strongleong commented 1 year ago
  • [ ] tree structure

This you wanted me to implement, right?

I couldn't implement this with our current way of storing list of files in RAM. I suggested you to store them in tree rather that list, you declined

  • [ ] support multipart archive files

How's the status of this?

Didn't event thought starting this

romibi commented 1 year ago

Regarding tree structure: Of course for outputting it the filenames and paths need to be converted to a tree structure before displaying it. That can either be done locally in some function in cli app. Or I've done that for the Gui already … mabye that logic can be extracted to some common place.

But the PackedMetaData and ScrapPackedFile classes should stay representing how the packed fileformat is structured.

I might do this myself at some point … but it's not important …

Regarding multipart archive files Don't worry. If you want and have a good idea on how to do it you can do it … if not … For me it's not a hight priority. Just was wondering if it hinders your cli scripting or not.

Strongleong commented 1 year ago

I have a question about multipart containers.

What if I want to check what is on one specific packed file. Let's say data01.packed Should be this option opt-in and the app will open packed files in multipart mode by default? Something like this

ScrapPackedExplorerCli data01.packed list                 # Will search for all dataXX.packed files and combine them
ScrapPackedExplorerCli data01.packed list --single   # Will open only data01.packed

Or opt-out?

ScrapPackedExplorerCli data01.packed list                       # Will open only data01.packed
ScrapPackedExplorerCli data01.packed list --multipart   # Will search for all dataXX.packed files and combine them
Strongleong commented 1 year ago

search content (maybe)

You can mark it as done scine we have -q flag in list command

romibi commented 1 year ago

I have a question about multipart containers.

I'd say on the first part default behaviour is consodering all files except when disabled by argument. On other parts only consider that one file.

Btw, do you know? Is there any marker in the files that they are multipart or is it just the names? (regarding the packed files in remaster)

romibi commented 1 year ago

search content (maybe)

You can mark it as done scine we have -q flag in list command

Isn't that only for searching filenames? (currently not on PC to check)

Strongleong commented 1 year ago

Do you want to search by content too?

romibi commented 1 year ago

is already done and ticked off …

And there's a reasone there's a "(maybe)" in

😄

Strongleong commented 1 year ago

Oh. I thought that this is search by content (of the packed file)

Strongleong commented 1 year ago

Btw, do you know? Is there any marker in the files that they are multipart or is it just the names? (regarding the packed files in remaster)

To my knowledge - no. And to my lesser knowledge - this is how multipart archives (rar, zip, gz) works.