Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Galaxy dump #2811

Merged
merged 2 commits into from Mar 16, 2014
Merged

Galaxy dump #2811

merged 2 commits into from Mar 16, 2014

Conversation

lwho
Copy link
Contributor

@lwho lwho commented Mar 15, 2014

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 to stdout.
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).

@lwho lwho merged commit 7e95754 into pioneerspacesim:master Mar 16, 2014
@lwho lwho deleted the galaxy_dump branch March 16, 2014 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant