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

Please add a "raw" mode #2

Open
fabiangreffrath opened this issue Sep 24, 2015 · 6 comments
Open

Please add a "raw" mode #2

fabiangreffrath opened this issue Sep 24, 2015 · 6 comments

Comments

@fabiangreffrath
Copy link
Contributor

Hi there,

I sometimes wish for a "raw" mode in deutex in which all available lumps are extracted from a WAD as they are, i.e. I don't want sounds transformed into AU/WAV and pictures into PPM/GIF/whatever but only their raw byte streams.

  • Fabian
@chungy
Copy link
Contributor

chungy commented Sep 25, 2015

This sounds like a good idea.

@Voros2
Copy link
Contributor

Voros2 commented Aug 1, 2017

  • Should a directives file be created?
  • Should it be an extension to -xtract or a selectable parameter like -raw?
  • How would it extract the map lumps? Folders with map names?

@fabiangreffrath
Copy link
Contributor Author

Very good points, thanks for asking!

Should a directives file be created?

(1) Yes, because of (2).

Should it be an extension to -xtract or a selectable parameter like -raw?

(2) It shouldn't be a separate command, but a modifier which could get applied to both -xtract and -build.

How would it extract the map lumps? Folders with map names?

(3) Either that, or it makes an exception and extracts maps as-is, unless specified e.g. -raw-maps.

@fabiangreffrath
Copy link
Contributor Author

(3) Alternatively, you could prefix each lump's file name with an increasing index, e.g. 0000_PLAYPAL.lmp. If you adapt this into the directives file, it should be possible to extract raw data, modify it if necessary and build it into a WAD file again.

@Voros2
Copy link
Contributor

Voros2 commented Aug 3, 2017

If a directives file were to be created, then that means Deutex should universally recognise LMP files for all types (graphics, music, flats etc.) and be able to build from them.

We could also take advantage of cusage to create this raw-extract mode.

The map lumps aren't converted or anything, so I suppose it can stay as extracted PWADs. I can imagine it would look like a mess in the levels folder if it weren't. Building from map lumps seems unorthodox and a PITA.

@fabiangreffrath
Copy link
Contributor Author

Sounds all reasonable, thanks!

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

No branches or pull requests

3 participants