Phidias Collection


Regular PHI-CL VP or SAP server hosted on APERX Vanilla Plus, VP (Space Age, Production Focus. No Quality, No Planet) Space Age Plus, SAP (Enhanced)

Content
3 hours ago
1.1 - 2.1
5.22K
Transportation Logistics Combat Armor Environment Mining Fluids Manufacturing Power Storage Cheats

b Upgraded turrets do not fire due to energy_source scaling issue

a month ago

In PHI-CL 3.0.146, laser-turret-2/3, tesla-turret-2/3, and railgun-turret-2/3 do not fire even when powered.

I think the cause is in the energy_source scaling logic in data/b/main.lua.

buffer_capacity, input_flow_limit, and output_flow_limit are under item.energy_source, but the current code checks item[v].

Because of this, the upgraded turrets have increased attack energy consumption, but their energy_source.buffer_capacity is not scaled. As a result, they cannot store enough energy for one shot.

Suggested fix:

and item[v] then

to

and item.energy_source[v] then

I confirmed this by creating a small dependency patch mod that adjusts energy_source.buffer_capacity, input_flow_limit, and output_flow_limit. After applying the patch, the affected turrets fired correctly.

15 days ago

this should be good now :)

15 days ago

It works now. Thank you for fixing it!

New response