|
Speedhack 2006 Windows binaries (take 2) |
Matthew Leverton
Supreme Loser
January 1999
|
Here is the second WIP of the Windows binaries. Make sure your programs run. (If they ran in the first version, they'll run in this one.) NOTICE: If your game is on the list below, please attach corrected files that work with MinGW. Only attach the files that have been corrected. If I do not receive them, your entry will be left out of the official Windows binary version. A Tale of how I Robo-Dustin Hoffman... src/Game.cpp: In member function `void Game::drawGalaxyScreen()': src/Game.cpp:223: parse error before `,' token src/Game.cpp: In member function `void Game::drawShipScreen()': src/Game.cpp:345: warning: unused variable `int w' src/Game.cpp: In member function `void Game::drawPlanetScreen()': src/Game.cpp:512: parse error before `,' token src/Game.cpp:513: parse error before `,' token src/Game.cpp: In member function `void Game::drawStoryScreen()': src/Game.cpp:584: parse error before `,' token src/Game.cpp: In member function `void Game::initStory(int)': src/Game.cpp:576: warning: unused parameter `int chapter' c:/code/mingw/include/c++/3.2.3/bits/locale_facets.h: At top level: include/Timer.h:7: warning: `volatile int gTimerCounter' defined but not used mingw32-make: *** [obj/Game.o] Error 1
Banana Man Fender's Dream Nicanor Bakero
Sketch Fighter
Zany's Wonderland
|
Trumgottist
Member #95
April 2000
|
Matthew said: Make sure your programs run. I've only got an OSX box at the moment, so I can't. But since I was developing it with MinGW, I assume it does? -- Play my game: Frasse and the Peas of Kejick |
Onewing
Member #6,152
August 2005
|
I had to reload my files from the speedhack site, since I've changed Zany's Wonderland (with new, more playable version on the ConcedeHack thread). Here's what I fixed for the speedhack version that ML's requesting:
147 int DICE::value() 148 { 149 if(!bDone) return -1; 150 if(iSelect == -1) return -1; 151 152 return iValues[iSelect]; 153 //return 10; 154 } The changed files are attached ------------ |
Billybob
Member #3,136
January 2003
|
Quote: Please attach a working Windows binary of the original SH source. I cannot be bothered with the JDK. The SpeedHack entry comes with a working binary in the "Release" directory.
|
Wilson Saunders
Member #5,872
May 2005
|
It has been a long while since I have used anything but Visual Studio. It looks like your compiler requires me to add new lines at the end of each file. So I have added the new lines, included my object files, and attached it to this message. The source code is the same except for the new lines. Also if you want to skip all this a binary version is available at: Please tell me if it works, as I would really like to seem my entry in the final release. ________________________________________________ |
Matthew Leverton
Supreme Loser
January 1999
|
Actually, most of those are just warnings. I think the only relevant message is: src/fighter.cpp:83: `Sounds' undeclared (first use this function) src/fighter.cpp:83: (Each undeclared identifier is reported only once for each function it appears in.) src/fighter.cpp: In member function `int Fighter::GetBlockLo(double)':
|
Felipe Maia
Member #6,190
September 2005
|
Quote: It looks like your compiler requires me to add new lines at the end of each file. Those are just warnings, the problem is there: Quote:
src/fighter.cpp: In constructor `Fighter::Fighter()': You need to fix that in order for it to compile correctly. |
Wilson Saunders
Member #5,872
May 2005
|
OK I have no idea why you get that error. In line 108 of fighter.h Sounds is decalred as: SAMPLE * Sounds[6]; Also fighter.cpp includes fighter.h . Is "Sounds" an illegal variable name or is SAMPLE a bad type? ________________________________________________ |
Matthew Leverton
Supreme Loser
January 1999
|
That line is missing from the SH source... Adding it corrected the problem. I think it's now complaining about "alarm," which is a system function. I'll take a look at that. Edit... are you sure the proper include files are there? I don't see where alarm is declared (world.cpp). |
Wilson Saunders
Member #5,872
May 2005
|
I'm so stupid. Durring the speedhack I made a soundless version to have something to show. Then I added sound controll to the world and fighter files and resubmitted. Unfortunately I did not copy the new .h files to the include directory of the zip file I uploaded. Here are the .h files that were updated but not included. BTW "alarm" SAMPLE * member of the world class. The only chainges from the speed hack submission are: world.h line75 added: SAMPLE * alarm; ________________________________________________ |
Erkle
Member #3,493
May 2003
|
My entry is missing 'Screen.cfg' which is needed for fullscreen mode. I've redownloaded my submission and it is in there. Also the version of OpenLayer/AllegroGL that has been used to compile it is drawing lines through all the polygons. Of course both points are irrelavent;D as my entry is unfinished and does not meet all the rules:'(.
If the writing above has offended you, you've read it wrong.....fool. |
|