// Function from file: world.dm public static void New( ) { string date_string = null; GlobalVars.map_ready = true; date_string = String13.FormatTime(Game13.realtime, "YYYY/MM-Month/DD-Day"); GlobalVars.href_logfile = new File("data/logs/" + date_string + " hrefs.htm"); GlobalVars.diary = new File("data/logs/" + date_string + ".log"); GlobalVars.diaryofmeanpeople = new File("data/logs/" + date_string + " Attack.log"); GlobalVars.diary.WriteMsg("\n\nStarting up. " + String13.FormatTime(Game13.timeofday, "hh:mm.ss") + "\n---------------------"); GlobalVars.diaryofmeanpeople.WriteMsg("\n\nStarting up. " + String13.FormatTime(Game13.timeofday, "hh:mm.ss") + "\n---------------------"); GlobalVars.changelog_hash = Num13.Md5(File13.Read("html/changelog.html")); GlobalFuncs.make_datum_references_lists(); Game13.load_configuration(); Game13.load_mode(); Game13.load_motd(); GlobalFuncs.load_admins(); if (GlobalVars.config.usewhitelist) { GlobalFuncs.load_whitelist(); } GlobalFuncs.appearance_loadbanfile(); GlobalFuncs.LoadBans(); GlobalFuncs.investigate_reset(); if (GlobalVars.config != null && GlobalVars.config.server_name != null && GlobalVars.config.server_suffix && Game13.port > 0) { GlobalVars.config.server_name += " #" + Game13.port % 1000 / 100; } GlobalVars.timezoneOffset = (String13.ParseNumber(String13.FormatTime(0, "hh")) ?? 0) * 36000; if (GlobalVars.config.sql_enabled) { if (!GlobalFuncs.setup_database_connection()) { Game13.log.WriteMsg("Your server failed to establish a connection with the database."); } else { Game13.log.WriteMsg("Database connection established."); } } GlobalVars.data_core = new Datacore(); Task13.Schedule(10, (Task13.Closure)(() => { GlobalVars.Master.Setup(); return; })); //GlobalFuncs.process_teleport_locs(); F**k this code. GlobalFuncs.SortAreas(); GlobalVars.map_name = "Box Station"; }
// Function from file: world.dm public static void load_motd( ) { GlobalVars.join_motd = File13.Read("config/motd.txt"); return; }