rewise.1 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. .TH rewise 1 "20 May 2023" "version 0.1.0"
  2. .SH NAME
  3. .B rewise
  4. - Extract files from Wise installers without executing them.
  5. .SH SYNOPSIS
  6. .B rewise
  7. .RB OPERATION
  8. .RB [OPTIONS]
  9. .RB INPUT_FILE
  10. .SH DESCRIPTION
  11. .B rewise
  12. Reverse Engineering Wise - The aim of this project is to extract assets from
  13. old game installers made with Wise installer without executing the PE file
  14. (.exe), so they can be used with free software implementations of the game
  15. engine.
  16. The known working Wise installers are released from 1999 to 2003, the PE build
  17. date of those installers are between 1998 and 2001.
  18. .SH OPERATION
  19. Specifying an OPERATION is mandatory. Exactly one operation is allowed per
  20. execution.
  21. All files that REWise does output will be overwritten when they exist!
  22. .TP
  23. .B -x --extract <OUTPUT_PATH>
  24. Extract files. Existing files in the OUTPUT_PATH will be overwritten!
  25. .TP
  26. .B -r --raw <OUTPUT_PATH>
  27. Extract all files in the overlay data. This does not move/rename files! The
  28. extra files are files only used by the installer and would not be installed
  29. normally. This operation is for debugging purposes. Existing files in the
  30. OUTPUT_PATH will be overwritten!
  31. .TP
  32. .B -l --list
  33. This will list all files that would be installed by the installer, TMP
  34. installer files are not listed. It will also print the total size of the listed
  35. files at the end.
  36. .TP
  37. .B -V --verify
  38. Run extract without actually outputting files, CRC32s will be checked.
  39. .TP
  40. .B -Z --script-debug
  41. Print parsed WiseScript.bin
  42. .TP
  43. .B -v --version
  44. Print version and exit.
  45. .TP
  46. .B -h --help
  47. Print help and exit.
  48. .SH OPTIONS
  49. .TP
  50. .B -p --preserve
  51. Don't try to delete TMP files at TMP_PATH.
  52. .TP
  53. .B -t --tmp-path <TMP_PATH>
  54. Set temporary path. Run `rewise --help` to find the default TMP_PATH (it should
  55. be in the description of -t --tmp-path).
  56. .TP
  57. .B -d --debug
  58. Print debug info.
  59. .TP
  60. .B -s --silent
  61. Be silent, don't print anything.
  62. .TP
  63. .B -n --no-extract
  64. Don't extract anything. This will be ignored with -x or -r. It also will not
  65. try to remove TMP files, so -p won't do anything. WiseScript.bin should exist
  66. at the TMP_PATH. The use case for this is to use a WiseScript.bin at given
  67. TMP_PATH with the use of -Z --script-debug or to test extracting with a custom
  68. WiseScript.bin.
  69. .SH INPUT_FILE
  70. The Wise installer file (.exe), this is is mandatory. A relative path is
  71. allowed and will be resolved.
  72. .SH EXIT STATUS
  73. The exit status is 0 on success, greater then zero on error.
  74. .SH NOTES
  75. .IP \[bu] 2
  76. Path to directory OUTPUT_PATH and TMP_PATH should exist, be writable and
  77. of-course there should be enough free-space. There should be at-least 1 MiB of
  78. free-space at the TMP_PATH, for the OUTPUT_PATH with the use of --extract you
  79. can use --list fist to determine the required free-space. Relative paths are
  80. allowed and will be resolved.
  81. .IP \[bu]
  82. REWise is only tested on Little Endian systems. Did you try REWise on a Big-
  83. Endian system then please report your results by opening a new issue at
  84. <https://notabug.org/CYBERDEViL/REWise/issues/>
  85. .IP \[bu]
  86. REWise will not delete/cleanup extracted files when the process fails somehow,
  87. TMP files however will be deleted unless --preserve is given.
  88. .SH EXAMPLES
  89. .B Extracting files as the installer would have:
  90. .RS 2
  91. rewise -x /path/to/extract/files/to/ /path/to/Setup.exe
  92. .RE
  93. .B List files:
  94. .RS 2
  95. rewise -l /path/to/Setup.exe
  96. .RE
  97. .SH LICENSE
  98. REWise is free software: you can redistribute it and/or modify
  99. it under the terms of the GNU General Public License as published by
  100. the Free Software Foundation, either version 3 of the License, or
  101. (at your option) any later version.
  102. REWise is distributed in the hope that it will be useful,
  103. but WITHOUT ANY WARRANTY; without even the implied warranty of
  104. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  105. GNU General Public License for more details.
  106. You should have received a copy of the GNU General Public License
  107. along with this program. If not, see <https://www.gnu.org/licenses/>.
  108. .SH BUGS
  109. For known issues and reporting new issues: see
  110. <https://notabug.org/CYBERDEViL/REWise/issues/>.
  111. .SH HOMEPAGE
  112. https://notabug.org/CYBERDEViL/REWise