Allegro.cc - Online Community

Allegro.cc Forums » Off-Topic Ordeals » Speedhack 2006 Windows binaries (take 2)

This thread is locked; no one can reply to it. rss feed Print
Speedhack 2006 Windows binaries (take 2)
Matthew Leverton
Supreme Loser
January 1999
avatar

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

1In file included from src/main.cpp:3:
2include/menu.h:2:17: save.h: No such file or directory
3In file included from src/main.cpp:3:
4include/menu.h: In function `int menu()':
5include/menu.h:42: `cargar_juego' undeclared (first use this function)
6include/menu.h:42: (Each undeclared identifier is reported only once for each
7 function it appears in.)
8include/menu.h:211: `salvar_juego' undeclared (first use this function)
9include/menu.h:235: `player' undeclared (first use this function)
10src/main.cpp:4:20: tiempo.h: No such file or directory
11src/main.cpp: In function `int _mangled_main()':
12src/main.cpp:25: `contador' undeclared (first use this function)
13src/main.cpp:36: `fichasmanager' undeclared (first use this function)
14src/main.cpp:38: `velp1' undeclared (first use this function)
15src/main.cpp:45: `velocidades' undeclared (first use this function)
16src/main.cpp:45: `proxv1' undeclared (first use this function)
17src/main.cpp:47: `velp2' undeclared (first use this function)
18src/main.cpp:60: `jugadores' undeclared (first use this function)
19src/main.cpp:75: `proxv2' undeclared (first use this function)
20src/main.cpp: In function `void init()':
21src/main.cpp:163: `gfx_fichas' undeclared (first use this function)
22src/main.cpp:188: `contar' undeclared (first use this function)
23mingw32-make: *** [obj/main.o] Error 1

Sketch Fighter

1In file included from include/fighter.h:23,
2 from src/fighter.cpp:23:
3include/CrashBox.h:62:7: warning: no newline at end of file
4In file included from include/screenDef.h:22,
5 from include/fighter.h:24,
6 from src/fighter.cpp:23:
7include/CrashBox.h:62:7: warning: no newline at end of file
8In file included from include/fighter.h:24,
9 from src/fighter.cpp:23:
10include/screenDef.h:30:7: warning: no newline at end of file
11In file included from include/Body.h:25,
12 from include/fighter.h:25,
13 from src/fighter.cpp:23:
14include/bodypart.h:53:8: warning: no newline at end of file
15In file included from include/Body.h:27,
16 from include/fighter.h:25,
17 from src/fighter.cpp:23:
18include/poze.h:52:7: warning: no newline at end of file
19In file included from include/fighter.h:25,
20 from src/fighter.cpp:23:
21include/Body.h:66:7: warning: no newline at end of file
22In 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:
26include/bodypart.h:53:8: warning: no newline at end of file
27In 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:
31include/poze.h:52:7: warning: no newline at end of file
32In file included from include/animation.h:24,
33 from include/fighter.h:26,
34 from src/fighter.cpp:23:
35include/body.h:66:7: warning: no newline at end of file
36In file included from include/animation.h:25,
37 from include/fighter.h:26,
38 from src/fighter.cpp:23:
39include/poze.h:52:7: warning: no newline at end of file
40In file included from include/bananaCtrl.h:23,
41 from include/fighter.h:27,
42 from src/fighter.cpp:23:
43include/CrashBox.h:62:7: warning: no newline at end of file
44In 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:
48include/CrashBox.h:62:7: warning: no newline at end of file
49In file included from include/bananaCtrl.h:24,
50 from include/fighter.h:27,
51 from src/fighter.cpp:23:
52include/screenDef.h:30:7: warning: no newline at end of file
53In file included from src/fighter.cpp:23:
54include/fighter.h:42: warning: `class Fighter' has virtual functions but
55 non-virtual destructor
56In file included from src/fighter.cpp:23:
57include/fighter.h:126:7: warning: no newline at end of file
58src/fighter.cpp: In constructor `Fighter::Fighter()':
59src/fighter.cpp:83: `Sounds' undeclared (first use this function)
60src/fighter.cpp:83: (Each undeclared identifier is reported only once for each
61 function it appears in.)
62src/fighter.cpp: In member function `int Fighter::GetBlockLo(double)':
63src/fighter.cpp:258: warning: initialization to `int' from `double'
64src/fighter.cpp:258: warning: argument to `int' from `double'
65src/fighter.cpp: In member function `void Fighter::Draw(BITMAP*, int)':
66src/fighter.cpp:1016: warning: passing `double' for argument passing 2 of `void
67 circlefill(BITMAP*, int, int, int, int)'
68src/fighter.cpp:1016: warning: argument to `int' from `double'
69src/fighter.cpp:1016: warning: passing `double' for argument passing 3 of `void
70 circlefill(BITMAP*, int, int, int, int)'
71src/fighter.cpp:1016: warning: argument to `int' from `double'
72src/fighter.cpp:1020: warning: passing `double' for argument passing 2 of `void
73 circlefill(BITMAP*, int, int, int, int)'
74src/fighter.cpp:1020: warning: argument to `int' from `double'
75src/fighter.cpp:1020: warning: passing `double' for argument passing 3 of `void
76 circlefill(BITMAP*, int, int, int, int)'
77src/fighter.cpp:1020: warning: argument to `int' from `double'
78src/fighter.cpp:1030: warning: passing `double' for argument passing 3 of `void
79 draw_sprite_h_flip(BITMAP*, BITMAP*, int, int)'
80src/fighter.cpp:1030: warning: argument to `int' from `double'
81src/fighter.cpp:1030: warning: passing `double' for argument passing 4 of `void
82 draw_sprite_h_flip(BITMAP*, BITMAP*, int, int)'
83src/fighter.cpp:1030: warning: argument to `int' from `double'
84src/fighter.cpp:1033: warning: passing `double' for argument passing 3 of `void
85 draw_sprite(BITMAP*, BITMAP*, int, int)'
86src/fighter.cpp:1033: warning: argument to `int' from `double'
87src/fighter.cpp:1033: warning: passing `double' for argument passing 4 of `void
88 draw_sprite(BITMAP*, BITMAP*, int, int)'
89src/fighter.cpp:1033: warning: argument to `int' from `double'
90src/fighter.cpp:1043:2: warning: no newline at end of file
91mingw32-make: *** [obj/fighter.o] Error 1

Zany's Wonderland

1In file included from src/game.h:19,
2 from src/item.h:11,
3 from src/item.cpp:1:
4src/allegro_color.h:244:37: warning: no newline at end of file
5In 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:
9src/game.h:112:29: warning: no newline at end of file
10In 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:
15src/tile.h:16: use of enum `ITYPE' without previous declaration
16In 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:
21src/tile.h:18:1: warning: "LEFT" redefined
22In file included from src/game.h:20,
23 from src/item.h:11,
24 from src/item.cpp:1:
25src/allegro_input.h:25:1: warning: this is the location of the previous definition
26In 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:
31src/tile.h:19:1: warning: "RIGHT" redefined
32In file included from src/game.h:20,
33 from src/item.h:11,
34 from src/item.cpp:1:
35src/allegro_input.h:26:1: warning: this is the location of the previous definition
36In 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:
41src/tile.h:20:1: warning: "UP" redefined
42In file included from src/game.h:20,
43 from src/item.h:11,
44 from src/item.cpp:1:
45src/allegro_input.h:27:1: warning: this is the location of the previous definition
46In 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:
51src/tile.h:21:1: warning: "DOWN" redefined
52In file included from src/game.h:20,
53 from src/item.h:11,
54 from src/item.cpp:1:
55src/allegro_input.h:28:1: warning: this is the location of the previous definition
56In file included from src/item.h:11,
57 from src/item.cpp:1:
58src/game.h:112:29: warning: no newline at end of file
59In file included from src/item.cpp:1:
60src/item.h:15: multiple definition of `enum ITYPE'
61src/tile.h:16: previous definition here
62src/item.cpp: In member function `void ITEM::update()':
63src/item.cpp:65: warning: passing `float' for argument passing 1 of `int
64 abs(int)'
65src/item.cpp:65: warning: argument to `int' from `float'
66src/item.cpp:70: warning: passing `float' for argument passing 1 of `int
67 abs(int)'
68src/item.cpp:70: warning: argument to `int' from `float'
69src/item.cpp: In member function `void ITEM::draw(BITMAP*)':
70src/item.cpp:100: warning: passing `double' for argument passing 3 of `void
71 draw_sprite(BITMAP*, BITMAP*, int, int)'
72src/item.cpp:100: warning: argument to `int' from `double'
73src/item.cpp:100: warning: passing `double' for argument passing 4 of `void
74 draw_sprite(BITMAP*, BITMAP*, int, int)'
75src/item.cpp:100: warning: argument to `int' from `double'
76src/item.cpp: In member function `void ITEM::move(int, int)':
77src/item.cpp:107: warning: passing `float' for argument passing 1 of `int
78 abs(int)'
79src/item.cpp:107: warning: argument to `int' from `float'
80src/item.cpp:107: warning: passing `float' for argument passing 1 of `int
81 abs(int)'
82src/item.cpp:107: warning: argument to `int' from `float'
83mingw32-make: *** [obj/item.o] Error 1

Trumgottist
Member #95
April 2000
avatar

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?

--
"I always prefer to believe the best of everybody - it saves so much time." - Rudyard Kipling

Play my game: Frasse and the Peas of Kejick

Onewing
Member #6,152
August 2005
avatar

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

------------
Solo-Games.org | My Tech Blog: The Digital Helm

Billybob
Member #3,136
January 2003
avatar

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.

_________________________________________________
"God speed, my lonely angel."
Bitcoin | Bitcoin Ponzi Scheme

Wilson Saunders
Member #5,872
May 2005
avatar

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.

________________________________________________
Play my games at http://monkeydev.com

Matthew Leverton
Supreme Loser
January 1999
avatar

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
avatar

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()':
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.

Wilson Saunders
Member #5,872
May 2005
avatar

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?

________________________________________________
Play my games at http://monkeydev.com

Matthew Leverton
Supreme Loser
January 1999
avatar

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
avatar

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];

________________________________________________
Play my games at http://monkeydev.com

Erkle
Member #3,493
May 2003
avatar

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.
And if you read that wrong it means 'All of the above is opinion and is only to be treated as such.'

Go to: