Games-Lacuna-Client icon indicating copy to clipboard operation
Games-Lacuna-Client copied to clipboard

rename_ships.pl not return output

Open visibleunderwater opened this issue 11 years ago • 2 comments

no output, just sits for a few seconds: perl rename_ships.pl --p Heaven --type "Hulk Huge" --format SUPPLY

--dry run 1 gives output of:

Did not provide a config file at rename_ships.pl line 72.

This isn't in the GETOPTIONS or after the END description...and:

perl rename_ships.pl lacuna.yml --p Heaven --type "Hulk Huge" --format SUPPLY --dry-run 1

returned nothing again, and no ships where renamed. I've updated rename_ships.pl to the most current posted version. Please help, [email protected] CELESTIAL EMPIRE [UNSC]

visibleunderwater avatar Sep 19 '13 21:09 visibleunderwater

Quick glance: A) Don't put a 1 after --dry-run. It's thinking the 1 is the config file B) for type, you would use hulk_huge, not "Hulk Huge"; However, see note C C) This program hasn't been updated since March 2011. (just double checked and it did work for hulk_huge.

lemming552 avatar Sep 19 '13 22:09 lemming552

I think this is how you should call it:

perl rename_ships.pl --p Heaven --type "hulk_huge" --format SUPPLY -- lacuna.yml

You wouldn't need to specify a config file if you stored it as login.yml where File::HomeDir->my_dist_config('Games-Lacuna-Client') would find it.

Run this to find, or create the directory

perl -MFile::HomeDir -E 'say File::HomeDir->my_dist_config(q[Games-Lacuna-Client],{create=>1})'

Open the directory and create a file named login.yml there.

with the following contents

api_key: 00000000-0000-0000-0000-000000000000
empire_name: your empire name
empire_password: your sitter password
server_uri: https://us1.lacunaexpanse.com

I haven't touched it since I created it so not all of the meta type selection, and formatting options work on newer ship types.
That is also assuming that the API didn't change in the meantime.

b2gills avatar Sep 19 '13 22:09 b2gills