Closed AsteroidPizza39 closed 1 year ago
One slight caveat, modifications/additions will need to be explicitly defined in case of duplicate hashes (which can happen fairly often with 300k values)
meaning we’d have to specify whether an edit is a modification or a new entry?
Correct.
Personally, i think that if someone is already creating a mod that edits RSTB, it’s a reasonable expectation that they’ll know which of their files is brand new vs which are edits.
Yes the user will know, but the computer needs to know as well.
Unless the parent table is also defined, there is no way of knowing on edge cases when a entry is an edit of a crc32 entry, or a duplicate hash and should be placed in the string entry.
(Unless I misread your message there... I suppose you could just mean "yes, that works cause the user will know and can define them")
So something like this is probably what I'd use for markup.
{
"StringTable": {
"key_1": 1111,
"key_2": 2222
},
"HashTable": {
"key_3": 1111,
"key_4": 2222
}
}
Ideally, this will be generated after making edits in the restbl editor.
seeing as the program asks to define a game path for totk, you could add an ‘open TOTK restbl’ button with the TOTK plugin that would navigate to the restbl file of the dump. Then another button for importing/merging/exporting edits, and that would make nx-editor the ultimate mod merging tool (for now)
Yeah merging will be pretty trivial. I'll need some way for plugins to communicate to make it seamless though, which is a bit difficult.
if it would have to communicate between plugins, maybe base it in the main program and have it go through that?
if it would have to communicate between plugins, maybe base it in the main program and have it go through that?
Completely forgot to respond to this.
This works fine, but kind of defeats the point of plugins all together.
Implemented in the new restbl editor
The purpose of this feature would be to increase the efficiency of editing the Resource Size Table for the sake of creating mods and increasing version compatibility. Here is how I would imagine this working, with the example file of
ResourceSizeTable.Product.112.rsizetable
.ResourceSizeTable.Product.112.rsizetable
Batch Import RSTB Modifications
ResourceSizeTable.Product.112.rsizetable
are applied automaticallyRSTB Edits.txt