Results 1 to 7 of 7

Thread: cpecific's UI Layout parser

  1. #1
    Jake Armitage's Avatar Artifex
    Join Date
    Apr 2011
    Location
    apartment 6
    Posts
    4,445

    Default cpecific's UI Layout parser

    And yeah...
    Thanks to cpecific (and to him only)...
    We finally have an UI file reader (tested and works fine)

    From now on... UI files aren't the foggy mysteries they used to be.
    And this open doors for modding all the juicy things you can do there.

    (this is pretty much "advanced modding" so don't even think about if you aren't really interested)

    - you'll need xampp to execute the php (tutorials are easy to be found around the net). Download and install it as per default
    - you'll need to put the "twwh2_ctm-master" folder inside xampp's "htdocs" folder, after you installed xampp ofc (c/xampp by default, better to keep it there)
    - you'll need to paste all rome2 UI files (as you extract them with pfm/rpfm) inside "xampp" > "htdocs" > "twwh2_ctm-master" > "game" (do a new folder called game and put everything there)
    - you'll need to paste the "templates" folder too in the same folde the UI files are
    - you can paste UI png too, so that the browser will be capable of opening the image (if needed)
    - run xampp's apache and MySQL in the xampp control panel
    - execute ui.php through xampp (basically, paste "http://localhost/twwh2_ctm-master/ui.php" in your browser - I'm using firefox but should work with any)

    TEMPLATE FOLDER: https://www.mediafire.com/file/5xj2l...lates.zip/file
    DOWNLOAD: https://github.com/Cpecific/twwh2_ctm
    Last edited by Jake Armitage; June 22, 2021 at 06:40 AM.

  2. #2
    Morticia Iunia Bruti's Avatar Praepositus
    Join Date
    May 2015
    Location
    Deep within the dark german forest
    Posts
    5,561

    Default Re: cpecific's UI Layout parser

    Thanks, as i already have xampp installed, i will soon have a look.
    I'm no barbie doll I'm not your baby girl
    I've done ugly things and I have made mistakes
    And I am not as pretty as those girls in magazines
    I am rotten to my core if they're to be believed
    So what if I'm no baby bird hanging upon your every word?
    Nothing ever smells of roses that rises out of mud


    Garbage - Why do you love me


  3. #3
    Daruwind's Avatar Citizen
    Join Date
    Oct 2013
    Location
    Prague
    Posts
    2,902

    Default Re: cpecific's UI Layout parser

    Well in case you are running R2/Attila...try to copy inside "UI" folder extracted from R2/Attila folder "templates" from TOB UI folder..or Wh2 has one too i think. Those are examples of simple stuff and mine is not working correctly without those..and you need just appache from XAMPP and PHP..
    DMR: (R2) (Attila) (ToB) (Wh1/2) (3K) (Troy)

  4. #4
    Jake Armitage's Avatar Artifex
    Join Date
    Apr 2011
    Location
    apartment 6
    Posts
    4,445

    Default Re: cpecific's UI Layout parser

    a couple of visual (but real) basic samples you can obtain via UI editing

    complex/interactive custom rpgish event system
    Spoiler Alert, click show to read: 

    campaign features interaction (in this case for DeI population system)
    Spoiler Alert, click show to read: 

  5. #5

    Default Re: cpecific's UI Layout parser

    I want trade route tooltip to not show up when I go with my mouse over the trade route. Reason being it drops the fps when I do that. Would that be possible to edit in trade_route_tooltip? I tried to open the files with the browser by entering http://localhost/twwh2_ctm-master/ui.php but I just get a blank page. I extracted all ui files form PFM to game folder but you also mention templates folder. Where do I find templates folder? Do I really need them if I just want to edit trade_route_tooltip file?

  6. #6
    Jake Armitage's Avatar Artifex
    Join Date
    Apr 2011
    Location
    apartment 6
    Posts
    4,445

    Default Re: cpecific's UI Layout parser

    it should be possible yeah, via editing the ui file or via lua (which would be easier I think)
    not sure about the actual process since I've never donE that for this specific stuff

    yes you need the template folder, not sure frOm where it comes but should be this one
    https://www.mediafire.com/file/5xj2l...lates.zip/file

  7. #7

    Default Re: cpecific's UI Layout parser

    You need to paste the templates folder in the ui folder..
    C:\xampp\htdocs\twwh2_ctm-master\game\ui\templates\

    Then it works.

Posting Permissions

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