changing UI/Hud icons (xbox to ps buttons) ?

I'm using a playstation gamepad to play this game and I'd like to change the xbox prompts to playstations (ie: Press Y to grab human shield > Press /\ to grab human shield).

I've modded games before and I've done this perticular mod on many other games so it shouldnt be a problem exept I simply cant find the button textures/icons. I've extracted and checked a bunch of stuff but no luck. I can do the mod myself I just need help finding the right file.

Anyone know where the button/key icons are located?
Any help would be much aprechiated.
Thanks.
 
It looks like it may work similarly to SR2 with a tilesheet table file specifying xy coordinates and height/width for each icon.

The misc_tables.vpp_pc archive contains 2 files for button icons:
ui_bms_btn_xbox2.xtbl
ui_bms_btn_ps3.xtbl

It may be as simple as looking up the ps3 coords info in the ps3 table file and changing those values over to them in the xbox2 one which is likely what gets loaded by the game. I've attached both vanilla files here so you don't have to bother extracting with the tools. Once you've made your edits, simply put the revised xbox2 file in your srtt install folder with the exe so it will have load precedence.

If it does work, please consider making an actual release thread, as I'm sure that many players with ps3 controllers would appreciate it. :)
 

Attachments

As an alternate approach, it looks like the buttons are also dynamically defined in vint_lib.lua located in the interface.vpp_pc archive. Each button is defined by the entry name defined in those previous xtbl files. For example:
Code:
function get_x_button()
    local button
    local platform = game_get_platform()
    if (platform == "XBOX360") or (platform == "PC") then
        button = "ui_ctrl_360_btn_x"
    else
        button = "ui_ctrl_ps3_btn_square"
    end
    return button
end

If you changed each button conditional block to something like this it may work:
Code:
function get_x_button()
    local button
    local platform = game_get_platform()
    if (platform == "XBOX360") or (platform == "PC") then
        button = "ui_ctrl_ps3_btn_square"
    end
    return button
end

I've attached the vanilla script as well to this post.
 

Attachments

Hey IdolNinja thanks for your interest and help in this.

I've tried both suggestions but I'm not having any luck.
I changed the filename paths in ui_bms_btn_xbox2.xtbl but that seems to leave me with just blank spaces. I also tried editing ui_bms_ctrl_xbox2.xtbl for easier testing (it's just one picture, the one in the options > gamepad > control scheme) but it also just goes blank when I try to point it to it's ps3 counterpart.

Changing the paths in vint_lib.lua leaves me with square grey boxes instead of the icons.

My original plan was just to do a photoshop job replacing the xbox art assets with custom ps3 ones (it didnt occur to me that this game was released for ps3 and might already have art for this) but I still dont understand where the art assets are located and with my failures of getting any of the ps3 icons to show up in game I'm beginning to wonder if there is anyway to confirm that the source ps3 art files in fact are included in the pc release?
 
It's quite possible that they are not actually included on the tilesheet. I'll try and dig up the actual tilesheets and take a look.
 
I've been through every ui bms sheet and can't seem to find the button icons anywhere. I've done indexed searches on btn, bms, ui, and xbox and extracted every single cvbm/gvbm and cpeg/gpeg result, and came up with nothing. I'm starting to wonder if they may have been compiled into the exe and not something we can actually edit.
 
Ah dang thats a shame.
Thanks again for your time and interest in this though.
Let me know if you come across anything else regarding the subject.
 
Back
Top