From 84fe5d6027d3b5dc59ea28c9289db6922557042d Mon Sep 17 00:00:00 2001 From: Austin Hicks Date: Tue, 5 Nov 2024 15:43:37 -0800 Subject: [PATCH] control.lua: drop a long obsolete debug block that does special stuff if the player's name is Crimso If we need something like this we can just register a console command, no need to be mysterious --- control.lua | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/control.lua b/control.lua index d7b9323d..8f1a8403 100644 --- a/control.lua +++ b/control.lua @@ -2275,21 +2275,6 @@ function on_player_join(pindex) playerList["_" .. p.index] = p.name end print("playerList " .. game.table_to_json(playerList)) - if game.players[pindex].name == "Crimso" then - --Debug stuff - local player = game.get_player(pindex).cutscene_character or game.get_player(pindex).character - player.force.research_all_technologies() - - --game.write_file('map.txt', game.table_to_json(game.parse_map_exchange_string(">>>eNpjZGBksGUAgwZ7EOZgSc5PzIHxgNiBKzm/oCC1SDe/KBVZmDO5qDQlVTc/E1Vxal5qbqVuUmIxsmJ7jsyi/Dx0E1iLS/LzUEVKilJTi5E1cpcWJeZlluai62VgnPIl9HFDixwDCP+vZ1D4/x+EgawHQL+AMANjA0glIyNQDAZYk3My09IYGBQcGRgKnFev0rJjZGSsFlnn/rBqij0jRI2eA5TxASpyIAkm4glj+DnglFKBMUyQzDEGg89IDIilJUAroKo4HBAMiGQLSJKREeZ2xl91WXtKJlfYM3qs3zPr0/UqO6A0O0iCCU7MmgkCO2FeYYCZ+cAeKnXTnvHsGRB4Y8/ICtIhAiIcLIDEAW9mBkYBPiBrQQ+QUJBhgDnNDmaMiANjGhh8g/nkMYxx2R7dH8CAsAEZLgciToAIsIVwl0F95tDvwOggD5OVRCgB6jdiQHZDCsKHJ2HWHkayH80hmBGB7A80ERUHLNHABbIwBU68YIa7BhieF9hhPIf5DozMIAZI1RegGIQHkoEZBaEFHMDBzcyAAMC0cepk2C4A0ySfhQ==<<<"))) - player.insert({ name = "pipe", count = 100 }) - - for i = 0, 10 do - for j = 0, 10 do - player.surface.create_entity({ name = "iron-ore", position = { i + 0.5, j + 0.5 } }) - end - end - -- player.force.research_all_technologies() - end --Reset the player building direction to match the vanilla behavior. players[pindex].building_direction = dirs.north --