Projects

4Play

posted Jan 9, 2013, 3:57 PM by Samuel Gomes   [ updated Jan 9, 2013, 3:57 PM ]

I started programming this during 1997 using QuickBASIC 4.5 and my User Interface Library (TxMUI). Due to the limited nature of the QuickBASIC IDE I had to keep the source code slim & trim. Hence you won't find a lot of comments. But I believe that understanding this BASIC code should be a snap. Most of the code has remained virtually the same. Only the use user interface parts have changed. This source code has come a long way. First I used QuickBASIC 4.5 and TxMUI. Soon I upgraded to QuickBASIC Extended 7.0 and TxMUI. Next, I got hold of Visual Basic for DOS and ported the code for that compiler and changed all the UI code to "Ruby". Eventually, when I started using Visual Basic 6.0 for Windows, I ported this code and once again I had to changed the UI code. And now, thanks to Microsoft, I have ported the code to Visual Basic .NET! When porting for Visual Basic .NET I modularized and classified most of the code. Although most of the code was translated by the Visual Studio VB to VB.Net translator, I had to make a lot of changes. The AI is very silly and should have been much better. I should have used some kind of recursive method to find the best move. Since I don't have much time (for this code) I leave it up to you. The Think() function should be a very good starting point. Eventually I also cleaned up the UI. Building it in VB.NET from scratch eliminating all legacy UI code. This code frankly speaking is open source/freeware. You can do whatever you want with it. I do not accept responsibility for any effects, adverse or otherwise, that this code may have on you, your computer, your sanity, your dog, and anything else that you can think of. Use it at your own risk.
 

NameP3

posted Dec 1, 2010, 12:23 AM by Samuel Gomes   [ updated Dec 1, 2010, 12:42 AM ]

Another ancient project. Back in the old days when I used to collect (ahem...) MP3s, I was very unhappy with the way the tags were formatted. So I wrote a tool of my own which auto-magically formats the tags and also renames the MP3 file using the tag information. Ofcourse, the way it formats the MP3 tag and file name is as per my taste. However, this can be tweaked. The tool will format things like artist, title, abum case (i.e. convert the words to proper case). Select the correct genre. Enforce a track number. Yada yada. To do all of this I use the UltraID3Lib .Net library (http://home.fuse.net/honnert/UltraID3Lib/). Please note that binaries are not included. So you will have to compile the project yourself. Use Visual Basic 2010 Express or better. As usual, there is no warranty of any kind. Use this at your own risk.
 

Expression Evaluator

posted Dec 1, 2010, 12:17 AM by Samuel Gomes   [ updated Jan 9, 2013, 4:04 PM ]

Implements an Algebraic expression evaluator for Visual Basic .Net. It support floating point numbers, most standard operators, plus or minus unary operators and parantheses to override default precedence rules. Rudimentary support for user-defined symbols is also included. Please note that the binaries are not include. So you will have to compile the project yourself. Visual Basic Express 2010 or better should do it. Download link below...
 

MODPlayer

posted Nov 29, 2010, 3:46 AM by Samuel Gomes   [ updated Jan 9, 2013, 4:04 PM ]

Plays module music (mod, s3m, xm, it) using the MODPlugin MOD Playback Engine. What you need to compile and use this code: Visual C++ Express 2010 or better, the ModPlugin DLL (*IN THE APPLICATION OR THE WINDOWS\SYSTEM[32] FOLDER*). You can get the modplugin DLL from http://www.modplug.com (now included in the download). However, you will not get the import library and the header files. Those are mine! Creating the header file was easy but the import library was a pain. The ModPlugin DLL uses the fastcall calling convention but uses cdecl naming convention (doh). So finally I created an import library using function ordinals. You can also dynamically load the DLL. But I always like load time linkage (don't ask me why). As usual, I do not accept responsibility for any effects, adverse or otherwise, that this code may have on you, your computer, your sanity, your dog, and anything else that you can think of. Use it at your own risk. Have fun. Download link below...
 

Ringtone Converter

posted Jul 16, 2010, 5:50 AM by Samuel Gomes   [ updated Jan 9, 2013, 4:03 PM ]

This is a standard RTTTL ringtone to Sony Ericsson IMY ringtone converter program that I wrote ages ago for my Sony Ericsson T610 cell phone. I wrote the program in Visual Basic 6. Since it was lying on my hard drive for a long time and I have no plan to work on it, I am putting it in public domain. Do with it as you please. Please note that I will not be responsible for anything. Download link below...
 

Alien Alley

posted Jun 21, 2010, 10:07 PM by Samuel Gomes   [ updated Jan 9, 2013, 4:02 PM ]

Ah... After a long long time, I got my paws wet in the land of programming. How exciting! Anyways, this is a FreeBASIC/Allegro/Win32 port/conversion of the Alien Alley game by Dave Roberts. The same game that came with the book PC Game Programming Explorer. I bought this book a long time ago and indeed what a wonderful book it is. The original game was written in C for DOS. The conversion was not very simple though. A lot has changed in the code. If you want to compile the code, you will need FreeBASIC and FBEdit. Below are some screenshot showing some enhancements. Notice, that the game now runs in 640x480x8 display mode. As usual, I do not accept responsibility for any effects, adverse or otherwise, that this code may have on you, your computer, your sanity, your dog, and anything else that you can think of. Use it at your own risk. Download link below...
 

 

 

1-6 of 6

Comments