⚠️ 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
10 days ago
1.1 - 2.0
12.8K
Combat

b Non-recovereable error: Error while running event SearchlightAssault::on_tick (ID 0)

a month ago
(updated a month ago)

Error occurs whenever the searchlight spots an enemy.

Error Message as follows:

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

Error while running event SearchlightAssault::on_tick (ID 0)
LuaGameScript doesn't contain key item_prototypes.
stack traceback:
[C]: in function 'index'
__SearchlightAssault
/control-ammo.lua:121: in function 'GetBoostableAmmoType'
SearchlightAssault/control-ammo.lua:138: in function 'TryBoostingAmmo'
SearchlightAssault/control-ammo.lua:235: in function 'AuditBoostedAmmo'
SearchlightAssault/control-tunion.lua:278: in function 'CheckAmmoElectricNeeds'
SearchlightAssault/control.lua:256: in function <SearchlightAssault/control.lua:250>

List of other mods currently installed:
Elevated Rails
Quality
Space Age
AAI Loaders
AAI Vehicles: Ironclad
Artillery Equality for Vanilla Only
Better Quality Names
Blueprint Sandboxes
Bullet Trails
Color Blind Friendly Science Packs
Construction-Continued
Dirt Path
Disco Science
Factorio Library
Inventory Repair
Mining Scars
Move with Mouse
Quality Glassware
Realistic Decoration Cleanup
Rename demolishers to forgewyrms
Shield Projector
Snap Mines

a month ago

Thanks for your report! I've just released version 2.3.1, which should fix this.

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

a month ago

Very appreciated. Although so after updating, it appears to freeze the game rather than cause a crash with a readable error.

a month ago

Any chance you could send me your save file and any mods that aren't on the mod portal? I'm having trouble reproducing this, and I can't seem to find quality glassare and a couple other mods you listed

a month ago

In the meanwhile, I've just uploaded version 2.3.2 which might have a fix?

a month ago
(updated a month ago)

Unfortunately so far the freeze still persists, and in fact the issue has been made worse. Removing the search light now causes the game to freeze.

Every mode I have was downloaded directly from the mod pod portal (with the exception of the three mods present by default, Elevated Rails, Quality, and Space Age.) Some of them may not show up if the Factorio Version option is not set to 2.0

Mediafire link to my current save file, with prepared scenario that causes the game to freeze: https://www.mediafire.com/file/z4lxiam5o7hklbl/space_age_first_go.zip/file

a month ago

Thanks again, I'm really sorry for all the trouble. Sadly, I wasn't able to reproduce this issue, even with the scenario you provided.

I've posted a new update, version 2.3.3 which has another tentative fix, although I'm mostly grasping at straws trying to figure out what's causing the freeze on your side.
I also tried loading your save file in my game and re-saving over it. Maybe it will work for you with the migrations applied from my computer? https://drive.google.com/file/d/1ZF5XXyXxbYWSwhNVC2qV2mb-RMbTEmM5/view?usp=sharing

30 days ago

It is no problem. Using the save file you sent over with the latest updated version, it appears that the freeze is no longer present, although it does seem gun turrets boosted by the searchlight are unusually slow. Thank you.

30 days ago
(updated 30 days ago)

The fire rate of boosted turrets is slowed down to help balance the mod.
Back when I was playing, it was very OP to have turrets use their full fire rate with such a range increase. Biter bases almost never had time to build up and send their counter attack forces because even just 4 gun turrets were killing a nest every few seconds, so there was no tension sniping a base clear in under a minute without any counter-play from the biters.

At some point I might make a setting to control it, but if you want the full fire speed back, just change sl-defines.lua from d.attackCooldownPenalty = 30 to d.attackCooldownPenalty = 1

28 days ago

There is some kind of error when overwriting the drawing lying in the book.
The book was not in the inventory, but in the book menu.

The SearchlightAssault mod (2.3.5) caused an unavoidable error. Please
report this error to the author of the mod.
Error when launching the SearchlightAssault event: on_player_setup_blueprint (ID77)
SearchlightAssault/control-items.lua:82: attempt to get the length of the local 'inventory' (nil
value)
stack tracing:
SearchlightAssault/control-items.lua:82: in the 'SeekBlueprints'function
SearchlightAssault /control-items. lua: 107: in the function
SearchlightAssault /control-items.lua:95>

28 days ago

There is some kind of error when overwriting the drawing lying in the book.
The book was not in the inventory, but in the book menu.

Thanks for reporting this! I've just released a quick-fix with version 2.3.6.
(I don't have time to thoroughly test this until I get back from work, but hopefully it should at least stop that particular error)

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

New response