Player icon indicating copy to clipboard operation
Player copied to clipboard

Feature Request - modDB file

Open jetrotal opened this issue 8 months ago • 0 comments

From time to time we receive requests to change exclusive database parameters. The approach to that always varies from:

  • Convert your LDB to EDB, edit the needed parameter, then convert it back from EDB to LDB (Any change may break it).
  • Learn how to mess with the source code and make an entry inside the .ini file.
  • Wait for the editor.

I'm thinking about a better approach that may be easier to implement in the short term: An extra modDB file that inject custom parameters while the .ldb/.edb files are read.

E.g.: If someone wants to customize their easyrpg_disable_row_feature, they would create a ModDB file and add the following line:

LDB.Database.battlecommands.BattleCommands.easyrpg_disable_row_feature = "F"

After that, every time a game starts, somewhere near ReadLcf() or parseXml(), the current entry for easyrpg_disable_row_feature will be located and replaced with the value pointed inside the ModDB file.

jetrotal avatar Nov 05 '23 02:11 jetrotal