-
Notifications
You must be signed in to change notification settings - Fork 3
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
Running from Windows command prompt? #1
Comments
Hi d. vyd. Thanks for the feedback! Could you post the error you're getting? |
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 C:\Users\dle\Documents\Programming\Python\RPG\travgen-master>travgen -david |
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 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:
After that, you should be able to call the runner script (Disclaimer here: I haven't tried to install a package on a Windows system in a very long time.) |
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 GitHub<#1 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AZLLFy90A-sub-lGLy2HwLE-FaV6V2V9ks5torbegaJpZM4TPnWx>.
|
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.
The text was updated successfully, but these errors were encountered: