Alien Walls

by vedrit

Humanity has made many great advances, but still looks to nature for inspiration. Thanks to users ThaPear, ratchetfreak, Klonan, and TheBrain0110 for lots of help on the core of this mod. Great work!

Content
1 year, 5 months ago
0.16.51 - 1.1
1.79K
Combat

b game crush

6 years ago

Error while running event AlienWall::on_research_finished (ID 18) AlienWall/control.lua:128: attempt to index field 'player' (a nil value)

how to fix it ??

6 years ago

Found a fix. Open the mod and go to control.lua, replace line 125 and below with:

script.on_event(defines.events.on_research_finished, function(event)
local research = event.research.name
if string.find(research, "alien%-hybrid%-upgrade") then
update_current_tier(game.forces['player'])
-- I'm still not sure if it's possible to handle multiple player forces with different tiers, but in theory you'd call the force of the one doing the research here, not player.
update_walls()
end
end
)

5 years ago

This is fixed in the latest version.

New response