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

It does not work #3

Open
michalss opened this issue Dec 11, 2022 · 26 comments
Open

It does not work #3

michalss opened this issue Dec 11, 2022 · 26 comments

Comments

@michalss
Copy link

michalss commented Dec 11, 2022

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
Copy link
Author

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

@kboykboy2
Copy link
Owner

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

@michalss
Copy link
Author

michalss commented Dec 11, 2022

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
Copy link
Owner

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
Copy link
Author

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

image

@kboykboy2
Copy link
Owner

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
Copy link
Author

michalss commented Dec 11, 2022

in our case we want to replace only single file. This file is in "Game\Audio\VO\Subtitles\DT_Subtitles_-_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
Copy link
Owner

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

@michalss
Copy link
Author

"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
Copy link
Owner

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
Copy link
Author

michalss commented Dec 11, 2022

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\DT_Subtitles_-_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
Copy link
Owner

yes

@michalss
Copy link
Author

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

@kboykboy2
Copy link
Owner

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
Copy link
Author

michalss commented Dec 11, 2022

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
Copy link
Owner

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

@michalss
Copy link
Author

michalss commented Dec 11, 2022

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
Copy link
Owner

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

@michalss
Copy link
Author

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

give me pls 10 min ill send it over

@michalss
Copy link
Author

michalss commented Dec 11, 2022

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
Copy link
Author

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

@michalss
Copy link
Author

Did you get any time to check pls ?

@kboykboy2
Copy link
Owner

kboykboy2 commented Dec 22, 2022

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
Copy link
Author

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

@michalss
Copy link
Author

michalss commented Dec 24, 2022

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
Copy link

@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?

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

No branches or pull requests

3 participants