factoriopumpjackblueprint's People
factoriopumpjackblueprint's Issues
Blueprints do not include wires between power poles
As of 1.1.0, "Power pole connections are saved in the blueprint. They still auto connect to other poles outside the blueprint."
All blueprints generated by the tool do not include any wires, so all poles need to be removed and re-placed to cause them to generate wires.
Exception on my blueprint
The program crashed dealing with my blueprint. After checking I found removing arbitrary 1 of the circled 4 pumpjacks could let the program run.
Traceback:
Unhandled Exception: System.InvalidOperationException: Sequence contains no matching element
at System.Linq.Enumerable.First[TSource](IEnumerable1 source, Func
2 predicate)
at FactorioPumpjackBlueprint.Program.LayPipes(Blueprint bp, Boolean useSpeed3, Int32 minPumpjacksPerBeacon)
at FactorioPumpjackBlueprint.Program.Main(String[] args)
Blueprint:
0eNqVmN1q4zAQRt9F1y5YGv3YfpWlLGlrincbJyTOsiHk3deOx2WhX8Wnq5ISn8iaMzMa3czLx6U/noZxMt3NDK+H8Wy6HzdzHt7H3cfyv+l67E1nhqnfm8qMu/3y6XjZH3/tXn+be2WG8a3/azp7f65MP07DNPQr4/Hh+nO87F/60/yFr09X5ng4zw8cxuWXZsiT9ZW5zn+9u9+rLwhHIBoF1Agg1BrcipAGITyB+CS0iBCoReh7iEeISCGSIuBWJAah0RCLCA1BUICDW9kSABeUALfS1gxCo+EiRHBetsoIkOEoRlQGDKnl3JTsOhg5U5bAyLnsegbBybkxYKJbys7PwEI9bUOtI2QZjKKbGjDNHGVom1uE4wy1K8PCRHGUoU7dsDBTHGPoJvk3CEZQkSyCKp+y7QbeUUZR0QpscVw5Q9VyHJOmQA1YQB2j55MGNcGGyOip8YDhEMuXHAygzBRNdVhxhCqdWyfBCF8SToxgxNwyDLYAiUUtACIoLUXbMkwOaQpOBpjAaKn1CiaXr6m3WAMK98FTNXPNLfgOntHS2QxAeB3wK1C1MmVWQAn5eB7q6BkdtX8KBDAyOsmsgFLRrYUan9Zb3gNYIEPNZwMGWP5EBV8hOF4kvAIpmBbwxOILkgFmdGBclJgjRP7ogLt+SAU1AQoduCNljsD4KHWGEOuCncTDoy1oMxb2uugKgoEJXM9WBPQ6+oIbBQtzKwb69PINgKqRbe4tUsH8iWeMSB0kVQmY4LGlZ3k8sCWuY69i4wE4lWjpYG4k7iy59gt8HZCEL3V4/k3cUVJ3E1qVSmYcfDOSYkHrxPc7qWTEwZdlqSkYXZc7v+dqvWns/ruYrMyf/nR+fD9JbYNvXaznn/sHxMe6gg==
Linux support
Circle pumpjack BP
Would it be Possible to add a txt file in the zip with the pumpjack circle blueprint?
The pastebin links to them have been removed.
Cannot deserialize the current JSON object
I'm getting an unhandled exception error:
Unhandled Exception: Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collections.Generic.IList`1[FactorioPumpjackBlueprint.Item]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path 'entities[0].items.speed-module-3', line 1, position 169.
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IWrappedCollection wrappedList, JsonReader reader, JsonArrayContract contract, JsonProperty containerProperty, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
at FactorioPumpjackBlueprint.Blueprint.ImportBlueprintString(String bpString)
at FactorioPumpjackBlueprint.Program.Main(String[] args)
Number of pole poles is not optimized
The tool generates too many power poles. It's easy to find a better layout by eye, which means there are probably even better layouts that I can't see. For instance, the tool generated but I removed three power poles to produce . Ignore the large power pole in the second image, that's just how I'm delivering power to the site.
Too many pipes produced
I noticed a case where the tool generates too many pipes. It produces but should produce something more like .
The Blueprint string that produces this layout is
0eNqV1d1ugyAUB/B3OdfYAIKIr9IsjbVkYatI/FhqjO8+qRdjq12Pd2Lkp8D5Hyc4XwfjW+t6KCawVeM6KI4TdPbdlddwrx+9gQJsb2og4Mo6jPxQ+4+y+oSZgHUXc4OCzW8EjOttb81q3AfjyQ312bTLA4+zCfimWyY0LrxpQRKWHySBMVzxlB/k4l9sa6r1GT6TB5ajWPofm22wKYqVPyzXC7sBCQSk/zC/vk5soBKBMh6pCrPmDLXmLGIl5oQUhk1FxHLMHuQYlsu9rN5bpuH69SYwivpcFblyu6AYKkhRSYUT24Qw0VEIB5MVJhAQJitJVH8h1q9PlGHSkkQdgmpMWhguLtEG0mfrVnt72FMp39m2mA7VG1r3vcEX0f+AwJdpu7WgcyaU5iqlUnCaz/M3FKv1nw==
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.