Skip to content
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

Open
d-vyd opened this issue Apr 11, 2018 · 4 comments
Open

Running from Windows command prompt? #1

d-vyd opened this issue Apr 11, 2018 · 4 comments

Comments

@d-vyd
Copy link

d-vyd commented Apr 11, 2018

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
Copy link
Owner

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

@d-vyd
Copy link
Author

d-vyd commented Apr 13, 2018

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
Copy link
Owner

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
Copy link
Author

d-vyd commented Apr 15, 2018 via email

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

No branches or pull requests

2 participants