chausner/PriTools

update this program

Opened this issue · 11 comments

it hasnt been updated since 2016

Thank you for your interest. Out of curiosity, what are you using this tool for? What exactly would you like to see in an updated version?

I would like to see the abillity to export and replace stuff in pri files, also it looks like the program does not work well with newer pri files

Export should be possible today by right-clicking on a resource candidate in PRIExplorer and clicking "Save as...". Editing/saving of PRI files is indeed not supported at the moment.

also it looks like the program does not work well with newer pri files

Do you have some sample files that demonstrate the problem? Will these files not open at all or is there a problem with some resources inside the file? Do you maybe refer to decompilation of XBF files inside PRI files?

Microsoft.Windows.FileExplorer_cw5n1h2txyewy.zip
some resources have only the name and nothing in them (idk if this is supposed to happen) and for the decomplication of xbf files it shows an error

Thanks!

some resources have only the name and nothing in them (idk if this is supposed to happen)

I think this is not a bug. In your example, the main resources.pri contains just an index of localized resources while the actual (language-specific) values are contained in pris\resources.en-US.pri.

the decomplication of xbf files it shows an error

Yes, the XBF2 decompiler which I took from https://github.com/misenhower/XbfAnalyzer seems to have issues with newer XBF files.

I have pushed a number of changes that should fix the XBF2 decompilation issues for most files. There are still some issues remaining for more exotic files but those should be rare.

the xbf decompiler doesn't show anything

I think you are referring to the XbfAnalyzer application? That is primarily meant as a development tool for analyzing the XBF file structure, therefore it lacks a proper UI. Files need to be dragged and dropped onto the application window to load them.

The functionality of XbfAnalyzer is integrated in PRIExplorer. In case you are seeing no output in PRIExplorer, can you share the specific files where you are seeing this problem?

I don't see any output in the xbf analyzer. does it show anything for you?
Screenshot 2024-08-25 104257
calc.zip

Thanks for sharing the file and screenshot. The behavior you see on the screenshot is most certainly not a bug. Sometimes PRI files only contain a "table of contents" but not the actual resources (you see this seems to be the case here because there are no resource candidates listed on the top-right). I've seen this most often with PRI files containing localized resources. You likely opened a file like resources.en-US.pri. Try opening the corresponding resources.pri which should contain all non-localized resources, including app.xbf.

Regarding the calculator sample you shared: some of the XBF files in there still lead to decompilation issues. Those are a known limitation at the moment.

I tried it again and it works, it can decompile some xbf but some others it can't

you show add the ability to set resource root path when no pri files are loaded(the button is greyed out when no pri files are loaded), maybe also publish a new release on the github repo as well.

and if you want to( you don't have to do this), you can add editing functions and a dark mode.