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 - Dalius

Pages: [1]
1
General / [1.6 / Xcode 4.1] Weird loading resources issue
« on: July 24, 2011, 03:25:20 am »
Quote from: "Ceylo"
With SFML 1.6 the paths are always relative to the Resources folder in your bundle application. It doesn't change if you launch your app from Xcode or the Finder.


I am using SFML 1.6 and this was the problem. I guess I was not aware of how .app files loaded its resources. D'oh! Thank you very much for suggesting that, my problem has been solved. Now to compile Windows and Linux binaries...  :D

2
General / [1.6 / Xcode 4.1] Weird loading resources issue
« on: July 24, 2011, 01:22:11 am »
Hi all!

I just finished my first game (Pong) written using SFML 1.6 C++ and Xcode 4.1. It currently uses one font (.ttf) and two audio files (.wav). Everything works perfectly when I run the game from within Xcode using the 'Run' command.

However, when I run the .app file from outside of Xcode, the fonts and sounds are not loading! The title screen which uses the font is completely blank, although it technically works (and by works I mean it doesn't crash and is still polling for user input). The game screen (using the audio files) plays normal as well, just without the sound.

The resource files are in the same folder as the .app file so I am not sure what I am doing wrong. Any help would be appreciated!  :D

Pages: [1]
anything