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

Author Topic: Set up SFML with Windows and Python  (Read 7801 times)

0 Members and 1 Guest are viewing this topic.

Boder

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • http://boder.games.googlepages.com/
Set up SFML with Windows and Python
« on: February 14, 2008, 08:03:36 am »
I don't usually use python, but I wanted to try it out. Normally I'm on the C++ side of things.

I was originally going to just pass by and try out pyglet, but I know that I'll have to confront little issues like this if I want to continue with Python.

So I downloaded the Python SDK for Windows and opened the setup.py file with IDLE. Then I went to run it (F5) and it need me to say "install" as a command-line parameter. I couldn't figure out how to do that with IDLE, so I added the python folder to my PATH variable and went to the command line.

Then running the setup.py install, it said it needs to use Visual Studio 7.1 because python.exe was built with it. Now I have the Visual C++Toolkit 2003 and I ran the command prompt so it would set up the environment variables, but it still doesn't detect that I have it.

So I'm guessing it's checking for the complete IDE or something? Any way to fix this short of recompiling python?

It says it comes with precompiled binaries, but I guess not in the Windows SDK.

remi.k2620

  • Full Member
  • ***
  • Posts: 186
    • View Profile
    • http://remi.tuxfamily.org
Set up SFML with Windows and Python
« Reply #1 on: February 16, 2008, 04:26:25 pm »
It does come with precompiled binaries, and python should not complain that visual studio is not there, and should just install the binaries.
I don't know how to fix this problem, so I uploaded an installer that should just work.

Boder

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • http://boder.games.googlepages.com/
Set up SFML with Windows and Python
« Reply #2 on: February 20, 2008, 12:22:32 am »
The forum was acting up for me.  :roll:

So the short of it is:

It works, thanks. The sound capture didn't. After installing pyOpenGL I don't think the background.jpg or texture.jpg are included in the SDK for the opengl demo.

The worm demo is sweet. Small bug is that clicking (x) from in-game, not menu, will not close it properly.

remi.k2620

  • Full Member
  • ***
  • Posts: 186
    • View Profile
    • http://remi.tuxfamily.org
Set up SFML with Windows and Python
« Reply #3 on: February 23, 2008, 07:52:57 am »
Quote from: "Boder"
The forum was acting up for me.  :roll:

So the short of it is:

It works, thanks. The sound capture didn't. After installing pyOpenGL I don't think the background.jpg or texture.jpg are included in the SDK for the opengl demo.

The worm demo is sweet. Small bug is that clicking (x) from in-game, not menu, will not close it properly.


Yes you are right, background and texture are taken from the C++ samples ("../../samples/bin/datas/opengl/background.jpg") and are not in python's directory.
For the worm sample, i'll have to correct this, in fact you have to click twice on (x) to close the window during the game.
There are still a few bugs in pysfml, since I don't have much time for testing it, so thanks for reporting them :)

 

anything