2013. május 19., vasárnap

Call of duty 2 - map tactical overviews

These are all the raw overview images for call of duty 2. I didn't find proper and full packs of these, so made myself. Feel free to use them.
List:

  • mp_breakout
  • mp_brecourt
  • mp_burgundy
  • mp_carentan
  • mp_dawnville
  • mp_decoy
  • mp_downtown
  • mp_farmhouse
  • mp_harbor
  • mp_leningrad
  • mp_matmata
  • mp_railyard
  • mp_rhine
  • mp_toujane
  • mp_trainstation


_eraden's  album on Photobucket

2013. május 13., hétfő

Call of duty 2 burgundy nades, WIP

This is a work in progress. A pdf file hacked together with the paths of nades shown and links to videos. Use at your own risk. Gonna update in time...
http://tinyurl.com/bnxul28

2013. május 8., szerda

My fight with QT 5.* and MYSQL drivers

Hey there!

 I have been thinking about launching a blog for a while, but now i felt it was the time for that. This post is gonna be about the hassle with QT 5.* (5.0.2 precisely), and how i managed to compile some drivers under Windows 7. So let's get to the story,shall we?

My task was to develop a video store application in QT with MySQL database. It's nice and easy to say that, but harder to achieve. The problem is that QT does not come with MySQL drivers, you have to compile them for yourself. Well that task can be pretty daunting, especially, if you are realtively new to programming. So what are the specs here:

  • Windows 7, x64 (64 bit) SP1
  • QT 5.0.2 (32bit) for windows
  • MySQL (32bit) (this is tricky, gonna explain later)
  • MS Visual Studio 2010 (32 bit)
With these parameters, I want to compile the drivers. Now the hassle begins:
  1. First of all you need something to compile with. There is mingw and visual studio for that. Take your choice both are free. Google them.
  2. Then, you need QT with SOURCES! This is important, as you need the source files to be able to compile the MySQL drivers. Get it here: Download QT (make sure to download the one good for you [I have visual studio, so i downloaded that, the file name should be something like: qt-windows-opensource-5.0.2-msvc2010_32-x86-offline.exe]).
  3. Install, make sure, to install sources too. 
  4. Get MySQL server: Download MySQL for Windows, make sure to scroll down and get the 32 bit zip file ( Windows (x86, 32-bit), ZIP Archive ). Unzip it, you shall need the c++ connectors too.
  5. Now everything is set up. I will use the following directories in this example:
    Visual Studio: C:\dev\Microsoft Visual Studio 2010
    QT:  C:\dev\QT5.0.2
    MySQL: C:\dev\mysql
    You should use these according to your system settings.
Now step-by step:
  1. Start Visual Studio Command Promt (2010) as administrator (it should be added to your program's list in the start menu).
  2. A command line window appears.
  3. Type: vcvarsall.bat , this makes sure PATH env variable is up-to-date
  4. Type: PATH+=%PATH%;C:\dev\QT5.0.2\5.0.2\msvc2010\bin (this should be your QT directory, where the bin folder is), this adds the qmake to be usable from this promt.
  5. Type: cd C:\dev\QT5.0.2\5.0.2\Src\qtbase\src\plugins\sqldrivers\mysql, you are now at the mysql drivers dir. Change the beginning according to your settings.
  6. Type: qmake "INCLUDEPATH+=C:\\dev\\mysql\\include" "LIBS+=C:\\dev\\mysql\\lib\\libmysql.lib" -o Makefile mysql.pro, this creates makefiles for nmake. Make sure to use double slashes (\\) in the path. Hopefully no error will occur. If it fails to find qmake, then the path you have set in step 4 is wrong. Try to search for the correct one.
  7. Type: nmake, this should compile the drivers for you. This is the point where a shitload of errors can occur.
    Checklist if any errors happened:
    1. Is your MySQL path correct?
    2. Are your apps all the same (x86 or x64)?
  8. The created drivers should be at  C:\dev\QT5.0.2\5.0.2\Src\qtbase\plugins\sqldrivers copy this dir into  C:\dev\QT5.0.2\5.0.2\msvc2010\plugins\sqldrivers
  9. Copy libmysql.dll from C:\dev\mysql\lib\ to C:\dev\QT5.0.2\5.0.2\msvc2010\bin\
  10. Now try if the drivers are working
Make sure that any QT application is closed during the procedure.

Sources: