Closed JoeNotCharles closed 5 months ago
It's any time an NCS is loaded into the NSS editor, to get a text file to populate the editor with. I don't think it would affect "extract selected" at all since IIUC that doesn't open the editor, but I didn't test it.
On Sun, Mar 10, 2024 at 4:00 PM Benjamin Auquite @.***> wrote:
Is this specifically for the 'extract selected' button or is this feature more generally used by various frontend code?
— Reply to this email directly, view it on GitHub https://github.com/NickHugi/PyKotor/pull/69#issuecomment-1987345935, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMDPPYVTJ64SVKBC273X7TYXTCWDAVCNFSM6AAAAABEORL2BSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBXGM2DKOJTGU . You are receiving this because you authored the thread.Message ID: @.***>
OK I think I'm understanding. This just prompts the user to open a NSS anytime NCS is attempted to be loaded. Not as complex as I thought.
I feel we should do some validation to ensure it matches the NCS. Otherwise the user may pick something that doesn't match. The NCS class contains various methods/attributes for working with NCS files: we should first compile the user-chosen NSS and ensure it matches the NCS, similar to how DeNCS does it.
Additionally if the user is attempting to load a NCS from a bif, the NSS should always be right next to it. Perhaps the dialog you've created should load the NSS automatically in that instance?
Potentially could auto-download the source scripts from their repo, similar to the KitsDownloader and the Help booklet downloader.
That's a good idea. How about defaulting the new pref to False and labeling it "EXPERIMENTAL" until we have time to make those improvements?
I was thinking of having a search path:
There's enough design questions about this that I just punted and opened a manual dialog every time for now.
On Sun, Mar 10, 2024, 19:20 Benjamin Auquite @.***> wrote:
OK I think I'm understanding. This just prompts the user to open a NSS anytime NCS is attempted to be loaded. Not as complex as I thought.
I feel we should do some validation to ensure it matches the NCS. Otherwise the user may pick something that doesn't match. The NCS class contains various methods/attributes for working with NCS files: we should first compile the user-chosen NSS and ensure it matches the NCS, similar to how DeNCS does it.
Additionally if the user is attempting to load a NCS from a bif, the NSS should always be right next to it. Perhaps the dialog you've created should load the NSS automatically in that instance?
Potentially could auto-download the source scripts from their repo, similar to the KitsDownloader and the Help booklet downloader.
— Reply to this email directly, view it on GitHub https://github.com/NickHugi/PyKotor/pull/69#issuecomment-1987405011, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMDPP4IADIMY3ZZF575ZYDYXT2FVAVCNFSM6AAAAABEORL2BSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBXGQYDKMBRGE . You are receiving this because you authored the thread.Message ID: @.***>
Adds a new "Search for NSS files before decompiling NCS resources" setting. If it's enabled, opening an NCS resource will first open a file dialog to let the user choose an NSS file to load, and fall back to decompiling the NCS if the user cancels or the load fails.