Post by eternity on Jan 3, 2017 19:48:38 GMT
Requirements of the tutorial.
- xv2patcher 0.8 or greater
- xv2characreator / mods installer 0.55 or greater
- Paint.net (photoshop - at least the version i'm using - doesn't seem to understand the alpha channel of my dumped bmp, and Gimp hasn't been tested).
----------------------
XV2Patcher 0.8+ / XV2 Mods Installer 0.55+ include a new feature that allow a mod to use a generated by game battle portrait (like the game does for Cacs). However this feature doesn't work for css images.
This tutorial will teach you how to dump that image and how to create a dds file that you can later use as css image.
Step 1, buliding the x2m and installing it.
(this step is not necessary if your x2m has been generated by Cac2x2m 0.3+ or Cycit 0.5+)
In the files tab, make sure that your mod uses an auto-generated by game battle portrait. To do that, click button change and press "Use game battle portrait auto-generation"
After that, isntall the mod.
Step 2, configuring xv2patcher and running the game
Open xv2patcher.ini, and change this line
dump_auto_gen_portrait = false -> dump_auto_gen_portrait = true
This will instruct xv2patcher to dump the first auto-generated battle portrait that the game tries to auto-generate. I highlighted "first", because xv2patcher is coded to only dump a single image in the whole session, and that's the first auto-generated battle portrait. This is done for technical reasons, but I won't bore you with the details.
So now run the game, and select your character. Select a stage with sunny weather. Why, you may wonder? Becasue the auto generated battle portrait gets influenced by the lightining effect the game applies, and if you chose a non-sunny one... well, you will notice it.
The Tenkainchi Budokai (tournament) stage is fine.
as soon as the battle starts, xv2patcher should have dumped the file to XV2PATCHER/portrait.bmp. Otherwise, check for errors in the log.
Step 3, converting the image to dds
Open the bmp file with paint.net (as I said earlier, it seems photoshop can't understand the alpha channel of that file).
The file has the double width and double height (768x384) that the game requires for a regular css image (384x192). So, you'll have to shrink it by 50%.
Go to Image->Resize, and select "By percentage", and select 50%. Click ok.
Now, save the image as DDS file. In options choose something like this:
Step 4 - Cleanup
well, you can now use that dds file in the x2m, as Css image.
But don't forget to put dump_auto_gen_portrait back to false.
That setting should be only set to true when needed, because it uses ugly code inside
- xv2patcher 0.8 or greater
- xv2characreator / mods installer 0.55 or greater
- Paint.net (photoshop - at least the version i'm using - doesn't seem to understand the alpha channel of my dumped bmp, and Gimp hasn't been tested).
----------------------
XV2Patcher 0.8+ / XV2 Mods Installer 0.55+ include a new feature that allow a mod to use a generated by game battle portrait (like the game does for Cacs). However this feature doesn't work for css images.
This tutorial will teach you how to dump that image and how to create a dds file that you can later use as css image.
Step 1, buliding the x2m and installing it.
(this step is not necessary if your x2m has been generated by Cac2x2m 0.3+ or Cycit 0.5+)
In the files tab, make sure that your mod uses an auto-generated by game battle portrait. To do that, click button change and press "Use game battle portrait auto-generation"
After that, isntall the mod.
Step 2, configuring xv2patcher and running the game
Open xv2patcher.ini, and change this line
dump_auto_gen_portrait = false -> dump_auto_gen_portrait = true
This will instruct xv2patcher to dump the first auto-generated battle portrait that the game tries to auto-generate. I highlighted "first", because xv2patcher is coded to only dump a single image in the whole session, and that's the first auto-generated battle portrait. This is done for technical reasons, but I won't bore you with the details.
So now run the game, and select your character. Select a stage with sunny weather. Why, you may wonder? Becasue the auto generated battle portrait gets influenced by the lightining effect the game applies, and if you chose a non-sunny one... well, you will notice it.
The Tenkainchi Budokai (tournament) stage is fine.
as soon as the battle starts, xv2patcher should have dumped the file to XV2PATCHER/portrait.bmp. Otherwise, check for errors in the log.
Step 3, converting the image to dds
Open the bmp file with paint.net (as I said earlier, it seems photoshop can't understand the alpha channel of that file).
The file has the double width and double height (768x384) that the game requires for a regular css image (384x192). So, you'll have to shrink it by 50%.
Go to Image->Resize, and select "By percentage", and select 50%. Click ok.
Now, save the image as DDS file. In options choose something like this:
Step 4 - Cleanup
well, you can now use that dds file in the x2m, as Css image.
But don't forget to put dump_auto_gen_portrait back to false.
That setting should be only set to true when needed, because it uses ugly code inside