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

Pages: [1]
1
Python / Python binding buggy?
« on: September 17, 2010, 03:27:23 pm »
Nope, it also crashes when I change the state. :-/

2
Python / Python binding buggy?
« on: September 14, 2010, 01:36:33 pm »
This works:
Code: [Select]

def Run( self, Window ):
        string = sf.String( "MenuState", sf.Font.GetDefaultFont(), 30 )
        while True:
            Event = sf.Event()
            while Window.GetEvent(Event):
                if Event.Type == sf.Event.Closed:
                    return GameState
            Window.Clear()
            Window.Draw( string )
            Window.Display()
        return None


BUT, it crashes after I press Close o.O although I don't have a Window.Draw() in the GameState class.

3
Python / Python binding buggy?
« on: September 13, 2010, 04:11:34 pm »
Hmpf, I tried Python 3.12 but it also crashes :-/
My drivers are up to date.
SFML with C++ works perfectly..
:-/

Maybe I try later to install MinGW and compile PySFML.

4
Python / Python binding buggy?
« on: September 13, 2010, 03:20:17 pm »
:-/ for me it does not work..

I tried to build them myself, but i get an error: Unable to find vcvarsall.bat
(I have VC2010 Express.)
(I don't have MinGW and I don't really know which package I need to install to use MinGW.)

Did you use also Python 2.7 on your Windows? Otherwise I'll try Python 3.. :-/

5
Python / Python binding buggy?
« on: September 13, 2010, 02:32:04 pm »
Quote from: "Svenstaro"
Works for me. Also, you are using media since you are using a font. Can you post the error that you get when running python yourapp.py from the command line?

Ok, but the font media is build in SFML?! So I don't use any extern media.^^

I run my sample in the python shell:
Code: [Select]
Python 2.7 (r27:82525, Jul  4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> ================================ RESTART ================================
>>>

There aren't any errors.. i get only the message from Windows that python.exe doesn't work anymore.

6
Python / Python binding buggy?
« on: September 13, 2010, 01:43:51 pm »
Quote from: "Svenstaro"
It probably doesn't find the media in both cases. Can you post the error please?


Ehm, in my sample I don't use any media, only SFML.
It crashes in both cases without an error.
Windows displays only that python.exe doesn't work anymore.

7
Python / Python binding buggy?
« on: September 11, 2010, 03:27:34 pm »
Huhu,
I tried Python with PySFML 1.6 on Windows 7 64bit with 32bit Python 2.7 but it crashes..
(In C++ i haven't any problems...)

First I tried the sample from the PySFML tutorial, this worked good.
Than I tried the samples in the SDK but it chrashed in the Worm sample when I pressed the enter/return key.
I also tried to make a simple game but it chrashes in this line:
Code: [Select]

Window.Draw( sf.String( "MenuState" , sf.Font.GetDefaultFont(), 30 ) )


Source:
Code: [Select]

from PySFML import sf

class BaseState( object ):
    def Run( self, Window ):
        return None
class MenuState( BaseState ):
    def __init__( self ):
        super( MenuState, self ).__init__()

    def Run( self, Window ):
        while True:
            Event = sf.Event()
            while Window.GetEvent(Event):
                if Event.Type == sf.Event.Closed:
                    return GameState
            Window.Clear()
            Window.Draw( sf.String( "MenuState" , sf.Font.GetDefaultFont(), 30 ) )
            Window.Display()
        return None
class GameState( BaseState ):
    def __init__( self ):
        super( GameState, self ).__init__()

    def Run( self, Window ):
        while True:
            Event = sf.Event()
            while Window.GetEvent(Event):
                if Event.Type == sf.Event.Closed:
                    return None
            Window.Clear()
            Window.Draw( sf.String( "GameState" , sf.Font.GetDefaultFont(), 30 ) )
            Window.Display()
        return None
class Game:
    def Run( self ):
        Window = sf.RenderWindow( sf.VideoMode( 800, 600, 32 ), "PySFMLTest", sf.Style.Close )
        Window.SetFramerateLimit( 60 )

        Next_State = MenuState

        while Next_State is not None:
            State = Next_State()
            Next_State = State.Run( Window )

Main = Game()
Main.Run()


If I remove the Window.Draw(...) lines, it works...
Is the Python binding buggy?

8
Audio / crash with audio on vista/visual studio 2008
« on: September 21, 2009, 03:59:52 pm »
Code: [Select]
You must use the DLLs provided in the SFML SDK, not another release (espacially from Creative Labs website -- this implementation is buggy, deprecated and not used anymore by SFML).
I use the DLLs provided in the SFML SDK, but my applications don't work if I use the dynamic SFML-audio library.
With a static build of SFML-audio library I can use the audio-package without problems.
I think it's a bug, because I've got no problems with sounds in older SFML versions.

9
Audio / crash with audio on vista/visual studio 2008
« on: September 21, 2009, 03:36:29 pm »
Code: [Select]
Hm... Another idea: Try to download a current OpenAL32 runtime
Hmm, but the static SFML-audio library uses also OpenAl32 and haven't problems, but I will try to install the newest OpenAl32 runtime.

10
Audio / crash with audio on vista/visual studio 2008
« on: September 21, 2009, 03:00:05 pm »
Code: [Select]
Did you link the SFML and CRT (c-runtime) libraries correctly?
I think that I linked all correctly.
Other packages of SFML works perfectly, only the dynamic audio library don't work :(

Code: [Select]
You should get used to the debugger...
I will learn to use the debugger ;) :)

11
Audio / crash with audio on vista/visual studio 2008
« on: September 18, 2009, 12:22:38 pm »
Quote
Wolfram, did you check the output of std::cerr (normally the console)? Isn't there any error message?

Some applications starts, but the console window/sfml window/... doesn't appear!
The application doesn't do anything.
In the task manager i can see that the application runs, but that's all :(

Quote
You can also try to debug your application in order to find the point where it freezes.

I'm not very experienced in using the debugger.
But the debugger doesn't stop running, and i can't see any errors. :(
The application runs, but it doesn't do anything! (no console window, no sfml-window)
This problems I've got only with SFML2 branch from SVN.

EDIT:
I found out, that my applications runs when I link the static sfml-libs.
But if I use the dynamic ones, it doesn't work.
I don't understand it^^

12
Audio / crash with audio on vista/visual studio 2008
« on: September 17, 2009, 05:00:21 pm »
Hello,
I've got a similar problem.
If I make a projekt with sounds it freezes or doesn't do anything!
No window, no sounds,..., just nothing.
I tried several examples/ projects, but I've got the same problem.
I use Windows 7, MSVC2008-Express and SFML2 branch from SVN.
I tried the debug and the release SFML-dlls with debug/release compilation. (no errors, no warnings)
I use the libsndfile-1.dll and the openal32.dll from extlibs/bin.
With SFML 1.5 I've got no problems, only with SFML2 from the branch.

Wolfram

13
General discussions / GUI
« on: March 26, 2009, 04:28:27 pm »
Quote
This is a funny and interesting thing I'd love to do, after I've worked hard on a lot of boring stuff for SFML 2.0


Great!
In which version of SFML do you integrate a GUI? SFML 2.0?

Pages: [1]