1
0

4 Commits

Author SHA1 Message Date
Wyrrrd 9d8443c9b2 moved workaround in code
moved to only trigger if blueprint contains displays with sprites, fixes "attempt to index local" crash as well
2021-09-07 11:02:31 +02:00
Wyrrrd be669f7b3e Quick fix locale file 2021-09-06 23:52:17 +02:00
Friendch e49a69058b Blueprint update FR local (#17)
* Add files via upload

Made a misstake, forgot the folder, now I master the thing don't worry ^^

* Update fr

* Rename fr to string.cfg
2021-09-06 21:49:50 +00:00
Wyrrrd bf22a80ca9 Workaround for blueprint update bug
thanks to Honktown for the help
2021-09-06 10:35:15 +02:00
6 changed files with 28 additions and 1 deletions
+10
View File
@@ -1,4 +1,14 @@
---------------------------------------------------------------------------------------------------
Version: 1.1.4
Date: 2021-09-07
Bugfixes:
- fixed crash and unwanted behaviour introduced with last release
---------------------------------------------------------------------------------------------------
Version: 1.1.3
Date: 2021-09-06
Bugfixes:
- Implemented controlled error message for blueprint update bug in factorio to avoid crash
---------------------------------------------------------------------------------------------------
Version: 1.1.2
Date: 2021-08-21
Changes:
+8
View File
@@ -552,10 +552,18 @@ script.on_event(defines.events.on_player_setup_blueprint, function (event)
local blueprint = nil
if player and player.blueprint_to_setup and player.blueprint_to_setup.valid_for_read then blueprint = player.blueprint_to_setup
elseif player and player.cursor_stack.valid_for_read and player.cursor_stack.name == "blueprint" then blueprint = player.cursor_stack end
if blueprint then
for index,entity in pairs(event.mapping.get()) do
local stype,sname = get_render_sprite_info(entity)
if stype and sname then
-- Workaround for blueprint update bug
if blueprint.get_blueprint_entity_count() == 0 then
player.print({"display-plates.blueprint-wont-have-icons"})
return
end
blueprint.set_blueprint_entity_tag(index, "display-plate-sprite-type", stype)
blueprint.set_blueprint_entity_tag(index, "display-plate-sprite-name", sname)
blueprint.set_blueprint_entity_tag(index, "display-plate-sprite-map-marker", get_has_map_marker(entity))
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "IndustrialDisplayPlates",
"version": "1.1.2",
"version": "1.1.4",
"title": "Industrial Display Plates",
"author": "Wyrrrd",
"homepage": "https://github.com/Wyrrrd/IndustrialDisplayPlates",
+3
View File
@@ -1,3 +1,6 @@
[display-plates]
blueprint-wont-have-icons=Dieser aktualisierte Blaupause wird keine Symbole oder Kartenmarkierungen der Anzeigeplatten enthalten. Um diese hinzuzufügen, erstelle eine neue Blaupause.
[entity-name]
copper-display=Kupferanzeigeplatte (groß)
iron-display=Eisenanzeigeplatte (groß)
+3
View File
@@ -1,3 +1,6 @@
[display-plates]
blueprint-wont-have-icons=This updated blueprint will not contain any icons or map markers of the display plates. To include them, create a new blueprint.
[entity-name]
copper-display=Copper display plate (large)
iron-display=Iron display plate (large)
+3
View File
@@ -1,3 +1,6 @@
[display-plates]
blueprint-wont-have-icons=Ce plan mis à jour ne contiendra pas les icônes ni les marqueurs de carte des panneaux d'affichage. Pour les inclure, créez-en un nouveau.
[entity-name]
copper-display=Panneau d'affichage en Cuivre (Grand)
iron-display=Panneau d'affichage en Fer (Grand)