Orbital Ion Cannon


When you need to call down the thunder to deal with those pesky biters, launch a rocket with an ion cannon into orbit and show the bugs who's boss.

Content
3 years ago
0.13 - 0.18
346
Combat

b Error with game version 0.18.7

4 years ago

Hello, it was working fine before 0.18.7

48.279 Factorio initialised
48.298 Mods to disable:Failed to load mods: Orbital Ion Cannon/data.lua:2: Orbital Ion Cannon/prototypes/entities.lua:416: attempt to index field 'animation' (a nil value)
stack traceback:
Orbital Ion Cannon/prototypes/entities.lua:416: in main chunk
[C]: in function 'require'
Orbital Ion Cannon/data.lua:2: in main chunk
stack traceback:
[C]: in function 'require'
Orbital Ion Cannon/data.lua:2: in main chunk

Mods to be disabled:
• Orbital Ion Cannon

Thank you

4 years ago

got the same error

4 years ago

Can it do something with Factorio Standard Library dependency?
Or its Ion cannon error alone?

4 years ago

This can be fixed by adding this line before line 416 on prototypes\entities.lua

yuge_crater.animation =
{
width = 110,
height = 90,
frame_count = 1,
direction_count = 1,
filename = "base/graphics/entity/scorchmark/small-scorchmark.png"
}

So the completed block will read like this:

yuge_crater.name = "enormous-scorchmark"
yuge_crater.order = "d[remnants]-b[scorchmark]-b[yuge]"
yuge_crater.animation =
{
width = 110,
height = 90,
frame_count = 1,
direction_count = 1,
filename = "base/graphics/entity/scorchmark/small-scorchmark.png"
}
yuge_crater.animation.scale = settings.startup["ion-cannon-radius"].value / 4
yuge_crater.ground_patch.sheet.scale = settings.startup["ion-cannon-radius"].value / 4
yuge_crater.ground_patch_higher.sheet.scale = settings.startup["ion-cannon-radius"].value / 4,

4 years ago
(updated 4 years ago)

"Base" needs to be with double underscores on sides. Reason it does not display here, its the code to make font bold.

But it works now, thanks Bellicosity

4 years ago
(updated 4 years ago)

does the
[code] tag not work here [/code]
?
(this was a test)
-edit: I guess it doesn't... that's poor design choice imho.

4 years ago

Ah yeah, the fix above worked I think. I made the change to a headless server and it seems that clients still download the file from the mod portal here, is that correct? Is there any good way around that?

4 years ago

I've decided to just roll back to .17 for now. Don't want to bother with distributing a custom mod to everyone that connects.

4 years ago

That fix is working for me. Thank you! (don't forget the double underscores)

4 years ago

I have included this fix in v1.8.1. Thanks guys!

New response