csx 0.2.0
Pre-releaseScripts for csx.run
are now loaded from ...\Documents\Mount and Blade II Bannerlord\Scripts
.
WARNING: existing scripts are not moved automatically! If you're already using v0.1.0, you'll have to move them manually.
csx.eval
can now evaluate statements, and not just expressions. Due to limitations of the Bannerlord console, you have to use use .,
in lieu of ;
.
Script state (declared variables etc) is preserved between invocations of csx.eval
. Thus, it's possible to store an object reference to a variable, and then repeatedly re-use it in the console. A new command, csx.reset
, was added to clear the state.
Since there's no longer a limit on console output in Bannerlord, Log.Write...()
goes to console only by default. Use Log.ToFile()
to also log to a file. If script fails with an exception, all output produced with Log.Write...()
is still printed to console, right before the error message.
Implicit namespace imports used by csx.eval
are now configurable via ...\Documents\Mount and Blade II Bannerlord\Configs\csx.xml
.