Black Shades Source Code
-
Renegade_Turner
- Gramps
- Posts: 6942
- Joined: Tue Sep 27, 2005 11:59 am
Yeah, the third time was way too much, but I did it just for the hell of it, as having one instance of that card in all three sections of the Wolfire forums just seemed... fun.
But boredom is the most seductive of all - it beats truth, beauty, and convenience. As well as red hair, no hair, fame, innocence and a picture of you.

Finally, since I have an excess of mana, I'll play my trump card.

But boredom is the most seductive of all - it beats truth, beauty, and convenience. As well as red hair, no hair, fame, innocence and a picture of you.
Finally, since I have an excess of mana, I'll play my trump card.

-
Renegade_Turner
- Gramps
- Posts: 6942
- Joined: Tue Sep 27, 2005 11:59 am
-
Ultimatum479
- Meh. Inadequate.
- Posts: 857
- Joined: Sun Oct 02, 2005 11:05 pm
- Contact:
-
Renegade_Turner
- Gramps
- Posts: 6942
- Joined: Tue Sep 27, 2005 11:59 am
Hey, I am retarded. No, seriously, I have the disability pension to prove it.
Just because someone is labeled as deficient doesn't mean they can't be successful, or an asshole, or a multitude of other things.
SO SHUT IT!
EDIT: Oh, and I wouldn't have a damn clue how to play Magic, I just like the pretty pictures on the cards.
Just because someone is labeled as deficient doesn't mean they can't be successful, or an asshole, or a multitude of other things.
SO SHUT IT!
EDIT: Oh, and I wouldn't have a damn clue how to play Magic, I just like the pretty pictures on the cards.
I haven't been able to get it to compile, even with the latest frameworks. It seems to me, from reading the readme that comes with the OS X version that it took some work to get it running cleanly. Does anybody have some ideas what I'm doing wrong, and if not, how can I get in touch with Derek Arndt, the guy who did the OS X port?
-
rudel_ic
- official Wolfire heckler
- Posts: 2193
- Joined: Sun Aug 28, 2005 11:19 pm
- Location: Hamburg City
- Contact:
Well, how are you attempting to compile it and what are the resulting compiling errors?
The most recent Makefile update (indicating a compiling version) in the trunk is 4 months ago, so you should be good with the most recent stable SDL, OpenAL and OggVorbis libraries.
Considering Derek from Battery Acid Games (I think that's the guy you're speaking of), you can mail him: [email protected]
The most recent Makefile update (indicating a compiling version) in the trunk is 4 months ago, so you should be good with the most recent stable SDL, OpenAL and OggVorbis libraries.
Considering Derek from Battery Acid Games (I think that's the guy you're speaking of), you can mail him: [email protected]
Okay, I'll run you through what I did:
1) I checked out the source using SVN
2) Switch into the source directory
3)
4) That's no good, so I looked at the second makefile included in the code i checked out (Makefile.zakk). It seemed to have the OS X include paths right, so:
It looks as if there are some improper types defined, but I have no idea what headers might be missing. I downloaded the latest SDL to replace the framework in /System/Library/Frameworks/ and tried to do the same with OpenAL, but the link on the Creative site is down. However, I have 1.2, which comes bundled in Tiger and should be up-to-date. From my reading, Ogg Vorbis in OS X is done through OpenAL, so I should be up to date. I have no idea what's going on 
Thanks for the help!
1) I checked out the source using SVN
Code: Select all
>svn co svn://svn.icculus.org/blackshades/trunk/ blackshades Code: Select all
>cd blackshades/Code: Select all
>make
make bindir
mkdir -p ./objs
g++ -c -o objs/Camera.o Source/Camera.cpp -O2 -Wall -g -I/usr/local/include/SDL -D_THREAD_SAFE -I./Source -include Source/Support.h
In file included from <command line>:1:
./Source/Support.h:7:19: error: AL/al.h: No such file or directory
./Source/Support.h:8:21: error: AL/alut.h: No such file or directory
In file included from Source/Camera.cpp:2:
Source/Camera.h:9:19: error: GL/gl.h: No such file or directory
./Source/Support.h:51: error: 'ALenum' has not been declared
./Source/Support.h:52: error: 'ALsizei' has not been declared
./Source/Support.h:53: error: variable or field 'FreeOGG' declared void
./Source/Support.h:53: error: 'ALenum' was not declared in this scope
./Source/Support.h:53: error: expected primary-expression before 'void'
./Source/Support.h:53: error: expected primary-expression before 'unsigned'
./Source/Support.h:54: error: 'ALsizei' was not declared in this scope
./Source/Support.h:54: error: initializer expression list treated as compound expression
Source/Camera.cpp: In member function 'void Camera::Apply()':
Source/Camera.cpp:7: error: 'glTranslatef' was not declared in this scope
make: *** [objs/Camera.o] Error 1Code: Select all
>cp Makefile Makefile.old
>cp Makefile.zakk Makefile
>make
gcc -c -o objs/Camera.o Source/Camera.cpp -g -I/usr/local/include/SDL -D_THREAD_SAFE -I/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/Headers -I/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers -I/System/Library/Frameworks/GLUT.framework/Versions/A/Headers -I/System/Library/Frameworks/DrawSprocket.framework/Versions/A/Headers -I/Developer/Headers/FlatCarbon -I/System/Library/Frameworks/AGL.framework/Versions/A/Headers -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/sw/include -I/sw/include/AL -I/usr/X11R6/include -D POOLOOPS -I./Source
gcc -c -o objs/Decals.o Source/Decals.cpp -g -I/usr/local/include/SDL -D_THREAD_SAFE -I/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/Headers -I/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers -I/System/Library/Frameworks/GLUT.framework/Versions/A/Headers -I/System/Library/Frameworks/DrawSprocket.framework/Versions/A/Headers -I/Developer/Headers/FlatCarbon -I/System/Library/Frameworks/AGL.framework/Versions/A/Headers -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/sw/include -I/sw/include/AL -I/usr/X11R6/include -D POOLOOPS -I./Source
Source/MacInput.h:97: error: 'Boolean' does not name a type
Source/MacInput.h:99: error: 'Point' has not been declared
Source/MacInput.h:100: error: variable or field 'RefreshMouse' declared void
Source/MacInput.h:100: error: 'Point' was not declared in this scope
Source/MacInput.h:100: error: 'mouseloc' was not declared in this scope
Source/Files.h:86: error: 'Str255' has not been declared
Source/Files.h:99: error: 'Str255' has not been declared
Source/Files.h:101: error: 'Str255' has not been declared
Source/Files.h:102: error: 'Str255' has not been declared
Source/Models.h:50: error: 'Str255' has not been declared
make: *** [objs/Decals.o] Error 1Thanks for the help!
-
rudel_ic
- official Wolfire heckler
- Posts: 2193
- Joined: Sun Aug 28, 2005 11:19 pm
- Location: Hamburg City
- Contact:
There's some sort of problem that actually needs a fix and/or the proper headers, it seems.
I'd say the SDL version doesn't match.. But you probably won't get it working by just going after some version.
I can't help you here, sorry, without a Mac to compile stuff, there's no point in trying to analyze and eventually fix the code. And icculus' bugzilla doesn't care bout blackshades. Try contacting zakk and bug him, I'd say. Or someone else who actually has some insight into this sort of machinery, operating system and library collection combo.
Try [email protected] - put in a meaningful subject so your mail doesn't get smorfed - get straight to the point - pray.
He may not care though, he's on other projects as far as I know. blackshades has a pretty low priority over there as well (doesn't surprise me, to be honest, compared to the other stuff they're doing, sorry).
Edit: Oh, by the way, the proper site for OpenAL is http://www.openal.org/
I guess it won't help you compiling though.
I'd say the SDL version doesn't match.. But you probably won't get it working by just going after some version.
I can't help you here, sorry, without a Mac to compile stuff, there's no point in trying to analyze and eventually fix the code. And icculus' bugzilla doesn't care bout blackshades. Try contacting zakk and bug him, I'd say. Or someone else who actually has some insight into this sort of machinery, operating system and library collection combo.
Try [email protected] - put in a meaningful subject so your mail doesn't get smorfed - get straight to the point - pray.
He may not care though, he's on other projects as far as I know. blackshades has a pretty low priority over there as well (doesn't surprise me, to be honest, compared to the other stuff they're doing, sorry).
Edit: Oh, by the way, the proper site for OpenAL is http://www.openal.org/
I guess it won't help you compiling though.