From 7300e425e7ad3d10042f1f771a021e62e4425cb6 Mon Sep 17 00:00:00 2001 From: notnotmelon Date: Wed, 22 Jan 2025 10:32:23 -0600 Subject: [PATCH] Removed vanilla roboport animations to save VRAM. --- changelog.txt | 1 + prototypes/updates/base-updates.lua | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/changelog.txt b/changelog.txt index 2aa4a36..28214ab 100644 --- a/changelog.txt +++ b/changelog.txt @@ -4,6 +4,7 @@ Date: ? Changes: - Migrated the internal name of the "railway-mk01" technology to "railway". Resolves https://github.com/pyanodon/pybugreports/issues/453 - Vanilla construction, logistic, and roboport are now hidden from factoriopedia. + - Removed vanilla roboport animations to save VRAM. --------------------------------------------------------------------------------------------------- Version: 3.0.12 Date: 2025-1-20 diff --git a/prototypes/updates/base-updates.lua b/prototypes/updates/base-updates.lua index 56c906b..31266b7 100644 --- a/prototypes/updates/base-updates.lua +++ b/prototypes/updates/base-updates.lua @@ -16,6 +16,16 @@ if not mods["boblogistics"] then ENTITY("logistic-robot"):set_fields {hidden = true} ENTITY("roboport"):set_fields {hidden = true} + -- remove roboport animations to save VRAM + ENTITY("roboport").base = nil + ENTITY("roboport").base_patch = nil + ENTITY("roboport").frozen_patch = nil + ENTITY("roboport").base_animation = nil + ENTITY("roboport").door_animation_up = nil + ENTITY("roboport").door_animation_down = nil + ENTITY("roboport").recharging_animation = nil + ENTITY("roboport").integration_patch = nil + for recipe_name in pairs(data.raw.recipe) do RECIPE(recipe_name) :replace_ingredient("roboport", "py-roboport-mk01")