Hovercrafts


Speed across land and water in your own personal hovercraft. 2 versions, plus 2 more with the mod 'Laser Tanks'.

Content
1 year, 7 months ago
0.16 - 2.0
80.5K
Transportation Combat

g Krastorio 2

1 year, 2 months ago

Breaks with the newly released Krastorio 2.

"Failed to load mods: Error in assignID: fuel-category with name 'vehicle-fuel' does not exist."
Posssibly kr-vehicle-fuel now.

+1

6 months ago

Yes, I can confirm that changing 'vehicle-fuel' to 'kr-vehicle-fuel' in 'data-final-fixes.lua' allows the game to load.

9 hours ago
(updated 9 hours ago)

Just published a fork of this mod with a patch for the misspelled fuel-category + some minor improvements

@maintainers: If this mod is still maintained, I could open a PR and would retire my fork afterwards

4 hours ago

It is still being maintained by myself and snouz. Feel free to make a PR

39 minutes ago

Technical question. Because your git repo is still missing all changes made for the 2.0.X releases (info.json still shows 1.2.2) I added the code from 2.0.4 as an intermediate commit and made my changes based on that.

So - how shall we proceed? Will you add the missing commits/releases and I start with my PR at this point? Or shall we only integrate my changes and thus skipping the intermediate changes made in 2.0.0 - 2.0.3 in the repo?

24 minutes ago

Mmm good point - I had forgotten that there had been some confusion with OwnlyMe making updates that weren’t on GitHub. I believe that this branch https://github.com/tburrows13/Hovercrafts/commits/2.0-fixes/ contains what is currently released as 2.0.4 so you could PR onto that? I’ll chat with snouz try and sort out the repo and merge some of the other PRs too (and update to 2.1)

14 minutes ago

There are some subtle differences between 2.0.4 and the branch mentioned above:

git diff tb/2.0-fixes 7e1eb86c240cb855e160f5ea3c8ffacfeee50e95
diff --git a/control.lua b/control.lua
index 3af8721..e05d946 100644
--- a/control.lua
+++ b/control.lua
@@ -366,7 +366,7 @@ script.on_configuration_changed(function()
   update_storage_state()
 end)

-script.on_event({defines.events.on_built_entity, defines.events.on_robot_built_entity, defines.events.script_raised_built}, function(event)
+script.on_event({defines.events.on_built_entity, defines.events.on_robot_built_entity}, function(event)
   if event.entity.name == "laser-hovercraft" then
     table.insert(storage.vehicles,event.entity)
   end
diff --git a/data.lua b/data.lua
index d5c24cd..21de031 100644
--- a/data.lua
+++ b/data.lua
@@ -1,6 +1,6 @@
 require("constants")

-local mod_lasertank_active = (mods["laser_tanks"] or mods["laser_tanks_updated"])
+local mod_lasertank_active = (mods["laser_tanks"] or mods["laser_tanks_updated"]) 
 local mod_elec_engine_active = mod_lasertank_active and settings.startup["lasertanks-electric-engine"] and settings.startup["lasertanks-electric-engine"].value or false

 missile_hovercraft_activated = settings.startup["enable-missile-hovercraft"].value

(7e1eb86c240cb855e160f5ea3c8ffacfeee50e95 is the commit hash of my intermediate step)

New response