82 Posted Topics
Re: Have you tried using the telnet client for windows or whatever it is for linux? I suggest you try using that before you start that with python, it'll help you immensely. | |
Re: @ Sahiti: Please learn netiquette and some english, not "eubonics", or "txtspeak" on online forums. While we will help you, we would like if you spoke as you would in a normal conversation. Also, if you need help with the 'C' syntax/language, please ask in the appropriate forum. Thank you … | |
Re: What have you tried so far? | |
Re: Um, I realize that I'm not that great with web programming, but don't you first need to know what the variables of the site are for username and password? Then, you just set those variables in python, and pass those to the site's script that logs you in, such as: … | |
Okay, Im using Python 2.6, and the latest version of pygame. In my game, I have circles moving away from you, you have to catch them, and if you catch them, they disappear. The amount of circles can vary, and that is the issue I am having. As of now, … | |
Re: Okay, so here is how i hear it in my head. Files 1-5: hd1 hd2 hd3 hd4 hd5 And you want to be able to save everything from file example.doc And the amount of files can vary. Here's a simple script that askes how many files for it: [code] # … | |
Re: Uh. Wow spam on that first comment. Plus bad grammar. >> I think that taxing internet services are stupid. It'll raise the prices of all the internet products, and that's not needed right now. It'll just make things worse | |
This code should be able to get you started to design 2-D scrolling games, like Mario. I spent a few hours trying to figure this out, and firgured I'd put up my efforts. I think there might be a better way to do it, but this should help you get … | |
Re: Yeah sure, here's what you do: 1) Learn propper grammar; 2) Understand that getting into game design is a risky business; 3) Ask specific questions e_e | |
Okay, all I want to do for now, is create a rather simple python interpreter. I have already created a simple command prompt for windows, utilizing the os module, the script's code is here: [CODE]import os os.system("title Command Prompt") while True: osc = raw_input(os.getcwd()+">> ") if osc == "exit" or … | |
Okay, I'm creating a game where you are a red circle on a black background, and you can move it around the screen, and you have to pick up the other dots. It's more complex than that, but I seem to be having an issue. Some dots will go away … | |
Re: Did you install py2exe correctly? Also, you might want to change "console" to "window". That will make it so no console window opens up, just the game. Also, I think I remember reading somewhere that pygame isn't compatible with py2exe, might want to google that. EDIT: Found this: [url]http://www.moviepartners.com/blog/2009/03/20/making-py2exe-play-nice-with-pygame/[/url] | |
Okay, I have installed Damn Small Linux (I believe v4.something), with syslinux. I am trying to boot it on a Dell Mini laptop. I'm not sure if it runs on any other computer. This is the issue I am having. It always boots to the DSL screen, and waits for … | |
Okay, I am running Windows XP, on a Dell Mini Laptop. Thing sucks for hardware, but that's beside the point. Okay, for the past week, I've been having issues with the laptop's memory. If I have a few windows open of any program, then close out, it seems to not … | |
Re: This is understandable. My girlfriend loves to have sexual RP's with a lot of people online. It doesn't bother me at all. I'm not good at it for her, and it's not like I should control what she does online where it doesn't matter. :/ It's stupid to take it … | |
Re: The only way I can think of, is to save a file, perhaps named win.cfg. This file will contain how many points a person has. I'll explain the code using comments: [code] # First, check to see if the file exists # If not, create the file, and open it … | |
Re: um, here's what you do. On your pc, make a file in your documents that is named something like: runpython.pythonscript It doesn't matter what it is, just so long as no one else will have it. Then, make a script that checks for that file in your documents, and if … | |
Re: Or, say a list of equipment, with each peice having it's own list of AC, slot to equip in, etc. :D Just my $0.02 for games | |
Re: Here's what I think: If it refrences outside objects at all, than it will be different if you have it on a different server. Check and make sure that all the folders and files are completely the same. | |
Re: Well... here's what I would do: 1) Ask the user how many rows and columns ex: 2x2 2) Ask the user to input each number seperately ex: 2, 3, -1, -2 3) Ask the user which letter to save the matrix to ex: A 4) Save the matrix as: A … | |
Re: Well, if you want it to be: '(1.0+nfpermult+1.0)' Then it appears that 'nf' will be at both the beginning and end, so I'll assume that the original is: 'nf+nfpermult+nf' so, you do this: [CODE] a = 'nf+nfpermult+nf' a = [2:-2] b = '1.0'+a+'1.0' [/CODE] Seems the easiest way to do … | |
Okay, I'm creating a Battleship game. It's going to be using the console for now, still don't know GUI. Anyways, this is my issue. I have created two boards as lists, the first for the user, the second for the computer. I have the computer generate random numbers and a … | |
Okay, so I have a tuple for a game, and this is it: [icode]['Hondros', {'Equiped': [['none', [], 0], ['Rags', [0, 1, 0, 0], 1, 1], ['Mocassins', [0, 0, 1, 0], 1, 1], ['Gauntlets', [0, 0, 0, 1], 6, 5]], 'Equipment': [0, 1, 1, 1], 'Stats': {'AC': 14, 'Strength': 15, 'Constitution': … | |
Okay, I am in the middle of creating a rather large console RPG. It'll include ability to equip armor, weapons, interacting with NPC's, battles, saving/loading characters, etc. I don't want to save all of my classes and functions in the same file, for easier readability. I have a few questions: … | |
Re: Sorry, I didn't see how old this was... my bad :D | |
Okay, so what I want to do, is to take the following code, and make it so that way it keeps continuning for all of the word. [CODE]keycode = raw_input() matrix = [0, 0, 0, 0] for x in range(0, len(keycode)): y = ord(keycode[x]) if x > 3 and x … | |
Re: [url]http://www.python.org/doc/2.5.2/lib/module-random.html[/url] That is the documentation for the random module. I suggest you take a look at it. Granted, it's not very discriptive of the function you're using, but I don't know what it does either. I think that it generates a float between the two numbers you put in or … | |
Re: This is what I would do. Create a loop for generating the numbers, and inside that loop, if the number is 1-10, then a = a + 1, 2-20, then b = b+ 1, etc., until you reach the end. Such as this [Note it's untested, this is just at … | |
Re: When you call it, are you just typing what it's called, or are you typing name(), and adding in any arguements? Note that even if your function or class does not require any arguements, when it's defined, you still need to add () after it, and when called, it should … | |
Okay, this is what I am trying to do. I am attempting to create my own encrypter. I have the base encryption running, used just to encrypt a string you put in. I am going to add functionality to open a text file's contents and encrypt them, outputing them into … | |
Okay, here's my issue. I want to take a message a user enters, and then take it and convert it to a number, the standard a-z = 1-26, with space equaling 0. I haven't put in any punctuation yet. Anyways, I think I needed a loop, and I made this … | |
Hi there My Algebra 2 class just started matrices, and I don't want to go out and pay $100 for a graphing calculator, just for the matrices, when I can code one myself. So... this is my code, and I can do it without classes, but I decided to make … |
The End.