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
Please attach a working Windows binary of the original SH source. I cannot be bothered with the JDK.
Fender's Dream
Crashes on load. Please submit corrected source.
Nicanor Bakero
1 | In file included from src/main.cpp:3: |
2 | include/menu.h:2:17: save.h: No such file or directory |
3 | In file included from src/main.cpp:3: |
4 | include/menu.h: In function `int menu()': |
5 | include/menu.h:42: `cargar_juego' undeclared (first use this function) |
6 | include/menu.h:42: (Each undeclared identifier is reported only once for each |
7 | function it appears in.) |
8 | include/menu.h:211: `salvar_juego' undeclared (first use this function) |
9 | include/menu.h:235: `player' undeclared (first use this function) |
10 | src/main.cpp:4:20: tiempo.h: No such file or directory |
11 | src/main.cpp: In function `int _mangled_main()': |
12 | src/main.cpp:25: `contador' undeclared (first use this function) |
13 | src/main.cpp:36: `fichasmanager' undeclared (first use this function) |
14 | src/main.cpp:38: `velp1' undeclared (first use this function) |
15 | src/main.cpp:45: `velocidades' undeclared (first use this function) |
16 | src/main.cpp:45: `proxv1' undeclared (first use this function) |
17 | src/main.cpp:47: `velp2' undeclared (first use this function) |
18 | src/main.cpp:60: `jugadores' undeclared (first use this function) |
19 | src/main.cpp:75: `proxv2' undeclared (first use this function) |
20 | src/main.cpp: In function `void init()': |
21 | src/main.cpp:163: `gfx_fichas' undeclared (first use this function) |
22 | src/main.cpp:188: `contar' undeclared (first use this function) |
23 | mingw32-make: *** [obj/main.o] Error 1 |
Sketch Fighter
1 | In file included from include/fighter.h:23, |
2 | from src/fighter.cpp:23: |
3 | include/CrashBox.h:62:7: warning: no newline at end of file |
4 | In file included from include/screenDef.h:22, |
5 | from include/fighter.h:24, |
6 | from src/fighter.cpp:23: |
7 | include/CrashBox.h:62:7: warning: no newline at end of file |
8 | In file included from include/fighter.h:24, |
9 | from src/fighter.cpp:23: |
10 | include/screenDef.h:30:7: warning: no newline at end of file |
11 | In file included from include/Body.h:25, |
12 | from include/fighter.h:25, |
13 | from src/fighter.cpp:23: |
14 | include/bodypart.h:53:8: warning: no newline at end of file |
15 | In file included from include/Body.h:27, |
16 | from include/fighter.h:25, |
17 | from src/fighter.cpp:23: |
18 | include/poze.h:52:7: warning: no newline at end of file |
19 | In file included from include/fighter.h:25, |
20 | from src/fighter.cpp:23: |
21 | include/Body.h:66:7: warning: no newline at end of file |
22 | In file included from include/body.h:25, |
23 | from include/animation.h:24, |
24 | from include/fighter.h:26, |
25 | from src/fighter.cpp:23: |
26 | include/bodypart.h:53:8: warning: no newline at end of file |
27 | In file included from include/body.h:27, |
28 | from include/animation.h:24, |
29 | from include/fighter.h:26, |
30 | from src/fighter.cpp:23: |
31 | include/poze.h:52:7: warning: no newline at end of file |
32 | In file included from include/animation.h:24, |
33 | from include/fighter.h:26, |
34 | from src/fighter.cpp:23: |
35 | include/body.h:66:7: warning: no newline at end of file |
36 | In file included from include/animation.h:25, |
37 | from include/fighter.h:26, |
38 | from src/fighter.cpp:23: |
39 | include/poze.h:52:7: warning: no newline at end of file |
40 | In file included from include/bananaCtrl.h:23, |
41 | from include/fighter.h:27, |
42 | from src/fighter.cpp:23: |
43 | include/CrashBox.h:62:7: warning: no newline at end of file |
44 | In file included from include/screenDef.h:22, |
45 | from include/bananaCtrl.h:24, |
46 | from include/fighter.h:27, |
47 | from src/fighter.cpp:23: |
48 | include/CrashBox.h:62:7: warning: no newline at end of file |
49 | In file included from include/bananaCtrl.h:24, |
50 | from include/fighter.h:27, |
51 | from src/fighter.cpp:23: |
52 | include/screenDef.h:30:7: warning: no newline at end of file |
53 | In file included from src/fighter.cpp:23: |
54 | include/fighter.h:42: warning: `class Fighter' has virtual functions but |
55 | non-virtual destructor |
56 | In file included from src/fighter.cpp:23: |
57 | include/fighter.h:126:7: warning: no newline at end of file |
58 | src/fighter.cpp: In constructor `Fighter::Fighter()': |
59 | src/fighter.cpp:83: `Sounds' undeclared (first use this function) |
60 | src/fighter.cpp:83: (Each undeclared identifier is reported only once for each |
61 | function it appears in.) |
62 | src/fighter.cpp: In member function `int Fighter::GetBlockLo(double)': |
63 | src/fighter.cpp:258: warning: initialization to `int' from `double' |
64 | src/fighter.cpp:258: warning: argument to `int' from `double' |
65 | src/fighter.cpp: In member function `void Fighter::Draw(BITMAP*, int)': |
66 | src/fighter.cpp:1016: warning: passing `double' for argument passing 2 of `void |
67 | circlefill(BITMAP*, int, int, int, int)' |
68 | src/fighter.cpp:1016: warning: argument to `int' from `double' |
69 | src/fighter.cpp:1016: warning: passing `double' for argument passing 3 of `void |
70 | circlefill(BITMAP*, int, int, int, int)' |
71 | src/fighter.cpp:1016: warning: argument to `int' from `double' |
72 | src/fighter.cpp:1020: warning: passing `double' for argument passing 2 of `void |
73 | circlefill(BITMAP*, int, int, int, int)' |
74 | src/fighter.cpp:1020: warning: argument to `int' from `double' |
75 | src/fighter.cpp:1020: warning: passing `double' for argument passing 3 of `void |
76 | circlefill(BITMAP*, int, int, int, int)' |
77 | src/fighter.cpp:1020: warning: argument to `int' from `double' |
78 | src/fighter.cpp:1030: warning: passing `double' for argument passing 3 of `void |
79 | draw_sprite_h_flip(BITMAP*, BITMAP*, int, int)' |
80 | src/fighter.cpp:1030: warning: argument to `int' from `double' |
81 | src/fighter.cpp:1030: warning: passing `double' for argument passing 4 of `void |
82 | draw_sprite_h_flip(BITMAP*, BITMAP*, int, int)' |
83 | src/fighter.cpp:1030: warning: argument to `int' from `double' |
84 | src/fighter.cpp:1033: warning: passing `double' for argument passing 3 of `void |
85 | draw_sprite(BITMAP*, BITMAP*, int, int)' |
86 | src/fighter.cpp:1033: warning: argument to `int' from `double' |
87 | src/fighter.cpp:1033: warning: passing `double' for argument passing 4 of `void |
88 | draw_sprite(BITMAP*, BITMAP*, int, int)' |
89 | src/fighter.cpp:1033: warning: argument to `int' from `double' |
90 | src/fighter.cpp:1043:2: warning: no newline at end of file |
91 | mingw32-make: *** [obj/fighter.o] Error 1 |
Zany's Wonderland
1 | In file included from src/game.h:19, |
2 | from src/item.h:11, |
3 | from src/item.cpp:1: |
4 | src/allegro_color.h:244:37: warning: no newline at end of file |
5 | In file included from src/allegro_input.h:16, |
6 | from src/game.h:20, |
7 | from src/item.h:11, |
8 | from src/item.cpp:1: |
9 | src/game.h:112:29: warning: no newline at end of file |
10 | In file included from src/board.h:14, |
11 | from src/Board_Game.h:14, |
12 | from src/game.h:23, |
13 | from src/item.h:11, |
14 | from src/item.cpp:1: |
15 | src/tile.h:16: use of enum `ITYPE' without previous declaration |
16 | In file included from src/board.h:14, |
17 | from src/Board_Game.h:14, |
18 | from src/game.h:23, |
19 | from src/item.h:11, |
20 | from src/item.cpp:1: |
21 | src/tile.h:18:1: warning: "LEFT" redefined |
22 | In file included from src/game.h:20, |
23 | from src/item.h:11, |
24 | from src/item.cpp:1: |
25 | src/allegro_input.h:25:1: warning: this is the location of the previous definition |
26 | In file included from src/board.h:14, |
27 | from src/Board_Game.h:14, |
28 | from src/game.h:23, |
29 | from src/item.h:11, |
30 | from src/item.cpp:1: |
31 | src/tile.h:19:1: warning: "RIGHT" redefined |
32 | In file included from src/game.h:20, |
33 | from src/item.h:11, |
34 | from src/item.cpp:1: |
35 | src/allegro_input.h:26:1: warning: this is the location of the previous definition |
36 | In file included from src/board.h:14, |
37 | from src/Board_Game.h:14, |
38 | from src/game.h:23, |
39 | from src/item.h:11, |
40 | from src/item.cpp:1: |
41 | src/tile.h:20:1: warning: "UP" redefined |
42 | In file included from src/game.h:20, |
43 | from src/item.h:11, |
44 | from src/item.cpp:1: |
45 | src/allegro_input.h:27:1: warning: this is the location of the previous definition |
46 | In file included from src/board.h:14, |
47 | from src/Board_Game.h:14, |
48 | from src/game.h:23, |
49 | from src/item.h:11, |
50 | from src/item.cpp:1: |
51 | src/tile.h:21:1: warning: "DOWN" redefined |
52 | In file included from src/game.h:20, |
53 | from src/item.h:11, |
54 | from src/item.cpp:1: |
55 | src/allegro_input.h:28:1: warning: this is the location of the previous definition |
56 | In file included from src/item.h:11, |
57 | from src/item.cpp:1: |
58 | src/game.h:112:29: warning: no newline at end of file |
59 | In file included from src/item.cpp:1: |
60 | src/item.h:15: multiple definition of `enum ITYPE' |
61 | src/tile.h:16: previous definition here |
62 | src/item.cpp: In member function `void ITEM::update()': |
63 | src/item.cpp:65: warning: passing `float' for argument passing 1 of `int |
64 | abs(int)' |
65 | src/item.cpp:65: warning: argument to `int' from `float' |
66 | src/item.cpp:70: warning: passing `float' for argument passing 1 of `int |
67 | abs(int)' |
68 | src/item.cpp:70: warning: argument to `int' from `float' |
69 | src/item.cpp: In member function `void ITEM::draw(BITMAP*)': |
70 | src/item.cpp:100: warning: passing `double' for argument passing 3 of `void |
71 | draw_sprite(BITMAP*, BITMAP*, int, int)' |
72 | src/item.cpp:100: warning: argument to `int' from `double' |
73 | src/item.cpp:100: warning: passing `double' for argument passing 4 of `void |
74 | draw_sprite(BITMAP*, BITMAP*, int, int)' |
75 | src/item.cpp:100: warning: argument to `int' from `double' |
76 | src/item.cpp: In member function `void ITEM::move(int, int)': |
77 | src/item.cpp:107: warning: passing `float' for argument passing 1 of `int |
78 | abs(int)' |
79 | src/item.cpp:107: warning: argument to `int' from `float' |
80 | src/item.cpp:107: warning: passing `float' for argument passing 1 of `int |
81 | abs(int)' |
82 | src/item.cpp:107: warning: argument to `int' from `float' |
83 | mingw32-make: *** [obj/item.o] Error 1 |
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?
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:
Changed all the enums to #defined integer values. According to miran, this seemed to be the only problem, unless he had changed more...
This fix is questionable whether its valid. If it isn't, it's easily changeable backwards. During testing, I wanted to move around fast on my board game, so the dice always returns "10", which makes the game kind of...pointless. I'll I did was uncomment the line that returns the right value and comment out the "return 10;" line. It's in dice.cpp at line 152:
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
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.
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:
http://www.freewebs.com/hamstermk4/SketchFighter.zip
Please tell me if it works, as I would really like to seem my entry in the final release.
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)':
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:
src/fighter.cpp: In constructor `Fighter::Fighter()':
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.)
You need to fix that in order for it to compile correctly.
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?
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).
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;
fighter.h line 108 added: SAMPLE * Sounds[6];
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:'(.