Skip to content

-b option for Mac OSX binary incorrectly appending target file to batch-out path #29

@DMHoodoo

Description

@DMHoodoo

Using:
macOS Mojave 10.14.6

My scripts are located in: ./are-resources/scripts/*
My intended batchoutdir: ./compiled-resources/

Running the following command:
./nwnsc -Q -n "/Users/hok/Library/Application Support/Steam/steamapps/common/Neverwinter Nights" -i "are-resources/scripts" -b ./compiled-resources/ ./are-resources/scripts/gs_m_load.nss

Brings about the error:
Compiling: gs_m_load.nss
Error: Unable to open output file ./compiled-resources//are-resources/scripts/gs_m_load.ncs.

I was able to create a workaround by removing the ./ in the target file and creating a new directory: "compiled-resources/are-resources/scripts" and running the following command
./nwnsc -Q -n "/Users/hok/Library/Application Support/Steam/steamapps/common/Neverwinter Nights" -i "are-resources/scripts" -b ./compiled-resources/ are-resources/scripts/gs_m_load.nss

This actually output the .ncs in ./compiled-resources/are-resources/scripts/ instead of ./compiled-resources/ like I originally wanted. It retrieves the scripts fine from./are-resources/scripts/ so it seems like the batch-out option has a minor issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions