Results 1 to 8 of 8

Thread: UI Converter for S2TW

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Artifex
    Patrician

    Join Date
    Oct 2008
    Location
    London, UK
    Posts
    1,332

    Default UI Converter for S2TW

    So you all know UI converter for ETW and NTW which I've been maintaining, right?

    I just figured out Version043 format, used by some of the S2TW files and added support for it.

    Now don't get too excited, current statistics of all UI files across all games (from all .packs, I'll need to clean up duplicates) look like this:

    Version025: {"ui->xml fail"=>1}
    Version027: {"ui->xml fail"=>1}
    Version028: {"ui->xml fail"=>3}
    Version029: {"ui->xml fail"=>7}
    Version030: {"ui->xml fail"=>3}
    Version031: {"ui->xml fail"=>1} ← very old formats nobody cars about
    Version032: {"ok"=>20} ← some of ETW ui
    Version033: {"ok"=>142} ← most of ETW ui
    Version039: {"ui->xml fail"=>4, "ok"=>155} ← most of NTW ui
    Version043: {"ok"=>4} ← this is what I just fixed
    Version044: {"ui->xml fail"=>1}
    Version046: {"ui->xml fail"=>5}
    Version047: {"ui->xml fail"=>7}
    Version049: {"ui->xml fail"=>9}
    Version050: {"ui->xml fail"=>269} ← S2TW ui
    Version051: {"ui->xml fail"=>222} ← S2TW ui
    Version052: {"ui->xml fail"=>4}
    Version054: {"ui->xml fail"=>126} ← S2TW ui

    The only reason Version043 support matters is that it will let me reach Version050/051/054, step by step, the same way I added support for Version033 and Version032 starting from alpaca's converter for Version039 alone.

    Since I'll most likely be adding support for new versions step by step, and each step involves manually digging through tons of binary data, it will take something between one and two forevers before I actually reach Version050 and significant % of S2TW's ui files become moddable. But at least some progress is happening now.

  2. #2
    Akaie's Avatar Sangi Ukon'e no Chūjō
    Join Date
    Jun 2011
    Location
    Australia
    Posts
    3,291

    Default Re: UI Converter for S2TW

    Excellent! Your work on this matter is much appreciated .

    The S2 Onin War Mod | Boshin: Total Domains
    Patron of Erwin Rommel
    Under the proud patronage of Radious


  3. #3

    Default Re: UI Converter for S2TW

    You are a wizard

  4. #4
    Artifex
    Patrician

    Join Date
    Oct 2008
    Location
    London, UK
    Posts
    1,332

    Default Re: UI Converter for S2TW

    Version025: {"ui->xml fail"=>1}
    Version027: {"ui->xml fail"=>1}
    Version028: {"ui->xml fail"=>3}
    Version029: {"ui->xml fail"=>7}
    Version030: {"ui->xml fail"=>3}
    Version031: {"ui->xml fail"=>1}
    Version032: {"ok"=>20}
    Version033: {"ok"=>142}
    Version039: {"ui->xml fail"=>4, "ok"=>155}
    Version043: {"ok"=>4} ← works now
    Version044: {"ok"=>1} ← works now
    Version046: {"ok"=>4} ← works now
    Version047: {"ok"=>6} ← works now
    Version049: {"ui->xml fail"=>9}
    Version050: {"ui->xml fail"=>269}
    Version051: {"ui->xml fail"=>222}
    Version052: {"ui->xml fail"=>4}
    Version054: {"ui->xml fail"=>126}

    So actually, it's moving forward faster than I expected.

  5. #5
    Artifex
    Patrician

    Join Date
    Oct 2008
    Location
    London, UK
    Posts
    1,332

    Default Re: UI Converter for S2TW

    Stats for all UI files I found in ETW, NTW, and S2TW (contains some duplicates):

    Version025: {"ui->xml fail"=>1}
    Version027: {"ui->xml fail"=>1}
    Version028: {"ui->xml fail"=>3}
    Version029: {"ui->xml fail"=>7}
    Version030: {"ui->xml fail"=>3}
    Version031: {"ui->xml fail"=>1}
    Version032: {"ok"=>20}
    Version033: {"ok"=>142}
    Version039: {"ui->xml fail"=>4, "ok"=>155}
    Version043: {"ok"=>4}
    Version044: {"ok"=>1}
    Version046: {"ok"=>4}
    Version047: {"ok"=>6}
    Version049: {"ok"=>7} ← works now
    Version050: {"differ"=>6, "ui->xml fail"=>40, "ok"=>223} ← works now
    Version051: {"ui->xml fail"=>222}
    Version052: {"ui->xml fail"=>4}
    Version054: {"ui->xml fail"=>126}

    A lot of ui files from data.pack work now.

    Very few of packs from patch*.pack works, but usually you can get a working one in data.pack, so you should be able to mod most of ui files now.

    I tried figuring out Version051 but it totally failed - there's a mysterious byte that sometimes occurs and sometimes doesn't, and it screws the entire reference frame.

    There's still 46 failures in Version050 and 4 failures in Version039.

    I have some clue what 10 of them are probably about (4 Version039 files and 6 Version050 files with "differ" have a weird extra data structure - but it looks like it's actually different by one byte between the two versions). I have no idea what this data structure actually is about - it's string, two 00 bytes, int, float, 14 ints.

    For other 40 failed Version050 files I have even less clue. It's quite likely this would need to be figured out before decoding further versions is possible.

    Anyway, much progress was made, give it a try, but don't expect anything more anytime soon.

    ----

    Two more things:

    First, decoder creates a lot of entries like "flag12", "int7" etc. I have no ing idea what they actually do. You could help with this.

    Second, there's "post_battle_entry.twui" file in one of the *.packs, with what looks like CA's decoded UI entry. It's not meant to be human readable, but that's the best we've got, so maybe it will give someone some clue. (I attached it to this post)

    There's also post_battle_entry.twui.images which contains a bunch of TGA files packed together. They're both look like intermediate steps in compiling UI files. If they give you any clue, tell me.

  6. #6
    Akaie's Avatar Sangi Ukon'e no Chūjō
    Join Date
    Jun 2011
    Location
    Australia
    Posts
    3,291

    Default Re: UI Converter for S2TW

    Damn that was fast! I'll have a gander at some of the version50 ones! Thanks!

    The S2 Onin War Mod | Boshin: Total Domains
    Patron of Erwin Rommel
    Under the proud patronage of Radious


  7. #7

    Default Re: UI Converter for S2TW

    Taw...i've been messing around with some files and trying to work up a UI converter myself. I have to admit i'm a texturer first and scripter second so i'm pretty much out of my league. I would like to offer you some help if you need any however an offer my support to your project. Drop me a pm if you are interested. Thanks

  8. #8
    Akaie's Avatar Sangi Ukon'e no Chūjō
    Join Date
    Jun 2011
    Location
    Australia
    Posts
    3,291

    Default Re: UI Converter for S2TW

    Texturer, eh? Interested in doing a small bit of work for Sekigahara? I'm about to go to sleep now, but if you're interested, shoot me a PM and I'll note what I'd like you to do .

    Not to worry, it's not a huge amount of work; it's re-making the textures of one of these using pre-existing texture sheets and meshes.

    The S2 Onin War Mod | Boshin: Total Domains
    Patron of Erwin Rommel
    Under the proud patronage of Radious


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •