################# PINBALL FOR WINDOWS ################
# @author: RzR - http://rzr.online.fr/game.htm
# Subject: pinball-0.2.0 / compiling / win32 / msvc6
######################################################################
#
# If having trouble contact me at the url at the top
# This does not patch for mingw32 but MSVC++ v6
# Latest Patched sources are at :
http://rzr.online.fr/game
#
# An upcoming patch will come for both compiler MSVC +
mingw32 (+? mac)
# patch provided with help of Ramlaid (see mis)
### WIN32 MSVC++
### Setting Up env on Bash (translate to your language)
PROJECT_HOME=$HOME/homedir && export PROJECT_HOME
# subst h: $PROJECT_HOME # Msdos command
mkdir -p $PROJECT_HOME/usr/local/include
mkdir -p $PROJECT_HOME/usr/local/tmp
cd $PROJECT_HOME/usr/local/src/pinball-0.2.0/
h:\usr\local\src\pinball-0.2.0\pinball.dsw
"h:\\usr\\local\\src\\pinball-0.2.0\\pinball.dsw"
### Getting Files
cat >| urls.txt << EOF
http://www.libsdl.org/release/SDL-1.2.5a-win32.zip
http://www.libsdl.org/release/SDL-devel-1.2.5a-VC6.zip
http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-devel-1.2.5-VC6.zip
http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.5-win32.zip
http://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.3-win32.zip
http://www.libsdl.org/projects/SDL_image/release/SDL_image-devel-1.2.3-VC6.zip
EOF
wget -c -i urls.txt
unzip SDL-devel-1.2.5a-VC6.zip
unzip *.zip
ls $PROJECT_HOME/usr/local/tmp
mkdir -p $PROJECT_HOME/usr/local/local
cd $PROJECT_HOME/usr/local/local
unzip $PROJECT_HOME/usr/local/tmp/SDL-devel-1.2.5a-VC6.zip
unzip
$PROJECT_HOME/usr/local/tmp/SDL_image-devel-1.2.3-VC6.zip
unzip
$PROJECT_HOME/usr/local/tmp/SDL_mixer-devel-1.2.5-VC6.zip
mkdir -p $PROJECT_HOME/usr/local/dll
cd $PROJECT_HOME/usr/local/dll
unzip $PROJECT_HOME/usr/local/tmp/SDL-1.2.5a-win32.zip
unzip
$PROJECT_HOME/usr/local/tmp/SDL_image-1.2.3-win32.zip
unzip
$PROJECT_HOME/usr/local/tmp/SDL_mixer-1.2.5-win32.zip
cp *.dll C:/Windows/System32
### Building Project
# Msvc++6 : Tools/option/directories/Include files
\usr\local\include
\usr\local\local\SDL-1.2.5\include
\usr\local\local\SDL_image-1.2.3\include
\usr\local\local\SDL_mixer-1.2.5\include
\usr\local\lib
\usr\local\local\SDL-1.2.5\lib
\usr\local\local\SDL_image-1.2.3\lib
\usr\local\local\SDL_mixer-1.2.5\lib
### Install the files
# [ TO BE COMPLETED ]
cp Release/Pinball.exe /pinball/
ls /pinball
00index.htm SDL_image.dll include share
Pinball.exe SDL_mixer.dll lib smpeg.dll
SDL.dll bin pinball-linux stderr.txt
ls /pinball/share/pinball/tux/
### Running the game
Just click Pinball.exe
If the screen is all black ..maybe that because
WARNING this sdl image isnt not compiled with libpng
support
Just get those libs at http://rzr.online.fr/game
### Misc
clean
find . -name Debug -exec rm -rf {} \;
find . -name Release -exec rm -rf {} \;
find . -name "*.plg" -exec rm -rf {} \;
find . -name "*~" -exec rm -rf {} \;
find . -name "*.dep" -o -name "*.opt" -o -name
"*.ncb" -exec rm -rf {} \;
DOS CR/LF may cause touble when using gnu tools (diff
CVS) with msvc
MSVC converts all Ascii files in the project directory
(Including GNU Makefiles, files with ascii headers like
ppm etc)
... another precious time wasted because of M$
Other trouble occurs when using UPPERCASE FILENAME like
gnu's COPYING,
on vfat it is considered as lowercase ...how to solve
this ?
find . -name "*.dsp" -o -name "*.dsw" -o -name
"*.cpp" -o -name "*.h" | xargs tar cvfz
../pinball-0.2.0-msvc6-patch.tar.gz
diff -ruwN --exclude="*.orig" .
~/usr/local/src/orig/pinball-0.2.0/ \
> ../pinball-0.2.0-msvc6.patch
# Ramlaid log for version 0.1.3
27/03/03 SDL_image.dll version 1.2.3 (with libpng1.dll)
seems to didn't work... (
i found an SDL_image.dll (150ko) in pinball directory)
27/03/03 dirent.h unsupported under VC++, use of io.h &
_findfirst-_findnext-_fin
dclose functions
27/03/03 need some variable renaming because of
variable scope (mainly for (int x
...))
27/03/03 in TextureUtil.cpp change SDL/SDL.h to SDL.h
27/03/03 multiples warning of conversion from double to
float
27/03/03 in config.cpp, add {} for REMOVEARG def for
visual (multiple int aa defi
nition)
27/03/03 Mkdir undefined -> add #include <direct.h> and
<sys/stat.h> in pinconfig
.h + mkdir redefinition
27/03/03 Add 'using namespace' when needed (prefered
solution, maybe add std:: in
front of each vector, etc..)
27/03/03 It seems that <windows.h> already defined a
Polygon function, and window
s.h is needed by OpenGL.
Simple solution : use class Polygon instead of only Polygon
27/03/03 Add <windows.h> in pinconfig.h
../pinball-win32-msvc6/pinball-0.1.3/config/msvc/MSVC.txt
### EOF
##############################################################
patch only the 0.2.0 VERSION