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

Pages: [1]
1
Python / Re: LoadFromFile crashes without error.
« on: February 02, 2013, 04:49:57 pm »
PySFML 1.6
I had some modules already implemented in 1.6 and no time to rewrite it for 2.0  :(

2
Python / Re: LoadFromFile crashes without error.
« on: February 02, 2013, 01:42:05 am »
Quote
font = sfml.Font.get_default_font()
I'm guessing you are using sfml because you did
from PySFML import sf as sfml
. If that is the case I already tried that and it says Font has no attribute 'load_from_file', same thing with get_default_font.

3
Python / Re: Command Prompt raises when I run my game
« on: February 02, 2013, 01:16:47 am »
Thanks! I was thinking in using pyinstaller once I finish the game, during testings I had no idea what to do.
Thank you again :)

4
Python / Command Prompt raises when I run my game
« on: January 30, 2013, 01:38:21 am »
Greetings!
I've been creating a game using python 2.7 + PySFML 1.6 for my first time.
I don't know if I'm doing something wrong but when I run my main script the game renderWindow raises as spected but so does it a command prompt (readonly).
At some point I want to distribute this little game and I don't want that prompt to pop up! Any way to do that?

I use IDLE for Windows to write my python code.

Thanks in advance for your help!

5
Python / Re: LoadFromFile crashes without error.
« on: January 29, 2013, 10:48:23 pm »
Before someone says it. I know its an old topic about this exact same quest but replies were just like change to version 2.0 which I can't do.
Any real solution to the problem?

6
Python / LoadFromFile crashes without error.
« on: January 28, 2013, 10:28:29 pm »
Greetings!

I'm working on a game using PySFML, I'm trying to change the font of a sf.String variable but python.exe stops working without an error message.
Here is what I've written:

font = sf.Font()
font.LoadFromFile('my_downloaded_font.ttf', 50)
self.welcomemsg = sf.String("Welcome, "+self.lastplayer, font)

Thanks for any help.

UPDATE: I almost forget it, I'm using IDLE (python 2.7), Windows 7 and PySFML 1.6

UPDATE: Everything's OK when I do this:

 
font = sf.Font()
font = sf.Font.GetDefaultFont()
#font.LoadFromFile('my_downloaded_font.ttf', 50)
self.welcomemsg = sf.String("Welcome, "+self.lastplayer, font)

Pages: [1]