Foxxyyy / Magic-RDR

RPF Editor for Red Dead Redemption
46 stars 6 forks source link

edit sst file #13

Open GMBanstudio opened 7 months ago

GMBanstudio commented 7 months ago

I have problem with string table type files, if i extract its, i have none app can read or edit it, if i export i can not import that file again, the game does not accept it as a string table file anymore, even it still a sst file. Is there any ways to edit these file or any app can read and edit it? (I am edit files in strings_switch.rpf)

GMBanstudio commented 7 months ago

sorry some file is missing when i extract so i cann't edit

GMBanstudio commented 7 months ago

Uh can we change the key

Foxxyyy commented 7 months ago

Not sure why you want to export those files.

You should be able to edit a .sst by just double-clicking it in the tool and edit the strings. When you're done, hit the Save button and you import the saved file back into the .RPF

GMBanstudio commented 7 months ago

when i "save" the keys are changed to a new and never return

GMBanstudio commented 7 months ago

Even you don't change any value

Foxxyyy commented 7 months ago

Please be more specific, can you tell me with pictures maybe ; what you did initially and what's the final result.

Provide the Key/Value you're trying to edit and the name of the .sst.

@GMBanstudio

GMBanstudio commented 7 months ago

before save This is before save

and this is after Screenshot 2024-02-24 211622

i have not even edit anything, the keys are automatic changed

Foxxyyy commented 7 months ago

The keys are recalculated when you rebuild the file yeah, but is that a issue?

I mean I can understand it can be annoying to have these strings at a different position everytime you rebuild but if it works in-game, it should be good.

Did you try to edit a few strings and see if they changed in the game? I did change some in the past and that always worked fine but maybe there's some issues with it.

Also be careful when you edit strings, there are a lot of duplicated text through the different files. For example the Loading... text you get during loading screens is defined in interface_en and global_en. If you edit both, you won't even see any changes, because they're also defined in global.strtbl which seems to be the file that matters the most.

On a side note, I will probably add support for strings with the project I'm currently working on: CodeX

@GMBanstudio

GMBanstudio commented 7 months ago

Yes it have changed, the game only read the value in string if there are the right keys, if not, the strings in-game are disappear

BanhMi939 commented 5 months ago

Yes it have changed, the game only read the value in string if there are the right keys, if not, the strings in-game are disappear

same issues. Edited the text then saved it then import it back, and all the subtitle text of the file i've edited disappear.

Foxxyyy commented 4 months ago

@GMBanstudio @BanhMi939

I just added editing support for .strtbl files in CodeX if you wanna try :)

You should only edit the global_switch.strtbl file because it's the only one that really matters from what I've seen. (right-click the file, click on export xml, edit the xml with Notepad++ and then reimport the xml, that will convert it back to .strtbl)

We still cannot edit the .sst's properly though, sorry (think they're useless anyways)

BanhMi939 commented 4 months ago

@GMBanstudio @BanhMi939

I just added editing support for .strtbl files in CodeX if you wanna try :)

You should only edit the global_switch.strtbl file because it's the only one that really matters from what I've seen. (right-click the file, click on export xml, edit the xml with Notepad++ and then reimport the xml, that will convert it back to .strtbl)

We still cannot edit the .sst's properly though, sorry (think they're useless anyways)

well, that file "global_switch.strtbl" only used for the UI, i tried to editing that file before, nothing changed in game. But hey, tysm for the tool brother.

Foxxyyy commented 4 months ago

I don't know, that file seems to contain the subtitles but I guess you can also just edit the other .strtbl too. But I don't see why people would edit the subtitles though.