22 Solved Topics

Remove Filter
Member Avatar for SgtMe

Hi all. I have a virtual CD drive on my computer and I need to change that to the default disc-drive. Eg. The proper CD drive is letter D and the virtual CD-Drive is letter G. Can I just change the drive letters around? Thanks

Member Avatar for jjfbrhghj8uyh
0
107
Member Avatar for SgtMe

Bit of a noob question this. I am using a library which has this function: [ICODE]int TextAdd(int x, int y, char *text, int font);[/ICODE] I need to use this function to display a score. I have the variable [ICODE]int score[/ICODE] and I would like to put it into that function …

Member Avatar for SgtMe
0
10K
Member Avatar for SgtMe

Hi there. On my home computer, I have a folder with all my IT homework in it. At school, I have another IT folder for all of my lesson work. Is it possible to sync the documents between these two folder into one folder with everything? So if I save …

Member Avatar for SgtMe
0
116
Member Avatar for SgtMe

Hi there. I have made a program in Python with PyGame and PyOpenGL to test out vertex and pixel (fragment) shaders. I would like to be able to right click on the shader file (just a text file with a custom extension) and choose Open With... and then open with …

Member Avatar for SgtMe
0
235
Member Avatar for SgtMe

I have made a python program which will create an OpenGL and render a teapot (GLUT standard teapot) with a shader that I specify. The shader is specified as follows: [LIST] [*]I have a file called "index.ini" which contains the file paths to a vertex shader and pixel shader file …

Member Avatar for SgtMe
0
484
Member Avatar for SgtMe
Member Avatar for SgtMe
1
48
Member Avatar for SgtMe

Have another problem with an OBJ model format converter I'm making. As a test, I want to read in data from an OBJ file, and write it out in a different format, and then the other way around. The problem I currently have is that I want it to be …

Member Avatar for SgtMe
0
201
Member Avatar for SgtMe

Hi just a simple n00b question. I need to split a string (from a .obj 3D model format) into a list of three doubles (the vertices). example string: v 0.200006 -0.093641 0.584690 I want to make it into an array of (for example): {0.200006, -0.093641, 0.584690} I can get rid …

Member Avatar for SgtMe
0
171
Member Avatar for SgtMe

On msn, some of my contacts do not appear online, even when I know they are, and they cant see me either. Others cant recieve my messages, but they appear to send ok. And no, we havent blocked eachother, were not choosing to appear offline or anything else, so dont …

0
83
Member Avatar for SgtMe

Hi all. Before I say any more, I am a compete noob at JavaScript. I have been attempting to learn some though. I want to make some Windows 7/Vista sidebar gadgets, so, as a practise, I am making a very simple calender. It uses a CSS to draw up a …

Member Avatar for hielo
0
4K
Member Avatar for SgtMe

Hi all. When I try to run games on my computer, the window is in fullscreen mode, but the view doesn't cover the whole screen; as to say there are black bars on the left and right. I changed the ingame settings, but I can't get it back to where …

Member Avatar for Kingcoder210
0
106
Member Avatar for SgtMe

I want to make an array (using the built-in array module), to create an array made up of classes. All the objects in the array will be the same class, but I want to be able to append new classes on the end and read the values. Thanks in advance.

Member Avatar for SgtMe
0
176
Member Avatar for SgtMe

As I write this to you, I am feeling relieved, as I have just managed to come out on top of a heavy virus situation. I downloaded a file, and, unkown to McAfee (I now have, Avast, McAfee and SUPERantispyware, it contained a virus. This installed a few more viruses …

Member Avatar for PhilliePhan
0
140
Member Avatar for SgtMe

Say I have a file structure that looks like this [CODE]root folder/ main.py -folder a -script.py -folder b -img.png[/CODE] How could I load the img.png file from script.py? Should I just have a function in main.py that gets the path of the root folder, and then tac the 'folder a' …

Member Avatar for SgtMe
0
100
Member Avatar for SgtMe

Hi. I'm just trying to make a simple analogue clock as I learn to use TKinter with python. I need to know the maths behind calculating the x, y values for drawing the end of the hands. I don't need to post the whole program, all you need to see …

Member Avatar for SgtMe
0
970
Member Avatar for SgtMe

Let's say I have this: [CODE] class main: def add(self): print '1 + 2 = 3' [/CODE] I then want to be able to call the add function again from within itself. Like this (BUT THIS DOESNT WORK!!!) [CODE] class main: def add(self): print '1 + 2 = 3' self.add() …

Member Avatar for SgtMe
0
82
Member Avatar for SgtMe

Hi again. I want to have a file for one of my python programs, that looks something like this: [CODE]<WINDOW> #Window size 640 480 <WINDOW TITLE> App Platform Test <ICON> icon.png[/CODE] I have a function that reads each line of, and uses the data to make a window. What happens …

Member Avatar for snippsat
0
16K
Member Avatar for SgtMe

Hi guys! I am in the process of making a game...similar to this one: [url]http://www.miniclip.com/games/nfl-lateral-collateral/en/[/url] I am using the following code to detect key presses: [CODE] pygame.event.pump() key = pygame.key.get_pressed() if key[pygame.K_LEFT]: ... [/CODE] How can I detect if a key is released? I have seen this done with using …

Member Avatar for tbone2sk
0
14K
Member Avatar for SgtMe

Hi all. :) I'm having trouble with pygame, images and transparency. Lets say I have an image...a circle to keep it simple (for example only). What I want is to be able to draw the image, but with only the circle showing (ie. not a white box around it). Oh …

Member Avatar for SgtMe
0
336
Member Avatar for SgtMe

Hi everyone! I would like to make an Air Hockey game in pygame. I was wondering if it was possible to have 'proper' bouncing (ie. the puck goes in a direction relative to the angle the paddle hit it in). I can easily write the rest of the code. Thank …

Member Avatar for SgtMe
0
1K
Member Avatar for SgtMe

Hi all. Every now and again I get these Java update messages, which (if I choose to) in stall the latest JRE. In the C:\Program Files\Java folder, I have: One folder named: 'jre6' Several named: 'jre1.60_' and then a number (01, 02, etc.) I presume that the folders 'jre1.60_...' are …

Member Avatar for Laser
0
120
Member Avatar for SgtMe

Now I must explain that I am a noob. I would like to write my own header file, and use the functions from it in a program. When I get Dev-C++ to compile, it says that it is an invalid function, and I need to put that before the main. …

Member Avatar for SgtMe
0
255

The End.