⚠️ SearchlightAssault ⚠️


Adds a game map and searchlights which sweep for foes at great range, alerting you while directing adjacent turrets to snipe spotted foes. Designed to dovetail with the early-mid game, searchlights provide: - Circuit network interfaces for search & detection I/O - Incentive to automate lamp & combinator production in the early game - New tactics to assault biter bases without leap-frogging turrets!

Content
21 days ago
1.1 - 2.0
16.9K
Combat

g non-recoverable error when placing a turret

23 days ago

I got this error when replacing a broken turret near a searchlight. This was before construction bots, so there was no blueprint present, if that helps.

The mod ⚠️ SearchlightAssault ⚠️ (2.3.23) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event SearchlightAssault::on_built_entity (ID 6)
SearchlightAssault/control-tunion.lua:439: attempt to index local 'g' (a nil value)
stack traceback:
SearchlightAssault/control-tunion.lua:439: in function 'IsBoostableAndInRange'
SearchlightAssault/control-tunion.lua:450: in function 'CreateRelationship'
SearchlightAssault/control-tunion.lua:346: in function 'TurretAdded'
SearchlightAssault/control.lua:494: in function 'turretOrInterfaceBuilt'
SearchlightAssault/control.lua:505: in function <SearchlightAssault/control.lua:500>

22 days ago

Thanks for your report! I spent a few minutes trying to recreate this, but couldn't reproduce the problem.

Would you mind sending me your save file to help me debug this?

22 days ago

https://drive.google.com/file/d/1ilFYgO9c0TLVeNlIWxvkIMIDa2idqruW/view?usp=sharing

The turret is near the bottom right of the platform. I tried replacing it again, and that crashed the game again.
In case you spawn on the wrong surface, the surface in question is named warpzone_62

21 days ago

Thanks so much for the save!

I haven't played the new warptorio yet, but can confirm thanks to your help that the mod is invalidating my mod's hidden entities each time the platform warps.

I should be able to figure out a fix this weekend, maybe even tonight if I have enough time after dinner & chores.

21 days ago

I've just released version 2.3.24 which should fix the error with Warptorio.
Sadly, I think you'll have to replace any Searchlights which were already built since before your last warp for them to start functioning again, but afterwards they should persist through warps just fine.

The new version should start to appear in the mod portal shortly.
If you don't see it in-game you can download it manually here: https://mods.factorio.com/mod/SearchlightAssault/downloads

Please let me know if you see further issues!

(I've also noticed a very minor memory leak with the Warptorio mod failing to notify my mod that it has deleted my entities. I've filed a request for the author to raise the appropriate flag when calling destroy(), but it shouldn't require any further action from either of us after they've done so.)
https://mods.factorio.com/mod/warptorio-space-age/discussion/69d1475210ca91471c5e2454

New response