Adds conductive floor tiles that transmit power to adjacent tiles (including diagonals) and any structure on top of them, just place a power source or electric pole on top and enjoy the extra space!
You're welcome! I literally just started thinking about this kind of feature once I started planning gigantic mega-bases ... And the power poles started being a problem.
The fact that I was able to do this kind of think in only 4 days still amazes me XD
And i'm really glad that people also like it.
I'll be releasing little updates with minimal amounts of upgrades/fixes, mostly because now that I have a little more time, now i'm finding little bugs and edge cases. Once the developers give us a way of hiding the electric connections on map I'll directly add it to the mod!
However, there is no a way of hiding the connections on map (at least not one that i can find...)
And not "exactly" each tile, but areas of them, so there is no 1-to-1 power pole entity for each tile, but multiple ones with different ranges of supply.
I'm thinking in a way of sorting the problem, which could be creating something like a "proxy-surface" for each planet, so the connections could be made there, and then connect each pole to their respective real-world proxy.
Maybe in the update 1.2.0 I'll add it, mainly because i don't have planty of free time to continue development (just enough to solve bugs).
as ive seen there a tile is composed of 32x32 atleast that is what i selected. so those (each of them) will have a connection drawn from it on the map. or more connections.
The proxys by themselves are invisible on map, but the conection is the one that still appears, however yes, if you deselect the electric view, then the conections will dissapear from map.
If you want to hide the power wires In the map view Then set the force to neutral This is done in the function you use to create the power pole example
if not existing_pole then
local new_pole = surface.create_entity({
name = "floor_pole",
position = center_position,
force = "neutral"
})
end
Note this will only hide the power wires for new polls created any existing polls will still be visible and map
The power poles still Power all the players structure and there is no issue connecting regular power poles to power poles with the neutral force I have personally use this method in my own mods and tested it extensively with other mods as far as I'm aware there is no conflict
If you want to hide the power wires In the map view Then set the force to neutral This is done in the function you use to create the power pole example
if not existing_pole then
local new_pole = surface.create_entity({
name = "floor_pole",
position = center_position,
force = "neutral"
})
end
Note this will only hide the power wires for new polls created any existing polls will still be visible and map
But how would be the code if we have a pole created alreay?
can we write a code to replace old poles with new ones and create 1 entity ?
But how would be the code if we have a pole created alreay?
can we write a code to replace old poles with new ones and create 1 entity ?
I could probably add a in-game console command for recalculating a surface completely (It could be a very heavy operation, but necesary for certain people)
But how would be the code if we have a pole created alreay?
can we write a code to replace old poles with new ones and create 1 entity ?
I could probably add a in-game console command for recalculating a surface completely (It could be a very heavy operation, but necesary for certain people)
i cannot use console commands cause i want achievements :D
Yes i can have achievements even on playing with mods but no console commands :D atleast i think.
If you want to hide the power wires In the map view Then set the force to neutral This is done in the function you use to create the power pole example
if not existing_pole then
local new_pole = surface.create_entity({
name = "floor_pole",
position = center_position,
force = "neutral"
})
end
Note this will only hide the power wires for new polls created any existing polls will still be visible and map
What file i must edit to add this line?
i want to test this and see how it goes :D
Well, the forces are kind of hardcoded across multiple files, however the main one that really works by taking forces in consideration is "process_cached_tiles".
Check out this space platform tile, and they say something about spaceplatform electric power , maybe you can use some of the code in making our tile like the spaceplatform to conduct electricity.
Also this tile would be nice as an Electric Tile.
I already defined what features add in the next release, and adding new tiles as electric versions is probably the most requested one, so, I'll add it!
However it will require kind of a lot of time, probably 4-5 days, as i want to refactor the mod to gain higher performance + modding support. Plus, i cant startworking right now... Wait for me for a week, and we'll have the capability for adding any tile as an electrical version B)