Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - lzr

Pages: [1] 2 3 4
1
SFML projects / Ovid the Owl - Freeware Game
« on: January 23, 2009, 09:59:22 am »
With Ceylo's mac port of sfml, the mac port of Ovid the Owl is now finished. Just a word of caution to everyone who is making a cross-platform game for the first time: Make all your file reading/writing endian independent. This will save you from a whole lot of pain afterwards, believe me.

2
Audio / Can't Get Audio To Work in Mac OS
« on: January 22, 2009, 01:09:30 am »
This is a simplified version of the music code that doesn't work:

Code: [Select]

#include <iostream>
#include <SFML/Audio.hpp>
using namespace std;

int main (int argc, char * const argv[]) {
sf::Music Music;
Music.OpenFromFile("music.ogg");
Music.Play();

cout<<"Playing song, press enter to exit";
cin.ignore(10000, '\n');

return 0;
}


And here is the code that works:
Code: [Select]

#include <iostream>
#include <SFML/Audio.hpp>
using namespace std;

int main (int argc, char * const argv[]) {
sf::SoundBuffer buffer;
sf::Music Music;
Music.OpenFromFile("music.ogg");
Music.Play();

cout<<"Playing song, press enter to exit";
cin.ignore(10000, '\n');

return 0;
}

3
Audio / Can't Get Audio To Work in Mac OS
« on: January 21, 2009, 07:50:50 am »
I think I figured it out. For some reason, SFML crashes if create an sf::Music without creating an sf::SoundBuffer first. The reason why the sample didn't work was because for some reason, I had commented out the PlaySound function, so all it did was play music. Does this bug occur for others, or is it just me?

4
Audio / Can't Get Audio To Work in Mac OS
« on: January 13, 2009, 07:10:35 am »
I have Mac OS X version 10.4.11 and gcc version 4.0.1 (Apple Computer, Inc. build 5370) and Xcode version 2.5.

5
Audio / Can't Get Audio To Work in Mac OS
« on: January 11, 2009, 03:55:21 am »
Sorry I keep posting these questions, but I'm trying to port a game to mac and I keep running into snags, and since I know virtually nothing about the platform, these snags are quite difficult to overcome. Thanks for promptly responding to all of my questions so far, Ceylo.

So my new problem is with sfml-audio. I can succesfully run the sample programs that are precompiled, but when I compile them myself, they no longer work. I can get them to compile, but they always crash at runtime. The place they crash is when alSourcei is called in the constructor of sf::Sound (Sound.cpp, line 41). I get the same crash in my own programs. What could be the problem?

Thanks

6
General / Paths and OS X
« on: January 10, 2009, 05:11:06 am »
I'm still fairly new to Mac programming, and I can't seem to figure this one out. When I load an image in a local directory, using something like Image.LoadFromFile("image.png"), the program can load the image when I run it from within Xcode, but when I try running the program outside of Xcode, it no longer finds the local files.

Also, is there some way to find the directory of the Bundle Resources folder in the code? If I hard code it in, than that means if the user changes the program name, the program will no longer work.

7
General discussions / SFML 1.3 and OS X
« on: January 07, 2009, 08:54:52 am »
Is there any way to decrease the file size? 15.3 MB seems a little large...

EDIT:

Also, is it possible to compile as a universal binary on a PowerPC mac? I tried adding in intel to the frameworks both on the SFML compile and my program compile. The SFML compiled fine but compiling the template with PowerPC and Intel enabled gives me a long and cryptic linking error.

Also, Thanks a lot for the port and the tutorial, which was very helpful and easy to follow.

8
General discussions / SFML 1.4
« on: January 05, 2009, 11:22:21 pm »
I'm mostly excited for the Xcode tutorials. I've wanted to port my game to Mac OS X for a long time, but I don't even know where to begin on Mac development.

9
General discussions / SFML 1.3 and OS X
« on: December 30, 2008, 08:31:37 am »
Thanks Ceylo, I finally got it to work. After updating Xcode, I moved the OpenAL framework that was in /Library/Frameworks to a temp folder and SFML compiled. Do I need that OpenAL framework, or can I get rid of it? I'm not that familiar with Mac development.

10
General discussions / SFML 1.3 and OS X
« on: December 28, 2008, 02:10:04 am »
I wanted to try out the SVN, but I had some trouble getting the library to compile. All the packages were fine except for sfml-audio and sfml-graphics.

Here are the errors I get for sfml-audio:
Code: [Select]

/sfml/build/xcode/../../src/SFML/Audio/AudioDevice.cpp:159: error: invalid conversion from 'const char*' to 'ALubyte*'
/sfml/build/xcode/../../src/SFML/Audio/AudioDevice.cpp:159: error:   initializing argument 1 of 'ALenum alGetEnumValue(ALubyte*)'
/sfml/build/xcode/../../src/SFML/Audio/AudioDevice.cpp:160: error: invalid conversion from 'const char*' to 'ALubyte*'
/sfml/build/xcode/../../src/SFML/Audio/AudioDevice.cpp:160: error:   initializing argument 1 of 'ALenum alGetEnumValue(ALubyte*)'
/sfml/build/xcode/../../src/SFML/Audio/AudioDevice.cpp:161: error: invalid conversion from 'const char*' to 'ALubyte*'
/sfml/build/xcode/../../src/SFML/Audio/AudioDevice.cpp:161: error:   initializing argument 1 of 'ALenum alGetEnumValue(ALubyte*)'
/sfml/build/xcode/../../src/SFML/Audio/AudioDevice.cpp:162: error: invalid conversion from 'const char*' to 'ALubyte*'
/sfml/build/xcode/../../src/SFML/Audio/AudioDevice.cpp:162: error:   initializing argument 1 of 'ALenum alGetEnumValue(ALubyte*)'


And here are the sfml-graphics errors:
Code: [Select]

ld: table of contents for archive: /Users/leeranraphaely/sfml/build/xcode/../../extlibs/libs-xcode/libfreetype.a is out of date; rerun ranlib(1) (can't load from it)
/usr/bin/libtool: internal link edit command failed


I'm using a PowerPC G5 mac with OS X version 10.4.11 and Xcode version 2.2, if that helps.

11
General discussions / SFML 1.3 and OS X
« on: December 18, 2008, 03:56:24 am »
Are the tutorials done yet? Any chance I could get a sneak peak?  :D

12
General discussions / SFML 1.4
« on: December 09, 2008, 08:43:26 am »
I've been watching this thread with so much anticipation since it was started. One of the reasons I rewrote OTO for SFML was for the potential cross-platformability. What's the current estimated release date for 1.4? Sorry, I'm just a little curious/excited about this version.

-Leeran Z. Raphaely

13
General discussions / SFML 1.4
« on: December 03, 2008, 04:16:40 am »
Have you added a way to load subsets of images yet?

14
SFML projects / Ovid the Owl - Freeware Game
« on: September 21, 2008, 11:49:17 am »
Cool, glad to hear you liked it. I know that puzzle is a bit hard, but some people actually do get it immediately, while others just don't see it coming. I might add some sort of extra dialog clue if I ever do Ovid 1.6, which is unlikely to happen.

I probably won't get started on Act II until next summer because I'm extremely busy this school year. Things I plan on including once I get around to it are running, along with a more fluid movement system, a camera that zooms out in some places, voice acting (possibly), cooler level design that feels a little less constrained, slightly (not much) more epic story, and whatever else I plan on sticking in there.

15
SFML projects / Ovid the Owl - Freeware Game
« on: September 10, 2008, 02:39:51 am »
Quote from: "dewyatt"
Quote from: "lzr"
*SPOILER*
The clue is in the word WORRY. Specifically the letters W.O.R.R.Y.
*\SPOILER*

 :? I tried again but still can't figure it out. I do see the word but I have no idea on what to do...this is hard!


ANOTHER SPOILER ALERT
Set the rows to be White Orange Red Red Yellow. Worry.
\SPOILER

Pages: [1] 2 3 4
anything