Quote:
Originally Posted by zeroibis
Something this got me thinking about. Would it be possible to have a Meta Mod plugin that is able to do the same thing and then actually update the game data files or generate test ones for the user to try out automatically. It would be great if there actually was a simple way to allow for servers to auto update changes.
|
Go for it if you want.
Some reasons that I haven't:
It would only be possible for virtual function offsets, and with the current code, only offsets on linux could be guaranteed to be correct.
That also doesn't take into account writing gamedata back out, which is extra difficult with how it's structured. Multiple files and even multiples of same sections in a file all get combined and flattened internally, without the info needed to write them back out. It would be much extra effort to keep all of the data required to write them back out as they were, rather than a single file per engine or game, with everything that got combined into it.
Another, possibly smarter approach would be to add another gamedata section type to SM, AutoOffset or something that takes a signature or symbol name and just looks up the offset from the vtable on the fly (similar to the checker), but then it still breaks if that signature changes, being more difficult to fix for signatures than the original offset would be, which is one reason why I haven't bothered to add it for Windows yet, and instead use a guess.