Page 5 of 9

Re: Valkyria Chronicles (PS3)

Posted: Sun May 12, 2013 4:33 am
by gomtuu
I think I might have solved the problem I described in my last post. You can now articulate fingertips, etc. The bones are a little bit weird, though. It might be a tradeoff rather than a complete fix. I'll let you decide. In addition to the vertex group fix, I improved support for pieces of equipment that are positioned relative to bones. Many models should look better now.

I also completely refactored the importer to make it easier to maintain, changed the name from hmdl_import to import_valkyria, and added support for the shape keys that are stored in the model files for facial expressions. Here's a combination of two (edit: actually three) shape keys that make Alicia look surprised:

Image

To install the new version, first get rid of hmdl_import if you were using it, then make Blender install this ZIP file. See the README file inside the ZIP for more info.

By the way, Blender 2.67 is out now, and it includes a fix for the texture bug that was present in 2.66 and 2.66a.

Have fun!

Re: Valkyria Chronicles (PS3)

Posted: Sun May 12, 2013 8:02 am
by windfury
Wow, I didn't know how I'd be doing proper facial expressions back then.
This is such a nice addition. Can't wait to try this out! :D

EDIT: I just tried it out. Pretty huge progress I must say. Loving the shape keys!
Even the models that didn't import completely when you added bones support, now does.

Re: Valkyria Chronicles (PS3)

Posted: Tue May 21, 2013 7:35 pm
by gta1211
Ohoh ! Just passed by on a free time, wasn't thinking you were always on this !

I will try this out ! Thank you very much Gomtuu !

EDIT : Does this importer work on 3DS Max ?

Re: Valkyria Chronicles (PS3)

Posted: Tue May 21, 2013 11:01 pm
by gomtuu
Hi gta1211,

No, import_valkyria will only work in Blender. Blender is free and cross-platform, though, and it can export models as .3DS files. But I can't say how well that works, because I don't have 3DS Max.

Re: Valkyria Chronicles (PS3)

Posted: Tue May 21, 2013 11:17 pm
by gta1211
Okay thanks, I don't know anything about Blender but I will try to figure it out and get it on Max ;)

Re: Valkyria Chronicles (PS3)

Posted: Wed May 22, 2013 6:45 am
by windfury
You can always just export them in FBX format.
That's what I do whenever I need to transfer between 3D packages.

Since I'm also not that good with Blender, I did this for the VC models too.
The shape keys are also supported and will be exported as morphers in 3ds Max.

Re: Valkyria Chronicles (PS3)

Posted: Sun May 26, 2013 12:23 am
by gomtuu
Hello,

Here's import_valkyria 0.6. The main changes in this version are:
  • Added support for most MXE files.
  • Added support for most ABR files.
  • Added support for double textures, but partially lost support for automatic normal maps.
MXE files are lists of other files with some parameters. Most of them, such as EVMAP*, EV_OBJ*, TESTMAP*, and VMAP*, describe a scene by listing model files and specifying where to put them. VMAP* files are the maps used in battles, with VMAP_GROUND* being the basic terrain and buildings, and VMAP_SET* being things like sandbags and other props. VMAP_SET* files also appear to specify unit placement points, but import_valkyria doesn't support those yet. Here's a combination of VMAP_GROUND_003_00.MXE and VMAP_SET_003_00.MXE:

Image

Note: VMAP_GROUND* files are pretty complex. They take a long time to open.

ABR files mostly seem to be meshes used for animations and effects. No support for the animations yet.

After adding support for these additional file types, I noticed I'd been making some incorrect assumptions about the basic model files. In particular, some meshes have two textures. I assumed that the second one was always a normal map, but that's not the case. Double textures are used extensively in the MXE models, and they're also used for the characters' eye glints.

Image

Unfortunately, I haven't figured out a 100% reliable way of detecting the normal maps yet, so you'll see weird-looking blue textures on some models. You have to make those textures normal maps for them to look right.

Also, some of the tree placeholders are rotated incorrectly, and some objects aren't positioned correctly on some maps. That might be because I still don't have armatures working the way they should.

Anyway, enjoy!

Re: Valkyria Chronicles (PS3)

Posted: Sun May 26, 2013 2:47 am
by gta1211
Wonderful !

Amazing work, thanks again !

Re: Valkyria Chronicles (PS3)

Posted: Mon May 27, 2013 10:26 am
by windfury
That's really nice! I had to add those eye glints manually by taking them from the alpha map.
Looks like I'll be redoing my renders. Thank you! :keke:

Re: Valkyria Chronicles (PS3)

Posted: Sun Oct 06, 2013 12:42 am
by Xr79
Hey every one, sorry to post such an old reply to this thread, but I am try to use the quick BMS script but all it's extracting is empty files...I have no Idea what I am doing wrong.

Re: Valkyria Chronicles (PS3)

Posted: Sat Jul 12, 2014 4:59 am
by albert1905
chrrox wrote:here is the quickbms script to extract files with names.
It doesn't support Japanese version.

Re: Valkyria Chronicles (PS3)

Posted: Wed Nov 12, 2014 1:00 am
by gomtuu
Good news, everyone! The data files for the recently-released PC version of Valkyria Chronicles are all unencrypted and extracted. All you have to do now is buy the game on Steam, and you can open the models in Blender with import_valkyria.

The PC version's "data" folder contains the same files as the PS3 version's DATA.CVM file, with a few minor exceptions:
  • The PC version's files are organized into subfolders.
  • The 26 files in the PC version's texture_replace folder don't exist in DATA.CVM.
  • 10 of the files in the resource\mtpa folder differ from their PS3 counterparts. I haven't investigated the differences yet, but here's the list of files that differ:
    • mtpa_adv_00.mtp
    • mtpa_adv_11.mtp
    • mtpa_adv_13.mtp
    • mtpa_adv_18.mtp
    • mtpa_book.mtp
    • mtpa_slg.mtp
    • mtpa_sys.mtp
    • mtpa_sys_battle.mtp
    • mtpa_sys_town.mtp
    • mtpa_sys_town2.mtp
I opened resource\mx\valcA01aB_h.mlx from the PC version as a test, and it worked! (I used Blender 2.69.0.) Some of the more complex models might not open, though, because they might depend on files that are in a different folder now.

By the way, is it possible to get the name of this topic changed to "Valkyria Chronicles (PS3, PC)"?

Re: Valkyria Chronicles (PS3)

Posted: Wed Nov 12, 2014 5:27 am
by DecidingToast
gomtuu wrote:Good news, everyone! The data files for the recently-released PC version of Valkyria Chronicles are all unencrypted and extracted. All you have to do now is buy the game on Steam, and you can open the models in Blender with import_valkyria.

The PC version's "data" folder contains the same files as the PS3 version's DATA.CVM file, with a few minor exceptions:
  • The PC version's files are organized into subfolders.
  • The 26 files in the PC version's texture_replace folder don't exist in DATA.CVM.
  • 10 of the files in the resource\mtpa folder differ from their PS3 counterparts. I haven't investigated the differences yet, but here's the list of files that differ:
    • mtpa_adv_00.mtp
    • mtpa_adv_11.mtp
    • mtpa_adv_13.mtp
    • mtpa_adv_18.mtp
    • mtpa_book.mtp
    • mtpa_slg.mtp
    • mtpa_sys.mtp
    • mtpa_sys_battle.mtp
    • mtpa_sys_town.mtp
    • mtpa_sys_town2.mtp
I opened resource\mx\valcA01aB_h.mlx from the PC version as a test, and it worked! (I used Blender 2.69.0.) Some of the more complex models might not open, though, because they might depend on files that are in a different folder now.

By the way, is it possible to get the name of this topic changed to "Valkyria Chronicles (PS3, PC)"?

I've tried using the script to import with blender 2.72, and received some kind of "file not found" error. Is there a specific version of blender that this works best for?

EDIT: Sorry, didn't test it enough. Works for certain files.

Re: Valkyria Chronicles (PS3, PC)

Posted: Wed Nov 12, 2014 7:38 am
by windfury
Good news indeed. Glad to know that you've been looking through the files as well.
Yes! Buy it on Steam people! Who knows, we might even get the sequels ported, too.

Crossing my fingers for some importer progress soon (No rush, enjoy the game first). :D

Re: Valkyria Chronicles (PS3, PC)

Posted: Fri Nov 14, 2014 6:07 pm
by DecidingToast
Yeah, here's hoping for a translation/port of the third game. (also, is a remaster asking too much?)