Archive for March, 2008

Source Code Version 0.07

Time spent – 4 hours.

Okay, so I have the selector working now. There’s one issue with the pink color, so its not completely transparent like it should be but that’s a small fix (that I need to be on a computer with Photoshop to fix).

You can download the code under the GNU public license.

Remember that in order for it to run you also have to download the sounds that I got from flashkit.com. Thanks guys for the nice sounds.

Put the sounds into the plex folder in their own folder called sounds. You won’t have to download the sounds again if you move them over to any other version you download.

Add comment March 25, 2008

Allegro Programs Freeze, Not Responding…

Okay, so I spent another 2-3 hours trying to figure out whats going on with my program. I slowly added my code from my current version to an older version of source code that didn’t have problems with freezing. However I still couldn’t pinpoint where the problem was occuring (and it started happening again).

Instead of beating my head against the floor I decided to do some searches on the internet. I found two posts:

http://www.allegro.cc/forums/thread/589586 http://www.allegro.cc/forums/thread/590954 

Both of these people are having similar issues. Their programs hang up at random, sometimes you can play for 40 minutes, and other times you can only play for a few minutes. They all have something in common, they’re all running windows XP with allegro 4.2 just like I am. One of them didn’t have problems with freezing before they upgraded to allegro 4.2. Neither of them can figure out what’s going on and why they can play some times and the program freezes other times.

The only possible solution I’ve been able to find is that the drawing functions aren’t letting the input functions take focus. It’s almost like the input functions are non-existant. The programs get a “Not Responding” in the task manager but in the console they are still running.

Someone suggested putting a Sleep(1) before drawing to the screen (or returning a buffer). That way the draw function has to rest and can’t dominate the game’s loop. I’ve tried it and so far I haven’t had it freeze up on me since but I can’t guarantee this is a workable fix for the problem.

1 comment March 18, 2008

libmysql.dll

Okay so I might as well post this one too. You can download it, just save file as.

Add comment March 18, 2008

Previous Posts


Cool Sites

Free Code

Game Developer

Game Engines

Game Jobs

Music & Sound

Second Life

Sprites

Lost In Oblivion

March 2008
M T W T F S S
« Feb   Apr »
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Top Posts

Recent Posts

Archives

Feeds