1
0

33 Commits

Author SHA1 Message Date
Wyrrrd ed398933ac French translation release prep 2021-08-08 15:08:24 +02:00
Wyrrrd acbee5c1e7 Update CREDITS.txt 2021-08-08 09:43:57 +00:00
Friendch f33d7a6f1b Patch fr (#15)
* FR translation added
2021-08-08 09:42:13 +00:00
Wyrrrd 8e126bee36 Update .gitignore
removed debug configs
2021-04-28 11:06:50 +02:00
Wyrrrd 59d19f1dd1 Update CREDITS.txt 2021-04-18 16:38:14 +02:00
Wyrrrd 68503cbf0e Merge pull request #14 from Deadlock989/master
Make plate entities non-rotatable
2021-01-07 18:01:12 +00:00
Deadlock989 1a7717e03a Make plate entities non-rotatable
In 1.1, SimpleEntityWithForce was changed to have four directions. The plate entity doesn't have different directions but the R key still makes the sound and changes the orientation. Adding this flag turns that behaviour off. Since it's square it doesn't matter that it doesn't rotate in blueprints etc.
2021-01-07 15:28:42 +00:00
Wyrrrd e619083b57 Version bump for base game 1.1 2020-12-02 18:41:31 +01:00
Wyrrrd 1d4fbf6365 Bump to fix version mess 2020-11-23 11:50:36 +01:00
Wyrrrd 5d5b2f730b Bump to fix version mess 2020-11-23 11:49:48 +01:00
Wyrrrd 0503448c97 Merge branch 'master' of https://github.com/Wyrrrd/IndustrialDisplayPlates 2020-11-22 20:30:55 +01:00
Wyrrrd 92c591e731 Rebuild releases into one version 0.18.3 2020-11-22 20:30:42 +01:00
Wyrrrd a544aa53c3 Merge pull request #10 from Deadlock989/master
Fix styles
2020-11-22 19:27:09 +00:00
Deadlock989 301de33990 Fix styles
Still a bit broken from 0.18.27 or whenever they changed everything that we were faking before
2020-11-22 14:51:50 +00:00
Deadlock989 f8815dd4ec Merge pull request #1 from Wyrrrd/master
Update
2020-11-22 14:50:30 +00:00
Wyrrrd 4587cff6ab Merge pull request #9 from Deadlock989/patch-1
Update globals.lua
2020-11-22 13:47:15 +00:00
Deadlock989 60dd9847a3 Update globals.lua
Oops. Typo. Sorry
2020-11-22 12:57:59 +00:00
Wyrrrd 48244eaefd Upped version 2020-11-22 13:03:13 +01:00
Wyrrrd cfdbe21542 Merge pull request #8 from Deadlock989/master
Update map marker icon
2020-11-22 11:56:00 +00:00
Wyrrrd 36c04830c9 Merge pull request #7 from Deadlock989/patch-5
Update data.lua
2020-11-22 11:52:23 +00:00
Wyrrrd b94b3782c6 Merge pull request #6 from Deadlock989/patch-4
Update data.lua
2020-11-22 11:51:51 +00:00
Wyrrrd 5211c8f3dd Merge pull request #5 from Deadlock989/patch-3
Update info.json
2020-11-22 11:51:36 +00:00
Wyrrrd 480f7efde2 Merge pull request #4 from Deadlock989/patch-2
Update steel-display.lua
2020-11-22 11:51:20 +00:00
Wyrrrd 78fec4fcff Merge pull request #3 from Deadlock989/patch-1
Update globals.lua
2020-11-22 11:50:54 +00:00
Deadlock989 7612c840c0 Add files via upload 2020-11-22 09:33:53 +00:00
Deadlock989 66587c503d Update data.lua
No need for such a small mipmap
2020-11-22 09:32:04 +00:00
Deadlock989 3c2e3eb6d6 Update data.lua
Fix recipe enabling if IR is loaded
2020-11-22 09:19:42 +00:00
Deadlock989 59aa449911 Update info.json
Hidden dependency on IR to ensure it loads first (IR now does tech stuff in data-updates and IDP needs techs set up before its own data-updates)
2020-11-22 09:17:22 +00:00
Deadlock989 423cf5aff2 Update steel-display.lua
ickputzdirwech's fix only handled specific cases and ignored the values for technologies and recipes defined in globals.lua
also didn't handle the situation where any IR unlocks are specified
2020-11-22 09:10:07 +00:00
Deadlock989 f026c767d8 Update globals.lua
IR tech names are different in IR2.
2020-11-22 08:33:25 +00:00
Wyrrrd 90499e48ec Update changelog.txt
Fix date
2020-08-02 13:57:06 +02:00
Wyrrrd 0416d23f78 Quick fix for 0.18.37+
- Property show_in_library was removed
- Dectorio crafting tab compat
2020-08-02 13:56:09 +02:00
Wyrrrd b0ec644f5a Added plates to dectorio recipe group 2020-05-28 16:11:03 +02:00
12 changed files with 948 additions and 920 deletions
+1
View File
@@ -1 +1,2 @@
*.zip *.zip
.vscode/*
+1 -1
View File
@@ -5,7 +5,7 @@ CREDITS
All code and graphics created by Deadlock989, with the following exceptions. All code and graphics created by Deadlock989, with the following exceptions.
Code and graphics modifications after 2020-04-08 by Wyrrrd. Code and graphics modifications after 2020-04-08 by Wyrrrd, ickputzdirwech, Friendch and Deadlock989.
For the latest unmodified version, see https://github.com/Wyrrrd/IndustrialDisplayPlates/tree/cd8778eb3b11f8bde5418088253123b1029dc461 For the latest unmodified version, see https://github.com/Wyrrrd/IndustrialDisplayPlates/tree/cd8778eb3b11f8bde5418088253123b1029dc461
Sounds by thomasevd and Raclure @ freesound.org. Sounds by thomasevd and Raclure @ freesound.org.
+1
View File
@@ -10,3 +10,4 @@ If you want to contribute by translating this mod, you can view the existing tra
### Credits ### Credits
Thanks to [Deadlock989](https://mods.factorio.com/user/Deadlock989) for the [original mod](https://mods.factorio.com/mod/IndustrialDisplays). Thanks to [Deadlock989](https://mods.factorio.com/user/Deadlock989) for the [original mod](https://mods.factorio.com/mod/IndustrialDisplays).
Sounds by thomasevd and Raclure on freesound.org. Sounds by thomasevd and Raclure on freesound.org.
Thanks to [Friendch](https://mods.factorio.com/user/Friendch) for the french translation.
+30
View File
@@ -1,4 +1,34 @@
--------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------
Version: 1.1.1
Date: 2021-08-08
Locale:
- Added french translation (thanks to Friendch)
---------------------------------------------------------------------------------------------------
Version: 1.1.0
Date: 2020-12-02
Changes:
- Version bump for base game 1.1
---------------------------------------------------------------------------------------------------
Version: 0.18.5
Date: 2020-11-23
Bugfixes:
- Bumped version to fix version mess
---------------------------------------------------------------------------------------------------
Version: 0.18.3
Date: 2020-11-22
Changes:
- removed unneeded mipmap for map marker (thanks to Deadlock989)
- restored IR compat (thanks to Deadlock989)
- fixed steel display migration (again) (thanks to Deadlock989)
- fixed styles (thanks to Deadlock989)
---------------------------------------------------------------------------------------------------
Version: 0.18.2
Date: 2020-08-02
Changes:
- moved plates to Dectorio recipe group (if installed)
Bugfixes:
- removed check for show_in_library (removed in 0.18.37)
---------------------------------------------------------------------------------------------------
Version: 0.18.1 Version: 0.18.1
Date: 2020-05-26 Date: 2020-05-26
Bugfixes: Bugfixes:
+6 -6
View File
@@ -359,7 +359,7 @@ local function create_display_gui(player, selected)
local content_frame = frame.add { local content_frame = frame.add {
type = "frame", type = "frame",
name = "inner-frame", name = "inner-frame",
style = "display_deep_frame", style = "display_inside_frame",
direction = "vertical", direction = "vertical",
} }
content_frame.style.top_margin = 8 content_frame.style.top_margin = 8
@@ -376,7 +376,7 @@ local function create_display_gui(player, selected)
local button_table = {} local button_table = {}
for prototype_type,prototypes in pairs(DID.elem_prototypes) do for prototype_type,prototypes in pairs(DID.elem_prototypes) do
for _,prototype in pairs(game[prototypes]) do for _,prototype in pairs(game[prototypes]) do
if not DID.displays[prototype.name] and not ((prototype_type == "item" and (prototype.has_flag("hidden") or prototype.show_in_library)) or (prototype_type == "fluid" and prototype.hidden)) then if not DID.displays[prototype.name] and not ((prototype_type == "item" and prototype.has_flag("hidden")) or (prototype_type == "fluid" and prototype.hidden)) then
local group = (prototype.group.name == "fluids") and "intermediate-products" or prototype.group.name local group = (prototype.group.name == "fluids") and "intermediate-products" or prototype.group.name
if not DID.group_blacklist[group] then if not DID.group_blacklist[group] then
if button_table[group] == nil then button_table[group] = {} end if button_table[group] == nil then button_table[group] = {} end
@@ -469,15 +469,15 @@ local function set_up_display_from_ghost(entity,tags)
end end
end end
local function reset_globals() -- local function reset_globals()
global.translations = nil -- global.translations = nil
end -- end
------------------------------------------------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------------------------------------------
-- event handlers -- event handlers
script.on_configuration_changed(reset_globals) -- script.on_configuration_changed(reset_globals)
script.on_event(defines.events.on_gui_closed, gui_close) script.on_event(defines.events.on_gui_closed, gui_close)
script.on_event(defines.events.on_gui_click, gui_click) script.on_event(defines.events.on_gui_click, gui_click)
script.on_event(defines.events.on_player_mined_entity, event_raised_destroy, get_display_event_filter()) script.on_event(defines.events.on_player_mined_entity, event_raised_destroy, get_display_event_filter())
+5
View File
@@ -16,4 +16,9 @@ for display,displaydata in pairs(DID.displays) do
end end
end end
if mods ["Dectorio"] then
if data.raw["item-group"]["dectorio"] then
data.raw["item-subgroup"]["display-plates"].group = "dectorio"
end
end
------------------------------------------------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------------------------------------------
+9 -38
View File
@@ -54,13 +54,13 @@ for display,displaydata in pairs(DID.displays) do
icon_size = DID.icon_size, icon_size = DID.icon_size,
icon_mipmaps = DID.icon_mipmaps, icon_mipmaps = DID.icon_mipmaps,
corpse = "small-remnants", corpse = "small-remnants",
fast_replaceable_group = "display", fast_replaceable_group = "display",
minable = { minable = {
mining_time = 0.2, mining_time = 0.2,
result = display, result = display,
}, },
max_health = 10 + size * 30, max_health = 10 + size * 30,
flags = {"placeable-player", "placeable-neutral", "player-creation"}, flags = {"placeable-player", "placeable-neutral", "player-creation", "not-rotatable"},
collision_box = { {-box_size+0.1, -box_size+0.1}, {box_size-0.1, box_size-0.1} }, collision_box = { {-box_size+0.1, -box_size+0.1}, {box_size-0.1, box_size-0.1} },
selection_box = { {-box_size, -box_size}, {box_size, box_size} }, selection_box = { {-box_size, -box_size}, {box_size, box_size} },
collision_mask = { collision_mask = {
@@ -125,7 +125,7 @@ for display,displaydata in pairs(DID.displays) do
result = display, result = display,
result_count = 1, result_count = 1,
category = "crafting", category = "crafting",
enabled = mods["IndustrialRevolution"] and (displaydata.IR_unlock == nil) or (displaydata.unlock == nil), enabled = (mods["IndustrialRevolution"] and (displaydata.IR_unlock == nil)) or (not mods["IndustrialRevolution"] and displaydata.unlock == nil),
ingredients = displaydata.ingredients, ingredients = displaydata.ingredients,
energy_required = 1, energy_required = 1,
} }
@@ -158,11 +158,11 @@ add_styles({
left_padding = 10, left_padding = 10,
right_padding = 10, right_padding = 10,
top_padding = 8, top_padding = 8,
graphical_set = data.raw["gui-style"]["default"]["tabbed_pane"]["tab_content_frame"].graphical_set,
type = "frame_style", type = "frame_style",
graphical_set = data.raw["gui-style"]["default"]["filter_tabbed_pane"]["tab_content_frame"].graphical_set,
}, },
type = "tabbed_pane_style", type = "tabbed_pane_style",
parent = "tabbed_pane", parent = "filter_tabbed_pane",
width = 420, width = 420,
}, },
display_tab = { display_tab = {
@@ -185,9 +185,9 @@ add_styles({
horizontal_align = "center", horizontal_align = "center",
}, },
}, },
display_deep_frame = { display_inside_frame = {
type = "frame_style", type = "frame_style",
parent = "inside_deep_frame", parent = "inside_shallow_frame",
vertical_flow_style = { vertical_flow_style = {
type = "vertical_flow_style", type = "vertical_flow_style",
vertical_spacing = 0, vertical_spacing = 0,
@@ -196,34 +196,7 @@ add_styles({
}, },
display_tab_deep_frame = { display_tab_deep_frame = {
type = "frame_style", type = "frame_style",
parent = "subpanel_inset_frame", parent = "slot_button_deep_frame",
vertical_flow_style = {
type = "vertical_flow_style",
vertical_spacing = 0,
padding = 0,
},
graphical_set = {
base = {
center = {
position = {42,8},
size = {1,1},
},
corner_size = 8,
draw_type = "outer",
position = {85,0},
},
shadow = data.raw["gui-style"]["default"]["inside_deep_frame"].graphical_set.shadow,
},
background_graphical_set = {
corner_size = 8,
overall_tiling_horizontal_padding = 5,
overall_tiling_horizontal_size = 30,
overall_tiling_horizontal_spacing = 10,
overall_tiling_vertical_padding = 5,
overall_tiling_vertical_size = 30,
overall_tiling_vertical_spacing = 10,
position = { 282, 17 },
},
}, },
display_buttons = { display_buttons = {
type = "table_style", type = "table_style",
@@ -289,9 +262,7 @@ data:extend({
priority = "extra-high", priority = "extra-high",
width = 32, width = 32,
height = 32, height = 32,
mipmap_count = 2, flags = {"gui-icon"},
scale = 0.5,
flags = {"gui-icon"},
}, },
{ {
type = "sound", type = "sound",
+6 -6
View File
@@ -20,30 +20,30 @@ return {
}, },
["iron-display-small"] = { ["iron-display-small"] = {
ingredients = {{"iron-plate",1}}, ingredients = {{"iron-plate",1}},
IR_unlock = "deadlock-iron-age", IR_unlock = "ir2-iron-milestone",
}, },
["iron-display-medium"] = { ["iron-display-medium"] = {
ingredients = {{"iron-plate",4}}, ingredients = {{"iron-plate",4}},
IR_unlock = "deadlock-iron-age", IR_unlock = "ir2-iron-milestone",
}, },
["iron-display"] = { ["iron-display"] = {
ingredients = {{"iron-plate",9}}, ingredients = {{"iron-plate",9}},
IR_unlock = "deadlock-iron-age", IR_unlock = "ir2-iron-milestone",
}, },
["steel-display-small"] = { ["steel-display-small"] = {
ingredients = {{"steel-plate",1}}, ingredients = {{"steel-plate",1}},
unlock = "steel-processing", unlock = "steel-processing",
IR_unlock = "deadlock-steel-age", IR_unlock = "ir2-steel-milestone",
}, },
["steel-display-medium"] = { ["steel-display-medium"] = {
ingredients = {{"steel-plate",4}}, ingredients = {{"steel-plate",4}},
unlock = "steel-processing", unlock = "steel-processing",
IR_unlock = "deadlock-steel-age", IR_unlock = "ir2-steel-milestone",
}, },
["steel-display"] = { ["steel-display"] = {
ingredients = {{"steel-plate",9}}, ingredients = {{"steel-plate",9}},
unlock = "steel-processing", unlock = "steel-processing",
IR_unlock = "deadlock-steel-age", IR_unlock = "ir2-steel-milestone",
}, },
}, },
sizes = { sizes = {
Binary file not shown.

Before

Width:  |  Height:  |  Size: 949 B

After

Width:  |  Height:  |  Size: 769 B

+6 -3
View File
@@ -1,10 +1,13 @@
{ {
"name": "IndustrialDisplayPlates", "name": "IndustrialDisplayPlates",
"version": "0.18.1", "version": "1.1.1",
"title": "Industrial Display Plates", "title": "Industrial Display Plates",
"author": "Wyrrrd", "author": "Wyrrrd",
"homepage": "https://github.com/Wyrrrd/IndustrialDisplayPlates", "homepage": "https://github.com/Wyrrrd/IndustrialDisplayPlates",
"dependencies": ["base >= 0.18.27"], "dependencies": [
"base >= 1.1.0",
"(?)IndustrialRevolution"
],
"description": "Big, medium and small signs which display item and fluid icons. Can be used to blueprint map markers.", "description": "Big, medium and small signs which display item and fluid icons. Can be used to blueprint map markers.",
"factorio_version": "0.18" "factorio_version": "1.1"
} }
+17
View File
@@ -0,0 +1,17 @@
[entity-name]
copper-display=Panneau d'affichage en Cuivre (Grand)
iron-display=Panneau d'affichage en Fer (Grand)
steel-display=Panneau d'affichage en Acier (Grand)
copper-display-medium=Panneau d'affichage en Cuivre (Moyen)
iron-display-medium=Panneau d'affichage en Fer (Moyen)
steel-display-medium=Panneau d'affichage en Acier (Moyen)
copper-display-small=Panneau d'affichage en Cuivre (Petit)
iron-display-small=Panneau d'affichage en Fer (Petit)
steel-display-small=Panneau d'affichage en Acier (Petit)
[controls]
display-map-marker=Marqueur de carte
display-plate=Panneau d'affichage
[entity-description]
display=Une icône qui peut être reliée à un marqueur sur la carte. Les paramètres seront préservés par les Plans de Construction.
+9 -9
View File
@@ -1,11 +1,11 @@
local DID = require("globals")
for index, force in pairs(game.forces) do for index, force in pairs(game.forces) do
local technologies = force.technologies for display,displaydata in pairs(DID.displays) do
local recipes = force.recipes if displaydata.IR_unlock and force.technologies[displaydata.IR_unlock] and force.technologies[displaydata.IR_unlock].researched then
force.recipes[display].enabled = true
if technologies["steel-processing"].researched then elseif displaydata.unlock and force.technologies[displaydata.unlock] and force.technologies[displaydata.unlock].researched then
recipes["steel-display-small"].enabled = true force.recipes[display].enabled = true
recipes["steel-display-medium"].enabled = true end
recipes["steel-display"].enabled = true end
end
end end