mirror of
https://github.com/lifebottle/sceWork.git
synced 2026-02-13 15:16:05 -08:00
main
About
The original TOD1RSCE module v0.3 by TTEMMA was generously donated by the Temple of Tales Translations team. Please visit http://temple-tales.ru/translations.html for more Tales of translation projects.
The original binaries were decompiled, repackaged and further modified and made to be compatible with .NET 5.0.
The original project was just a subfolder in the DC repo, so the commit history of this repo is just cherry-picked commits from there, just to have a coherent timeline of the tool's changes, in addition, the original net-framework solution is available in the legacy branch.
Compile Instructions
- Open sceWork.sln with Visual Studio Community Edition (2019)
- Build the solution (Debug/Release is fine)
- You should have
sceWork.exeandTableModule.dll - Extract raw data with
sceWork.exe - Extract data with Japanese text, you also need
JPCODES.txtin the same directory
Linux / macOS Instructions
- Install .NET 5.0 Runtime:
wget https://download.visualstudio.microsoft.com/download/pr/827b12a8-8dea-43da-92a2-2d24c4936236/d2d61b3ed4b5ba3f682de3e04fc4d243/aspnetcore-runtime-5.0.5-linux-x64.tar.gz - Create a new install directory for .NET 5.0:
mkdir dotnet-64 - Extract and install .NET 5.0:
tar zxf aspnetcore-runtime-5.0.5-linux-x64.tar.gz -C $HOME/dotnet-64 - To make the dotnet command run everywhere, put new path ahead of $PATH to increase the priority:
export DOTNET_ROOT=$HOME/dotnet-64export PATH=$HOME/dotnet-64:$PATH- Enter the following to make sure .NET 5.0 is working:
dotnet --info
Usage Instructions (General)
- Use
//to comment out lines that do not need to be inserted
Usage Instructions (Skits)
- Use
pakcomposer.exeto extract.pak1files - BAT Example:
for %%i in (*.pak1) do pakcomposer.exe -d "%%i" -1 -x -u -v - The
.pak1filex extracts to a folder which has.tod1rsce4files inside - Put
sceWork.exe,TableModule.dll, andJPCODES.txtin the same directory - Use Command Prompt to extract text from
.tod1rsce4file - BAT Example:
for %%i in (*.tod1rsce4) do sceWork.exe -e "%%i" - Edit the
.txtfile, view with SHIFT-JIS encoding - Insert the tex back into the
.tod1rsce4file - BAT Example:
for %%i in (*.tod1rsce4) do sceWork.exe -r "%%i" -as 12 -ae - Move/copy the
.tod1rsce4file into the folder where it was originally extracted - Pack the files in this folder into a
.pak1file again - BAT Example:
for /D %%i in (*) do pakcomposer.exe -c %%i -1 -x -u -tod2_ps2_skit_padding - Need to fix
.pak1file. Open with HEX Editor to fix issue with skits. - Look at offset
0x00000004if it is24change it to30and save. - Luckily, we have a script that does this for all
.pak1files in the folder. - BAT Example:
python modPAK1Files.py - Copy
.pak1files intoDAT_FILESand pack intoDAT.BINandDAT.TBL - Create a new ISO with the new files and try it out
Usage Instructions (Scenarios)
- Use
sceWork.exeto extract.txtfrom.rscefiles - Use with
TableModule.dll, andJPCODES.txtto see Japanese, otherwise RAW dump - BAT Example:
for %%i in (*.rsce) do sceWork.exe -e "%%i" - Edit
.txtfile and save with the current encoding, else game crash - Insert text back into the the
.rscefile. - BAT Example:
for %%i in (*.rsce) do sceWork.exe -r "%%i" - Replace the
.rscein the.mglkfolder that was extracted withToDDCTools_v1.1.exe - Pack it up into a new
.mglkfile - BAT Example:
for %%i in (*.mglk) do ToDDCTools_v1.1.exe mglk "%%i" - Move/copy the newly packed
.mglkfile intoDAT_FILES - Use
ToDDCTools_v1.1.exeto repackDAT.BINandDAT.TBL - Create a new ISO with the new files and try it out
Languages
C#
100%