Skip to content

Commit

Permalink
control.lua: drop a long obsolete debug block that does special stuff…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
ahicks92 committed Nov 5, 2024
1 parent 1779342 commit 84fe5d6
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 --
Expand Down

0 comments on commit 84fe5d6

Please sign in to comment.