1
0
mirror of https://github.com/Wyrrrd/Rocket_Turrets.git synced 2026-03-25 15:19:49 +01:00

Added informatron support

This commit is contained in:
Wyrrrd
2020-03-16 14:15:23 +01:00
parent e6bf131d29
commit 7ccdfc6592
15 changed files with 87 additions and 6 deletions

View File

@@ -8,9 +8,10 @@ This mod adds a rocket turret to make rockets great again™. Sadly you would on
This mod should just work, but I specifically added compatibility for the following mods:
+ [Bob's Metals, Chemicals and Intermediates](https://mods.factorio.com/mod/bobplates) - more turrets (MK2-MK5)
+ [Informatron](https://mods.factorio.com/mod/informatron) - informational page to explain functions and dangers
### Locale
If you want to contribute by translating this mod, you can view the existing translations [here](https://github.com/Wyrrrd/Rocket_Turrets/tree/master/locale). I'd be happy to add your language and credits to the next release.
If you want to contribute by translating this mod, you can view the existing translations [here](https://github.com/Wyrrrd/Rocket_Turrets/tree/master/locale). I'd be happy to add your language and credits to the next release. Especially the polish translation is in need of a proper Informatron page.
### Credits
- Thanks to [Kamsta99](https://mods.factorio.com/user/kamsta99) for the [original mod](https://mods.factorio.com/mod/RocketTurrets) and the [vanilla version](https://mods.factorio.com/mod/RocketTurretsNonBob).

View File

@@ -1,6 +1,8 @@
---------------------------------------------------------------------------------------------------
Version: 0.18.3
Date: 2020-03-16
Features:
- Added Informatron integration and dynamic informational page (also depending on bobplates)
Changes:
- Moved integrations into separate directory
- Simplified check for bobplates

3
control.lua Normal file
View File

@@ -0,0 +1,3 @@
--control.lua
require("integrations.informatron.control")

View File

@@ -13,4 +13,5 @@ data:extend({
})
-- integrations
require("integrations.bobplates.data")
require("integrations.bobplates.data")
require("integrations.informatron.data")

View File

@@ -6,7 +6,8 @@
"factorio_version": "0.18",
"dependencies": [
"base >= 0.18.0",
"? bobplates >= 0.18.1"
"? bobplates >= 0.18.1",
"? informatron >= 0.1.5"
],
"description": "Adds rocket turrets"
}

View File

@@ -0,0 +1,36 @@
if script.active_mods["informatron"] then
remote.add_interface("rocketturrets", {
informatron_menu = function(data)
return rocketturrets_menu(data.player_index)
end,
informatron_page_content = function(data)
return rocketturrets_page_content(data.page_name, data.player_index, data.element)
end
})
end
function rocketturrets_menu(player_index)
return {}
end
function rocketturrets_page_content(page_name, player_index, element)
if page_name == "rocketturrets" then
if script.active_mods["bobplates"] then
element.add{type="button", name="image_cover", style="rocketturrets_cover_bob"}
element.add{type="label", name="text_intro", caption={"rocketturrets.text_intro"}}
element.add{type="label", name="heading_turrets", caption={"rocketturrets.heading_turrets"}, style="heading_1_label"}
element.add{type="button", name="image_turrets", style="rocketturrets_turrets_bob"}
element.add{type="label", name="text_turrets", caption={"rocketturrets.text_turrets_bob"}}
else
element.add{type="button", name="image_cover", style="rocketturrets_cover"}
element.add{type="label", name="text_intro", caption={"rocketturrets.text_intro"}}
element.add{type="label", name="heading_turrets", caption={"rocketturrets.heading_turrets"}, style="heading_1_label"}
element.add{type="button", name="image_turrets", style="rocketturrets_turrets"}
element.add{type="label", name="text_turrets", caption={"rocketturrets.text_turrets"}}
end
-- the following is the same with and without bobplates
element.add{type="label", name="heading_ammo", caption={"rocketturrets.heading_ammo"}, style="heading_1_label"}
element.add{type="button", name="image_ammo", style="rocketturrets_ammo"}
element.add{type="label", name="text_ammo", caption={"rocketturrets.text_ammo"}}
end
end

View File

@@ -0,0 +1,7 @@
if mods["informatron"] then
informatron_make_image("rocketturrets_cover", "__Rocket_Turrets__/integrations/informatron/graphics/cover.png", 380, 264)
informatron_make_image("rocketturrets_cover_bob", "__Rocket_Turrets__/integrations/informatron/graphics/cover_bob.png", 380, 264)
informatron_make_image("rocketturrets_turrets", "__Rocket_Turrets__/integrations/informatron/graphics/turrets.png", 154, 154)
informatron_make_image("rocketturrets_turrets_bob", "__Rocket_Turrets__/integrations/informatron/graphics/turrets_bob.png", 698, 154)
informatron_make_image("rocketturrets_ammo", "__Rocket_Turrets__/integrations/informatron/graphics/ammo.png", 104, 64)
end

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 202 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 KiB

View File

@@ -20,4 +20,14 @@ rocket-turret=Raketen-Geschützturm
rocket-turret-mk2=Raketen-Geschützturm MK2
rocket-turret-mk3=Raketen-Geschützturm MK3
rocket-turret-mk4=Raketen-Geschützturm MK4
rocket-turret-mk5=Raketen-Geschützturm MK5
rocket-turret-mk5=Raketen-Geschützturm MK5
[rocketturrets]
menu_rocketturrets=Rocket Turrets
title_rocketturrets=Rocket Turrets
text_intro=Raketen waren in Factorio schon immer das hässliche Entlein, das dritte Rad am Wagen der Basisverteidigung. Für manuellen Beschuss eignen sich andere Methoden besser, und automatischer Beschuss war lange nicht möglich. Doch nun hast du deine Badonkadonks in einen Geschützturm geschraubt, um Chaos und Explosionen auf Beißer und Speier regnen zu lassen.
heading_turrets=Neue Geschütztürme
text_turrets=Du hast neue Geschützturm entwickelt. Leider hattest du nur noch diese Farbe auf Lager. Jetzt sehen die Geschütztürme zwar etwas trist aus, aber sie verschießen Raketen, die ihren üblichen Schaden anrichten.
text_turrets_bob=Du hast neue Geschütztürme entwickelt, die in (fast) allen Regenbogenfarben strahlen. Der gelbe Raketen-Geschützturm fügt den üblichen Raketenschaden zu. Jede Weiterentwicklung (MK2-5) erhöht den Schaden um 25% und die Reichweite um 2 zum Vorgänger. Zusätzlich können die Geschütztürme MK4-5 je einen weiteren Stapel Munition aufnehmen.
heading_ammo=Munition
text_ammo=Alle Raketen lassen sich in die Raketen-Geschütztürme laden. Damit sie sich nicht selbst zerstören, können Raketen-Geschütztürme keine Feinde innerhalb eines Radius von 15 angreifen. Besondere Vorsicht ist bei dem Einsatz von Atombomben geboten, da die Explosion einen höheren Radius hat und somit Chaos über deine eigenen Verteidigungsanlagen bringen könnte.

View File

@@ -20,4 +20,14 @@ rocket-turret=Rocket turret
rocket-turret-mk2=Rocket turret MK2
rocket-turret-mk3=Rocket turret MK3
rocket-turret-mk4=Rocket turret MK4
rocket-turret-mk5=Rocket turret MK5
rocket-turret-mk5=Rocket turret MK5
[rocketturrets]
menu_rocketturrets=Rocket Turrets
title_rocketturrets=Rocket Turrets
text_intro=Rockets have always been the lame duck, the third wheel of base defense in Factorio. For manual fire, other methods are more effective, and automatic fire was not possible for a long time. But now, you screwed your badonkadonks on a turret socket to make mayhem and explosions rain on biters and spitters.
heading_turrets=New Turrets
text_turrets=You developed new turrets. Sadly, you only had one colour available to paint them. Now the turrets look a bit depressing, but they launch rockets dealing their usual damage.
text_turrets_bob=You developed new turrets, which are glistening in (almost) every colours of the rainbow. The yellow rocket turret deals the rocket's usual damage. Every improvement (MK2-5) increases damage by 25% and range by 2. The turrets MK4-5 can each handle an additional stack of ammunition, too.
heading_ammo=Ammunition
text_ammo=All rockets can be loaded into the rocket turrets. To prevent them from self-destroying, rocket turrets cannot attack enemies inside a radius of 15 around them. Additional care should be taken when using atom bombs, since the explosion has a far greater radius than that and may therefore cause mayhem over your very own base defenses.

View File

@@ -20,4 +20,14 @@ rocket-turret=Działko rakietowe
rocket-turret-mk2=Działko rakietowe MK2
rocket-turret-mk3=Działko rakietowe MK3
rocket-turret-mk4=Działko rakietowe MK4
rocket-turret-mk5=Działko rakietowe MK5
rocket-turret-mk5=Działko rakietowe MK5
[rocketturrets]
menu_rocketturrets=Rocket Turrets
title_rocketturrets=Rocket Turrets
text_intro=Rockets have always been the lame duck, the third wheel of base defense in Factorio. For manual fire, other methods are more effective, and automatic fire was not possible for a long time. But now, you screwed your badonkadonks on a turret socket to make mayhem and explosions rain on biters and spitters.
heading_turrets=New Turrets
text_turrets=You developed new turrets. Sadly, you only had one colour available to paint them. Now the turrets look a bit depressing, but they launch rockets dealing their usual damage.
text_turrets_bob=You developed new turrets, which are glistening in (almost) every colours of the rainbow. The yellow rocket turret deals the rocket's usual damage. Every improvement (MK2-5) increases damage by 25% and range by 2. The turrets MK4-5 can each handle an additional stack of ammunition, too.
heading_ammo=Ammunition
text_ammo=All rockets can be loaded into the rocket turrets. To prevent them from self-destroying, rocket turrets cannot attack enemies inside a radius of 15 around them. Additional care should be taken when using atom bombs, since the explosion has a far greater radius than that and may therefore cause mayhem over your very own base defenses.