Skip to content

Conversation

myk002
Copy link
Member

@myk002 myk002 commented Aug 9, 2020

DFHack/dfhack#499
use the API and libraries in DFHack/dfhack#1620 to implement reading blueprints from xlsx files. Refactor the blueprint reading logic to handle both csv and xlsx input.

also rename the sheet parameter from -s|--sheet to -n|--name to support more general naming in the future (I'm thinking ahead for multiple blueprints sections per csv file or spredsheet sheet)

@myk002 myk002 changed the title WIP: quickfort xslx support quickfort xslx support Aug 10, 2020
@myk002
Copy link
Member Author

myk002 commented Aug 10, 2020

ok, this PR is clear for merge once xlsxreader is merged in DFHack/dfhack#1620

@@ -28,7 +28,7 @@ local function scan_csv_blueprint(path)
blueprint_cache[path] = {modeline=get_modeline(filepath), mtime=mtime}
end
if not blueprint_cache[path].modeline then
print(string.format('skipping "%s": no #mode marker detected', v.path))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, I caught this locally but forgot to comment yesterday

@lethosor lethosor merged commit d30296b into DFHack:quickfort Aug 18, 2020
@myk002 myk002 deleted the quickfort_xlsx branch August 18, 2020 04:21
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.

2 participants