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

Pages: [1] 2 3 ... 13
1
Python / Re: pysfml-cython
« on: February 19, 2013, 11:03:45 pm »
Any chance for network module? I know that python itself has socketing library but sfml sockets are much more convenient. For example python-sfml2 has network bindings.

Which feature would you like, for example? Currently, my opinion is that if you want more than bare sockets, you'll probably be better off using a network-centric Python library like Twisted.

2
Python / Re: Compilations errors
« on: February 04, 2013, 10:39:04 pm »
It should be fixed now.

3
Python / Re: pysfml-cython
« on: December 25, 2012, 10:03:36 pm »
Github has removed the downloads feature: https://github.com/blog/1302-goodbye-uploads
For now, you can still access the old downloads with this URL (note that the installers are outdated and should be downloaded here): https://github.com/bastienleonard/pysfml-cython/downloads

Since Cython now builds the module without hassle, I think I'm going to stop packaging these source releases. (The goal was to make it so that you don't have to install Cython to build from the source. You can still download the source from Github, but you won't have the Cython-generated file.)
Do you think it was actually useful?

@bastien
Everything seem to be working great except I'm getting an error when using the image constructor.
>>> sfml.Image(100,100)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "sfml.pyx", line 1833, in sfml.Image.__init__ (src\sfml.cpp:23432)
AttributeError: 'sfml.Image' object has no attribute 'stream'

Sorry, I only saw this part of your message now. It's fixed now.

Does this binding work fully with python 3.3? Or only python 2?

As far as I can tell, it should work fine. I'll test it as soon as I update my system.

4
Python / Re: Compilation failed : sf::Shader::unbind doesn't exist
« on: December 02, 2012, 11:33:43 pm »
I just fixed it and a few other bugs on the repo (only on the master branch currently). Sorry for the delay.

5
Python / Re: Problem with Image.load_from_file()
« on: December 02, 2012, 11:31:35 pm »
I fixed it on the master branch. Until you can get an updated build, you can use the b prefix to pass a bytes string:

Code: [Select]
icon = Image.load_from_file(b'game/pngs/icon.png')

6
Python / Re: pysfml-cython
« on: August 20, 2012, 01:29:40 pm »
Is it the same 32/64 bits version as the installer? I'll try the new installers to see if I get the same problem.

7
Python / Re: pysfml2-cython
« on: August 19, 2012, 06:36:15 pm »
I have changed the Github name from pysfml2-cython to pysfml-cython. This is probably going to create a lot of dead links, but I prefer to do it now than whenever pySFML 3 gets released.

8
Python / Re: [pySFML2-cython] (Bastien Léonard) compilation error build
« on: August 19, 2012, 06:16:16 pm »
My guess is that you have installed a 32 bits version of SFML while you are trying to build a 64 bits module, or you installed it in /usr/local and GCC isn't configured to look for headers there.

9
Python / Re: pysfml2-cython
« on: August 19, 2012, 06:11:50 pm »
I recommend using these installers that should work out of the box: http://www.lfd.uci.edu/~gohlke/pythonlibs/#pysfml
They have been recently updated,  by the way.

For the headers and libraries directories, you can pass them as arguments to the setup.py script. I guess there's a mechanism such as environment variables to avoid having to pass them every time, but that's how I did it when I built the installers myself anyway.

For the DLL missing at launch problem, it can be very annoying because the loading of the DLL may fail because of some dependent DLL failing to load. I remember that I had to copy the correct OpenGL DLL in my current folder because the wrong one was being loaded. The problem disappeared when using the installer I just built.

To be honest, I almost never use Windows for programming, and I don't have a hard and fast for debugging this kind of problem.

10
Python / Re: pysfml2-cython
« on: August 15, 2012, 10:43:03 pm »
I have uploaded the SFML 2.0 RC-compatible source.

11
Python / Re: pysfml2-cython
« on: August 12, 2012, 07:31:56 pm »
The source releases have been updated. I have also created a “rc-compatible” branch that should work with SFML 2.0 RC. This branch has the same API, i.e. it's still BACK_SPACE instead of BACK and there's no default font. I'll upload RC-compatible source releases when I'm sure it actually builds with the RC. Could someone test it?

12
Python / Re: error: command 'gcc' failed with exit status 1
« on: August 12, 2012, 07:29:27 pm »
I have updated the source releases. I have also created a “rc-compatible” branch that should work with SFML 2.0 RC.

13
Python / Re: error: command 'gcc' failed with exit status 1
« on: August 08, 2012, 10:45:09 pm »
I just tried to build it from the AUR and got no error. I have the same GCC version.
It seems that you're on a 64 bits system. Could it be that you have an older 32 bits version of SFML and its headers get included?

14
Python / Re: error: command 'gcc' failed with exit status 1
« on: August 05, 2012, 10:55:50 pm »
I just updated the repo to compile with the latest SFML. I'm not sure why you're getting so many errors though. Please let me know if you still encounter errors.

15
General discussions / Re: Default font removed in SFML 2
« on: August 05, 2012, 10:47:10 pm »
Quote
if it's still possible to create a Text object with no font by calling the no-parameters constructors, why isn't it possible anymore to create one with a string but no font?
Why would such a constructor be needed?

For consistency. And because it may make sense to delay the font assignment. For example, you create your text objects, add them to a list, then some function or class that manages the fonts assigns the fonts to the texts based on the configuration or the OS.

Pages: [1] 2 3 ... 13
anything