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.


Topics - 4ian

Pages: [1]
1
Hi,

It seems that calling GetPlayingOffset on a uninitialized sf::Music lead to division by zero:

#include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>

int main()
{
    sf::Music music;
    music.GetPlayingOffset(); //I'm using a revision of SFML2 before the changes in naming conventions.

    return EXIT_SUCCESS;

}

Here is the backtrace:
#0 627A06C1     __udivmoddi4(n=0, d=0) (../../../../src/gcc-4.5.2/libgcc/../gcc/libgcc2.c:895)
#1 ??   __udivdi3 (n=0, d=0) (../../../../src/gcc-4.5.2/libgcc/../gcc/libgcc2.c:1140)
#2 627898D3     sf::SoundStream::GetPlayingOffset(this=0x28feb8) (D:\Florian\Programmation\GameDevelop2\ExtLibs\SFML\src\SFML\Audio\SoundStream.cpp:174)
#3 004013B1     main() (D:\Florian\Programmation\SFML_test\main.cpp:7)

Looking at SoundStream::GetPlayingOffset, the line where the crash comes from is this one ( Maybe add a check to be sure that mySampleRate and myChannelsCount are not equal to 0) :
return seconds(secs + static_cast<float>(m_samplesProcessed) / m_sampleRate / m_channelCount);

( I'm not using the latest revision of SFML2, but this line is the same in the current revision as in the revision i'm using, so I believe the bug is still here. )

2
SFML projects / Game Develop : Free game development tool
« on: March 03, 2012, 06:54:53 pm »


Game Develop is a free game development tool allowing to create any kind of 2D games. No programming knowledge is required, as all the game logic is created using events, allowing to launch actions if some conditions are filled.  These events are compiled by Game Develop to machine code, as ordinary programming languages, making GD quite unique in the world of game development software.
Game Develop is based upon SFML, which is used as the main library for graphics and all multimedia related tasks.

Game Develop provides lots of features such as :
-Animated sprites
-Physics
-Dynamic lights
-Particles system
-3D box objects
-Text objects
-Support for joysticks
-Pathfinding
-Functions allowing to modify sprites during the game. ( Allowing map destruction for example )
-Support for multiple view inside a window
-Object allowing to draw directly shapes on screen.
-Ability to play sounds and music, and manipulate them.
-Networking
-Experimental C++ event since the latest version, allowing to add C++ code to events, even if these latter are powerful enough to create an entire game.

Theses features can be further enhanced with the extension system integrated to Game Develop. ( Thus, some features mentioned above are proposed as extensions directly supplied with the software. ).
Official extensions are open source ( You can download the Game Develop SDK to get the sources ) and some extensions created by external developers are also available like the Widgets extension based on SFGUI.

Moreover, the software is bundled with a help file, a step by step tutorial, some resources and a lot of examples.
You can see games created using Game Develop on this page : http://compilgames.net/jeuxEN.html

Game Develop can be freely downloaded on the official web site :
http://www.compilgames.net
The software is available on Windows and on Ubuntu 11.10 ( Some users reported it to be working on other Linux based distro too )
If you're using GD for the first time, take a look at the examples in the "Examples" directory.

Any feedback concerning the software is welcomed  :D

Pages: [1]
anything