Affecting monument wiresSolved

hi, the plugin changes the colors of the wires from the prefabs, can this be disabled? or add an option? thx.

Do you mean that this is coloring wires that players did not create, such as those that are part of the map? Can you give me an example, maybe a screenshot? I need more information so that I can properly detect such wires.

here an example of the harbor puzzle


here an example of the military tunnel puzzle

Thanks for posting the screenshots. You should be able to resolve the issue by setting RequiresPermission to true (same as the default config), and then running o.grant group default dynamicwirecolors.use. If you aren't satisfied with this solution, please explain why. I can possibly add an option to ignore wires connected to un-owned entities even when permission is not required.

change to as said Requires permission to true and follow the red wires in the same way

Are you saying that after reloading the plugin with Require Permission set to true, the wires in the screenshots are still red when not powered? That would be very unexpected.

When I tested yesterday, reloading the plugin with RequirePermission set to true, the puzzle wires were instantly changed from red to black. I tested with both harbor and train yard puzzles on a procedural map.

If you are still seeing the issue, the most likely reason is that you either did not save the config, or that you you did not reload the plugin.

It does not work for me, require permission true an granted for default group, also i restart the server and it remains the same red wires.

A temporary solution is with this config.This causes another error, now when the cables have electricity they are red. In short, the same thing happens the other way around.

{
"InsufficientPowerColor": "Default",
"InsufficientFluidColor": "Red",
"RequiresPermission": true
}

Hmm, the fact that the plugin makes the wires red while they have sufficient power means that the plugin thinks their default color is red. Ordinarily, this shouldn't happen, as the plugin is designed to revert the colors to their original when unloading. This means the only explanation is that the plugin did not get a chance to unload before the final save. That could happen, for example, if the server crashed after the final save. I've also seen cases reported on other plugins, where supposedly a server was shutdown gracefully, but a plugin did not get called before the final save, for unknown reasons.

At minimum, this will be resolved for all monument entities the next time you wipe. However, the issue with the plugin misremembering the original color for wires could still happen for player wires. There are a few ways to ultimately fix this, but none of the solutions I have come up with so far are ideal.

Ok, I have tested a copy of the server and when I wipe, it is repaired as you say, I do not detect any problem with the player wires. From my humble opinion I think this could be avoided by always requiring permission. the option is problematic. thx for all

Thanks for the feedback. I've released v1.1.0 which makes it so that the RequiresPermission option only applies to player-owned entities. There is now a separate option AppliesToUnownedEntities which determines whether to apply dynamic colors to unowned entities (monument entities), which defaults to false.

I also implemented something to fix the bug that you experienced where the colors were stuck red. The way it's implemented currently incurs a cost when the server saves, approximately 0.01 seconds of CPU time.

Locked automatically