[pygame] pygame error unable to reset window for OpenGL context

2008-05-13 Thread Astan Chee

Hi,
I know that I cant open two pygame windows in the same python app, so Im 
trying to get two pygame windows as a subprocess.
So what I have now is a main wx window that calls one pygame window via 
threading and another that calls another pygame window using 
subprocess.call .
The first pygame window is persistant but the second one is used to 
render and save images. That is why Im using subprocess.call .
So far, if I run it once, it runs fine. If I try to re-render using the 
same window, it gives me a "unable to reset window for OpenGL context" 
and this occurs when the pygame.display.set_mode() is called.
I was wondering what this means and how I can fix it? Is it because I am 
doing a pygame.display.quit() everytime I finish rendering in this 
temporary pygame window?
For references, the way I open a pygame via threading is like this : 
http://wiki.wxpython.org/IntegratingPyGame
and I create a temporary pygame window like this : 
http://www.bigdicegames.com/Code/Samples/TwoWindows.zip

Thanks for any advice
Astan

--
"Formulations of number theory: Complete, Consistent, Non-trivial. Choose two."


Animal Logic
http://www.animallogic.com

Please think of the environment before printing this email.

This email and any attachments may be confidential and/or privileged. If you 
are not the intended recipient of this email, you must not disclose or use the 
information contained in it. Please notify the sender immediately and delete 
this document if you have received it in error. We do not guarantee this email 
is error or virus free.





Re: [pygame] Re: pygame 1.8.0 problems

2008-05-13 Thread Lenard Lindstrom
Not when Pygame 1.7 used the bdist_wininst installer while Pygame 1.8 
uses a .msi installer.


Lenard

illume wrote:

hello,

is there anyway we can fix this in the installer?

Or maybe in the new surfarray somehow?

cheers,


On May 11, 5:53 am, Lenard Lindstrom <[EMAIL PROTECTED]> wrote:
  

Jake b wrote:


Hi. I'm trying to get ocempgui working, so I downloaded the newest
version that removes numeric dependency. Then I installed the newest
version of pygame. But import fails.
  
I run:
  

python.exe -i
import ocempgui


popup dialog:
title: But I get "python.exe - entry point not found"
error: "The procedure entry pont SDL_GetKeyRepeat could not be located
in the dynamic link libary SDL.dll
  

[snip]


What's wrong?
  
== I have installed: ==

python 2.5
numpy
pygame 1.8.0.win32-py2.5msi
pygame 1.7.1.win32-py2.5
OS: win32 / winXP
  

You can't have both Pygame 1.7.1 and 1.8.0 installed at the same time.
Try uninstalling Pygame, deleting directory
C:\Python25\lib\site-packages\pygame if necessary, then reinstall Pygame
1.8.0. I found no problems with OcempGUI and Pygame 1.8.1.






[pygame] Procedural Generation Competition

2008-05-13 Thread Thiago Chaves
Hi all,

hopefully this is not off-topic. But a new game programming competition has
recently started. It's name is Procedural Generation Competition and should
prove interesting.

It begun on 5th of May
It ends on 2nd of June

More information about the competition here (including several articles
which talk about procedural content generation. Even if you're not
participating, it's worth browsing)
http://forums.tigsource.com/index.php?topic=1646.0

-Thiago