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

how to replace a .dat file that is inside a .dat file? #109

Open
sanboo11 opened this issue Aug 4, 2023 · 3 comments
Open

how to replace a .dat file that is inside a .dat file? #109

sanboo11 opened this issue Aug 4, 2023 · 3 comments
Labels

Comments

@sanboo11
Copy link

sanboo11 commented Aug 4, 2023

Recently, I was trying to modify the th6 dialogs, for that I extracted the files from "th06e_ST.dat" and modified "msg1.dat"

So far everything was going well, but when I want to put the modified msg1 in a th06e_ST.dat, all the files inside are simply deleted and only the modified msg1.dat remains.

I want to replace the msg1.dat of the th06e_ST.dat with my modified msg1.dat, how can I do it?

I'm sorry if my question is stupid, I recently started with this

@Shoxlu
Copy link

Shoxlu commented Aug 4, 2023

You probably need all the files from the original th06e_ST.dat in the same folder as your msg1.dat one's in order to recreate th06e_ST.dat correctly, i'm not sure though

@sanboo11
Copy link
Author

sanboo11 commented Aug 6, 2023

but i can't pass them all, i can pass them one by one and when i pass that file, only that file is left, all the others are deleted, i have the exported .dat folder with all the files inside, but i just don't know how to convert it back to a .dat to be able to replace the original .dat with all the files inside

@DankRank
Copy link
Member

DankRank commented Aug 6, 2023

Thdat always creates dat files from scratch, so if you give it only one file, the dat will only include that file and nothing else.

In other words, you need to specify all of the files (both modified and unmodified) on the command line. For example:

thdat -c6 ..\th06e_ST.dat *.*

This takes all files in the current directory and puts them in th06e_ST.dat in the parent directory. (Instead of *.* you could specify all of the files individually, but it's more convenient to use *.*)

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

No branches or pull requests

3 participants