diff --git a/dfhack.init-example b/dfhack.init-example index 94d132756..7fb937a3b 100644 --- a/dfhack.init-example +++ b/dfhack.init-example @@ -218,7 +218,7 @@ enable \ # You can comment out the extension of a line. # allow the fortress bookkeeper to queue jobs through the manager -stockflow enable +enable stockflow ########### # Scripts # diff --git a/plugins/tweak/tweak.cpp b/plugins/tweak/tweak.cpp index 907c3945a..1a0249c5e 100644 --- a/plugins/tweak/tweak.cpp +++ b/plugins/tweak/tweak.cpp @@ -666,12 +666,16 @@ static void enable_hook(color_ostream &out, VMethodInterposeLinkBase &hook, vect if (vector_get(parameters, 1) == "disable") { hook.remove(); - out.print("Disabled tweak %s (%s)\n", parameters[0].c_str(), hook.name()); + fprintf(stderr, "Disabled tweak %s (%s)\n", parameters[0].c_str(), hook.name()); + fflush(stderr); } else { if (hook.apply()) - out.print("Enabled tweak %s (%s)\n", parameters[0].c_str(), hook.name()); + { + fprintf(stderr, "Enabled tweak %s (%s)\n", parameters[0].c_str(), hook.name()); + fflush(stderr); + } else out.printerr("Could not activate tweak %s (%s)\n", parameters[0].c_str(), hook.name()); } @@ -697,7 +701,8 @@ static command_result enable_tweak(string tweak, color_ostream &out, vector second; hook.enabled = state; - out.print("%s tweak %s (%s)\n", state ? "Enabled" : "Disabled", cmd.c_str(), hook.name.c_str()); + fprintf(stderr, "%s tweak %s (%s)\n", state ? "Enabled" : "Disabled", cmd.c_str(), hook.name.c_str()); + fflush(stderr); } } if (!recognized)