Rampant, fixed


Based on Rampant 1.1.1 (new AI and enemies). 1. Perceptibly more dangerous. AI significantly rewritten, gameplay different. Can attack from afar. Improved search for a passage in the defense. By default, it does not populate the entire map. 2. +2 Factions. Can mutate existing nests. Mixed attacks from different factions. Can be combined with nests of other enemies

Content
3 months ago
1.1
31.2K
Enemies

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

2 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>

2 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

2 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