EDIT: The "fix" below deleted all my Mk1 cannons except one. Use it at your own risk. Maybe save before completing the research.
For anyone that wants to quickly fix this and get back to playing, you can do it like this.
- Go to your mods folder.
- Unpack the mod archive file. Make sure that the folder structure looks like the example at the bottom of the post.
- Meaning, make sure that the folder of the mod does not have extra folders inside it cause I don't know if that causes factorio to ignore the mod.
- Open
Kux-OrbitalIonCannon_3.7.2/modules/ion-cannon-table.lua
using any text editor (notepad, notepad++, vi, etc).
- Find the line that says
local surfaceCounts = {}
(in my file it's at line 14).
- Add the following line AFTER the aforementioned line (e.g. put it at line 15)
if entries == nil then return surfaceCounts end
- Save the file, close the editor, and restart factorio.
No need to repack the mod. If you have both a zip and a folder with the same name, factorio gives precedenceto the folder. IIRC it will also automatically delete it if/when you update the mod.
When you unpack the zip, the mods folder should look something like this
mods
├── Kux-CoreLib_3.15.1.zip
├── Kux-OrbitalIonCannon_3.7.2
│ ├── changelog.txt
│ ├── control.lua
│ ├── data-final-fixes.lua
│ ├── data.lua
│ ├── data-updates.lua
│ ├── graphics
│ ├── info (1.1).json
│ ├── info.json
│ ├── license.txt
│ ├── locale
│ ├── migrations
│ ├── mod.lua
│ ├── modules
│ │ ├── autotargeter.lua
│ │ ├── gui.lua
│ │ ├── ion-cannon-table.lua <-- YOU WANT THIS FILE
│ │ ├── Permissions.lua
│ │ └── tools.lua
│ ├── prototypes
│ ├── README.md
│ ├── Readme.txt
│ ├── settings.lua
│ ├── settings.lua.bak
│ ├── sound
│ ├── thumbnail - Kopie.png
│ └── thumbnail.png
├── Kux-OrbitalIonCannon_3.7.2.zip
└── other mods ...