Help:Tools/rstb: Difference between revisions

no edit summary
imported>Leoetlino
imported>Leoetlino
No edit summary
Line 14: Line 14:
== Setup ==
== Setup ==
Install the rstb package.{{Install py package help|package=rstb}}
Install the rstb package.{{Install py package help|package=rstb}}
== Usage ==
'''Important''': You must pass <code>--be</code> if you are dealing with a big endian RSTB (Wii U version).
path_to_rstb is a path to the [[ResourceSizeTable.product.rsizetable]] file.
* '''Get''' a resource size: <code>rstbtool [--be] path_to_rstb get RESOURCE_NAME</code>
* '''Set''' a resource size: <code>rstbtool [--be] path_to_rstb set RESOURCE_NAME NEW_SIZE</code>
** NEW_SIZE can be an integer (hex or decimal) or a real file path (in which case rstb will automatically calculate the resource size).
* '''Add''' a resource size: <code>rstbtool [--be] path_to_rstb add RESOURCE_NAME NEW_SIZE</code>
* '''Delete''' a resource size: <code>rstbtool [--be] path_to_rstb del RESOURCE_NAME</code>


== Known issues ==
== Known issues ==
* '''Size calculation for complex resources''': rstb is currently unable to calculate file sizes for complex resource classes (see [[Resource system#Resource size calculation]] for more information). The CLI will suggest deleting entries if it detects that this is the case.
* '''Size calculation for complex resources''': rstb is currently unable to calculate file sizes for complex resource classes (see [[Resource system#Resource size calculation]] for more information). The CLI will suggest deleting entries if it detects that this is the case.
Anonymous user