1
0

13 Commits

Author SHA1 Message Date
Wyrrrd 14eec22025 Restore version number scheme 2021-08-21 17:49:51 +02:00
snouz 6290cf9647 Update README.md 2021-08-16 14:40:51 +02:00
snouz 2aa09fba3d Added virtual signals + adjustments
-Made virtual signals available (excluding the "unsorted" tab)
-Softer map pin sound (found the original sonar sound without the granularity and pitched it +1)
-Slighly adjusted French translation
2021-08-16 14:37:55 +02:00
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
10 changed files with 69 additions and 16 deletions
+1
View File
@@ -1 +1,2 @@
*.zip
.vscode/*
+2 -2
View File
@@ -5,9 +5,9 @@ CREDITS
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
Sounds by thomasevd and Raclure @ freesound.org.
Thanks to TheStaplergun for getting me started on GUIs and to others for scripting help.
Thanks to TheStaplergun for getting me started on GUIs and to others for scripting help.
+5 -4
View File
@@ -1,12 +1,13 @@
# Industrial Display Plates
<img src="https://raw.githubusercontent.com/Wyrrrd/IndustrialDisplayPlates/master/thumbnail.png" width="128" height="128">
<img src="https://raw.githubusercontent.com/Wyrrrd/IndustrialDisplayPlates/master/thumbnail.png" width="144" height="144">
### Features
Big, medium and small signs to display item and fluid icons. Can be used to blueprint map markers.
Big, medium and small signs to display item, fluid and signal icons. Can be used to blueprint map markers.
### Locale
If you want to contribute by translating this mod, you can view the existing translations [here](https://github.com/Wyrrrd/IndustrialDisplayPlates/tree/master/locale). I'd be happy to add your language and credits to the next release.
### Credits
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.
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.
Thanks to [Friendch](https://mods.factorio.com/user/Friendch) for the french translation.
+24 -1
View File
@@ -1,4 +1,27 @@
---------------------------------------------------------------------------------------------------
Version: 1.1.2
Date: 2021-08-21
Changes:
- Made virtual signals available (snouz)
- Softer map ping sound
Locale:
- Adjusted French translation
---------------------------------------------------------------------------------------------------
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:
@@ -85,4 +108,4 @@ Date: 2020-02-24
- Any item or fluid can be displayed, but unlike IR 0.17, the displays use the standard icon for the item instead of a high-res sprite.
- Copper, iron and steel displays are provided by default.
- Now uses ghost tags instead of hax to store plate settings in blueprints.
- GUI now remembers its previous location on the screen, and closes automatically if you walk out of range.
- GUI now remembers its previous location on the screen, and closes automatically if you walk out of range.
+13 -4
View File
@@ -37,16 +37,18 @@ end
local function add_map_marker(entity, icon_type, icon_name)
if icon_type and icon_name then
entity.force.add_chart_tag(entity.surface, { icon = { type = icon_type, name = icon_name}, position = entity.position })
local map_type = (icon_type == "virtual-signal") and "virtual" or icon_type
entity.force.add_chart_tag(entity.surface, { icon = { type = map_type, name = icon_name}, position = entity.position })
entity.surface.play_sound{path = "map-marker-ping", position = entity.position, volume_modifier = 1}
end
end
local function change_map_markers(entity, icon_type, icon_name)
local map_type = (icon_type == "virtual-signal") and "virtual" or icon_type
local markers = get_map_markers(entity)
if markers then
for _,marker in pairs(markers) do
marker.icon = { type = icon_type, name = icon_name}
marker.icon = { type = map_type, name = icon_name}
end
end
end
@@ -74,7 +76,7 @@ local function get_render_sprite_info(entity)
local id = find_entity_render(entity)
if id then
local strings = splitstring(rendering.get_sprite(id), "/")
if #strings == 2 then return strings[1], strings[2] end
return strings[1], strings[2], strings[1] == 'virtual-signal' and 'virtual' or strings[1]
end
return nil, nil
end
@@ -377,7 +379,14 @@ local function create_display_gui(player, selected)
for prototype_type,prototypes in pairs(DID.elem_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_type == "fluid" and prototype.hidden)) then
local group = (prototype.group.name == "fluids") and "intermediate-products" or prototype.group.name
local group = ""
if prototype_type == "virtual-signal" then
group = prototype.subgroup.group.name
elseif prototype_type == "fluids" then
group = "intermediate-products"
else
group = prototype.group.name
end
if not DID.group_blacklist[group] then
if button_table[group] == nil then button_table[group] = {} end
if button_table[group][prototype.subgroup.name] == nil then button_table[group][prototype.subgroup.name] = {} end
+1 -1
View File
@@ -60,7 +60,7 @@ for display,displaydata in pairs(DID.displays) do
result = display,
},
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} },
selection_box = { {-box_size, -box_size}, {box_size, box_size} },
collision_mask = {
+2
View File
@@ -54,9 +54,11 @@ return {
elem_prototypes = {
item = "item_prototypes",
fluid = "fluid_prototypes",
["virtual-signal"] = "virtual_signal_prototypes",
},
group_blacklist = {
["creative-mod_creative-tools"] = true,
["other"] = true,
},
icon_size = 64,
icon_mipmaps = 4,
+4 -4
View File
@@ -1,13 +1,13 @@
{
"name": "IndustrialDisplayPlates",
"version": "0.18.3",
"version": "1.1.2",
"title": "Industrial Display Plates",
"author": "Wyrrrd",
"homepage": "https://github.com/Wyrrrd/IndustrialDisplayPlates",
"dependencies": [
"base >= 0.18.27",
"base >= 1.1.0",
"(?)IndustrialRevolution"
],
"description": "Big, medium and small signs which display item and fluid icons. Can be used to blueprint map markers.",
"factorio_version": "0.18"
"description": "Big, medium and small signs which display item, fluid and signal icons. Can be used to blueprint map markers.",
"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 sont préservés dans les plans.
BIN
View File
Binary file not shown.