Skip to content

Commit 7103034

Browse files
authored
2.4.21 rc1 (#198)
* Fix commandable checks and german locale encoding * Update version to 2.4.21 and changelog notes * another instance of fix for issue 197 * date for changelog * removing all patrol pole from mod to avoid users trying it
1 parent 28116d0 commit 7103034

File tree

18 files changed

+43
-387
lines changed

18 files changed

+43
-387
lines changed

changelog.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
Version: 2.4.21
2+
Date: 2025.04.01
3+
Changes:
4+
- completely removed patrol poles from the mod, will replace with something else in the future, maybe.
5+
Bugfixes:
6+
- Fixed german locale file encoding
7+
- added more unitgroup/commandable validity checks to reduce crashing
8+
---------------------------------------------------------------------------------------------------
19
Version: 2.4.20
210
Date: 2025.01.05
311
Bugfixes:

config/config.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,5 @@ DAMAGE_SCALAR = 1.0 -- scales base damage by this value. default is 1.0. 0.5 mak
4242
-- that into consideration.
4343

4444
ARTIFACT_GRAB_RADIUS = 30 --now obsolete, artifact grab script is not used now, as of Factorio 0.15+
45-
GUARD_POLE_CONNECTION_RANGE = 30 -- this is for electrical connection range and therefore spacing of patrol poles, checking range is.
4645

4746
GRAB_ARTIFACTS = 0 --set this to 1 and you should have access to the loot chests, enables artifact grabbing AI routine. save CPU and keep this off if you don't need it.
-2.16 KB
Binary file not shown.
-8.35 KB
Binary file not shown.

graphics/icons/patrol-pole.png

-1.53 KB
Binary file not shown.

info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "robotarmy",
3-
"version": "2.4.20",
3+
"version": "2.4.21",
44
"title": "Robot Army",
55
"author": "Kyranzor",
66
"contact": "kyranzor@gmail.com",

locale/de/locale.cfg

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ droid-rifle-dummy=Uhrwerk Gewehrroboter (einsetzbar)
88
droid-assembling-machine=Robotmontagemaschine
99
terminator=Terminator
1010
terminator-dummy=Terminator (einsetzbar)
11-
droid-counter=Roboter Aktivitätsmodul
11+
droid-counter=Roboter Aktivitätsmodul
1212
loot-chest=Armee Beutekiste
1313
droid-guard-station=Roboterwachstation
1414
droid-flame=Flamebot (undeployed)
15-
patrol-pole=Droid Patrol Post
1615
droid-settings=Droid Settings Module
1716

1817

@@ -22,11 +21,10 @@ droid-rocket=Rocket Droid
2221
droid-rifle=Uhrwerk Gewehrroboter
2322
droid-assembling-machine=Robotmontagemaschine
2423
terminator=Terminator
25-
droid-counter=Roboter Aktivitätsmodul
24+
droid-counter=Roboter Aktivitätsmodul
2625
loot-chest=Armee Beutekiste
2726
droid-guard-station=Roboterwachstation
2827
droid-flame=Flamebot
29-
patrol-pole=Droid Patrol Post
3028
droid-settings=Droid Settings Module
3129

3230

@@ -39,12 +37,11 @@ droid-rifle-deploy=Uhrwerk Gewehrroboter (eingesetzt)
3937
droid-rocket-deploy=Raketendroide (eingesetzt)
4038
terminator=Terminator (nicht eingesetzt)
4139
terminator-deploy=Terminator (eingesetzt)
42-
droid-counter=Roboter Aktivitätsmodul
40+
droid-counter=Roboter Aktivitätsmodul
4341
loot-chest=Armee Beutekiste
4442
droid-guard-station=Roboterwachstation
4543
droid-flame=Flamebot (Undeployed)
4644
droid-flame-deploy=Flamebot (Deployed)
47-
patrol-pole=Droid Patrol Post
4845
droid-settings=Droid Settings Module
4946

5047

migrations/robotarmy_0.4.11.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ for i, force in pairs(game.forces) do
1414
if (GRAB_ARTIFACTS == 1) then
1515
force.recipes["loot-chest"].enabled = true
1616
end
17-
force.recipes["patrol-pole"].enabled = true
1817
force.recipes["droid-guard-station"].enabled = true
1918
force.recipes["droid-assembling-machine"].enabled = true
2019
force.recipes["droid-pickup-tool"].enabled = true

migrations/robotarmy_0.4.16.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ for i, force in pairs(game.forces) do
99

1010
force.recipes["droid-rifle"].enabled = false
1111
force.recipes["droid-rifle-deploy"].enabled = false
12-
force.recipes["patrol-pole"].enabled = false
1312
force.recipes["droid-guard-station"].enabled = false
1413
force.recipes["droid-assembling-machine"].enabled = false
1514
force.recipes["droid-pickup-tool"].enabled = false

prototypes/building.lua

Lines changed: 1 addition & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -234,97 +234,4 @@ local guardStation = {
234234
}
235235

236236

237-
238-
local patrolPole = {
239-
type = "electric-pole",
240-
name = "patrol-pole",
241-
icon_size = 64,
242-
icon = "__base__/graphics/icons/medium-electric-pole.png",
243-
flags = {"placeable-neutral", "player-creation"},
244-
minable = {hardness = 0.2, mining_time = 0.5, result = "patrol-pole"},
245-
max_health = 1000,
246-
corpse = "small-remnants",
247-
resistances =
248-
{
249-
{
250-
type = "fire",
251-
percent = 100
252-
}
253-
},
254-
collision_box = {{-0.15, -0.15}, {0.15, 0.15}},
255-
selection_box = {{-0.5, -0.5}, {0.5, 0.5}},
256-
drawing_box = {{-0.5, -2.8}, {0.5, 0.5}},
257-
maximum_wire_distance = GUARD_POLE_CONNECTION_RANGE,
258-
supply_area_distance = 0,
259-
vehicle_impact_sound = { filename = "__base__/sound/car-metal-impact.ogg", volume = 0.65 },
260-
pictures =
261-
{
262-
layers = {
263-
{
264-
filename = BUILPATH .. "patrol-pole.png",
265-
priority = "high",
266-
width = 136,
267-
height = 122,
268-
tint = {r=1.0, g=0.9, b=0.9, a=0.8},
269-
direction_count = 1,
270-
shift = {1.4, -1.0},
271-
hr_version = {
272-
filename = BUILPATH .. "hr-patrol-pole.png",
273-
priority = "high",
274-
width = 272,
275-
height = 244,
276-
tint = {r=1.0, g=0.9, b=0.9, a=1},
277-
direction_count = 1,
278-
shift = {1.4, -1.0},
279-
scale = 0.5,
280-
}
281-
},
282-
{
283-
filename = BUILPATH .. "patrol-pole-shadow.png",
284-
priority = "high",
285-
width = 136,
286-
height = 122,
287-
direction_count = 1,
288-
shift = {1.4, -1.0},
289-
draw_as_shadow = true,
290-
hr_version = {
291-
filename = BUILPATH .. "hr-patrol-pole-shadow.png",
292-
priority = "high",
293-
width = 272,
294-
height = 244,
295-
direction_count = 1,
296-
shift = {1.4, -1.0},
297-
draw_as_shadow = true,
298-
scale = 0.5,
299-
}
300-
},
301-
}
302-
},
303-
connection_points =
304-
{
305-
{
306-
shadow =
307-
{
308-
copper = {2.55, 0.4},
309-
green = {2.0, 0.4},
310-
red = {3.05, 0.4}
311-
},
312-
wire =
313-
{
314-
copper = {-0.03125, -2.46875},
315-
green = {-0.34375, -2.46875},
316-
red = {0.25, -2.46875}
317-
}
318-
}
319-
},
320-
radius_visualisation_picture =
321-
{
322-
filename = "__base__/graphics/entity/small-electric-pole/electric-pole-radius-visualization.png",
323-
width = 12,
324-
height = 12,
325-
priority = "extra-high-no-scale"
326-
},
327-
}
328-
329-
330-
data:extend({droidAssembler,guardStation, patrolPole})
237+
data:extend({droidAssembler,guardStation})

0 commit comments

Comments
 (0)