Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds the possibility to create text dumps of the generated galaxy from the command line
Synopsis
pioneer -gd filename [radius] [sx,sy,sz]
filename (mandatory): File to dump to or
-
to dump tostdout
.radius (optional, default 4): Defines sizes of cube to dump.
sx,sy,sz (optional, default 0,0,0): Center sector of cube to dump.
A cube of sectors centered at
(sx,sy,sz)
with the given radius is dumped, i.e. all sectors from(sx - radius, sy - radius, sz - radius)
to(sx + radius, sy + radius, sz + radius)
.I usually use it to verify that code changes did not logically change the generated universe, e.g
pioneer -gd - 20 -82,41,0 | md5sum
(actually I run several of them in parallel from a script and dump the md5sums to a file).