Aleph-Bet-Marathon / alephbet

Open source continuation of the Marathon 2 game engine.
GNU General Public License v3.0
0 stars 3 forks source link

Make the Lua console output to the log #16

Open aaronfreed opened 2 weeks ago

aaronfreed commented 2 weeks ago

Might be worth making this a configurable setting somewhere, but by default, it should output both to the screen and the log.

SolraBizna commented 2 weeks ago

So that log messages triggered by a console command are preceded by the command that triggered them?

aaronfreed commented 2 weeks ago

Ideally, yes. The option for Players.print to output to the log as well as the screen would also be ideal; also, if a player enters a variable name on the console and nothing else, perhaps it should just print its contents rather than throw an error. (The latter may be worth making configurable, and it may merit its own issue – not sure.)