teoxoy / factorio-blueprint-editor

A feature-rich Factorio Blueprint Editor
https://fbe.teoxoy.com
MIT License
306 stars 62 forks source link

Entity counting #246

Open SunSerega opened 1 year ago

SunSerega commented 1 year ago

Is your feature request related to a problem? Please describe. I needed a precise count of entities in a blueprint to perfect my logic circuit, but the game shows entity count with low precision when there are many of them.

Describe alternatives you've considered I noticed that you currently output blueprint js object to the console when it's pasted. So I set a breakpoint to catch that object and run a simple script in the console:

let counts = {};
for (let e of t.blueprint.entities)
    counts[e.name] = (counts[e.name]??0) + 1;
console.log(counts);

This works but...

Describe the solution you'd like Can you please make it a visual interface feature?