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

Pages: 1 ... 3 4 [5] 6
61
SFML projects / Air Forte - SFML game released on Steam
« on: September 30, 2010, 09:55:06 am »
Hi all, thought I'd drop a note announcing my game Air Forte was released on Steam today.  The game is about piloting airplanes through arenas involving geography, math, and vocabulary.

Air Forte is written with the C# binding of SFML, and uses the Mono framework in lieu of the .net framework.  The Mono files are included in the distribution, so the game is a stand-alone package. The game is available for both PC and Mac.

The SFML library is quite pleasant to work with. I'm using it again for my next project and it's working very well - big thanks to Laurent and crew.

Game info/videos:
http://blendogames.com/airforte

Steam page:
http://store.steampowered.com/app/55020

   

62
DotNet / Binding for DotNet in Linux (Mono)?
« on: September 02, 2010, 08:06:41 am »
SFML works well with Mono. I grabbed the dotnet bindings and recompiled them on my Linux box.

And if you include some specific mono libraries, you can make your program a stand-alone app. If you'd like an example, a game I recently made uses SFML/Mono: http://blendogames.com/airforte/

63
SFML projects / Educational indie game: "Air Forte"
« on: July 02, 2010, 10:04:06 pm »
I grabbed the latest SVN source a couple weeks ago and the sprite issue still seemed to be there.  But at this point, I'm primarily aiming to stabilize the build and ship it, so I'm quite okay with v1.5

64
SFML projects / Educational indie game: "Air Forte"
« on: July 02, 2010, 09:11:03 pm »
That's true, and v1.6 certainly does fix a lot of v1.5's bugs.  But the v1.6 sprite shifting bug made my game practically unplayable.

65
SFML projects / Educational indie game: "Air Forte"
« on: July 02, 2010, 08:52:12 pm »
Great! I'm so glad to hear the osx build is working now. Thanks for the help, Ceylo.

I reverted to v1.5 because the v1.6 graphics library has a bug where scaling a sprite affects the sprite position:
http://www.sfml-dev.org/forum/viewtopic.php?p=15652
http://www.sfml-dev.org/forum/viewtopic.php?t=2409

I attempted to mix and match the v1.6 and v1.5 libraries together, but apparently that doesn't really work.

66
SFML projects / Educational indie game: "Air Forte"
« on: July 02, 2010, 06:04:23 pm »
@Ceylo - It's showing something on the screen? That's promising!  Can you please give this new build a try - http://www.blendogames.com/dev/AirForteDemo_ub2.dmg

I was mixing some 1.6 and 1.5 sfml libraries together and I think that might have been causing some issues. I've reverted everything back to 1.5.

If it still crashes out, can you please run Console (applications > utilities > console), run the game again and send me the Console output?  There should be some good debug info in there.

@K-Bal - Ah, I understand now. Thanks for the explanation.  I'll hunt down the 32 and 64-bit libraries and package them in.

67
SFML projects / Educational indie game: "Air Forte"
« on: July 02, 2010, 12:38:43 am »
@Ceylo - Thanks for the log output.  I mistakenly packaged the powerpc files instead of the universal binaries - hopefully it'll work now.  Can you try this new build? http://www.blendogames.com/dev/airfortedemo_ub1.dmg

@K-Bal - Sorry, I don't understand - do you need the 32-bit or 64-bit executable? I believe I packaged in the 32-bit executable, which I thought would work on both 32-bit and 64-bit machines.

68
SFML projects / Educational indie game: "Air Forte"
« on: July 01, 2010, 10:32:14 pm »
Hi K-Bal,

Does the build not work on your 64-bit machine?  Does an error message appear?

I was hoping to create just one Linux build that works on both 32 and 64-bit machines.

69
DotNet / Running on Mac OSX - unable to load library
« on: July 01, 2010, 09:56:33 pm »
Success! My game now works.  I now have SFMLNet running via Mono on my Mac osx.

I'm new to Macs, so this was certainly a learning experience. I was hitting a brick wall until I learned about the Mac's application bundle structure.  Once I created the folder structure in the proper way, the porting went fairly smoothly.

I've posted links to the demo in the SFML Projects board: http://www.sfml-dev.org/forum/viewtopic.php?p=18417

70
SFML projects / Educational indie game: "Air Forte"
« on: July 01, 2010, 09:45:05 pm »
Hi all, I wanted to share my work-in-progress indie game, Air Forte. This is an educational game where you pilot a small airplane through arenas.

I'm using SFML's .NET bindings and Mono for this project, so the game is portable to Windows, Linux, and Mac OSX.  I was quite pleased with SFML's feature set and how easy it is to use. I'm using v1.6 for audio/window and v1.5 for graphics, and I'm definitely looking forward to checking out v2.0 for my next project.

 

Try it out, and let me know what you think!

Here's the links to the demo:
Mac osx: http://www.blendogames.com/dev/AirForteDemo_ub2.dmg
Linux: http://www.blendogames.com/dev/airfortedemo_v2.tar.gz

The windows version should be up soon.

Edit July 2: updated with new builds.

71
DotNet / Running on Mac OSX - unable to load library
« on: June 29, 2010, 12:59:46 am »
No problem, Ceylo. You're right in how the load order is important - when I try to play sound effect prior to displaying a sprite, the game crashes out. I have to first create the renderwindow, then draw a sprite, then play a sound - that seems to load the frameworks in an agreeable way.

I figured out how to make the game load assets from appropriate directories. I just have to package my game into a Mac App Bundle. The game now correctly looks for assets in the ../Resources directory.

Now that my barebones test project is functioning nicely, now I'm going to cross my fingers and tackle my actual game.

72
DotNet / Running on Mac OSX - unable to load library
« on: June 28, 2010, 04:52:41 am »
I made some progress on getting SFMLNet & Mono on the Mac OSX. My barebones test project is now able to load and display a sprite!

Apparently, the graphics library is loading fine.  The problem was that the game is searching for assets from the desktop, not the executable folder.  I'm going to take a look into why this is happening.

My next hurdle is to figure out how why the audio isn't working. When I include audio function calls in my test program, the game crashes out with "unable to load libcsfml-audio".  I copied over OpenAL and the sndfile frameworks, but it didn't have any effect.

Edit: Just got audio working. For some reason, it works when csfml-audio is copied to the desktop (where the game is currently searching for assets).

73
DotNet / Running on Mac OSX - unable to load library
« on: June 27, 2010, 02:13:13 am »
You're right, Ceylo - I neglected to copy CSFML into my /Library/Frameworks directory. I copied them in, and it had an effect: the "missing sfml-graphics" message is now replaced with a "missing sfml-window" message.

Can you tell me how does one control the order in which frameworks are loaded?  I haven't done that before - I assumed frameworks were just called whenever a program's function needed it.


I decided to make a bare-bones SFML program to test if I can get anything on-screen.  It just creates a renderwindow and waits for the user to press ESC to quit.

I managed to get an empty cyan SFML window up that accepts keystrokes - so my barebones program does seem to be finding the sfml window framework.

But when I try to load an image or font, it crashes out saying it's unable to load the asset.  It seems the sfml graphics framework isn't loading for some reason.

Here's the output when I run the bare-bones program:
Code: [Select]
Mono-Message: gc took 0 usecs
Mono-INFO: Assembly Loader probing location: './mscorlib.dll'.
Mono-INFO: Image addref mscorlib 0xb107c0 -> /Users/bc/Desktop/airforte/MacOS/mscorlib.dll 0x200b800: 2

Mono-INFO: AOT failed to load AOT module /Users/bc/Desktop/airforte/MacOS/mscorlib.dll.dylib: dlopen(/Users/bc/Desktop/airforte/MacOS/mscorlib.dll.dylib, 9): image not found

Mono-INFO: Assembly Loader loaded assembly from location: './mscorlib.dll'.
Mono-INFO: Config attempting to parse: '/Users/bc/Desktop/airforte/MacOS/mscorlib.dll.config'.
Mono-INFO: Config attempting to parse: '/Library/Frameworks/Mono.framework/Versions/2.6.4/etc/mono/assemblies/mscorlib/mscorlib.config'.
Mono-INFO: Config attempting to parse: '/Users/bc/.mono/assemblies/mscorlib/mscorlib.config'.
Mono-INFO: Assembly mscorlib 0xb107c0 added to domain test.exe, ref_count=1

Mono-INFO: Config attempting to parse: '/Library/Frameworks/Mono.framework/Versions/2.6.4/etc/mono/config'.
Mono-INFO: Config attempting to parse: '/Users/bc/.mono/config'.
Mono-INFO: Assembly Loader probing location: 'test.exe'.
Mono-INFO: Image addref test 0xb17a30 -> /Users/bc/Desktop/airforte/MacOS/test.exe 0x200b400: 3

Mono-INFO: Assembly test 0xb17a30 added to domain test.exe, ref_count=1

Mono-INFO: AOT failed to load AOT module /Users/bc/Desktop/airforte/MacOS/test.exe.dylib: dlopen(/Users/bc/Desktop/airforte/MacOS/test.exe.dylib, 9): image not found

Mono-INFO: Assembly Loader loaded assembly from location: 'test.exe'.
Mono-INFO: Config attempting to parse: '/Users/bc/Desktop/airforte/MacOS/test.exe.config'.
Mono-INFO: Config attempting to parse: '/Library/Frameworks/Mono.framework/Versions/2.6.4/etc/mono/assemblies/test/test.config'.
Mono-INFO: Config attempting to parse: '/Users/bc/.mono/assemblies/test/test.config'.
Mono-INFO: Assembly Loader probing location: 'test.exe'.
Mono-INFO: AOT failed to load AOT module /Users/bc/Desktop/airforte/MacOS/test.exe.dylib: dlopen(/Users/bc/Desktop/airforte/MacOS/test.exe.dylib, 9): image not found

Mono-INFO: Assembly Ref addref test 0xb17a30 -> mscorlib 0xb107c0: 2

Mono-INFO: Assembly Loader probing location: '/Users/bc/Desktop/airforte/MacOS/sfmlnet-graphics.dll'.
Mono-INFO: Image addref sfmlnet-graphics 0xb1a4e0 -> /Users/bc/Desktop/airforte/MacOS/sfmlnet-graphics.dll 0x2022400: 2

Mono-INFO: Assembly sfmlnet-graphics 0xb1a4e0 added to domain test.exe, ref_count=1

Mono-INFO: AOT failed to load AOT module /Users/bc/Desktop/airforte/MacOS/sfmlnet-graphics.dll.dylib: dlopen(/Users/bc/Desktop/airforte/MacOS/sfmlnet-graphics.dll.dylib, 9): image not found

Mono-INFO: Assembly Loader loaded assembly from location: '/Users/bc/Desktop/airforte/MacOS/sfmlnet-graphics.dll'.
Mono-INFO: Config attempting to parse: '/Users/bc/Desktop/airforte/MacOS/sfmlnet-graphics.dll.config'.
Mono-INFO: Config attempting to parse: '/Library/Frameworks/Mono.framework/Versions/2.6.4/etc/mono/assemblies/sfmlnet-graphics/sfmlnet-graphics.config'.
Mono-INFO: Config attempting to parse: '/Users/bc/.mono/assemblies/sfmlnet-graphics/sfmlnet-graphics.config'.
Mono-INFO: Assembly Ref addref test 0xb17a30 -> sfmlnet-graphics 0xb1a4e0: 2

Mono-INFO: Assembly Loader probing location: '/Users/bc/Desktop/airforte/MacOS/sfmlnet-window.dll'.
Mono-INFO: Image addref sfmlnet-window 0xb0de10 -> /Users/bc/Desktop/airforte/MacOS/sfmlnet-window.dll 0x2022800: 2

Mono-INFO: Assembly sfmlnet-window 0xb0de10 added to domain test.exe, ref_count=1

Mono-INFO: AOT failed to load AOT module /Users/bc/Desktop/airforte/MacOS/sfmlnet-window.dll.dylib: dlopen(/Users/bc/Desktop/airforte/MacOS/sfmlnet-window.dll.dylib, 9): image not found

Mono-INFO: Assembly Loader loaded assembly from location: '/Users/bc/Desktop/airforte/MacOS/sfmlnet-window.dll'.
Mono-INFO: Config attempting to parse: '/Users/bc/Desktop/airforte/MacOS/sfmlnet-window.dll.config'.
Mono-INFO: Config attempting to parse: '/Library/Frameworks/Mono.framework/Versions/2.6.4/etc/mono/assemblies/sfmlnet-window/sfmlnet-window.config'.
Mono-INFO: Config attempting to parse: '/Users/bc/.mono/assemblies/sfmlnet-window/sfmlnet-window.config'.
Mono-INFO: Assembly Ref addref sfmlnet-graphics 0xb1a4e0 -> sfmlnet-window 0xb0de10: 2

Mono-INFO: Assembly Ref addref sfmlnet-window 0xb0de10 -> mscorlib 0xb107c0: 3

Mono-INFO: Assembly Ref addref sfmlnet-graphics 0xb1a4e0 -> mscorlib 0xb107c0: 4

Mono-INFO: Assembly Ref addref test 0xb17a30 -> sfmlnet-window 0xb0de10: 3

Mono-INFO: DllImport attempting to load: 'csfml-graphics'.
Mono-INFO: DllImport loading location: 'libcsfml-graphics.dylib'.
Mono-INFO: DllImport error loading library: 'dlopen(libcsfml-graphics.dylib, 9): image not found'.
Mono-INFO: DllImport loading location: 'libcsfml-graphics.so'.
Mono-INFO: DllImport error loading library: 'dlopen(libcsfml-graphics.so, 9): image not found'.
Mono-INFO: DllImport loading location: 'libcsfml-graphics.bundle'.
Mono-INFO: DllImport error loading library: 'dlopen(libcsfml-graphics.bundle, 9): image not found'.
Mono-INFO: DllImport loading library: './libcsfml-graphics.dylib'.
Mono-INFO: DllImport error loading library 'dlopen(./libcsfml-graphics.dylib, 9): image not found'.
Mono-INFO: DllImport loading library: './libcsfml-graphics.so'.
Mono-INFO: DllImport error loading library 'dlopen(./libcsfml-graphics.so, 9): image not found'.
Mono-INFO: DllImport loading library: './libcsfml-graphics.bundle'.
Mono-INFO: DllImport error loading library 'dlopen(./libcsfml-graphics.bundle, 9): image not found'.
Mono-INFO: DllImport loading: 'csfml-graphics'.
Mono-INFO: Searching for 'sfRenderWindow_Clear'.
Mono-INFO: Probing 'sfRenderWindow_Clear'.
Mono-INFO: Found as 'sfRenderWindow_Clear'.
Mono-INFO: DllImport attempting to load: 'csfml-graphics'.
Mono-INFO: DllImport loading location: 'libcsfml-graphics.dylib'.
Mono-INFO: DllImport error loading library: 'dlopen(libcsfml-graphics.dylib, 9): image not found'.
Mono-INFO: DllImport loading location: 'libcsfml-graphics.so'.
Mono-INFO: DllImport error loading library: 'dlopen(libcsfml-graphics.so, 9): image not found'.
Mono-INFO: DllImport loading location: 'libcsfml-graphics.bundle'.
Mono-INFO: DllImport error loading library: 'dlopen(libcsfml-graphics.bundle, 9): image not found'.
Mono-INFO: DllImport loading library: './libcsfml-graphics.dylib'.
Mono-INFO: DllImport error loading library 'dlopen(./libcsfml-graphics.dylib, 9): image not found'.
Mono-INFO: DllImport loading library: './libcsfml-graphics.so'.
Mono-INFO: DllImport error loading library 'dlopen(./libcsfml-graphics.so, 9): image not found'.
Mono-INFO: DllImport loading library: './libcsfml-graphics.bundle'.
Mono-INFO: DllImport error loading library 'dlopen(./libcsfml-graphics.bundle, 9): image not found'.
Mono-INFO: DllImport loading: 'csfml-graphics'.
Mono-INFO: Searching for 'sfRenderWindow_Create'.
Mono-INFO: Probing 'sfRenderWindow_Create'.
Mono-INFO: Found as 'sfRenderWindow_Create'.
Mono-INFO: DllImport attempting to load: 'csfml-graphics'.
Mono-INFO: DllImport loading location: 'libcsfml-graphics.dylib'.
Mono-INFO: DllImport error loading library: 'dlopen(libcsfml-graphics.dylib, 9): image not found'.
Mono-INFO: DllImport loading location: 'libcsfml-graphics.so'.
Mono-INFO: DllImport error loading library: 'dlopen(libcsfml-graphics.so, 9): image not found'.
Mono-INFO: DllImport loading location: 'libcsfml-graphics.bundle'.
Mono-INFO: DllImport error loading library: 'dlopen(libcsfml-graphics.bundle, 9): image not found'.
Mono-INFO: DllImport loading library: './libcsfml-graphics.dylib'.
Mono-INFO: DllImport error loading library 'dlopen(./libcsfml-graphics.dylib, 9): image not found'.
Mono-INFO: DllImport loading library: './libcsfml-graphics.so'.
Mono-INFO: DllImport error loading library 'dlopen(./libcsfml-graphics.so, 9): image not found'.
Mono-INFO: DllImport loading library: './libcsfml-graphics.bundle'.
Mono-INFO: DllImport error loading library 'dlopen(./libcsfml-graphics.bundle, 9): image not found'.
Mono-INFO: DllImport loading: 'csfml-graphics'.
Mono-INFO: Searching for 'sfRenderWindow_GetInput'.
Mono-INFO: Probing 'sfRenderWindow_GetInput'.
Mono-INFO: Found as 'sfRenderWindow_GetInput'.
Mono-INFO: DllImport attempting to load: 'csfml-graphics'.
Mono-INFO: DllImport loading location: 'libcsfml-graphics.dylib'.
Mono-INFO: DllImport error loading library: 'dlopen(libcsfml-graphics.dylib, 9): image not found'.
Mono-INFO: DllImport loading location: 'libcsfml-graphics.so'.
Mono-INFO: DllImport error loading library: 'dlopen(libcsfml-graphics.so, 9): image not found'.
Mono-INFO: DllImport loading location: 'libcsfml-graphics.bundle'.
Mono-INFO: DllImport error loading library: 'dlopen(libcsfml-graphics.bundle, 9): image not found'.
Mono-INFO: DllImport loading library: './libcsfml-graphics.dylib'.
Mono-INFO: DllImport error loading library 'dlopen(./libcsfml-graphics.dylib, 9): image not found'.
Mono-INFO: DllImport loading library: './libcsfml-graphics.so'.
Mono-INFO: DllImport error loading library 'dlopen(./libcsfml-graphics.so, 9): image not found'.
Mono-INFO: DllImport loading library: './libcsfml-graphics.bundle'.
Mono-INFO: DllImport error loading library 'dlopen(./libcsfml-graphics.bundle, 9): image not found'.
Mono-INFO: DllImport loading: 'csfml-graphics'.
Mono-INFO: Searching for 'sfRenderWindow_GetDefaultView'.
Mono-INFO: Probing 'sfRenderWindow_GetDefaultView'.
Mono-INFO: Found as 'sfRenderWindow_GetDefaultView'.
Mono-INFO: DllImport attempting to load: 'csfml-graphics'.
Mono-INFO: DllImport loading location: 'libcsfml-graphics.dylib'.
Mono-INFO: DllImport error loading library: 'dlopen(libcsfml-graphics.dylib, 9): image not found'.
Mono-INFO: DllImport loading location: 'libcsfml-graphics.so'.
Mono-INFO: DllImport error loading library: 'dlopen(libcsfml-graphics.so, 9): image not found'.
Mono-INFO: DllImport loading location: 'libcsfml-graphics.bundle'.
Mono-INFO: DllImport error loading library: 'dlopen(libcsfml-graphics.bundle, 9): image not found'.
Mono-INFO: DllImport loading library: './libcsfml-graphics.dylib'.
Mono-INFO: DllImport error loading library 'dlopen(./libcsfml-graphics.dylib, 9): image not found'.
Mono-INFO: DllImport loading library: './libcsfml-graphics.so'.
Mono-INFO: DllImport error loading library 'dlopen(./libcsfml-graphics.so, 9): image not found'.
Mono-INFO: DllImport loading library: './libcsfml-graphics.bundle'.
Mono-INFO: DllImport error loading library 'dlopen(./libcsfml-graphics.bundle, 9): image not found'.
Mono-INFO: DllImport loading: 'csfml-graphics'.
Mono-INFO: Searching for 'sfImage_CreateFromFile'.
Mono-INFO: Probing 'sfImage_CreateFromFile'.
Mono-INFO: Found as 'sfImage_CreateFromFile'.
Failed to load image "icon.png". Reason : Unable to open file

Unhandled Exception: SFML.LoadingFailedException: Failed to load image from file icon.png
  at SFML.Graphics.Image..ctor (System.String filename) [0x00000] in <filename unknown>:0
  at WindowTest.Game1.Main () [0x00000] in <filename unknown>:0
 

74
DotNet / Running on Mac OSX - unable to load library
« on: June 26, 2010, 07:42:39 pm »
I currently have SFMLNet running via Mono on Windows and Linux, and now I'm trying to get it going on Mac OSX.

When I run the program, I get this error:

Code: [Select]
Mono-INFO: DllImport attempting to load: 'csfml-graphics'.
Mono-INFO: DllImport error loading library 'dlopen(csfml-graphics, 9): Library not loaded: @executable_path/../Frameworks/csfml-window.framework/Versions/A/csfml-window
  Referenced from: .//csfml-graphics
  Reason: image not found'.

(release2.exe:439): Mono-WARNING **: DllImport unable to load library 'dlopen(libcsfml-graphics, 9): image not found'.


I've downloaded the SFML 1.6 sdks and copied the contents of SFML-1.6/lib, SFML-1.6/extlib/bin, and SFML-1.6/CSFML/lib into the corresponding Frameworks directory.  I also copied them into the /Library/Frameworks directory as described in the tutorial.

I'm running on OSX 10.4 and using the SFML 32-bit universal binaries.

I'm unclear as to why the program can't find the libraries. Any ideas?

My current directory structure:
Code: [Select]
Contents
       |
       |--MacOS   <-- where the executables are
       |
       |--Frameworks
              |
              |--csfml-audio.framework
              |--csfml-graphics.framework
              |--csfml-network.framework
              |--csfml-system.framework
              |--csfml-window.framework
              |--sfml-audio.framework
              |--sfml-graphics.framework
              |--sfml-network.framework
              |--sfml-system.framework
              |--sfml-window.framework
              |--SFML.framework
              |--sndfile.framework
              |--OpenAL.framework

75
DotNet / Sprites become flat squares when renderWindow is re-created
« on: June 08, 2010, 05:58:06 pm »
I wrapped the Font object with the Using keyword, but it didn't seem to have any effect.  I also tried wrapping the string2D in a Using keyword, but it didn't seem to do anything.

Update: I found a fix. After changing to fullscreen or the resolution, I need to re-load the Font and the String2D.
Code: [Select]
public class ScreenManager
        {
            public RenderWindow appWindow;
            bool isFullscreen;

Font serif;
String2D text;


// this function is called whenever the screen resolution or fullscreen state changes.
            public void InitializeScreen(uint width, uint height)
            {
                //only close the renderwindow after its first initialization.
                if (appWindow != null)
                    appWindow.Close();

                Styles windowStyle = isFullscreen ? Styles.Fullscreen : Styles.Titlebar;
                appWindow = new RenderWindow(new VideoMode(width, height, 32), "Window test", windowStyle);

                appWindow.KeyPressed += new EventHandler<SFML.Window.KeyEventArgs>(OnKeyPressed);

//re-load the font. if we don't call this, then the letters become flat squares.
InitializeFont();
            }

private void InitializeFont()
{
serif = new Font(@"accid.ttf", (uint)48);
text = new String2D("Press enter toggle fullscreen", serif, 64);
text.Position = new Vector2(10, 100);
text.Color = Color.Black;
}

public void Draw()
{
appWindow.Draw(text);
}

            void OnKeyPressed(object sender, SFML.Window.KeyEventArgs e)
            {
               
                if (e.Code == KeyCode.Return)
                {
                    //toggle fullscreen.
                    isFullscreen = !isFullscreen;

                    //re-create the window.
                    InitializeScreen(1024, 768);
                }

                if (e.Code == KeyCode.Escape)
                {
                    appWindow.Close();
                }
            }
        }

Pages: 1 ... 3 4 [5] 6