New problem.
My program (which only uses pygame) doesn't run when py2exe'd. It says
something about not being able to find the surfarray module when the .exe is
run, but it closes almost instantly, so I can't really tell. I upgraded to
pygame 1.8, if that makes a difference.
Ian
Run it at the DOS prompt or command line
New problem.
My program (which only uses pygame) doesn't run when py2exe'd. It says
something about not being able to find the surfarray module when the .exe is
run, but it closes almost instantly, so I can't really tell. I upgraded to
pygame 1.8, if
C:\dev\Python25\Projects\Pygame Programs\Parabola\4\distParabola4.exe
Traceback (most recent call last):
File Parabola 4.py, line 1, in module
File pygame\__init__.pyc, line 159, in module
File pygame\surfarray.pyc, line 68, in module
File pygame\_numericsurfarray.pyc, line 12, in module
Ian,
This error sounds like a wrong revision level or change in the data type
structure, usually related to revision levels. So probably it was not compiled
correctly or just the wrong revision level.
Ian Sent:
C:\dev\Python25\Projects\Pygame Programs\Parabola\4\distParabola4.exe
I'm completely new to this, but I've been trying to
figure out if there's a way to scale an entire game to
a higher resolution, like what is frequently done in
emulators etc so i could allow the user to play at the
low resolution or scale it higher if desired. Is
there a simple way to do this?
This is very easy to do, thanks to the structure of pygame, blits and
surfaces. Here is a simple (untested) example:
Old way:
resolution = [320,240]
screen = pygame.display.set_mode(resolution)
while 1:
screen.blit(sprite,[5,5])
pygame.display.flip()
New way:
resolution = [640,480]
That error looks very google-able now - I found this thread that seems related:
http://www.gossamer-threads.com/lists/python/python/629815?page=last
According to it, the problem seems to be that line 9 of numeric's precision.py:
---
from multiarray import zeros
---
imports numeric's multiarray
--exclude
?
--exclude Numeric,Numpy makes something that doesn't crash immediately.
It cannot, however, find the default pygame font. Why?
That problem has popped up on the mailing list a lot - a ton really...
I don't know of a good way to solve this problem for people long term
(i.e. make sure that py2exe includes the font - although if py2exe
supported eggs I suppose they could do it), but I think if
freesansbold.ttf was in your
so do you use PyOpenGL from that program? does the program work completely now?
On Sat, Mar 15, 2008 at 6:20 PM, Ian Mallett [EMAIL PROTECTED] wrote:
I solved my problem by loading the font file from the program:
Font = pygame.font.Font(freesansbold.ttf,12)
or something, then adding the
Nope.
This is the parabola one:
http://www.geometrian.com/Programs/Parabola4exe.zip
It only uses pygame. OpenGL still doesn't work.
On Fri, Mar 14, 2008 at 3:11 PM, Casey Duncan [EMAIL PROTECTED] wrote:
On Mar 13, 2008, at 4:12 PM, René Dudfield wrote:
Hello,
I found some things to improve the quality of the shadow mapping, and
written in more comments.
You might need to move the light around, or move the objects around
for the shadowing to work. But I've managed to use other models for
the floor and the object casting a shadow.
Yeah, rendering to a texture might be able to work... but I can't
think how at the moment. Lots of different
hehe, yeah.
or
glEnable(GL_JUST_WORK);
I think if you place lights in certain places the shadows can look
nice. So for some uses it is pretty cool, and I guess it is fairly
simple to code, and works fairly fast :)
On Sat, Mar 15, 2008 at 8:46 AM, Ian Mallett [EMAIL PROTECTED] wrote:
On Thu,
On Sat, Mar 15, 2008 at 8:45 PM, René Dudfield [EMAIL PROTECTED] wrote:
You might need to move the light around, or move the objects around
for the shadowing to work. But I've managed to use other models for
the floor and the object casting a shadow.
I haven't. A single quad shadowing a
16 matches
Mail list logo