Hello everybody,
I am poking around together with the #dota2mods guys on irc.gamesurge.net. These guys are atm. analyzing Wraith Night and build example modes loaded through lua and custom maps and stuff.
Anyway, it seems to be a general problem to open the Scaleform UIs and everything around it. Any help is appriciated.
A good start:
- \dota 2 beta\dota\resource\flash3\dotacomponentlibrary.swc is the general flashlibrary for all needed files in dota. You can extract it as ZIP, which reveals a 'catalog.xml' and 'library.swf'.
- dota2_teaser_intro.usm - all USM files are using something like [URL="http://en.wikipedia.org/wiki/CRI_Middleware"]Cri Movie 2[/URL], but with a newer codec. Many people suggested to use[URL="http://sourceforge.net/projects/vgmtoolbox/"] VGM Toolbox[/URL], but this one too / rubbish to read the USMs perfectly fine.
- The gfx-files, which are Scaleform files, don't seem to run out of the box. They're returning following errors: "Error: Failed to load image ..." and "Error: Sprite::AddDisplayObject(): unkown cid = 0" - many gfx-files seem to crash the viewer entirely.
- The WebM-Videos in dota 2 beta\dota\pak01_dir.vpk\resource\flash3\ got added on June 20th and seem to don't follow general guidelines of WebM. VLC only identifies a Vorbis Audiolayer. "<Cyborgmatt> webm have modded headers so they wont open in standard webm players"
- Another tip I got from him: <Cyborgmatt> to view the USMs you will need the scaleform pack
<Cyborgmatt> the scaleform sdk basically
- There is a way to view the GFX-files with the Scaleform GFX Viewer. I've seen it several times on Cyborgmatt's Stream - but he doesn't want to give every secret out. He once tweeted this: [url]https://twitter.com/Cyborgmatt/status/201757036973801473[/url]
I'm tired for today to stare at files I don't fully understand (I don't like Flash and AS in general). Maybe someone else has a good and nice idea to view the scaleform videos and run the GFX-files. Would be neat - and it opens up a wide spectrum of modding captabilities, since we could directly hook into the UI instead of loading an overlay via LUA as SWF.
Many thanks regardless
USM files can be converted just fine using VGM Toolbox. It's how I used to make the animated avatars for goldmembers.
It seems to extract seemingly corrupted m2v files, but you can convert it to another format like mp4 and it comes out just fine.
[img]http://i.imgur.com/4oav8dh.png[/img]
You can see that the m2v files look corrupted, but after converting them to mp4 they look perfectly fine. I hope this helps.
So the general problems seems to be a wrong m2v interpreter? I am surprised.
Was your process like this? USM --- VGM Toolbox ---> M2V --- Random Converter ---> MP4?
What converter did you use?
Yeah, pretty much.
Im using Media coder. It's a freeware program that seems to magically fix whatever is wrong with the m2v. I've been trying to figure out exactly what it is it's doing, but I think it's just a codec that this encoder has.
[editline]3rd January 2014[/editline]
Yep, it's definitely a special codec. Media Coder installed a media player also called MPlayer and can handle the m2v without any artifacts. So I guess the output of the VGM Toolbox is correct.
I fucking thank you. I'm sitting here for hours (mostly due to the .gfx-files) and you did it!
It worked like a charm - all stuff I needed for a project is converted now.
There is still the problem to figure out, how to access the scaleform UIs.
Have a good night and many thanks!
I figured out how the whole video issue.
VGM Toolbox outputs a raw video with no container which explains why media players were getting confused when playing it.
All you have to do, without using that shitty freeware program I mentioned earlier is use ffmpeg to create an actual video file that media players understand.
[code]ffmpeg -i fire_logo.m2v fire_logo.mkv[/code]
And boom. Actual video.
[img]http://i.imgur.com/vYDHvq7.png[/img]
Some usm files also contain audio, like valves intro has sounds. VGM toolbox will dump adx files along with the m2v files., I found a converter that converts the adx files to wav files called "PES Sound File Converter 1.8"
[img]http://i.imgur.com/4ugZIio.png[/img]
You can then use ffmpeg again to merge the raw video and audio together in a mkv container.
[code]ffmpeg -i valve_headturn.m2v -i valve_headturn.wav valve_headturn.mkv[/code]
Many thanks. I figured the audio-part already out, since this seemed to be a common thing for console-videos (scaleform is really present on console plattforms).
Now we know how to output properly - and good guess and idea that the container is just raw. Awesome!
Another question is, why the WEBM-Videos have a modified header and what use they could have.
There is still the gfx-files I can't read, since I don't know much about Scaleform and documentations are rarely spread in the internet. And I don't know much about Flash + AS3. :/
Many thanks regardless, you made my day.
[QUOTE=Mech Bgum;43410510]I have scaleform and the scaleform video converter. Iirc, there's no way to edit ui without source files though.
But if you want it still, pm me.[/QUOTE]
This is only a scaleform ENCODER - it doesn't decode any footage. To play the UI you don't need the full source file, just the original library-base - which is included in Dota2 (otherwise it shouldn't run anyway) - but I haven't found a way to open the UI-files on my own.