kboykboy2 / TocPatcher

Tool to patch utocs for games using signing
30 stars 0 forks source link

It does not work #3

Open michalss opened 1 year ago

michalss commented 1 year ago

Hi,

3ppl try to use it, but game wont ever take it. I did not met any mod patched by this tool that works. Im able to create basically any mod from Engine now. Tocpatcher will mod the toc file successfully, but game wont take it, simply ignoring the files :(..

Regards

michalss commented 1 year ago

I did try everything, simply does not work with callisto..

kboykboy2 commented 1 year ago

add this as a launch argument in steam -fileopenlog and then try it

michalss commented 1 year ago

let me try it.. Can you please be more specific how to name patch files where this new files need to go, into what folder, etc ?? Just to make sure im doing right.. thx

kboykboy2 commented 1 year ago

i will try to give a quick explanation, but the tool was never designed to be user friendly, it was made to help out experienced modders, and i have never been any good at explaining things, now i cant explain the entire process here, but hopefully it will be enough for you.

alright so when you create a mod you will end up with 3 files, .pak, .ucas, .utoc, place these into the paks folder of the game, rename them to have a pakchunk of like 99 or something like that, to make them load after the games paks so it can override them, add _P to the end of the file names, this indicates its a patch file and should override the games paks, then run the tool on the .utoc of your mod, then add the launch argument to steam to disable the .sig files, now it should work

michalss commented 1 year ago

i did it, not sure what should happen, i guess open log file but it does not work..

image

kboykboy2 commented 1 year ago

it disables the .sig files through an oversite by epic, my tool does not bypass the sig files themselves, it bypasses a signature within the utoc, so another bypass must be used on the .sig files

michalss commented 1 year ago

in our case we want to replace only single file. This file is in "Game\Audio\VO\Subtitles\DTSubtitles-_English.uexp". I guess i finally got it, problem is, once i use our mod game wont load a map. Could be an issue with the mod or tocpatcher itself ?

We are not modding pak file...

kboykboy2 commented 1 year ago

"we are not modding pak file" what does that mean?

michalss commented 1 year ago

"we are not modding pak file" what does that mean?

That file we would like to patch is in ucas file. Our mod has not any data in pak file..

kboykboy2 commented 1 year ago

uhhhhh ok, yes the .pak does not contain the file data, but its still part of the pack system, and the game wont load the mod without it, so the fact that technically the data is not stored in it is irrelevant, also you are not patching the file, you are only patching the .utoc

now i have had issue with replacing the player body mesh causing the game to infinitely load, the weird thing however is if instead of replacing the mesh you add a new separate mesh and then use code to swap the player mesh after the game loads it works totally fine, and not only that but other characters i was able to swap without the loading issue, i assumed it was something weird with that mesh specifically, but perhaps it could be related to the tool, but i cant think if any reason the game would be able to load the assets after the game loads but not during, or why some would work fine and other wont.

but if the mod is causing the game to infinitely load then the patcher did work, as the game is not actually using your mod, instead of ignoring it

michalss commented 1 year ago

Thank you. Real example, just please if you can confirm. Game has this struction in PAK folder:

image

Where last chunk is with name pakchunk9-WindowsNoEditor.utoc. What i did is create mod in 4.27.2 where in editor assign my file "Audio\VO\Subtitles\DTSubtitles-_English" to be in chunk1. Then make cook/package. It made me this image

My file is in pakchunk1-WindowsNoEditor.ucas. I rename all of the pakchunk files to pakchunk10-WindowsNoEditor_P.xxx. Next i did was to use tocpatech and used last utoc file (pakchunk9-WindowsNoEditor.utoc) from the game as master. Last step was move them into PAK folder with the game. result below image

Is this correct approach ?

kboykboy2 commented 1 year ago

yes

michalss commented 1 year ago

there could be limitations and possible DataTables wont work with your tocpatcher ?

kboykboy2 commented 1 year ago

nah the toc patcher works on the toc itself, not the individual files. you say it causes it not to load maps right?, i can look into it and see if its caused by the tool

michalss commented 1 year ago

nah the toc patcher works on the toc itself, not the individual files. you say it causes it not to load maps right?, i can look into it and see if its caused by the tool

that would be lovely. Yes it wont load the map. How can i send you the project ? Or do you need a files only ?

kboykboy2 commented 1 year ago

don't need it for now, will just make the mod myself

michalss commented 1 year ago

don't need it for now, will just make the mod myself

can you please do it with that specific file ? Just to be on safe side. Pls . thx a lot :) I hope its gonna work..

kboykboy2 commented 1 year ago

it wont make any difference, but if you send it sure

michalss commented 1 year ago

it wont make any difference, but if you send it sure

give me pls 10 min ill send it over

michalss commented 1 year ago

DT_Subtitles.zip

here you go . uexp files are repacked subtitle files where i changed first 30 lines of text from very begining of the game. csv file is for DataTable recreation from Engine itself. Thx

michalss commented 1 year ago

Any chance to talk private to not spamm in here ? Discord prehaps pls?

michalss commented 1 year ago

Did you get any time to check pls ?

kboykboy2 commented 1 year ago

alright sorry been super busy, didn't get a chance to check this convo again, the issue is proving difficult to squash, it is at least partly related to the Chunk Index used to create the mod toc, you find success in trying a different Chunk Index between 1-10 probably. will test with your mod soon, just trying to figure out why this is an issue, i have also gotten reports that even if set to a working chunk Index it still only works randomly, it may work for awhile and then run into an issue, either a crash or infinite load

michalss commented 1 year ago

OK thx, so what we can do now pls ? Just wait or ?

michalss commented 1 year ago

Ok i thing the reason why this does not work is. With your patcher i cannot patch chunk0. This is important coz this is where subtitles are. If i try to patch chunk0 game crashing... I believe, if we could patch chunk0, game would take the DataTable files with no issue..

@kboykboy2

RenegadeWraith commented 3 weeks ago

@kboykboy2 Is there a reason why the chunk index matters? Does the master.utoc have the be the one that includes the asset I'm trying to mod?