WolvenKit-7 icon indicating copy to clipboard operation
WolvenKit-7 copied to clipboard

[Witcher 3] Certain repacked USMs don’t load

Open K0stov opened this issue 3 years ago • 29 comments

Describe the bug Certain USM files, when put into a mod with WolvenKit and packed into the game, are skipped completely when they’re meant to play ingame, instead only flickering black for a second. This happens regardless of whether the files themselves are changed in any way or not. Unfortunately, I don’t know whether this is a problem with WolvenKit or the game itself.

This seems to happen for all storybook cutscenes and more.

Video demonstration

To reproduce

  1. Use WolvenKit 0.7.0.3 (last supported version for The Witcher 3).
  2. Make a new mod.
  3. Add the file movies\cutscenes\flashbacks\rs_1a.usm.
  4. Pack and install the mod.
  5. Download this test save.
  6. Launch the game, load the save.
  7. The cutscene should play after approaching the hanged Baron and talking to the sergeant, specifically after either one of these two lines (depending on the chosen dialogue):
    1. Yeah… Always knew the hooch'd be his end.
    2. He was what he was, a right bastard. But I respected him.
  8. The cutscene doesn’t play. The screen just flickers black for a second and the game continues as normal.

Expected behavior The cutscene should play where indicated between step 7 and 8.

Game version: Witcher 3 GOTY, 1.32, GOG OS: Windows 10

K0stov avatar Dec 09 '21 10:12 K0stov

Interesting, thank you for the report. Unfortunately we always lack developers for Wolvenkit - and currently no one is actively supporting Witcher 3, but I will be looking into it.

rfuzzo avatar Dec 11 '21 09:12 rfuzzo

Thank you for the reply. You'd be doing a favor to my Serbian translation.

K0stov avatar Dec 11 '21 09:12 K0stov

Update: it's actually not just for content4, but for several other .usms in content0 as well. I have no idea what the criterium is for the file to break, but the issue still stands.

K0stov avatar Jan 02 '22 23:01 K0stov

Have you tried using the standalone ScaleForm Video Encoder to re-encode the USMs outside of WolvenKit?

Edit: Link

abheekda1 avatar Jan 03 '22 00:01 abheekda1

I can try, but doubt this has anything to with encoding or how the files are changed at all. You can literally extract a .usm, put it back into the game as a mod without any changes and it won't load.

K0stov avatar Jan 03 '22 07:01 K0stov

I'll give it a try using both WolvenKit and SVE + wcc_lite to test out the functionality.

abheekda1 avatar Jan 04 '22 16:01 abheekda1

Please do. I’m not very familiar with the latter two programs.

K0stov avatar Jan 04 '22 16:01 K0stov

No problem. Would you mind sending me your save as well as the name of the specific USM file you are having trouble with?

abheekda1 avatar Jan 04 '22 17:01 abheekda1

No problem. Would you mind sending me your save as well as the name of the specific USM file you are having trouble with?

It's all in the original post.

K0stov avatar Jan 04 '22 17:01 K0stov

Delved deeper into this. I haven’t found any clear pattern to the broken files, except that several ones closer to the endgame work whereas all the early game .usms never play when packed. Here’s a more comprehensive list with findings (working files are ticked off, broken files aren’t):

  • [x] movies\cutscenes\pre_rendered_cutscenes\cs002_wild_hunt_chase_p2.usm
  • [ ] movies\cutscenes\pre_rendered_cutscenes\cs002_wild_hunt_chase_p4.usm
  • [ ] movies\cutscenes\storybook\st_1.usm
  • [ ] movies\cutscenes\storybook\st_2.usm
  • [ ] movies\cutscenes\storybook\st_3.usm
  • [ ] movies\cutscenes\storybook\st_4.usm
  • [ ] movies\cutscenes\storybook\st_5.usm
  • [ ] movies\cutscenes\storybook\st_6.usm
  • [ ] movies\cutscenes\storybook\st_7.usm
  • [ ] movies\cutscenes\storybook\st_8.usm
  • [ ] movies\cutscenes\storybook\st_9.usm
  • [ ] movies\cutscenes\storybook\st_10.usm
  • [ ] movies\cutscenes\storybook\st_11.usm
  • [ ] movies\cutscenes\storybook\st_13.usm
  • [ ] movies\cutscenes\storybook\st_14.usm
  • [x] movies\cutscenes\storybook\st_15.usm
  • [x] movies\cutscenes\storybook\st_20.usm
  • [x] movies\cutscenes\storybook\st_23.usm
  • [x] movies\cutscenes\storybook\st_23.usm

I haven’t checked st_12.usm nor st_19.usm, as I have no saves where those files play.

What’s interesting to me is that cs002_wild_hunt_chase_p4.usm gets broken, but cs002_wild_hunt_chase_p2.usm doesn’t. Both files from the same sequence. Interesting what causes this.

K0stov avatar Jan 06 '22 16:01 K0stov

That is quite interesting. Sorry I haven't been able to take a look yet, I'll try it tonight.

abheekda1 avatar Jan 06 '22 17:01 abheekda1

Sorry I haven't been able to take a look yet, I'll try it tonight.

Any findings?

K0stov avatar Jan 08 '22 10:01 K0stov

Sorry I haven't been able to take a look yet, I'll try it tonight.

I count 23 days since this statement. :)

K0stov avatar Jan 29 '22 15:01 K0stov

Really sorry about that, I'll try to do it sometime this week. Mind sending the specific file you encoded to a USM? If not, did you encode it to a USM or did you use an MP4 in Wkit (unfortunately I've never done video modding in Wkit so I'm not sure how it works.)

abheekda1 avatar Jan 31 '22 16:01 abheekda1

Nothing was encoded—I repacked the game's own .usm files just as they are. You can follow the steps in the original post to reproduce.

K0stov avatar Jan 31 '22 17:01 K0stov

Awesome, I'll give it a shot 👍🏽 .

abheekda1 avatar Jan 31 '22 17:01 abheekda1

Ok @K0stov, I manually imported a USM (using wcc_lite) from the Witcher 2 and it worked great (even included the subtitles!) I'll see if I can find the specific file and reimport it instead of replacing it with a custom one. image

abheekda1 avatar Feb 04 '22 03:02 abheekda1

I'll see if I can find the specific file and reimport it instead of replacing it with a custom one.

That would be good.

K0stov avatar Feb 04 '22 03:02 K0stov

Do you by any chance know what bundle it's stored in? I extracted movies.bundle and it only had the subtitles for flashbacks and not the USMs themselves.

abheekda1 avatar Feb 04 '22 04:02 abheekda1

Probably content4\bundles\movies.bundle. You can try any of the unticked .usms in this reply, though: WolvenKit/WolvenKit-7#3

K0stov avatar Feb 04 '22 15:02 K0stov

Awesome I'll take a look.

abheekda1 avatar Feb 04 '22 17:02 abheekda1

@K0stov I packed it with wcc_lite from the official mod tools and same deal -- flashes to black but skips the cutscene. It may very well be a problem with the way it's packed or the way the USMs are encoded or a combination of both but this doesn't seem like a WolvenKit error and rather a problem with the official mod tools.

abheekda1 avatar Feb 04 '22 21:02 abheekda1

I feared the worst.

K0stov avatar Feb 05 '22 06:02 K0stov

I'm really sorry about that, what was your specific use case?

abheekda1 avatar Feb 05 '22 06:02 abheekda1

Translating the game into Serbian. What I could do, though, is replace the bundle files themselves, even though that's not what I'd want to do.

K0stov avatar Feb 05 '22 07:02 K0stov

Theoretically you could extract and then re-encode the USM file with your audio and subs.

abheekda1 avatar Feb 05 '22 14:02 abheekda1

If you're willing I could try and help you with that (decoding could be done with UsmToolkit or VGMToolbox and VGMStream, re-encoding could be done with ScaleForm Video Encoder which has support for multiple audio channels and subs.)

abheekda1 avatar Feb 05 '22 19:02 abheekda1

If you want to help, you can send me detailed instructions on my mail. You'll find it on my profile.

K0stov avatar Feb 05 '22 19:02 K0stov

@rfuzzo I'll be working on this separately and update if any new revelations occur. It can probably be closed soon though.

abheekda1 avatar Feb 09 '22 14:02 abheekda1