Giter Club home page Giter Club logo

factoriopumpjackblueprint's People

Contributors

d4rkc0d3r avatar simpsonboy77 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

factoriopumpjackblueprint's Issues

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.

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.

pumpjack

Traceback:
Unhandled Exception: System.InvalidOperationException: Sequence contains no matching element
at System.Linq.Enumerable.First[TSource](IEnumerable1 source, Func2 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==

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.

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)

Too many pipes produced

I noticed a case where the tool generates too many pipes. It produces simple but should produce something more like opt.

The Blueprint string that produces this layout is

0eNqV1d1ugyAUB/B3OdfYAIKIr9IsjbVkYatI/FhqjO8+qRdjq12Pd2Lkp8D5Hyc4XwfjW+t6KCawVeM6KI4TdPbdlddwrx+9gQJsb2og4Mo6jPxQ+4+y+oSZgHUXc4OCzW8EjOttb81q3AfjyQ312bTLA4+zCfimWyY0LrxpQRKWHySBMVzxlB/k4l9sa6r1GT6TB5ajWPofm22wKYqVPyzXC7sBCQSk/zC/vk5soBKBMh6pCrPmDLXmLGIl5oQUhk1FxHLMHuQYlsu9rN5bpuH69SYwivpcFblyu6AYKkhRSYUT24Qw0VEIB5MVJhAQJitJVH8h1q9PlGHSkkQdgmpMWhguLtEG0mfrVnt72FMp39m2mA7VG1r3vcEX0f+AwJdpu7WgcyaU5iqlUnCaz/M3FKv1nw==

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 this but I removed three power poles to produce this. Ignore the large power pole in the second image, that's just how I'm delivering power to the site.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.