Author Topic: Is there a way to change an addon preference using the console?  (Read 982 times)

Since RTB isn't something I can easily get without Microsoft Smartscreen saying it's a virus or something bad, I might need to change some preferences since Blockland Glass isn't working too well. Any ideas?

Every preference has a global variable. Like $Pref::Server::MakeEveryoneUgly. You'd have to look in the script of each mod to find out what they are though. Change them via $Pref::Server::MakeEveryoneUgly = "1";

Also, you can find a list of prefs by going to Blockland/config/server (or client) and opening prefs.cs with something like notepad, and you can change the prefs by (carefully) editing and saving that file.

if you do it the way teneksi says make sure your bl is closed or else the game will overwrite the values in the file with the values the server had when it closed

if you do it the way teneksi says make sure your bl is closed or else the game will overwrite the values in the file with the values the server had when it closed
not if you execute the prefs.cs file first using exec("config/server/prefs.cs");, which would also allow you to change the prefs this way without having to restart