Posts Tagged “C++”

SiN Computer Game

SiN Computer Game

SiN was one of my favourite games when I was younger and clearly showed improvements on the Quake 2 engine from which it was based. Unfortunately at the time of release Half Life was also released as a result SiN was thrown into shadow.

In my oppinion SiN was a better game, I wasted many hours playing the game online and sniping from the crane.

SiN seems to have almost died on the internet, finding the source code for the game proved a difficult thing. Therefore I have hosted it here for any other fans who fancy a look through the source code. It makes a fairly interesting read.

Download SiN Source Code (~500k)

The download file was originally sin110source.exe but has been repacked. No one wants a self decompressing file, it is now a .zip not a .exe.

Additional Resources:

Interesting article on the development of SiN

Original SiN game site on Archive.org

Tags: , , , ,

Comments No Comments »

This is old code and quite a ‘hack’. It worked for my purposes so development unfortunately stopped after the task was completed.

On my linux server I had a directory of unsorted music files. I like my music to be organised by folders, for example:

%artist%\%album%\*.mp3 – Death\Scream Bloody Gore\

So I began writing a simple C++ program to read the artist and album tags from the files, create and move the files into the correct structure.

This is a relatively simple task and I know C++ is not the best choice of language but I thought I would continue and see how the development of C++ within Linux would fair. Mainly from a libraries point of view and an IDE.

Trying to find an IDE which would do code auto completion was a task which proved difficult. KDevelop seemed bloated and unusable. I settled on using a simple code editor called codeblocks. Simple, effective and easy to use.

Next task was to either write a library to read tags from the files or find a suitable library.

http://developer.kde.org/~wheeler/taglib.html

Was my choice, a simple generic interface for multiple music files. Quite nice.

So I set about writing the file, here are my results:

mp3_sorter.zip

The archive contains 3 files, the .cpp file, a simple Readme file and an sh build command.

To build the mp3_sorter.cpp might require you to change the include paths at the top of the file.

Below is the command used to build, note the taglib-config part, it automatically adds the includes and linker options for taglib.

g++ mp3_sorter.cpp -Wno-deprecated `taglib-config –cflags –libs` -o mp3_sorter

Tags: , , , , , ,

Comments 1 Comment »