// Range: -1 Access: 0 Flags: ( 0, 4, 255 ) 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"); ((dynamic)GlobalVars.diary).write("\n\nStarting up. " + String13.formatTime(Game13.timeofday, "hh:mm.ss") + "\n---------------------"); ((dynamic)GlobalVars.diaryofmeanpeople).write("\n\nStarting up. " + String13.formatTime(Game13.timeofday, "hh:mm.ss") + "\n---------------------"); GlobalVars.changelog_hash = Num13.md5("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")) * 36000; if (GlobalVars.config.sql_enabled) { if (!GlobalFuncs.setup_database_connection()) { ((dynamic)Game13.log).write("Your server failed to establish a connection with the database."); } else { ((dynamic)Game13.log).write("Database connection established."); } } GlobalVars.data_core = new Datacore(); Task13.schedule(-1, (Task13.Closure)(() => { GlobalVars.Master.Setup(); return; })); GlobalFuncs.process_teleport_locs(); GlobalFuncs.SortAreas(); GlobalVars.map_name = "" + "Box Station"; return; }