Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 03 May 2010
Offline Last Active Oct 27 2013 09:31 PM

Topics I've Started

Cross compiling: General Questions

09 July 2013 - 10:34 PM

So I'm trying to cross compile a large project on Ubuntu x86 for ARM unix and windows x86. 




For the ARM cross compile I have to compile all of the libraries it uses seperatly before using a toolchain to compile the whole project right? If not whats the proper procedure?


For the windows compile do I need to recompile all the libraries? Or will it be fine because its using the same cpu architecture?


What will a change in os mean for the work I have to do?


What will a change in cpu architecture mean?


What will a change in both mean?


Thank you for your help.

Anyone want a want a file encrypter I made?

13 January 2012 - 07:58 PM

A friend asked me for a file encrypter a while ago, so I wrote one in console. He just told me that it has been really useful for him and I should consider giving it to other people. It just asked you to drag and drop the file on the screen, and it encrypts it with a key you can use to decrypt it from the same program.

Anyway, it is rar'd with this post if you want it.

Attached File  Encrypt.rar   109.53KB   47 downloads

Sending and receiving structs (I read FAQ)

04 May 2011 - 05:55 AM

void send(){
 	PlayerPosPacket packet;
 	packet.x = x;
 	packet.y = y;
 	packet.player = id;
 	//char szBuffer[1024];
 	//SendData((char const *)&packet);
 	send(mySocket,(char const*)&packet,sizeof(packet),0);
 	//send(mySocket, buffer, strlen( buffer ), 0 );
 	ZeroMemory(&packet, sizeof(packet));

void recv(){
 	PlayerPosPacket recvPacket;
 	int r = recv( mySocket, (char *)&recvPacket, sizeof(recvPacket ), 0);
 	textprintf_ex(screen,font,0,0, makecol(0,255,0), -1, "x %d", recvPacket.x);
 	if(r > 0){
 	x2 = recvPacket.x;
 	y2 = recvPacket.y;
 	textprintf_ex(screen,font,0,0, makecol(0,255,0), -1, "x %d", recvPacket.x);
 	//ZeroMemory(&recvPacket, sizeof(recvPacket));

The above code attempts to send the struct to another multi-client server I wrote. The server takes the data from one person and sends it to every other person except the one who send it in the first place. The problem is that I never receive the data I need to receive. I always receive either 0, or some other random number like 675390. Is there something wrong with my char* to struct. Please help me find the problem and fix it. It may be that I am missing some fundamental c++ skill that I somehow overlooked. (Although it is unlikely)

What would be nice is an example of a client and a server sending a struct and then viewing the information.

forgot to mention, this is nonblocking.

Winsock2 console program failure

02 May 2011 - 07:39 AM

My problem is that the console window jumps to system("pause") and skips any other commands or couts. If 2 system("pause") are present then the window closes after a key is pressed for the first system pause and then reopens for the seconds pause. The program continues to have a presence in the background, however, it is not visible unless there is a system("pause"). cin.get() and cin >> do not have the same effect that system("pause") has, and the window continues to remain invisible when they are called. I have narrowed it down to only happening if the program is compiled with #include <WinSock2.h>. The unique part is that even if I recompile without that header, the problem still stays for the entire project. I can only replicate the problem by creating new console projects. Once the project has been compiled with winsock2, the problem remains no matter what is written in the program.

I'm still experimenting so any new information will be posted.

What's harder? 2d art or 3d art?

07 November 2010 - 08:20 PM

First I want to say that I'm not an artist. My opinion on this is based on just what I can tell by seeing other artists work.

I think that 2d art (textures, sprites, 2d tiles, wallpaper, concept art, etc) is equal, if not harder, than 3d art(models, game objects, 3d tiles, etc).

I have been arguing with a friend about this today and here are a few quotes from him:

"It takes so much more time to paint a 3d model as it takes time to paint a canvas"

"3D takes a lot more thinking, we have to cover 3 sides of the model, while 2d has to cover 1"

"Photoshop/illistrater takes Half the time to learn as 3ds max or maya"

What do all of you think? Why?