Jan-15-2019, 02:03 AM
t_games, Take Two
t_games, Take Two
|
Jan-16-2019, 03:46 AM
(Jan-15-2019, 02:03 AM)Trinx Wrote: Python 3.6.4. I'm just running it on the shell of IDLE. I downloaded the file you said, t_games-0.36.0a4.zip, extracted it and tried running it. What version python are you working with? Sorry, I didn't see your post in the unreads. It works for me in 3.6 and 2.7. I'm using Anaconda for Python, and if I start IDLE from the folder containing the t_games folder, you can import t_games, call t_games.play() and it works. Otherwise it doesn't work, at least not if the t_games folder isn't in the pythonpath. I would not recommend using IDLE. I would navigate to the t_games folder in the command line, and try [icode]python play.py[/code].
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness. Recommended Tutorials: BBCode, functions, classes, text adventures
Jan-16-2019, 05:40 PM
(Jan-16-2019, 03:46 AM)ichabod801 Wrote: Sorry, I didn't see your post in the unreads. It works for me in 3.6 and 2.7. I'm using Anaconda for Python, and if I start IDLE from the folder containing the t_games folder, you can import t_games, call t_games.play() and it works. Otherwise it doesn't work, at least not if the t_games folder isn't in the pythonpath. I would not recommend using IDLE. I would navigate to the t_games folder in the command line, and try [icode]python play.py[/code]. Oye, the inbox on this gets confusing sometimes. I had never heard of Anaconda before. I looked it up and saw it was 614mbs, so I haven't downloaded it yet. Why don't you recommend using IDLE? I haven't done much on the cmd of python so I'm not sure how to navigate to files. I tried this but it kept giving me errors: import os os.chdir(C:\"""path to desktop""")It said : was invaild... ???
Jan-16-2019, 05:56 PM
What I am suggesting is open the system command line, navigate to the t_games folder in the system command line, and try
python play.py .Without the full error traceback, I can't diagnose the problem you are having with os.chdir. It is working for me, however: You can also use the sys module to modify the pythonpath:
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness. Recommended Tutorials: BBCode, functions, classes, text adventures
Jan-16-2019, 06:01 PM
(Jan-16-2019, 05:40 PM)Trinx Wrote: I had never heard of Anaconda before. I looked it up and saw it was 614mbs, so I haven't downloaded it yet. Why don't you recommend using IDLE? I wasn't saying you should download Anaconda, I was just clarifying my set up, as that could affect how things work. I would not recommend IDLE because it is one of the lowest quality environments for Python out there. There are plenty of free options out there that are much better. And t_games wasn't even designed for a Python environment. It was designed to be run on the system command line.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness. Recommended Tutorials: BBCode, functions, classes, text adventures
Jan-16-2019, 06:13 PM
(Jan-16-2019, 05:40 PM)Trinx Wrote: Why don't you recommend using IDLE?Under IDE -> IDLE explains a little about its low quality aspects here.
Recommended Tutorials:
Jan-16-2019, 06:15 PM
All that and it works Thanks for helping me through that, I'll try them out tonight (hopefully). I don't know when I will be able to get on again after today. I'll look into other python environments. Thanks!
|
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
New t_games Release | ichabod801 | 0 | 2,190 |
Mar-19-2019, 08:27 PM Last Post: ichabod801 |
Users browsing this thread: 1 Guest(s)