• Coming with Proboards v6

  • View All Forums Dragonball FighterZ Dragonball Xenoverse Dragonball Xenoverse 2 Jump Force Naruto Ultimate Ninja Storm Saint Seiya: Soldier's Soul Other Games
  • Introductions Announcements Discussions Network Creative Zone
  • vgmods.net xenoversemods.com fighterzmods.com
Sign in
 Sign up
NEWS 

.

  • Anime Game Mods
  • ...
  • Tutorials
  • Dumping an auto-generated by game battle portrait
  • Featured Games
    • Dragon Ball: Xenoverse 2
      • Game Discussions
      • Mods
        • Requests
      • Tools
        • Eternity Audio Tool
      • ID Lists
      • Tutorials
      • Help
      • Resources
    • Saint Seiya: Soldier's Soul
      • Game Discussions
      • Mods
      • Resources
        • ID Lists
        • Tools
          • Eternity Audio Tool
      • Tutorials
      • Help & Requests
    • Naruto: Ultimate Ninja Storm Series
      • Series Discussions
      • Ultimate Ninja Storm 4 Mods
        • Mod Releases
        • Works In Progress
        • Modding Tools and Utilities
        • Modding Tutorials
        • Mods (Revolution, 3, 2, 1)
      • Resources
        • ID Lists
        • Tools
      • Tutorials
      • Help & Requests
    • Dragon Ball: FighterZ
      • Game Discussions
      • Mods
      • Research
      • Resources
        • Tools
        • ID Lists
      • Tutorials
    • Dragon Ball: Xenoverse
      • Game Discussions
      • Mods
      • Resources
        • Tools
          • Eternity Audio Tool
        • ID Lists
      • Tutorials
      • Help
      • Requests
    • Other Games
      • Miscellaneous
        • Help & Requests
        • Tools & Tutorials
        • Research & Mods
      • Jump Force
        • Game Discussions
        • Mods
        • Research
        • Resources
          • ID Lists
          • Tools
        • Tutorials
      • DB: Heroes - World Mission
        • Mods
        • Resources
          • ID Lists
          • Tools
        • Tutorials
      • DB: Legends
        • Assets
      • DB:BT3
        • Modders Zone
        • Tools & Tutorials
        • Help & Requests
      • DB:RB2
        • Assets
        • Resources
          • ID Lists
          • Tutorials
      • DB:Sagas
        • Mods
        • Resources
          • Tutorials
          • ID Lists
      • OP:BB
        • Tools & Tutorials
        • Help & Requests
      • OP:PW3
        • Mods
      • UKWSV
        • Mods
        • Tools & Tutorials
        • Help & Requests
  • Community
    • Introductions
    • Announcements
    • Discussions
      • General
      • Feedback & Support
    • Creative Zone
      • Art Gallery
      • Modding Resources
Guest Avatar

Dumping an auto-generated by game battle portrait

fix

title

Tick this box if you would like to allow other members to add images to your gallery.Add Image
    • Reply
    • Share Thread
      • Facebook
      • Twitter
      • Tumblr
      • LinkedIn
      • Email
    • Go to
      • Previous Thread
      • Next Thread
    • Please make a selection first
    newBookmarkLockedFalling
    • « Prev
    • 1
    • Next »
    • Reply
    • Share Thread
      • Facebook
      • Twitter
      • Tumblr
      • LinkedIn
      • Email
    • Go to
      • Previous Thread
      • Next Thread
    • Please make a selection first
    newBookmarkLockedFalling
    • « Prev
    • 1
    • Next »
    eternity
    eternity Avatar
    ******
    Moderator
    Posts: 1,557 Male
    Last seen:
    Jan 22, 2021 20:57:02 GMT
    Dumping an auto-generated by game battle portrait Jan 3, 2017 19:48:38 GMT  
    • Select Post
    • Deselect Post
    • Link to Post
    • Member
      • Give Gift
    • Back to Top

    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 :)




    Last Edit: Jan 18, 2017 7:26:10 GMT by eternity
    無限
    無限 Avatar
    *****
    VIP
    Posts: 559
    Last seen:
    Jan 31, 2016 16:07:14 GMT
    Dumping an auto-generated by game battle portrait Jan 4, 2017 21:17:44 GMT  
    • Select Post
    • Deselect Post
    • Link to Post
    • Member
      • Give Gift
    • Back to Top

    Post by 無限 on Jan 4, 2017 21:17:44 GMT

    do i need to use the mod installer to get the auto generated portrait? or is just the patcher needed to create one?

    as in will this work with manually installed characters or a install method other than x2m.
    Last Edit: Jan 4, 2017 21:18:51 GMT by 無限
    do not bother me about creating tool cause i don't take requests.
    eternity
    eternity Avatar
    ******
    Moderator
    Posts: 1,557 Male
    Last seen:
    Jan 22, 2021 20:57:02 GMT
    Dumping an auto-generated by game battle portrait Jan 4, 2017 21:29:22 GMT  
    • Select Post
    • Deselect Post
    • Link to Post
    • Member
      • Give Gift
    • Back to Top

    Post by eternity on Jan 4, 2017 21:29:22 GMT

    無限 Avatar
    Jan 4, 2017 21:17:44 GMT 無限 said:
    do i need to use the mod installer to get the auto generated portrait? or is just the patcher needed to create one?

    as in will this work with manually installed characters or a install method other than x2m.
    Well, if you manipualte the data/pre-baked.xml fine on your own, you are fine. But the patcher doesn't come with any default pre-baked.xml.

    Anyway, this i what a data/pre-baked.xml looks like:


    <?xml version="1.0" encoding="utf-8" ?>
    <Xv2PreBaked>
    <!--This file is used by xv2patcher and XV2 Mods Installer. It defines characters data that only exist in exe at runtime. -->
    <!------------------------------------------------>
    <!--This is the list of additional ozarus to add to the game.-->
    <OZARUS value="B95" />
    <!--This is the list of characters that will have an auto battle portrait.-->
    <AUTO_BTL_PORT value="0x9f, 0xa2, 0x9b, 0x95, 0x9c, 0x99, 0x97, 0x9d, 0x9e, 0xa0" />
    <!--This is the list of body shapes to apply.-->
    <BodyShape cms_id="0xa2" body_shape="7" />
    <BodyShape cms_id="0xa3" body_shape="7" />
    <BodyShape cms_id="0xa4" body_shape="11" />
    <BodyShape cms_id="0xa5" body_shape="11" />
    <BodyShape cms_id="0xa0" body_shape="6" />
    <BodyShape cms_id="0x9f" body_shape="10" />
    </Xv2PreBaked>

    EDIT: edited the pasted pre-baked, for a better example without duplicates.
    Last Edit: Jan 4, 2017 21:59:16 GMT by eternity
    babyvigeto
    babyvigeto Avatar
    **
    Fighter
    Posts: 10 Male
    Last seen:
    Apr 11, 2018 19:29:18 GMT
    Dumping an auto-generated by game battle portrait Jan 6, 2017 16:57:07 GMT  
    • Select Post
    • Deselect Post
    • Link to Post
    • Member
      • Give Gift
    • Back to Top

    Post by babyvigeto on Jan 6, 2017 16:57:07 GMT


    CAC can?
    Feraz
    Feraz Avatar
    ****
    Hero

    Modding:

    Taking Requests:

    Posts: 361 Male
    Last seen:
    Jan 22, 2021 13:52:40 GMT
    Dumping an auto-generated by game battle portrait Jan 6, 2017 17:02:15 GMT  
    • Select Post
    • Deselect Post
    • Link to Post
    • Member
      • Give Gift
    • Back to Top

    Post by Feraz on Jan 6, 2017 17:02:15 GMT

    Is possible to make ALL characters using auto generated portrait without having to editing all the x2ms?
    eternity
    eternity Avatar
    ******
    Moderator
    Posts: 1,557 Male
    Last seen:
    Jan 22, 2021 20:57:02 GMT
    Dumping an auto-generated by game battle portrait Jan 6, 2017 17:08:37 GMT  
    • Select Post
    • Deselect Post
    • Link to Post
    • Member
      • Give Gift
    • Back to Top

    Post by eternity on Jan 6, 2017 17:08:37 GMT

    Feraz Avatar
    Jan 6, 2017 17:02:15 GMT Feraz said:
    Is possible to make ALL characters using auto generated portrait without having to editing all the x2ms?

    There is a way, but "unofficial", and it will be overwritten each time you update the patcher.
    Go to the file Epatches/prebaked_patches.xml

    Edit it with a text editor. Go near the end, to the patch whose name is "AutoBtlPortrait".
    Change type="hook" to type="write".

    Remove the <Hook type=... /> line.
    And write this line in its place: <Write value="b8 01 00 00 00" />

    That will make all chars (including all official ones) use the auto generated portrait. They will fail in the auto-generations of portrait for expert missions result though, as that's the next patch and that one cannot be manipulated like this one.
    Last Edit: Jan 6, 2017 17:15:24 GMT by eternity
    Feraz
    Feraz Avatar
    ****
    Hero

    Modding:

    Taking Requests:

    Posts: 361 Male
    Last seen:
    Jan 22, 2021 13:52:40 GMT
    Dumping an auto-generated by game battle portrait Jan 6, 2017 17:20:03 GMT  
    • Select Post
    • Deselect Post
    • Link to Post
    • Member
      • Give Gift
    • Back to Top

    Post by Feraz on Jan 6, 2017 17:20:03 GMT

    Good and thanks , but with my devilman mod the game generates the portrait using another animation, why?
    eternity
    eternity Avatar
    ******
    Moderator
    Posts: 1,557 Male
    Last seen:
    Jan 22, 2021 20:57:02 GMT
    Dumping an auto-generated by game battle portrait Jan 6, 2017 17:26:55 GMT  
    • Select Post
    • Deselect Post
    • Link to Post
    • Member
      • Give Gift
    • Back to Top

    Post by eternity on Jan 6, 2017 17:26:55 GMT

    Feraz Avatar
    Jan 6, 2017 17:20:03 GMT Feraz said:
    Good and thanks , but with my devilman mod the game generates the portrait using another animation, why?
    Well, I have no idea of which animation the game uses when generating that portrait.
    Feraz
    Feraz Avatar
    ****
    Hero

    Modding:

    Taking Requests:

    Posts: 361 Male
    Last seen:
    Jan 22, 2021 13:52:40 GMT
    Dumping an auto-generated by game battle portrait Jan 6, 2017 17:30:25 GMT コモド:ゼノ Komodo: Xeno likes this
    • Select Post
    • Deselect Post
    • Link to Post
    • Member
      • Give Gift
    • Back to Top

    Post by Feraz on Jan 6, 2017 17:30:25 GMT

    I think they use CMN_HUD animation, also giant character are really bugged lol
    Vlad The Imapler
    Vlad The Imapler Avatar
    ***
    Warrior
    Posts: 62 Male
    Last seen:
    Jan 20, 2019 0:26:18 GMT
    Dumping an auto-generated by game battle portrait Mar 18, 2017 18:28:56 GMT  
    • Select Post
    • Deselect Post
    • Link to Post
    • Member
      • Give Gift
    • Back to Top

    Post by Vlad The Imapler on Mar 18, 2017 18:28:56 GMT

    Is there any way to enable the dump of more than one portrait per session?
    Rai
    Rai Avatar
    ******
    Moderator
    Posts: 1,272 Male
    Last seen:
    Dec 17, 2016 17:43:12 GMT
    Dumping an auto-generated by game battle portrait Mar 19, 2017 13:18:46 GMT  
    • Select Post
    • Deselect Post
    • Link to Post
    • Member
      • Give Gift
    • Back to Top

    Post by Rai on Mar 19, 2017 13:18:46 GMT

    Nope
    Reply
    • Reply
    • Share Thread
      • Facebook
      • Twitter
      • Tumblr
      • LinkedIn
      • Email
    • Go to
      • Previous Thread
      • Next Thread
    • Please make a selection first
    newBookmarkLockedFalling
    • « Prev
    • 1
    • Next »
    Click here to remove banner ads from this forum.
    This Forum Is Hosted For FREE By ProBoards
    Get Your Own Free Forum!
    Terms of Service | Privacy | Cookies | FTC Disclosure | Report Abuse | Report Ad