Quality Turrets Reworked

by Xearox

Turrets gain quality by killing

Tweaks
a month ago
2.0
764
Combat

b Crash when leveling up Solar Laser Tower

23 days ago

Hello! I'm running this in a pack alongside Cheese's Concentrated Solar mod. When the Solar Laser Tower leveled up, it caused this error:

The mod Quality Turrets Reworked (0.11.3) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event quality-turrets-reworked::on_entity_died (ID 4)
The mod Cheese's Concentrated Solar (0.5.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event ch-concentrated-solar::script_raised_built (ID 92)
ch-concentrated-solar/control/database.lua:89: DATABASE CORRUPTION: Mirror is linked to an invalid tower
stack traceback:
[C]: in function 'assert'
ch-concentrated-solar/control/database.lua:89: in function 'link_mirror_to_tower'
ch-concentrated-solar/control/database.lua:169: in function 'link_mirror_to_tower_if_closer'
ch-concentrated-solar/control/database.lua:403: in function 'on_built_entity_callback'
ch-concentrated-solar/control.lua:50: in function <ch-concentrated-solar/control.lua:49>
stack traceback:
[C]: in function 'create_entity'
quality-turrets-reworked/control.lua:204: in function 'DidTurretKill'
quality-turrets-reworked/control.lua:131: in function <quality-turrets-reworked/control.lua:127>

Unsure which mod is more responsible in causing this, so I'm informing you both. Thanks!

22 days ago

It’s an issue caused by the other mod.
What I can do on my side is prevent non-vanilla turrets from being upgraded.
If you want, I can add this in the next version of the mod.

21 days ago

Thanks for the response, to both this and the other thread! I think that could be a good feature, though maybe instead of a checkbox, have it be a textbox where players can input a list of turrets to exclude? That way we can disable a specific one (like the laser tower) while leaving other modded turrets on? No sweat either way though. Thanks again!

18 days ago

Thanks for the response, to both this and the other thread! I think that could be a good feature, though maybe instead of a checkbox, have it be a textbox where players can input a list of turrets to exclude? That way we can disable a specific one (like the laser tower) while leaving other modded turrets on? No sweat either way though. Thanks again!

I've forked the mod’s source code and added support for my mod.
As long as the author of the other mod doesn’t release an update, you can use this modified version:

https://github.com/xsoftwareforge/factorio-mod-ch-concentrated-solar/tree/master

You can also download the source code directly here:
https://github.com/xsoftwareforge/factorio-mod-ch-concentrated-solar/archive/refs/heads/master.zip

Simply unpack the ZIP file and copy the extracted folder into Factorio’s mods directory.

New response