SgtMe 46 Veteran Poster Featured Poster

I would recommend he starts with something similar to Game Maker to understand the concepts of making a game (ie. mathmatical and logical side), before moving onto a simple language such as Scratch or Python.

SgtMe 46 Veteran Poster Featured Poster

I have a half-mini PCI-E WiFi card (RTL8192E to be exact), which has 2 small aerial pins plugged into it. Can I use this without any aerials in a new PC build so I don't have to buy a new WiFi card? If it will work, would the signal be strong enough to reach to a router which is downstairs, pretty much directly below me?

Thanks,
--Mark

SgtMe 46 Veteran Poster Featured Poster

Thanks very much - neither of us thought of that!

SgtMe 46 Veteran Poster Featured Poster

Hi there,

My friend and I are making a game, which is based on a tile engine we are making. The map is loaded into an array of integers to represent each different tile. However, in the map class, we need the variable data to hold the integer array so we can access it like this: MAP level1; x = level1.data[0][0];. The problem is that we can't make the int array until we know the size (no vector replies please). The size is stored in level1.size during the function MAP::Load(). Can we do one of the following:

  1. Initialize data in the MAP::Load() function, BUT have it public, so it can be accessed from outside using level1.data[0][0] for example.
  2. Initialize data in the public section of the MAP class, then make the function MAP::Load() return the 2D int array to it.
  3. Do something else without vectors to the same effect.
SgtMe 46 Veteran Poster Featured Poster
  1. Use the SRCDS python library to make a console or GUI based RCON tool for Source and Half-Life game servers.

  2. Similarly, take an example code snippet (example: HTTP server) and write a GUI frontend for it. Some things to include for the given example: data tickboxes for IP:port which disable when the server is running and perhaps data logging (log start time, end time, any errors in a text file). Final addition: add command line tools to make it fully automated.

Remember though, don't take credit for code that isn't yours if you use it!

SgtMe 46 Veteran Poster Featured Poster

I'm thinking of adding a mini pcie SSD to my netbook seeing as they seem reasonably cheap.
I have a spare mini pcie slot but I'm a completely new to this so what I want to ask is this:

  • Can I just get this card and fit it? How does it fit? Does it just screw down or is there some kind of bracket i need to get? There just appears to be the connector contacts there inside.

I've done a YouTube search and couldn't find any situation that looked similar. My netbook is a Samsung N220.
If it helps here is a disection video of this netbook.

Thanks
--Mark

SgtMe 46 Veteran Poster Featured Poster

Thanks for the replies...unfortunately I broke my Ubuntu earlier and in trying to fix it I managed to mash up everything so now I can't boot and it goes straight through to grub. Hopefully I'll fix it soon...If not I'll format the drive, reinstall windows and then try Ubuntu again (without breaking it!)

SgtMe 46 Veteran Poster Featured Poster

Hi all,

I'm a total newbie to Ubuntu (12.04) - I've literally been using it a few hours. I have a samsung n220 netbook with an RTL8192e card, but its not recognised. I've been slaving away trying to get this thing working (connected to router via ethernet right now). I found out that NDISwrapper would be the easiest way to go about getting the Wifi driver to work. Can somebody post up all the steps i need to go through in noob speak? I need to install NDISwrapper, download the drivers and get it all together...somehow.

Many thanks,
Mark

SgtMe 46 Veteran Poster Featured Poster

One year later? No dude I'm learning GL with C++ now XD
Thanks for the answer though - shed light on how stupid I was back then.

SgtMe 46 Veteran Poster Featured Poster

Hi all,

I have a simple OpenGL program (learnt from NeHe of course) and I've tried to implement GLSL shaders into my program. Currently, its meant to draw a cube with a shader and quit on escape. However, at the line GLenum program = glCreateProgramObjectARB(); it stops responding and closes. Would this be something to do with mismatching OpenGL versions? I'm using GLEW and GLEXT libraries in this for shader support.

Thanks,
--Mark

SgtMe 46 Veteran Poster Featured Poster

Building for iOS, so not sure if it's compatible with the final build program.

SgtMe 46 Veteran Poster Featured Poster

OK I have replaced line 84 with

Score2 = char(Score);

but I get the error: "cannot convert from char to char [20]"

And I can't use sprintf anyway because that needs <cstdio>, which I can't use. Just realised I put that in the original code when I was trying something else earlier, sorry about that.

SgtMe 46 Veteran Poster Featured Poster

Does sprintf use any headers?

SgtMe 46 Veteran Poster Featured Poster

Hi all.
I'm using DragonFireSDK to make an iPhone app, which means that I can't use any external libraries other than the SDK one. I am trying to get an integer variable for score to a function which will display text on the screen. However, that function takes a char* variable. Here is my code (I've marked the lines that I think matter to the error):

//===============================================
// Example.cpp
//===============================================

#include "DragonFireSDK.h"
#include <math.h>
#include <cstdio>

//===============================================
int BackgroundImage;
int BackgroundView;
int CircleImage;
int CircleView;
int ShieldImage;
int ShieldView;
int Blob1Image;
int Blob2Image;
int Blob3Image;
int BlobViews [10];
int LeftArrowImage;
int LeftArrowView;
int RightArrowImage;
int RightArrowView;

int TurnVelocity;
int Angle;
int vX;
int vY;

int Font;
int ScoreText;
int Score;       //<<<<THIS LINE
char Score2;     //<<<<THIS LINE


//===============================================

int TouchAngle(int id, int event, int x, int y)
{
	if (id==1&&event==1)
	{
		TurnVelocity=-2;
		Score-=1;
	}
	if (id==2&&event==1)
	{
		TurnVelocity=-2;
		Score-=1;
	}
	if (event==3){TurnVelocity=0;}
	return 0;
}

int Translate(int x, int y)
{
	return 0;
}

void AppMain()
{
	LandscapeMode();
	Font = FontAdd("Arial12Bold");
	BackgroundImage = ImageAdd("background.png");
	BackgroundView = ViewAdd(BackgroundImage, 0, 0);
	CircleImage = ImageAdd("circle.png");
	CircleView = ViewAdd(CircleImage, 237, 157);
	ShieldImage = ImageAdd("shield.png");
	ShieldView = ViewAdd(ShieldImage, 200, 150);
	LeftArrowImage = ImageAdd("arrow_left.png");
	LeftArrowView = ViewAdd(LeftArrowImage, 20, 140);
	TouchAdd(0, 60, 50, 320, TouchAngle, 1);
	RightArrowImage = ImageAdd("arrow_right.png");
	RightArrowView = ViewAdd(RightArrowImage, 435, 140);
	TouchAdd(430, 60, 50, 320, TouchAngle, 2);
	ScoreText = TextAdd(8, 8, "Score: 0", Font);

	Score = 0;    //<<<THIS LINE
	Angle = 270;
}

//===============================================
void OnTimer()
{
	Score2 = Score;  //<<<THIS LINE
	TextSetText(ScoreText, …
SgtMe 46 Veteran Poster Featured Poster

Thanks for the reply - I used the sprintf method.
Cheers :)
(solved + rep)

SgtMe 46 Veteran Poster Featured Poster

Bit of a noob question this. I am using a library which has this function: int TextAdd(int x, int y, char *text, int font); I need to use this function to display a score. I have the variable int score and I would like to put it into that function in the style "Score: <variable>" at char *text , but I have no idea how to do this. Please can somebody show me how to convert int to char * and add letters to it?

Thanks :)
Mark

SgtMe 46 Veteran Poster Featured Poster

If your just starting out, use Unity. Its suprisingly powerful.

SgtMe 46 Veteran Poster Featured Poster

Within My Heart - Dead By April
Awesomes :D

SgtMe 46 Veteran Poster Featured Poster

You should put "self" in the arguments for all the functions in the class.

...
def recibir_ataque(self, vida):
...
def excepcionVida(self, vida):
...
def moverPosicion(self, posicion,velocidad):
...
SgtMe 46 Veteran Poster Featured Poster

If you have access to a windows machine you could get DragonFireSDK and code in C++ on windows...to make iPhone apps :D
It's REALLY easy to use and REALLY cheap to use.

SgtMe 46 Veteran Poster Featured Poster

"Doing cool sh*t with junk is awesome."

SgtMe 46 Veteran Poster Featured Poster

OP - In future, please do not post huge amounts of code like that, as many people won't read it. Lucky for you, we have some fantastic people who will read it. But for future reference, this is an IT forum, not a library :P

SgtMe 46 Veteran Poster Featured Poster

I guess this might be a little tricky for a beginner, but you could make a 2D motion tracking program. For example you could start with a picture of a black background with a few pink pixels on it. Then use a library such as pygame (see "Surface.get_at" http://www.pygame.org/docs/ref/surface.html) to get the colour of each pixel in the image. This way you can find the pink dots (tracking points). You could advance this to a series of pictures that you could then use to apply to motion to another image.
So take your tracking data from the pink dots and apply the data to draw functions in PyGame to make an animated stickman, for example.

SgtMe 46 Veteran Poster Featured Poster

dragon

SgtMe 46 Veteran Poster Featured Poster

We can help you if you make a start on the code to show your commited to your project :)
I would recommend that you look into using a program called PyGame. Start of making some basic programs such as how to open a window with PyGame and then how to draw a rectangle. Then you can use PyGame to detect the mouse position and pass it to the functions. PyGame has some excellent documentation pages:
http://pygame.org/docs/

SgtMe 46 Veteran Poster Featured Poster

"Always" - Dope
My current favourite song :L

SgtMe 46 Veteran Poster Featured Poster

Can you give us any more detail that might help?
Are you getting any compiler warnings/errors?
What output are you getting?
What output should you be getting?

SgtMe 46 Veteran Poster Featured Poster

I had a look at TkSnack but it didn't exactly offer what I wanted. That kind of thing is good, but I would like to make a program similar (in features) to iRig. If you haven't heard of iRig, it allows you to plug your guitar into your iPod touch and use the iPod as an amplifier with sound effects (distortion, reverb etc.)
I would also like to know about the algorithms behind the effects so that I could completely create the program myself entirely. I guess I'll have to use pySnack if there isn't anything else :)
Don't worry if you haven't got anything, I'll have plenty of time for using google in the holidays :L

SgtMe 46 Veteran Poster Featured Poster

I was wondering if it's possible for me to create a Digital Sound Processing (DSP) program using Python. Basically, I don't know anything about how I would do this and I would like somebody to point me in the right direction. I don't want somebody to write code, but I would like someone to point me in the right direction so I have a starting point. If somebody knows a good site on DSP and DSP algorithms (ie. how to edit the sound to get certain effects). If you find something on mixing or how to make an audio editing program using Python that would be great. I've had a look myself but can't find much, so I'm hoping somebody already knows somewhere to go for this :)
I'm also happy to delve into C++ if that would be better :)
Thanks :)

SgtMe 46 Veteran Poster Featured Poster

Hi all :)

I figured out the other problem but now I need more help :'(
I need to rename a disc and it needs a title which is 16 characters, long, but I am not allowed that many. And for long complicated reasons, it has to have this name. However, I have a disc of a proper retail game which has a name with the same length as what I want to input. Furthermore, even if I try to label the disc "ASDF", it says that I need to give admin rights for that action, so I click yes. Then it tells me that I don't have permission :| I am the only user, and (to the best of my knowledge), I have full admin rights.
HELP?! :|

Many thankies :)

SgtMe 46 Veteran Poster Featured Poster

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

SgtMe 46 Veteran Poster Featured Poster

thaumaturgy -> miracle

SgtMe 46 Veteran Poster Featured Poster

846

SgtMe 46 Veteran Poster Featured Poster

automaton -> necronomicon

SgtMe 46 Veteran Poster Featured Poster

dirty -> disgusting

SgtMe 46 Veteran Poster Featured Poster

800!

SgtMe 46 Veteran Poster Featured Poster

cheers :)
it's good to get stuck into the old battles ;)
796

SgtMe 46 Veteran Poster Featured Poster

lol 796

SgtMe 46 Veteran Poster Featured Poster

The album "Halestorm" by Halestorm.
Got the CD for Christmas :D

SgtMe 46 Veteran Poster Featured Poster

no :L
794
Sorry I was on hols for a few days :)

SgtMe 46 Veteran Poster Featured Poster

deadly venom

SgtMe 46 Veteran Poster Featured Poster

ruddy -> muddy

SgtMe 46 Veteran Poster Featured Poster
SgtMe 46 Veteran Poster Featured Poster

tight for cash

SgtMe 46 Veteran Poster Featured Poster

702

SgtMe 46 Veteran Poster Featured Poster

afield -> afar

SgtMe 46 Veteran Poster Featured Poster

You looked everywhere? I looked for 5 seconds, no joke :D
http://www.youtube.com/watch?v=B44tSBJCcfU

I'll take my one-up and thread solved now I think :D

@Offtopic: Is skorm still around? He hasn't signed in for 9 days.

SgtMe 46 Veteran Poster Featured Poster

632

SgtMe 46 Veteran Poster Featured Poster

school -> POW camp.

SgtMe 46 Veteran Poster Featured Poster

night time, day time!
(anyone remember the tv show "walk on the wild side")?