(Mod Error) Pk's Rebalancing monster flag error

so another line of experimental updates is released and i updated it to the latest version. but when i start the game with my usual modlist. an error comes from PK’s Rebalancing, and the error is invalid monster flag. i’ve tried to fix it by myself but it turns out a lot of invalid monster flag happens.

list of invalid monster flag : (REGENERATES_50), (REGEN_MORALE).

replace the flags by entries

      "regenerates": 10,
      "regen_morale": true

ohh nice, it becomes simple then, i love it…

sadly its not only one monster group so i have to tell PK’s rebalancing author to do some fixing.

also breaks nechronica redux apparently

ohh okay. that means big change for non-mainlined mods then.

don’t know Nechronica is still updated or not…

DEBUG : Error: data/mods//PKs_Rebalancing-master//monsters/blob.json: line 73:20: expected JSON value but got ‘:’

  "ACIDPROOF",
  "NOHEAD",
  "REGENERATES":
               ^
                 50,
  "ABSORBS",
  "REGEN_MORALE": true,

FUNCTION : bool main_menu::load_character_tab(bool)
FILE : src/main_menu.cpp
LINE : 1066

Huh… yes?
That’s the error Ricky_Van posted, the solution is just above in this thread.

Oh never mind I see the problem
put the regenerates entry outside the flags array and not in capitale.

Thank you! I’m not so good with json! :slight_smile:

Like this for exemple:

    "flags": [
      "SEES",
      "HEARS",
      "SMELLS",
      "STUMBLES",
      "WARM",
      "BASHES",
      "POISON",
      "NO_BREATHE",
      "REVIVES",
      "PATH_AVOID_DANGER_2",
      "PRIORITIZE_TARGETS"
    ],
      "regenerates": 10,
      "regen_morale": true

I understand now, thanks again!

Secronom mod needs a few changes too, apparently.

I fixed it recently :wink:

ayy that winks tell me something but my mind can’t catch it :laughing:

all 3 non-mainline mod i have (Pk’s Rebalancing, Secronom, and Cata++ ) need some fix.
waiting for fixed status.

What about the REGENERATES_IN_DARK flag? Does anybody know how to fix it?

Added it as an input as a boolean, but don’t really know if it works that way

Wraith from monsters.json has it used in the same way:
“regenerates_in_dark”: true,