Rampant, fixed


Based on Rampant 1.1.1 (new AI and enemies). - New types of enemies - Works on SA planets, can control biters, demolishers, Gleba units - Can mutate existing nests - Can attack from afar - Improved search for a passage in the defense - Some new mechanics

Content
2 days ago
1.1 - 2.0
44.5K
Enemies

b Crash when remove surface from universe explorer (K2+SE)

3 years ago

Error while running event RampantFixed::on_tick (ID 0)
LuaSurface API call when LuaSurface was invalid.
stack traceback:
[C]: in function 'index'
__RampantFixed
/libs/MapProcessor.lua:608: in function 'suspendClearedMaps'
RampantFixed/control.lua:1274: in function <RampantFixed/control.lua:1235>

3 years ago

I found that if add check for both map and map.surface, crash disappeared

Code likes this:

if not map or not map.surface then
return
end

3 years ago

Yes, at this point I will add a check. However, this situation is inherently incorrect, and there should be no map for the deleted surface. I will look for how it happened

New response