- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 10
- Posts with Downvotes
- 5
- Downvoting Members
- 6
29 Posted Topics
Re: So if I wanted to make my program run on something like the cmd window, how would I do that | |
Re: um this does not teach you | |
I'm writing a program that is going to be used for encryption. It can only encrypt 64 letters at a time. How can I make a check for that using len()? | |
I really would like to write a Texting app for computers. Is there a way to do this in python? | |
I am trying to make a save feature in a game so that a player could save, then quit the game, then open the window again to select proflie and play from when they left off. Thanks!! | |
I saw this code on stack overflow def writeProfile(profileName, profileData): """ pickle user profile data """ os.chdir(PROFILE_DIR) fileName = profileName + ".dat" f = open(fileName, "wb") pickle.dump(profileData, f) f.close() os.chdir("..") It is for saving progress under the pickle module. I don't see a way to save variables. How would I … | |
I am trying to make a system for my game in which the player's enemy has a decreasing amount of health. My shell output is here: Cannon Fired! Enemy Health= 8 Cannon 1 ammo = 10 The enemy fired back! Your health is now 12 Fire your choice of cannon! … | |
In my game, I am trying to make it so when the enemy's health equals 0, the player advances. I used a while statement and a true or false variable. When the enemy health is less than or equal to 0, the program exits the while statement. It does not … | |
In a combat system, how would I have a certain raw_input repeat until the enemy is dead? | |
Is there a way to keep a global throughout multiple def statements? | |
I compiled a program in python, but the second I open it, there is a flash of the error, but then the cmd window closes. | |
I am using PyInstaller now for building, but I still have a problem! My error is as follows: Traceback (most recent call last): File C:/Users/Jack/Desktop/pyinstaller-pyinstaller-61571d6/PyInstaller/Build.py from PyInstaller.loader import pyi_archive, pyi_carchive ImportError: cannot import name pyi_archive Please help! I am very frustrated with no way to compile my scripts! | |
I compiled a script with py2exe. I have the .exe, but when I run it, the window just closes itself. In the cmd window from which I compiled the script from, It says some dlls are needed. What does this this have to do with it, and more importantly, is … | |
I have run py2exe sucessfully up to this point using cmd (python setup.py py2exe). My Error is ImportError: DLL load failed: %1 is not a valid Win32 application I am leaving for spain tomorrow and would like an answer fast! | |
Can one turn a python file into a standalone executable for windows via a gui program? Thanks | |
I am wondering on how to make a very simple gui with the ability for the user to click a button and perform the ability as if it were a user input. (ie raw_input). I would also like it to have the title of the program (game) on top and … | |
I am developing a text based rpg, but do not know how to go to different def statement, but it says it is not defined. Help? | |
Hi guys, I am working on a text based adventure game in Python and I am constantly getting this error: **There's an error in your program: return outside function(g.py, line 179** Here is the code http://www.mediafire.com/?4ga0weu4ifc6s1u | |
| |
Hi all: I'm building a game (text-based rpg) and i need to learn how to add a checkpoint-like system into it, but i want it to be able to fit in my script | |
what is wrong with this code #This is not free source #Don't cheat by looking @ this #If you do you ruin the game #A Towel Production # APOC #------- global ammo1 global ammo2 global ammo3 global health global tech_parts global exp global radio_parts ammo1=10 ammo2=0 ammo3=0 health=100 tech_parts=0 exp=0 … | |
Hello. I am new to python and am making a text-based game. If you want to be a code editor supply your email in the comments. You will get your share of revenue*. *Provided there is revenue | |
Re: I would gladly test the game for you and review it. | |
I developed a program I think has potential, but don't want the end user to a) have to download python and b) steal my code. How would I turn it the .py of my script into a .bat or .exe so my end user can run it? | |
I need someo #A Python text-RPG #A Jak Production #APOC global ammo global health global lives global exp global food ammo=55 health = 100 lives=10 exp = 0 food = 30 def part1(): print "50 Days After The Outbreak:You are standing outside of the Empire State Building." print "Vines, plants, … | |
| |
can someone correct this code for me? also, how do you make cmd open the .py file than execute that .py? def addition() print "This part of the test cover addition" p1 = raw_input "What is 9+9" if p1 = "18" set c()= c+1 c= 0 print "correct" else: print … |
The End.