reone icon indicating copy to clipboard operation
reone copied to clipboard

Feature Request - Hot Reloading Modules, Scripts, and Dialogues

Open lachjames opened this issue 3 years ago • 0 comments

Hi :)

As you probably know, the original KotOR games are difficult to mod because of the way save games work - when you save a game in a particular module, the game will load many resources from that module (overriding any resources in the base game folder). This is troublesome when modding the games, sometimes requiring a bit of in-game play for every test of a dialog or module edit.

What would be great is if Reone had a "developer" mode that:

  • Saves a checksum of the original game file for each item saved in a game save
  • When loading while in developer mode, if an original file has changed (i.e. different checksum), override the save game file with it.

Now, this is not a perfect solution - what would be fantastic would be to somehow intelligently diff the save-game and the original, and diff the new version and the original, and then reconcile the two... but I think such a feature would not be reliable enough, which defeats the point of including it at all. The ability to hot-swap module and dialog files, perhaps while keeping the state-variables the same (that is, variables that were not in the original file at all, but were added during the game save) would be a good compromise here?

Even just allowing the hot-swapping of dialog files would be incredible, and that shouldn't require much work because dialog files aren't edited in saves anyway.

Thanks for the awesome project!

lachjames avatar Jan 17 '22 08:01 lachjames