Here is what I did. I used the provided archive with SRB2 to extract the source code. Then, I just edited some numbers in the source code, related to the weapon fire rate, or to the max amount the player can wear (or also the weapon name which appear on the console). Nothing related to C functions or other C langage stuff, just value editing.
When I was done with my edit, I downloaded the libraries directx8.tar.gz, dxguid.lib and FMOD.tar.gz from here. I copied dxguid.lib into the folders C:\mingw32 and C:\Program Files\CodeBlocks. I extracted the two archives (directx8.tar.gz and FMOD.tar.gz) as well in these folders.
(I set the libraries in two folders, by hoping the compiling will work.)
Then, I run Code::Blocks, my IDE. I go to File > Open, and I choose the Srb2win.dev, situated in src\win32 (I made that dev file by importing srb2win.dsp in Dev-C++). They ask me what compiler to use, I let the GNU GCC compiler. Then, I push the "Build" button...
And here is the build log.
I don't know if I even used the correct "project", like the Wiki says, since it doesn't precise which file is the "project". That tutorial is fuzzy for me...
Thank you in advance for any help.
When I was done with my edit, I downloaded the libraries directx8.tar.gz, dxguid.lib and FMOD.tar.gz from here. I copied dxguid.lib into the folders C:\mingw32 and C:\Program Files\CodeBlocks. I extracted the two archives (directx8.tar.gz and FMOD.tar.gz) as well in these folders.
(I set the libraries in two folders, by hoping the compiling will work.)
Then, I run Code::Blocks, my IDE. I go to File > Open, and I choose the Srb2win.dev, situated in src\win32 (I made that dev file by importing srb2win.dsp in Dev-C++). They ask me what compiler to use, I let the GNU GCC compiler. Then, I push the "Build" button...
And here is the build log.
-------------- Build: default in Srb2win ---------------
Compiling: ..\r_draw16.c
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c: In function 'R_DrawColumn_16':
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:33: error: 'INT32' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:33: error: (Each undeclared identifier is reported only once
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:33: error: for each function it appears in.)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:33: error: expected ';' before 'count'
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:34: error: 'INT16' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:34: error: 'dest' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:35: error: 'fixed_t' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:35: error: expected ';' before 'frac'
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:37: error: 'count' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:37: error: 'dc_yh' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:37: error: 'dc_yl' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:51: error: expected expression before ')' token
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:51: error: 'ylookup' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:51: error: 'columnofs' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:51: error: 'dc_x' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:54: error: 'fracstep' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:54: error: 'dc_iscale' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:55: error: 'frac' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:55: error: 'dc_texturemid' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:55: error: 'centery' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:63: error: 'hicolormaps' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:63: error: expected expression before ')' token
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:63: error: expected ')' before 'dc_source'
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:63: error: 'FRACBITS' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:65: error: 'vid' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c: In function 'R_DrawWallColumn_16':
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:76: error: 'INT32' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:76: error: expected ';' before 'count'
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:77: error: 'INT16' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:77: error: 'dest' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:78: error: 'fixed_t' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:78: error: expected ';' before 'frac'
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:80: error: 'count' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:80: error: 'dc_yh' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:80: error: 'dc_yl' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:91: error: expected expression before ')' token
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:91: error: 'ylookup' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:91: error: 'columnofs' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:91: error: 'dc_x' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:93: error: 'fracstep' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:93: error: 'dc_iscale' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:94: error: 'frac' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:94: error: 'dc_texturemid' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:94: error: 'centery' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:98: error: 'hicolormaps' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:98: error: expected expression before ')' token
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:98: error: expected ')' before 'dc_source'
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:98: error: 'FRACBITS' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:100: error: 'vid' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c: In function 'R_DrawTranslucentColumn_16':
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:111: error: 'INT32' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:111: error: expected ';' before 'count'
Process terminated with status 1 (0 minutes, 4 seconds)
50 errors, 0 warnings
Compiling: ..\r_draw16.c
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c: In function 'R_DrawColumn_16':
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:33: error: 'INT32' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:33: error: (Each undeclared identifier is reported only once
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:33: error: for each function it appears in.)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:33: error: expected ';' before 'count'
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:34: error: 'INT16' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:34: error: 'dest' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:35: error: 'fixed_t' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:35: error: expected ';' before 'frac'
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:37: error: 'count' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:37: error: 'dc_yh' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:37: error: 'dc_yl' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:51: error: expected expression before ')' token
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:51: error: 'ylookup' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:51: error: 'columnofs' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:51: error: 'dc_x' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:54: error: 'fracstep' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:54: error: 'dc_iscale' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:55: error: 'frac' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:55: error: 'dc_texturemid' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:55: error: 'centery' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:63: error: 'hicolormaps' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:63: error: expected expression before ')' token
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:63: error: expected ')' before 'dc_source'
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:63: error: 'FRACBITS' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:65: error: 'vid' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c: In function 'R_DrawWallColumn_16':
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:76: error: 'INT32' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:76: error: expected ';' before 'count'
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:77: error: 'INT16' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:77: error: 'dest' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:78: error: 'fixed_t' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:78: error: expected ';' before 'frac'
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:80: error: 'count' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:80: error: 'dc_yh' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:80: error: 'dc_yl' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:91: error: expected expression before ')' token
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:91: error: 'ylookup' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:91: error: 'columnofs' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:91: error: 'dc_x' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:93: error: 'fracstep' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:93: error: 'dc_iscale' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:94: error: 'frac' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:94: error: 'dc_texturemid' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:94: error: 'centery' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:98: error: 'hicolormaps' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:98: error: expected expression before ')' token
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:98: error: expected ')' before 'dc_source'
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:98: error: 'FRACBITS' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:100: error: 'vid' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c: In function 'R_DrawTranslucentColumn_16':
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:111: error: 'INT32' undeclared (first use in this function)
C:\Documents and Settings\HP_Administrator\Bureau\src\src\r_draw16.c:111: error: expected ';' before 'count'
Process terminated with status 1 (0 minutes, 4 seconds)
50 errors, 0 warnings
I don't know if I even used the correct "project", like the Wiki says, since it doesn't precise which file is the "project". That tutorial is fuzzy for me...
Thank you in advance for any help.
Last edited: