Problem with "Wave defense" scenario
Posted: Wed Jun 28, 2023 4:01 pm
I've got a bug report for miniMAXIme when it was used with the "Wave defense" scenario. My mod allows players to change their appearance on the fly by swapping characters. Each player gets a dummy character for storing things like armor and inventory, plus one preview character for each selectable character prototype. Preview and dummy characters are hidden on hidden mini-surfaces (1 tile x 1tile) that are not meant to be used by players.
"Wave defense" has the function create_battle_surface(), which contains the following:
I will make sure now to restore my surfaces when they are deleted by some other mod. However, the function destroying the surfaces is called from functions on_player_joined_game, shuffle_button, check_seed_input, infinite_checkbox_input, difficulty_changed, end_round, and restart_round -- so I guess it will be run quite a lot.
I guess there are about 30-40 different characters people can choose from at the moment. If somebody was using all supported character mods, a lot of time will be spent uselessly on deleting surfaces that will be immediately restored (including the dummy and preview characters + rebuilding the players' GUIs). Could you, please, ignore my surfaces when you delete all but nauvis? The name of the surface for storing the dummies is "minime_dummy_dungeon", the names of the preview character surfaces start with "minime_character_previews_".
@Mods: I'm not quite sure this is the correct forum for my post as this is neither a question about how to mod something nor a bug report nor a modding interface request. If you think it would fit in better somewhere else, please move it!
"Wave defense" has the function create_battle_surface(), which contains the following:
Code: Select all
for k, surface in pairs (game.surfaces) do
if surface.name ~= "nauvis" then
game.delete_surface(surface.name)
end
end
I guess there are about 30-40 different characters people can choose from at the moment. If somebody was using all supported character mods, a lot of time will be spent uselessly on deleting surfaces that will be immediately restored (including the dummy and preview characters + rebuilding the players' GUIs). Could you, please, ignore my surfaces when you delete all but nauvis? The name of the surface for storing the dummies is "minime_dummy_dungeon", the names of the preview character surfaces start with "minime_character_previews_".
@Mods: I'm not quite sure this is the correct forum for my post as this is neither a question about how to mod something nor a bug report nor a modding interface request. If you think it would fit in better somewhere else, please move it!