Allegro.cc - Online Community

Allegro.cc Forums » Game Design & Concepts » Shaw's Nightmare

This thread is locked; no one can reply to it. rss feed Print
 1   2   3   4 
Shaw's Nightmare
Neil Black
Member #7,867
October 2006
avatar

I've to do unessesary work to avoid these warnings.

I treat all warnings as errors. This makes things easier later on, when unsolved warnings can start causing problems.

amber
Member #6,783
January 2006
avatar

In particular, your mixture of relying on implicit declarations (so the compiler doesn't know what return values to expect) and letting control reach the end of non-void functions (so you're not providing any) almost ensures you're going to suffer from some terrible stack corruption bug at some point.

Onewing
Member #6,152
August 2005
avatar

I treat all warnings as errors. This makes things easier later on, when unsolved warnings can start causing problems.

You can set a lot of IDE's to do the same thing (if you haven't).

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

Neil Black
Member #7,867
October 2006
avatar

Onewing said:

You can set a lot of IDE's to do the same thing (if you haven't).

I've been using the command line lately. I compile with g++, I code with VIM. I don't need no stinking IDE! 8-)

Onewing
Member #6,152
August 2005
avatar

I've been using the command line lately. I compile with g++, I code with VIM. I don't need no stinking IDE!

Sounds like college!

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

Neil Black
Member #7,867
October 2006
avatar

Onewing said:

Sounds like college!

I'm a rebel. My programming teacher recommends Eclipse. 8-)

Johan Halmén
Member #1,550
September 2001

Is there a missing 'n' in the name?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Years of thorough research have revealed that the red "x" that closes a window, really isn't red, but white on red background.

Years of thorough research have revealed that what people find beautiful about the Mandelbrot set is not the set itself, but all the rest.

Thomas Fjellstrom
Member #476
June 2000
avatar

Don't get us wrong we'd be happy to help with smaller problems and such. It's just that most of us have projects of our own and don't want to, or don't have time to, commit to someone else's.

For some reason I initially read that as:

Quote:

Don't get us wrong we'd be happy to help with smaller problems and such. It's just that most of us have projects of our own we don't want to do, or don't have time to do.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

amber
Member #6,783
January 2006
avatar

Don't get us wrong we'd be happy to help with smaller problems and such. It's just that most of us have projects of our own we don't want to do, or don't have time to do.

;D

Alianix
Member #10,518
December 2008
avatar

This posts cracked me up, thanks especially Lenny,I always enjoyed as people getting beat on by other people for obvious reasons. Anyways, seriously, you need to port your code to windows or linux, there is really no reason to deal with a dead OS unless of course you are truly retarded but haven't discovered it yet... ::) (Otherwise I'd love to try your program ...)

Niunio
Member #1,975
March 2002
avatar

Hi Mikey, glad to see you again. ejem ::)

-----------------
Current projects: Allegro.pas | MinGRo

Micheal Muniko
Member #10,953
May 2009

It's great to see you Nuno! And you're still welcome!

Here's the latest alpha 0.26: http://www.sendspace.com/file/z762iv 8-)
Note: source code will not be availible until this Saturday.

I will destroy you Kariba -- Steel
I will destroy you Steel -- Kariba

BAF
Member #2,981
December 2002
avatar

You can also attach your program to your post, instead of sending people to a crappy download site. :)

Tobias Dammers
Member #2,604
August 2002
avatar

Note: source code will not be availible until this Saturday.

Lemme guess: you still have to write it ???

---
Me make music: Triofobie
---
"We need Tobias and his awesome trombone, too." - Johan Halmén

Micheal Muniko
Member #10,953
May 2009

BAF: The archive is so big that it this forum can't handle it.
Thobias: The 0.26 source will not be availible but here you
go the new version: http://www.mediafire.com/download.php?qm2mlywjzk2

Source code: http://www.mediafire.com/download.php?jmtyuwim04z

I will destroy you Kariba -- Steel
I will destroy you Steel -- Kariba

LennyLen
Member #5,313
December 2004
avatar

a) This still isn't a game, it's an intro.

b) Why the fuck does it say "LennyLen and mickey86 present..?" Please remove my name from it immediately.

c) Your code still fails to compile:

Build started on: 16-05-2009 at 19:43.13
Build ended on: 16-05-2009 at 19:43.14

-------------- Build: Debug in shaw ---------------
mingw32-gcc.exe -Wall -g -c "C:\Users\LennyLen\Documents\source code\shaw\debug.c" -o obj\Debug\debug.o
C:\Users\LennyLen\Documents\source code\shaw\debug.c:5: warning: return type defaults to `int'
mingw32-gcc.exe -Wall -g -c "C:\Users\LennyLen\Documents\source code\shaw\main.c" -o obj\Debug\main.o
In file included from C:\Users\LennyLen\Documents\source code\shaw\main.c:1:
C:\Users\LennyLen\Documents\source code\shaw\shaw.h:8:13: warning: no newline at end of file
In file included from C:\Users\LennyLen\Documents\source code\shaw\main.c:2:
C:\Users\LennyLen\Documents\source code\shaw\sound.h:6:24: warning: no newline at end of file
C:\Users\LennyLen\Documents\source code\shaw\main.c:12: warning: return type defaults to `int'
C:\Users\LennyLen\Documents\source code\shaw\main.c: In function `Quit':
C:\Users\LennyLen\Documents\source code\shaw\main.c:17: warning: control reaches end of non-void function
C:\Users\LennyLen\Documents\source code\shaw\main.c: At top level:
C:\Users\LennyLen\Documents\source code\shaw\main.c:29: warning: return type defaults to `int'
C:\Users\LennyLen\Documents\source code\shaw\main.c: In function `Shaw_Loop':
C:\Users\LennyLen\Documents\source code\shaw\main.c:32: warning: implicit declaration of function `loadimage'
C:\Users\LennyLen\Documents\source code\shaw\main.c:33: warning: implicit declaration of function `DrawScreen'
C:\Users\LennyLen\Documents\source code\shaw\main.c:36: warning: implicit declaration of function `StartMIDI'
C:\Users\LennyLen\Documents\source code\shaw\main.c:40: warning: implicit declaration of function `Fatal_Error'
C:\Users\LennyLen\Documents\source code\shaw\main.c:43: warning: implicit declaration of function `DrawScreenDirect'
C:\Users\LennyLen\Documents\source code\shaw\main.c:54: warning: implicit declaration of function `StartWAV'
C:\Users\LennyLen\Documents\source code\shaw\main.c:73: warning: implicit declaration of function `TVRoomCinematic'
C:\Users\LennyLen\Documents\source code\shaw\main.c:123: warning: control reaches end of non-void function
C:\Users\LennyLen\Documents\source code\shaw\main.c: At top level:
C:\Users\LennyLen\Documents\source code\shaw\main.c:126: warning: return type defaults to `int'
C:\Users\LennyLen\Documents\source code\shaw\main.c: In function `Shaw_Main':
C:\Users\LennyLen\Documents\source code\shaw\main.c:129: warning: implicit declaration of function `clrscr'
C:\Users\LennyLen\Documents\source code\shaw\main.c:141: warning: implicit declaration of function `CheckParamanter'
C:\Users\LennyLen\Documents\source code\shaw\main.c:183: error: `GFX_MODEX' undeclared (first use in this function)
C:\Users\LennyLen\Documents\source code\shaw\main.c:183: error: (Each undeclared identifier is reported only once
C:\Users\LennyLen\Documents\source code\shaw\main.c:183: error: for each function it appears in.)
C:\Users\LennyLen\Documents\source code\shaw\main.c:188: error: `GFX_VESA1' undeclared (first use in this function)
C:\Users\LennyLen\Documents\source code\shaw\main.c:194: error: `GFX_VESA2B' undeclared (first use in this function)
C:\Users\LennyLen\Documents\source code\shaw\main.c:200: error: `GFX_VESA2L' undeclared (first use in this function)
C:\Users\LennyLen\Documents\source code\shaw\main.c:206: error: `GFX_VESA3' undeclared (first use in this function)
C:\Users\LennyLen\Documents\source code\shaw\main.c:212: error: `GFX_VGA' undeclared (first use in this function)
C:\Users\LennyLen\Documents\source code\shaw\main.c:214: warning: implicit declaration of function `SetupGraphics'
Process terminated with status 1 (0 minutes, 0 seconds)
8 errors, 18 warnings

<edit>

This isn't even valid C:

#SelectExpand
1// To save disk space we only need these cards. 2BEGIN_GFX_DRIVER_LIST 3 GFX_DRIVER_VGA 4 GFX_DRIVER_MODEX 5 GFX_DRIVER_VESA3 6 GFX_DRIVER_VESA2L 7 GFX_DRIVER_VESA2B 8 GFX_DRIVER_VESA1 9END_GFX_DRIVER_LIST 10 11BEGIN_DIGI_DRIVER_LIST 12 DIGI_DRIVER_SB 13END_DIGI_DRIVER_LIST 14 15BEGIN_MIDI_DRIVER_LIST 16 MIDI_DRIVER_MPU 17 MIDI_DRIVER_ADLIB 18 MIDI_DRIVER_SB_OUT 19END_MIDI_DRIVER_LIST

</edit>

d)

BAF: The archive is so big that it this forum can't handle it.

The forum can handle attachments of up to 10Mb.

Micheal Muniko
Member #10,953
May 2009

You haven't read the docs (Bits required in ShawDoc.htm) are you?

I will destroy you Kariba -- Steel
I will destroy you Steel -- Kariba

LennyLen
Member #5,313
December 2004
avatar

You haven't read the docs (Bits required in ShawDoc.htm) are you?

What does "The executable should be for MSDOS or any other DOS operating systems. The executable should be up to 768KB. We could try UPX or DJP." have to do with anything? The code you gave in your source won't compile under DJGPP either.

Thomas Fjellstrom
Member #476
June 2000
avatar

LennyLen said:

This isn't even valid C:

Its allegro stuff to select the individual drivers you want to include.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

Micheal Muniko
Member #10,953
May 2009

LennyLen: What error do they show, and which version are using?
Thomas: Right.

I will destroy you Kariba -- Steel
I will destroy you Steel -- Kariba

LennyLen
Member #5,313
December 2004
avatar

I posted the errors above, but here they are again (this is with the latest code you posted):

C:\Users\LennyLen\Documents\source code\shaw\main.c: In function `Shaw_Main':

C:\Users\LennyLen\Documents\source code\shaw\main.c:183: error: `GFX_MODEX' undeclared (first use in this function)
C:\Users\LennyLen\Documents\source code\shaw\main.c:183: error: (Each undeclared identifier is reported only once
C:\Users\LennyLen\Documents\source code\shaw\main.c:183: error: for each function it appears in.)
C:\Users\LennyLen\Documents\source code\shaw\main.c:188: error: `GFX_VESA1' undeclared (first use in this function)
C:\Users\LennyLen\Documents\source code\shaw\main.c:194: error: `GFX_VESA2B' undeclared (first use in this function)
C:\Users\LennyLen\Documents\source code\shaw\main.c:200: error: `GFX_VESA2L' undeclared (first use in this function)
C:\Users\LennyLen\Documents\source code\shaw\main.c:206: error: `GFX_VESA3' undeclared (first use in this function)
C:\Users\LennyLen\Documents\source code\shaw\main.c:212: error: `GFX_VGA' undeclared (first use in this function)

Micheal Muniko
Member #10,953
May 2009

What version of Allegro are you using. I'm using 4.2.2, normal version.

I will destroy you Kariba -- Steel
I will destroy you Steel -- Kariba

LennyLen
Member #5,313
December 2004
avatar

I'm also using 4.2.2

Micheal Muniko
Member #10,953
May 2009

Maybe it's your problem, maybe you're using SVN version of something. It's something I can't fix without reproduction. ::)
BTW: I need programmers, artists, mappers. ;)

Edit: Updated the change log.

I will destroy you Kariba -- Steel
I will destroy you Steel -- Kariba

CursedTyrant
Member #7,080
April 2006
avatar

Quote:

Changelog for Shaw's Nightmare or (SHAW3D as I will abbriviate here)

Before reading this please read this note:

The challenges of making a game are a lot hard! If you
feel this project to continue please partcipate to reduction
of challenges to easier.

And it goes on.

Do you really think that, after reading the above, anyone would even think about programming for you? :P Not to mention, that without a working engine nobody will anyway, but poor (more like hopeless) English does not help. If you're going to make a game, at least make sure that people can understand what it's saying ::)

Also, nobody's gonna code a game for MS-DOS. You're like, 10 years too late for that.

---------
Signature.
----
[My Website] | [My YouTube Channel]

 1   2   3   4 


Go to: