Black Shades Source Code

Anything related to Wolfire Games and/or its products
User avatar
Renegade_Turner
Gramps
Posts: 6942
Joined: Tue Sep 27, 2005 11:59 am

Post by Renegade_Turner » Sun Jul 01, 2007 4:33 pm

And he still doesn't get it because he's still doing it...

User avatar
Colicedus
forom-muppat-yoda
Posts: 2592
Joined: Thu Aug 10, 2006 4:57 am
Location: Where ever your mind takes you

Post by Colicedus » Sun Jul 01, 2007 9:24 pm

BSAU479, Please! For the love of what ever Deity you hold dear, put a sock in it! :roll:

User avatar
Makrond
Posts: 498
Joined: Mon Jun 25, 2007 11:34 pm

Post by Makrond » Mon Jul 02, 2007 3:43 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.

:lol:

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

Image

User avatar
NickD
Charlotte Brontë
Posts: 892
Joined: Fri Sep 15, 2006 10:33 pm
Location: Berkeley, California
Contact:

Post by NickD » Mon Jul 02, 2007 4:24 am

What? What about mana? Dost thou even know what mana is??

User avatar
Renegade_Turner
Gramps
Posts: 6942
Joined: Tue Sep 27, 2005 11:59 am

Post by Renegade_Turner » Mon Jul 02, 2007 2:44 pm

Makrond, that was not funny.

At all.

Ultimatum479
Meh. Inadequate.
Posts: 857
Joined: Sun Oct 02, 2005 11:05 pm
Contact:

Post by Ultimatum479 » Mon Jul 02, 2007 6:32 pm

Aww, poor Ren has a soft spot for retarded people. Sorta like Usagi's hatred of violence against children. Exploitable weaknesses ftw!

User avatar
Renegade_Turner
Gramps
Posts: 6942
Joined: Tue Sep 27, 2005 11:59 am

Post by Renegade_Turner » Mon Jul 02, 2007 6:39 pm

Did I say I had a soft spot for retarded people? And anyway, is it funny to make fun of retarded people?

Hey, you have no friends. Let's laugh at you! :lol: :lol: :lol:

David
Project Leader
Posts: 1995
Joined: Wed Nov 19, 2003 10:45 pm
Contact:

Post by David » Mon Jul 02, 2007 7:18 pm

Should I just merge your accounts? All you post about is each other. Maybe I should make a new private forum just for the two of you.

User avatar
Makrond
Posts: 498
Joined: Mon Jun 25, 2007 11:34 pm

Post by Makrond » Mon Jul 02, 2007 8:28 pm

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. :lol:

eriador
Posts: 4
Joined: Mon Oct 22, 2007 8:43 pm

Post by eriador » Mon Oct 22, 2007 8:46 pm

Okay, I hate to break this up when y'all are having so much fun, but I actually would like to get my hands on the source code. I managed to get the Linux code, but I was wondering if anybody knows where I can find the OS X version.

Thanks!

User avatar
rudel_ic
official Wolfire heckler
Posts: 2193
Joined: Sun Aug 28, 2005 11:19 pm
Location: Hamburg City
Contact:

Post by rudel_ic » Mon Oct 22, 2007 9:25 pm

The code from icculus.org should compile on quite a lot of platforms as long as you've got SDL and OpenAL, at least as far as I know.

eriador
Posts: 4
Joined: Mon Oct 22, 2007 8:43 pm

Post by eriador » Mon Oct 22, 2007 10:56 pm

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?

User avatar
rudel_ic
official Wolfire heckler
Posts: 2193
Joined: Sun Aug 28, 2005 11:19 pm
Location: Hamburg City
Contact:

Post by rudel_ic » Mon Oct 22, 2007 11:59 pm

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]

eriador
Posts: 4
Joined: Mon Oct 22, 2007 8:43 pm

Post by eriador » Tue Oct 23, 2007 10:44 am

Okay, I'll run you through what I did:

1) I checked out the source using SVN

Code: Select all

>svn co svn://svn.icculus.org/blackshades/trunk/ blackshades 
2) Switch into the source directory

Code: Select all

>cd blackshades/
3)

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 1
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:

Code: 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 1
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!

User avatar
rudel_ic
official Wolfire heckler
Posts: 2193
Joined: Sun Aug 28, 2005 11:19 pm
Location: Hamburg City
Contact:

Post by rudel_ic » Tue Oct 23, 2007 3:43 pm

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.

Post Reply