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

Pages: [1]
1
Python / Re: Help with drawing on RenderTexture
« on: July 12, 2015, 10:50:50 pm »
Indeed, after checking the pysfml website against the docs on github, it appears that the doc on github has been updated to the latest changes (for instance the default font and the create method on RenderTexture have both been removed), but not the website.

In order to get an up-to-date copy of the doc, you can just clone the git repository and run 'make.bat dirhtml' in the doc/ directory. I have uploaded an up-to-date version on http://frozentux.online.fr/pysfml-doc/.

2
Python / Re: Help with drawing on RenderTexture
« on: July 12, 2015, 07:05:18 pm »
I thought I'd read that a default font would be used if one wasn't provided.

Yes, it's written in the documentation that there is a default font but it has never worked for me. Not sure if it's a bug or if the documentation is just outdated.

3
Python / Re: Help with drawing on RenderTexture
« on: July 12, 2015, 02:45:08 pm »
Hello,

I tried both examples and they work fine (you just forgot to load a font in the second one) on my side, as you can see on this image : https://monosnap.com/file/AEn0kRJDZ8itWCbUasdy04DtMt75L3.png.

Have you tried to use another font ? What version of python and pysfml are you using ?

4
Python / Re: sf.Text adding a symbol before text
« on: June 20, 2015, 01:42:45 am »
Unfortunately not, I'm currently busy with work stuff and won't have reasonable free time until mid/end of July. :(
No problem, we all have a lives :). I'll stick with python 2 for now, it works just fine.

Regarding building PySFML, have you tried to pip-install from the Git repository? It's what works for me all the time, and which is one of the easiest methods anyway:

Code: [Select]
pip install cython
pip install git+https://github.com/Sonkun/python-sfml

I was doing basically the same thing, that is to say cloning the repository and running setup.py install. The pip method produces the same error with less output.

More specifically, sfml.system, sfml.window and sfml.graphics build correctly, but when it reaches sfml.audio, the linker fails because there are "2 unresolved externals". I have uploaded the full output even if i don't think it tells a lot : http://hastebin.com/uwoxesebec.txt

What I have tried :
  • add and remove the sfml headers and libraries from the compiler folders
  • add and remove the sfml dlls
  • change SFML versions. I tried 2.1, 2.3 and the latest unofficial nighly builds. With SFML 2.1, the compilation fails with a link error on sfml.system, whereas with SFML 2.3 and the nightly the compilation fails later on sfml.audio. (I am obviously using the Visual C++ 2010 versions each time since this is the compiler used by the Windows SDK)

I have run out of ideas of other things to try. If you think of something I might have been doing wrong (even if it seems silly; it should be obvious by now that I don't know at all what I'm doing), feel free to push me in the right direction.

Anyway, thanks a lot for your continued support !

5
Python / Re: sf.Text adding a symbol before text
« on: June 16, 2015, 09:33:25 pm »
Good to know it's an actual bug and not a Chair-Keyboard interface issue.
Did you make any progress concerning that problem ? Unable to modify and compile pySFML myself, I ended up falling back to python 2.7 for the time being.

6
Python / sf.Text adding a symbol before text
« on: May 22, 2015, 11:19:06 pm »
Hello,

I have used pySFML on python 2.7 for some time, and having recently switched to 3.4, I have started my first SFML python 3 project.

I have discovered that sfml.graphics.Text adds '\ufeff' before it's text, which then shows up as a square when rendered, as you can see on this image : http://monosnap.com/file/JBBAqDPIvQcHs9EzLTxwE1SyjQ8xZG.png .

This is not linked to the font itself or the rendering as the supplementary symbol is present in the string attribute of the Text object. Setting the text after initialisation does not fix the issue as the prefix is added again.

I have tried to pass utf-8 bytes instead of str, but it causes an error and the text is not set.

I am using :

As I never encountered this problem before, I have tried to run my program under Python 2.7 with the latest official binary, and the square did not appear (with or without using unicode)

This led me to think that the problem may be caused by my unofficial binary. I have tried to build from source with SFML 2.3, but unfortunately I am stuck at the last step with the error "unresolved external".
I have put the libs and includes in the correct folders with the compiler, and I have copied the dlls to the indicated location in the python folder, without success.
Maybe it's very simple to fix but I am not familiar with compilation and thus completely lost.

I would like to know if anyone encountered this issue and found a way to fix it.

Pages: [1]