SgtMe 46 Veteran Poster Featured Poster

OK Ill try that.

Somewhere on previous posts I see you and some other guy where talking about compatibility mode and xp mode and stuff.
When I choose compatibility mode, it wants me to choose an OS to use in compatibility. Which one should I use?

It would be good of u 2 find the registry keys but Im not sure I wanna start messing with it yet.

My PC cost £530 from a specialist site and i only got it 2/3 months ago, so i dont want to mess it up :p

SgtMe 46 Veteran Poster Featured Poster

soz guys ive bin on hols for a few dayz...

erm...thanks ITWannabee...
but can you guide me step by step? I can't find anything on tech-net. But that's probably just me...

And there I was thinking that it might just be simple...

SgtMe 46 Veteran Poster Featured Poster

Yeah...I'll get right on tha...say...how do you do both of them?

SgtMe 46 Veteran Poster Featured Poster

When eJay Dance 7 is about to load (like, when it's loaded the loading screen :P), it says it's not responding, then says it's checking for a solution. When it can't find a solution, it just does nothing. If I close the box, it closes eJay.

Where could I get a driver from? It uses DirectX 9.0c on Sound, Graphics and Drivers. I did a check and I've got all that with no issues.

I tried looking for the help thing, but eJay doesn't have one anymore. It was empire-interactive, but I read somewhere on the interweb that it went into administration and closed down. FAQ's, README and manual have nothing that helps.

Thanks anyway...

SgtMe 46 Veteran Poster Featured Poster

I have Windows 64-bit on my PC. It's quick, though mostly because my computer's hench.

Anyhoo, I just think Win7 is sexy...

SgtMe 46 Veteran Poster Featured Poster

Hi all.

I am trying >_< to use Ejay Dance 7 to make music to put in the games that I make.

I put the disc in and a menu comes up: play, install, unistall blah blah blah.

So I click play, obviously. The screen goes black, and the mouse gets larger as the display resolution changes. Then, the black window disappears. Then a box comes up (with an ejay background) telling me it's initializing it's doo dah or whatever. Anyway, at the same time, a windows box appears, saying that this program is not responding. The program is responding, it just does nothing for a few seconds, then loads. This works fine on Windows XP, but not Windows 7 (?!).

Can I stop the box coming up telling me it's not responding and trying in vain to find a solution?

Thanks for your time.
Mark

SgtMe 46 Veteran Poster Featured Poster

oh BTW just got summin to add.
I no ur linux and im win7 64-bit but hey...

i use:

import os

strng = os.system('dir') #using dir as example - a cmd function
print string #show us
os.system('pause') #give us time to reeeeeaaaaadddddd.

i no ive only done it as basic variable but u shud b able 2 play wif it.
i cant c y it shouldnt work on linux...

SgtMe 46 Veteran Poster Featured Poster

oh okay thanks i will try that later. :)

SgtMe 46 Veteran Poster Featured Poster

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 and it's png (png ftw :D).

I've tried the following

#Firstly:

image = pygame.image.load('example.png')
image.convert_alpha()

#it was suggested to me by someone, but I didn't think it would work...but it didn't.

#Secondly:

image = pygame.image.load('example.png')
image.set_colorkey((255, 255, 255)) #White, for example
#Fail -_-

#Thirdly:

#I had been using paint, but I went on Paint.net, and cut out around #the main image, and deleted the rest to get the checkbox#
#(transparent) thingy. Then I loaded this pic. It didn't work.

I think colorkey is what I need, but I'm not sure how to use it on images, cos I could only find a thing on using it with surfaces.

Can anyone show me how to get transparent image backgrounds? O_o

Thanks
Mark

SgtMe 46 Veteran Poster Featured Poster

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 and it's png (png ftw :D).

I've tried the following

#Firstly:

image = pygame.image.load('example.png')
image.convert_alpha()

#it was suggested to me by someone, but I didn't think it would work...but it didn't.

#Secondly:

image = pygame.image.load('example.png')
image.set_colorkey((255, 255, 255)) #White, for example
#Fail -_-

#Thirdly:

'''
I had been using paint, but I went on Paint.net, and cut out around the main image, and deleted the rest to get the checkbox (transparent) thingy. Then I loaded this pic. It didn't work.
'''

I think colorkey is what I need, but I'm not sure how to use it on images, cos I could only find a thing on using it with surfaces.

Can anyone show me how to get transparent image backgrounds? O_o

Thanks
Mark

SgtMe 46 Veteran Poster Featured Poster

There is a rule that we only give help to those who show effort.
One way of showing effort is by displaying what code you already have.

SgtMe 46 Veteran Poster Featured Poster

Also, you may need header guards. Check out this thread (started by me - when I was more of a noob than I am now...).

http://www.daniweb.com/forums/thread238216.html

Hope it helps...
Mark

SgtMe 46 Veteran Poster Featured Poster

well have you started? what code have you got already? what are you stuck on? we wont help you if you get the answers 'no' and 'none' to the first questions.
Sorry to be of no help, but it's a rule.

SgtMe 46 Veteran Poster Featured Poster

I don't know if this is what your looking for - i just did a quick google!

http://www.devshed.com/c/a/Python/Database-Programming-in-Python-Accessing-MySQL/

SgtMe 46 Veteran Poster Featured Poster

If you want to print it out, then it's best to print out how many people got a certain amount of marks before starting the function again. Then you have no way of retrieving the data if you write over it. Also, you need:
if finish == no:

instead of

if:
finish = no

I'm sorry if this doesn't help but I don't get what you mean by making the function 'count' and how the user enters stuff. Could you please explain better, and I could help you further.

Thanks
Mark

SgtMe 46 Veteran Poster Featured Poster

Netbeans confused me. I got the C++/Python version, but it doesn't seem to have any standard headers like Iostream and stuff... I just use it for Python now...

SgtMe 46 Veteran Poster Featured Poster

Thanks...theres one problem.
Im 13, and ive just had dinner.
Could you explain the equation in a simpler way please?

Thanks anyway :)

SgtMe 46 Veteran Poster Featured Poster

I'm stating my opinion in short form thank you.

SgtMe 46 Veteran Poster Featured Poster

Use Dev-C++ cos its best for installing new libs.

SgtMe 46 Veteran Poster Featured Poster

well that as well.
But, as i said in the 1st and 3rd post, its the angle that the puck moves in after you hit it at a certain angle.

SgtMe 46 Veteran Poster Featured Poster

google 'air hockey game'.
then play one.

The problem is, the angle that the puck moves in after you hit it at a certain angle with the paddle. It's all the angles!

SgtMe 46 Veteran Poster Featured Poster

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 you
Mark

SgtMe 46 Veteran Poster Featured Poster

Have you started?
If so, can we see your code so far?
If not, well don't wait for a reply - start programming now and you might make it. No-one here will help you. It's a rule.

The Queen of DaniWeb:
'We only give homework help to those who show effort.'

SgtMe 46 Veteran Poster Featured Poster

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 previous versions. Can I delete these? It seems so but I'd like to be sure ;)

Thanks

Mark

SgtMe 46 Veteran Poster Featured Poster

Hi all.

I'm interested in Java ME, so I downloaded Netbeans with the JDK.
Here is the story:

1.) I installed the wrong version of Java JDK
2.) I removed the JDK
3.) Accidentally removed JRE as well :(
4.) JDK data still on system
7.) Downloaded and 'installed' Netbeans 6.8 with JDK 6 u17 win x86
8.) JDK install failed due to prev. JDK data still on system >_<
9.) Installed new JRE
10.) Removed JDK with add/remove programs wizard
11.) Netbeans still thinks JDK is in path deleted in prev. step
12.) Installed new JDK in different directory
14.) Tools > Java Platform > add > added JDK
13.) On startup, netbeans says cannot find JDK, use default?
15.) Yippee! Now works. :)
16.) Same message on startup, have to specify java platform

Is there any way I can change the 'wrong' (ie. deleted in step '10') JDK path, to the correct (ie. Step '12', '14') JDK path to stop this?

Thanks very much for your time,

Mark

P.S. HAPPY NEW YEAR!!!

SgtMe 46 Veteran Poster Featured Poster

Also, I don't think many people would bother writing a program that does that - they would just learn to write it correctly in the first place. Soooooo obviosuly a homework...

SgtMe 46 Veteran Poster Featured Poster

*Shares glance with 'firstPerson'*
I think that you mean - how to compile into a program to run on any windows (for example) computer. On your IDE (Dev-C++, Visual Studio, CodeBlocks, etc., click compile. Then in the project directory (or specified exe output directory), find the .exe file. This is the program.

SgtMe 46 Veteran Poster Featured Poster

Hi all.

I'm using the following tutorials:
http://lighthouse3d.com/opengl/glut/ (for GLUT)
http://www.3dcodingtutorial.com/ (for GLM (3D models))

I'm using OpenGL with GLUT and GLM to make a 3D game. Seeing as I was a complete noob, my friend challenged me to make a game 'where you can shoot stuff'.

Anyhoo, all was well, until I started GLM. I got the code written out (which is attached), and then I got a million linker errors, on just about every GLM function.

Please help!!!

Thanks,
Mark

SgtMe 46 Veteran Poster Featured Poster

and??? What's the problem... no one here's gonna write it for you...just help you...

SgtMe 46 Veteran Poster Featured Poster

I don't think that wiki is actually that bad. People who want to do that thing go to uncyclopedia, where their malpractice can be appreciated.

SgtMe 46 Veteran Poster Featured Poster

Oh right. Erm... you could...maybe...just try.... you could install Dev-C++.
Here's a small wiki page on Code::Blocks and Allegro, and here is the latest stable version of Allegro. Sorry if your using:
Ubuntu/Linux/Mac, as it's MS DOS/Windows FRIENDLY, but I think it works on all platforms.

SgtMe 46 Veteran Poster Featured Poster

What happens? Soz I don't have CodeBlocks + I'm on my DSi.
Anyway, you could put:
using namespace std;
instead of putting:
std::cout...
all the time.
Also, do you need to declare the two void functions at the top, as they have nothing in them, and you declare them later.

SgtMe 46 Veteran Poster Featured Poster

well no... cos I don't really know network programming.
XD

Basically:

1. Deal out cards - send data of cards to all clients, so each clients' game knows who has what cards.

2. Start with the first player - their actions need to be sent to the client, so that they all have the same game going!

3. Repeat step 2 for all clients, until turns are up.

4. Check the value of all the cards. The host can send out the data of who wins to the clients, or the clients can check for themselves, though it's easier if the host does this so things don't go out of sync.

5. Restart - Reset everything and go from the top.

SgtMe 46 Veteran Poster Featured Poster

well it would need to be over a network, unless you are relying on peoples sense of not looking at their friends card so they can own them.
With networking, you need to send messages to the clients telling them what the other players have done, so it doesn't all go out.

SgtMe 46 Veteran Poster Featured Poster

may we see your code, or would that be cheating?

SgtMe 46 Veteran Poster Featured Poster

:D

SgtMe 46 Veteran Poster Featured Poster

LOL niek_e heheh

try this

SgtMe 46 Veteran Poster Featured Poster

cppgameprogramming.com ( allegro )
cplusplus.com ( general C++ )
codeguru.com ( another forum though this one is better :} )

zobadof commented: Thanks! +0
SgtMe 46 Veteran Poster Featured Poster

maybe... it depends what you want to do. You can always learn them both side by side. I just find that setting up a window like that it pointless for simple graphics, when you can do it in 1 line for allegro... :icon_eek:

Oh BTW MattyRobot ich bin 13 too! ZOMG

SgtMe 46 Veteran Poster Featured Poster

I recommend that you start with simple graphics.
Head over to this site, and start on the allegro tutorials.

http://www.cppgameprogramming.com/cgi/nav.cgi?page=allegbasics

:icon_idea:


PS.

Double click anywhere on the site to bring up a menu to go onto the next tutorial.

SgtMe 46 Veteran Poster Featured Poster

what's the problem?

SgtMe 46 Veteran Poster Featured Poster

or pay someone...not me though I'm noob.

SgtMe 46 Veteran Poster Featured Poster

No, no it's my code, written in C++ with Allegro.

SgtMe 46 Veteran Poster Featured Poster

Thanks! Works now.

Well I say works...
It just loads, puts green background - how I want - but then multicoloured lines flash round the edge of the screen - not what I want. I'll have another look at the code later...

SgtMe 46 Veteran Poster Featured Poster

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. I think it may be because I've written the header wrong.

Could someone tell me how to write the header file, and then use the functions in my main source file.

Thanks

Mark

SgtMe 46 Veteran Poster Featured Poster

is stdlib a header, or do you use cstdlib?

SgtMe 46 Veteran Poster Featured Poster

All you need is to have the data stored in variables that can then be written into a text file (saving) and then read from the text file (loading). Check out the tutorials at cplusplus.com.
Then have a function that can be called by the user, that writes out a list of all the accounts.

SgtMe 46 Veteran Poster Featured Poster

Hi.
Firstly, I am a complete noob, and cannot understand complicated answers.

OK. I'm making a noobish space game, called Galactic Armageddon.
I'm just testing the variables right now (for getting hit by lasers, missiles, etc.).

I'm compiling using Dev-C++ and the default compiler. The program is written using the Allegro game library (see cppgameprogramming.com)

When I run the executable, I get an error saying:

GA.exe has encountered a problem and needs to close.

It says this straight away, without even opening a window or anything.

Here is the code so far:

#include <cstdlib>
#include <iostream>
#include <allegro.h>

using namespace std;

int  bullethit 	=   0;
int  health     =   100;
int  shield    	=   10;
int  maxshield 	=   10;
int  armour    	=   10;
int  maxarmour 	=   10;
int  dir      	=   0;
int  weapon     =   0;
bool shieldsup 	= true;
bool armourup  	= true;
bool dead	    = false;
bool running    = true;
     
void ship(){
			
		if (dir < 0)
		  {
			dir=360;
		  }

		else if (dir > 360)
		  {
			dir=0;
		  }

		if (bullethit==1 &&  shieldsup==false && armourup==false)
		  {
			health = health - 10;
			bullethit    =     false;
		  }
		
		if (bullethit==1 &&  shieldsup==false && armourup==true)
		  {
			armour = armour - 5;
			bullethit    =     false;
		  }

		if (bullethit==1 && shieldsup==true)
		  {
			shield = shield - 4;
			bullethit = false;
		  }

		if (bullethit==2 && shieldsup==false && armourup==false)
		  {
			health =  health - 20;
			bullethit    =      false;
		  }

		if (bullethit==2 && shieldsup==false && armourup==true)
		  {
			armour = armour - …
SgtMe 46 Veteran Poster Featured Poster

Thanks Tom. It worked for me too! I'm a complete noob, and I get loads of errors that I can't understand.