factorio-combinatorgraph's People
factorio-combinatorgraph's Issues
Segfaults when run with neato
[flowbox script-output]$ neato -v combinatorgraph.gv
neato - graphviz version 2.40.1 (20161225.0304)
libdir = "/usr/lib64/graphviz"
Activated plugin library: libgvplugin_neato_layout.so.6
Using layout: neato:neato_layout
Activated plugin library: libgvplugin_core.so.6
Using render: dot:core
Using device: dot:dot:core
The plugin configuration file:
/usr/lib64/graphviz/config6
was successfully loaded.
render : cairo dot dot_json fig gd json json0 lasi map mp pic pov ps svg tk visio vml vrml xdot xdot_json
layout : circo dot fdp neato nop nop1 nop2 osage patchwork sfdp twopi
textlayout : textlayout
device : bmp canon cmap cmapx cmapx_np dot dot_json eps fig gd gd2 gif gtk gv ico imap imap_np ismap jpe jpeg jpg json json0 mp pdf pic plain plain-ext png pov ps ps2 svg svgz tga tif tiff tk vdx vml vmlz vrml wbmp x11 xdot xdot1.2 xdot1.4 xdot_json xlib
loadimage : (lib) bmp eps gd gd2 gif ico jpe jpeg jpg png ps svg xbm
fontname: "Times-Roman" resolved to: (ps:pango Times New Roman, REGULAR) (PangoCairoFcFont) "Times New Roman, Regular" /usr/share/fonts/msttcore/times.ttf
overlap: pseudo-orthogonal constraints value 0 scaling 0.0000
pack info:
mode undefined
size 0
flags 0
Scanning graph _neato_cc0, 41 nodes
model 0 smart_init 0 stresswt 2 iterations 200 tol 0.000100
convert graph: majorization
41 nodes 0.00 sec
Calculating shortest paths: 0.00 sec
Setting initial positions: 0.00 sec: 0.00 sec
Setting up stress function: 0.00 sec
Solving model: 144.552 20.759 11.843 8.899 7.193 6.086 5.355 4.872 4.554 4.344
4.206 4.113 4.051 4.008 3.979 3.959 3.944 3.933 3.926 3.920
3.915 3.912
final e = 3.911583 106 iterations 0.01 sec
Adjusting _neato_cc0 using pseudo-orthogonal constraints
Node separation: add=0 (1.500000,1.500000)
network simplex: 41 nodes 213 edges maxiter=2147483647 balance=2
Segmentation fault (core dumped)
[flowbox script-output]$
Support for blueprints and books?
Will you add support for blueprints and books, adding the option to generate a graph from a blueprint or one for each blueprint in a book, in a folder named by the bookname with filenames as index number+ blueprint name?
It is obviously possible and significantly easier then what you did in conman. But it still is some work.
1.1 Update
Changed 'control_behavior.parameters.parameters' to just 'control_behavior.parameters' for LuaDeciderCombinatorControlBehavior, LuaConstantCombinatorControlBehavior, and LuaArithmeticCombinatorControlBehavior.
and
train stop is missing LuaTrainStopControlBehavior: set_trains_limit and read_trains_count
Generates invalid labels for rail signals enabled for both read and close
Latest version of graphviz tools choke on the labels generated for rail signals that have both the "read signal" and "close signal" mode enabled:
Error: bad label format {rail-signal|{Red Signal|signal-red}|{Orange Signal|signal-yellow}|{Green Signal|signal-green}{inserter|<|0}}
Here is a sample blueprint:
0eNrFVdFugzAM/Bc/wwSUtivan0wVSsFtLYWAkjCtqvj3ObAx2oK2SJP2gmQcX3znS3KFg2yx0aQsZFegolYGstcrGDopId0/e2kQMiCLFQSgROUiLUhCFwCpEt8hi7t9AKgsWcKhvg8uuWqrA2peMFYay7Wnsw17iACa2nBVrdxWjBQFcIEsTLsueABJPEGSOZDVCFJiQSXqsKirAylha/2IFKYDVPS0ZrYlaSyGLPfCWlldy/yAZ/FGXM0ln5g558oex7i/TlUrnMSRK6saofvtMngB96O5cEGrbH7UdZWTalpeanWLTMAVq2HXHitxH43lVGXiKO323Rzf9GZm4edcH4nGT+sp1TlyBemiJZsXsjaYfznE9RmMOY2iHFNHIc0kN4riwI6kjc1/sJmphJShFFUDQ0+LMs4oFS8otfruyIXJRDQXbxaEXPu5L5rD2PxuGHezmNgu/aPJ3Kb8B0PKoLZM6e/GsmTgraeBE0//3pn0QaYFBieNqO457BY4PPt5Z/bi2t3qUJwFqR8dlMwb6HdstncnI45uT068wNat87hj0/lO/+2G9R9v7Pm88evG72V/orLJAxzAG2rTL96uoni3SeLVdtN1H4b/oH8=
Here is the graphviz file generated:
graph combinators {
graph[overlap="portho" splines="spline" sep=0.5];
332705 [shape=record label="<1>\>|{decider-combinator|{nil|\<|0}|{nil|=input}}|<2>\>" pos="19,-539"];
332705:2 -- 332703:1 [color=red headport=_ tailport=e];
332703 [shape=record label="{rail-signal|{small-lamp|\<|0}}" pos="21,-539"];
332703:1 -- 332710:1 [color=red headport=_ tailport=_];
332710 [shape=record label="{rail-signal|{Red Signal|signal-red}|{Orange Signal|signal-yellow}|{Green Signal|signal-green}{inserter|\<|0}}" pos="24,-539"];
332706 [shape=record label="{rail-signal|{Red Signal|signal-red}|{Orange Signal|signal-yellow}|{Green Signal|signal-green}}" pos="21,-536"];
332706:1 -- 332707:1 [color=green headport=_ tailport=_];
332707 [shape=record label="{rail-chain-signal|{Red Signal|signal-red}|{Orange Signal|signal-yellow}|{Green Signal|signal-green}|{Blue Signal|signal-blue}}" pos="24,-536"];
332707:1 -- 332708:1 [color=green headport=w tailport=_];
332708 [shape=record label="<1>\>|{decider-combinator|{nil|\<|0}|{nil|=input}}|<2>\>" pos="27,-536"];
}
I'm not entirely familiar with graphviz label formats but my gut says there's a missing |
between the read and write {...}
things.
Overlapping lines
Hi,
The code seems to be producing overlapping lines:
graph combinators {
graph[overlap="portho" splines="spline" sep=0.5];
30367 [shape=record label="<1>\>|{decider-combinator|{nil|\<|0}|{nil|=input}}|<2>\>" pos="24,179"];
30367:1 -- 30368:1 [color=red headport=w tailport=w];
30368 [shape=record label="<1>\>|{decider-combinator|{nil|\<|0}|{nil|=input}}|<2>\>" pos="24,180"];
30368:1 -- 30368:2 [color=red headport=e tailport=w];
}
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.