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
Micheal Muniko
Member #10,953
May 2009

I'm developing a new game of Shaw's Nightmare, I need:
Programmers
Play-testers
Artists

Download the alpha here: http://www.sendspace.com/file/58aoma And the source code is private, only useful to programmers, if you request I will email you a copy of it. It is 100% C straight code.

I've got a question is it possible not to hardcode the offsets in the game executables when using datafiles?

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

CursedTyrant
Member #7,080
April 2006
avatar

To sign-up download this:

As if that's going to happen ::)

Quote:

And the source code is private, only useful to programmers

In case you haven't noticed, it's a programming board :P

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

Micheal Muniko
Member #10,953
May 2009

Huh, this is a project based on Allegro. Anyways, feedback?

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

LennyLen
Member #5,313
December 2004
avatar

will you play-test it.

Ok.

Quote:

But you must be a member of Miliclan.

Not gonna happen.

Quote:

To sign-up download this: http://www.sendspace.com/file/r32xcn

Very definitely not gonna happen.

Quote:

Download the alpha here: http://www.sendspace.com/file/58aoma

Tried it, but it wouldn't run. Then I noticed it was a MS-DOS executable. Is there any good reason why you're targeting an OS that hardly anbody uses any more?

mEmO
Member #1,124
March 2001
avatar

Profile said:

From: Nairobi, Kenya

Hello. I am a Kenyan computer game designer representing the leading software developer in Kenya, and we are about to release a $100 billion MMO, but unfortunately we have had no testers from your region. If you help us out by downloading this installer and trying the game, you just have to enter your credit card information so that we can reward you with $10 000 for you effort.

Thank you for your cooperation.

---------------------------------------------
There is only one God, and Connor is his son!
http://www.memocomputers.com
Happy birthday!

Micheal Muniko
Member #10,953
May 2009

LennyLen: What error does it show? Anyways I wanted to target to MS-DOS because it's API is more easier to learn than Windows\Unix-based.

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

LennyLen
Member #5,313
December 2004
avatar

LennyLen: What error does it show

{"name":"598459","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/c\/6\/c6542551863f971ae708fb472b2ff363.png","w":483,"h":182,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/c\/6\/c6542551863f971ae708fb472b2ff363"}598459

Quote:

Anyways I wanted to target to MS-DOS because it's API is more easier to learn than Windows\Unix-based.

If you're using DJGPP and Allegro, then you're code should work fine with any gcc compiler. Have you attempted to run it with MinGW (the Windows port of gcc) as a console project (not using the Win-32 API).

The only problems you'll run into is if you're using any inline assembly code to do things like interrupts.

Micheal Muniko
Member #10,953
May 2009

This looks like the Windows Vista error when you try to run full-screen DOS applications. Try DOSBox or something. If you have a high-end machine then Virtual PC is best option, and install MS-DOS (or Windows 9x) in there.

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

LennyLen
Member #5,313
December 2004
avatar

Yeah I tried in DOSbox, but it crashed:

{"name":"598460","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/0\/4\/04141a5c5a910c48d0efc2bc422d06f8.png","w":646,"h":426,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/0\/4\/04141a5c5a910c48d0efc2bc422d06f8"}598460

I'd be willing to try to do a Windows port if you send me the source code. But I'm not going to sign up for anything to do so.

Micheal Muniko
Member #10,953
May 2009

Try the "-nosound" option. 8-) Without any quotes of course.

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

LennyLen
Member #5,313
December 2004
avatar

Ok, it runs now. But all I got was a few splash screens (which, extremely annoyingly, can't be skipped), then a screen with some text that I could barely read, and then it ended.

Is it supposed to do more?

This is what the text I could hardly read looked like:

{"name":"598461","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/f\/a\/fad9a9c02517ceebc7c4fd870ec3f37a.png","w":646,"h":426,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/f\/a\/fad9a9c02517ceebc7c4fd870ec3f37a"}598461

Is that how it's supposed to look?

Micheal Muniko
Member #10,953
May 2009

Well, this is just a test to ensure if Allegro works with Shaw's Nightmare.
Give me your e-mail address so I'm able to send you the source code.

The way the text looks, it's a bug.

The text should have read: In Yogus' absence Shaw allowed a stranger to stay on the spaceship. He went to serve him tea, but the TV........

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

LennyLen
Member #5,313
December 2004
avatar

You can send it to lennylen@woosh.co.nz

Micheal Muniko
Member #10,953
May 2009

Will your e-mail hoster accept Yahoo because that's my hoster?

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

LennyLen
Member #5,313
December 2004
avatar

I got the email.

The code compiles ok, but gives a ton of warnings that you should look into:

Build started on: 10-05-2009 at 03:26.54
Build ended on: 10-05-2009 at 03:26.55

-------------- 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:10: 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:13: warning: control reaches end of non-void function
C:\Users\LennyLen\Documents\source code\shaw\main.c: In function `Init_Textures':
C:\Users\LennyLen\Documents\source code\shaw\main.c:20: warning: implicit declaration of function `Fatal_Error'
C:\Users\LennyLen\Documents\source code\shaw\main.c:22: 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:25: 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:28: warning: implicit declaration of function `loadimage'
C:\Users\LennyLen\Documents\source code\shaw\main.c:29: warning: implicit declaration of function `DrawScreen'
C:\Users\LennyLen\Documents\source code\shaw\main.c:30: warning: implicit declaration of function `StartMIDI'
C:\Users\LennyLen\Documents\source code\shaw\main.c:32: warning: implicit declaration of function `StopMIDI'
C:\Users\LennyLen\Documents\source code\shaw\main.c:36: warning: implicit declaration of function `StartWAV'
C:\Users\LennyLen\Documents\source code\shaw\main.c:54: warning: implicit declaration of function `DrawScreenDirect'
C:\Users\LennyLen\Documents\source code\shaw\main.c:61: warning: implicit declaration of function `DestroyWAV'
C:\Users\LennyLen\Documents\source code\shaw\main.c:64: 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:67: 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:76: warning: implicit declaration of function `getch'
C:\Users\LennyLen\Documents\source code\shaw\main.c:79: warning: implicit declaration of function `CheckParamanter'
C:\Users\LennyLen\Documents\source code\shaw\main.c:106: warning: implicit declaration of function `SetupGraphics'
C:\Users\LennyLen\Documents\source code\shaw\main.c:115: warning: control reaches end of non-void function
mingw32-gcc.exe -Wall -g -c "C:\Users\LennyLen\Documents\source code\shaw\shaw.c" -o obj\Debug\shaw.o
In file included from C:\Users\LennyLen\Documents\source code\shaw\shaw.c:1:
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\shaw.c: In function `_mangled_main':
C:\Users\LennyLen\Documents\source code\shaw\shaw.c:9: warning: implicit declaration of function `Shaw_Main'
mingw32-gcc.exe -Wall -g -c "C:\Users\LennyLen\Documents\source code\shaw\sound.c" -o obj\Debug\sound.o
In file included from C:\Users\LennyLen\Documents\source code\shaw\sound.c:1:
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\sound.c:4: warning: return type defaults to `int'
C:\Users\LennyLen\Documents\source code\shaw\sound.c: In function `StartMIDI':
C:\Users\LennyLen\Documents\source code\shaw\sound.c:8: warning: implicit declaration of function `Fatal_Error'
C:\Users\LennyLen\Documents\source code\shaw\sound.c:11: warning: control reaches end of non-void function
C:\Users\LennyLen\Documents\source code\shaw\sound.c: At top level:
C:\Users\LennyLen\Documents\source code\shaw\sound.c:20: warning: return type defaults to `int'
C:\Users\LennyLen\Documents\source code\shaw\sound.c: In function `StartWAV':
C:\Users\LennyLen\Documents\source code\shaw\sound.c:27: warning: control reaches end of non-void function
C:\Users\LennyLen\Documents\source code\shaw\sound.c:32:2: warning: no newline at end of file
mingw32-gcc.exe -Wall -g -c "C:\Users\LennyLen\Documents\source code\shaw\video.c" -o obj\Debug\video.o
In file included from C:\Users\LennyLen\Documents\source code\shaw\video.c:2:
C:\Users\LennyLen\Documents\source code\shaw\shaw.h:8:13: warning: no newline at end of file
C:\Users\LennyLen\Documents\source code\shaw\video.c: In function `SetupGraphics':
C:\Users\LennyLen\Documents\source code\shaw\video.c:11: warning: control reaches end of non-void function
C:\Users\LennyLen\Documents\source code\shaw\video.c: In function `DrawScreen':
C:\Users\LennyLen\Documents\source code\shaw\video.c:17: warning: implicit declaration of function `Fatal_Error'
C:\Users\LennyLen\Documents\source code\shaw\video.c:21: warning: control reaches end of non-void function
C:\Users\LennyLen\Documents\source code\shaw\video.c: In function `DrawScreenDirect':
C:\Users\LennyLen\Documents\source code\shaw\video.c:26: warning: control reaches end of non-void function
C:\Users\LennyLen\Documents\source code\shaw\video.c: At top level:
C:\Users\LennyLen\Documents\source code\shaw\video.c:29: warning: return type defaults to `int'
C:\Users\LennyLen\Documents\source code\shaw\video.c: In function `loadimage':
C:\Users\LennyLen\Documents\source code\shaw\video.c:34: warning: control reaches end of non-void function
C:\Users\LennyLen\Documents\source code\shaw\video.c:34:2: warning: no newline at end of file
mingw32-gcc.exe -Wall -g -c "C:\Users\LennyLen\Documents\source code\shaw\args.c" -o obj\Debug\args.o
C:\Users\LennyLen\Documents\source code\shaw\args.c:7: warning: return type defaults to `int'
C:\Users\LennyLen\Documents\source code\shaw\args.c: In function `CheckParamanter':
C:\Users\LennyLen\Documents\source code\shaw\args.c:12: warning: implicit declaration of function `strcasecmp'
C:\Users\LennyLen\Documents\source code\shaw\args.c:16:2: warning: no newline at end of file
mingw32-g++.exe -o bin\Debug\shaw.exe obj\Debug\debug.o obj\Debug\main.o obj\Debug\shaw.o obj\Debug\sound.o obj\Debug\video.o obj\Debug\args.o -lalld
Output size is 65.26 KB
Process terminated with status 0 (0 minutes, 1 seconds)
0 errors, 41 warnings

The program crashes trying to load your font though, as it's not formatted corecctly.

edit:

The Allegro Manual said:

paletted (8 bit) image file Use color 0 for the transparent portions of the characters and fill the spaces between each letter with color 255.

All your characters are seperated by color 0, not 255.

Micheal Muniko
Member #10,953
May 2009

When it is compiled with DJGPP, I saw no warnings execpt one. I can't really remember what it said.

Shaw's Nightmare was intended to compile with DJGPP \ run with MSDOS

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

count
Member #5,401
January 2005

If there were no warnings then:
a) the warning level of your compiler wasn't set high enough
b) the compiler sucks

I guess it was a) though :)
You should always set the warning level as high as possible and fix al those warnings. The people who invented this warnings did so for a reason. It will result in better and stabler code.

Micheal Muniko
Member #10,953
May 2009

Why don't you want to sign up LenneyLen?

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

LennyLen
Member #5,313
December 2004
avatar

Shaw's Nightmare was intended to compile with DJGPP \ run with MSDOS

There is absolutely no MS-DOS specific code in your project, and DJGPP is just the DOS port of the gcc compiler. I'm using MinGW, which is the Windows port of the gcc compiler. In other words, we're using the same compiler. So if you're not getting warnings, it's because you have the warnings turned off.

And is Christopher said, the warnings are there for a rerason, and should not be ignored.

Why don't you want to sign up LenneyLen?

Because joining somebody else's game project doesn't interest me. I'm happy to give bits of advice, but I don't want to be part of a team. And if I was going to joina team, it would be one where the game design was very well planned out, and roles had been carefully assigned. That doesn't seem to be the case here.

Micheal Muniko
Member #10,953
May 2009

Christopher Bludau said:
"If there were no warnings then:
a) the warning level of your compiler wasn't set high enough
b) the compiler sucks

I guess it was a) though
You should always set the warning level as high as possible and fix al those warnings. The people who invented this warnings did so for a reason. It will result in better and stabler code."

I've to do unessesary work to avoid these warnings.
LennyLen: How's coding going?

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

amber
Member #6,783
January 2006
avatar

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

It'll become necessary work once something the compiler warns you about makes the program crash. Except you won't see it if you have them turned off. :P

count
Member #5,401
January 2005

I've to do unessesary work to avoid these warnings

If it were unnecessary then the compiler wouldn't warn you...

And with that attitude I don't think you will get people to join your team.
I wouldn't like to join a team in which warnings are ignored because fixing them seems to be "unnecessary work".
And I guess others feel the same.

someone972
Member #7,719
August 2006
avatar

I'd say if you want this too eventually be run by "normal" people (those who don't know about programming, DosBox etc) that you switch over to mingw as suggested before.

I've got a question is it possible not to hardcode the offsets in the game executables when using datafiles?

In a word: yes. (Assuming you mean the header created as the hardcoded part)

______________________________________
As long as it remains classified how long it took me to make I'll be deemed a computer game genius. - William Labbett
Theory is when you know something, but it doesn't work. Practice is when something works, but you don't know why. Programmers combine theory and practice: Nothing works and they don't know why. -Unknown
I have recklessly set in motion a chain of events with the potential to so-drastically change the path of my life that I can only find it to be beautifully frightening.

LennyLen
Member #5,313
December 2004
avatar

LennyLen: How's coding going?

I'm not coding anything. I was only offering to compile a native Windows version of the code so that people wouldn't have to go through the hassle of running a DOS executable.

I've attached the .exe, but as I said already, it's going to crash the moment it tries to load your font. I also don't see how you can even call this an alpha release of your game, as there isn't any game. Just title screens.

I wouldn't like to join a team in which warnings are ignored because fixing them seems to be "unnecessary work".
And I guess others feel the same.

Yup.

someone972
Member #7,719
August 2006
avatar

Be careful not to take the feedback here the wrong way ;). 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.

______________________________________
As long as it remains classified how long it took me to make I'll be deemed a computer game genius. - William Labbett
Theory is when you know something, but it doesn't work. Practice is when something works, but you don't know why. Programmers combine theory and practice: Nothing works and they don't know why. -Unknown
I have recklessly set in motion a chain of events with the potential to so-drastically change the path of my life that I can only find it to be beautifully frightening.

 1   2   3   4 


Go to: