gruevyhat / travgen

A (partial) character generation script for Mongoose Traveller. Generate a character with a random name, gender, UPP, ethnicity, planet of origin, and career path.
GNU General Public License v2.0
8 stars 3 forks source link

Running from Windows command prompt? #1

Open d-vyd opened 6 years ago

d-vyd commented 6 years ago

Hi gruevyhat,

This is a great little collection of scripts. Thank you! I'm able to run character.py but am not able to get travgen2 to run. I think it is because it is designed for a unix system and I am running windows. -d. vyd

EDIT: I can get the --option functionality by just assigning variable values in the call the character.py, so it is not vital to have the command line prompt running.

gruevyhat commented 6 years ago

Hi d. vyd. Thanks for the feedback! Could you post the error you're getting?

d-vyd commented 6 years ago

Gruevhat,

Can you explain how the skill acquirement code works? On which line is a random skill chosen from a particular list of options and on which line is it incremented if the character already has that skill?

As for starting it Windows, I can't seem to get it to be recognized as a command that can be run. Usually scripts in Windows are .bat files that don't start with #! I don't think there is a chmod in Windows.

C:\Users\dle\Documents\Programming\Python\RPG\travgen-master>.\travgen '.\travgen' is not recognized as an internal or external command, operable program or batch file.

C:\Users\dle\Documents\Programming\Python\RPG\travgen-master>travgen 'travgen' is not recognized as an internal or external command, operable program or batch file.

-david

gruevyhat commented 6 years ago

Skills are a bit convoluted. The script tries to follow the normal career path development of a character, and randomly samples skills in difference places. Essentially, anywhere in the code you see choice, a random selection from a career-stage-appropriate list is being made. Have a look at the skill_roll method starting on line 296 of career_path.py.

As for the Windows problem, travgen is actually a package. Did you attempt to install it first? Just cd to the root dir of the package and type:

python setup.py install

After that, you should be able to call the runner script travgen from the command prompt on Windows as well as you can on Linux.

(Disclaimer here: I haven't tried to install a package on a Windows system in a very long time.)

d-vyd commented 6 years ago

Thank you. I'll look at the skill and career path sections and try to install the package. Do you still play Traveller? I'm organizing a Cepheus Engine (open source Traveller) on Roll20 if you are interested. The date and time are flexible:

https://app.roll20.net/lfg/listing/110930/lost-cause-forensic-investigations

-d. vyd


From: gvh notifications@github.com Sent: Sunday, April 15, 2018 2:56 AM To: gruevyhat/travgen Cc: d-vyd; Author Subject: Re: [gruevyhat/travgen] Running from Windows command prompt? (#1)

Skills are a bit convoluted. The script tries to follow the normal career path development of a character, and randomly samples skills in difference places. Essentially, anywhere in the code you see choice, a random selection from a career-stage-appropriate list is being made. Have a look at the skill_roll method starting on line 296 of career_path.py.

As for the Windows problem, travgen is actually a package. Did you attempt to install it first? Just cd to the root dir of the package and type:

python setup.py install

After that, you should be able to call the runner script travgen from the command prompt on Windows as well as you can on Linux.

(Disclaimer here: I haven't tried to install a package on a Windows system in a very long time.)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/gruevyhat/travgen/issues/1#issuecomment-381376373, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AZLLFy90A-sub-lGLy2HwLE-FaV6V2V9ks5torbegaJpZM4TPnWx.