Re: [pygame] Example: Simple client and server

2007-10-03 Thread Rikard Bosnjakovic
On 03/10/2007, Ian Mallett [EMAIL PROTECTED] wrote: So if one player starts server.py, and another player on another computer starts client.py, will the transfer still work? Only one way to find out! -- - Rikard - http://bos.hack.org/cv/

Re: [pygame] Does anyone know of any guides or tutorials for sprite sheets and pygame?

2007-09-11 Thread Rikard Bosnjakovic
On 11/09/2007, Lamonte Harris [EMAIL PROTECTED] wrote: I don't know how I could/would do it. I'm going to do some more google searching. pygame.org-tutorials: http://kai.vm.bytemark.co.uk/~piman/writing/sprite-tutorial.shtml -- - Rikard - http://bos.hack.org/cv/

Re: [pygame] Is there a downloadable Manual?

2007-09-10 Thread Rikard Bosnjakovic
On 10/09/2007, Lamonte Harris [EMAIL PROTECTED] wrote: its less RAM/CPU usage. Than what? -- - Rikard - http://bos.hack.org/cv/

Re: [pygame] What about python 3?

2007-09-08 Thread Rikard Bosnjakovic
On 01/09/2007, René Dudfield [EMAIL PROTECTED] wrote: [...] They called people silly/stupid who don't have unit tests. Oh, great... Atleast that confirms some of the bad thoughts I had about those guys. Nowadays they're almost as horrible as the perl-community guys, if not worse. Some years

Re: [pygame] undeliverable messages

2007-08-05 Thread Rikard Bosnjakovic
On 29/06/07, Luke Paireepinart [EMAIL PROTECTED] wrote: I just keep getting bounces from his address every time I post. Setup a filter in your gmail. From: [EMAIL PROTECTED], to: pygame-users@seul.org, action: delete (or whatever). -- - Rikard - http://bos.hack.org/cv/

Re: [pygame] Finding the current view settings

2007-07-16 Thread Rikard Bosnjakovic
On 11/07/07, Ian Mallett [EMAIL PROTECTED] wrote: I'd like to know how to get the current view settings. http://www.pygame.org/docs/ref/display.html -- - Rikard - http://bos.hack.org/cv/

Re: [pygame] Slingshot 1.0

2007-06-01 Thread Rikard Bosnjakovic
On 5/30/07, John Eriksson [EMAIL PROTECTED] wrote: If you could help me test it I would be very happy! I would be happy to do so, if only you could provide an URL for it. -- - Rikard - http://bos.hack.org/cv/

Re: [pygame] Buried In Game Ideas

2007-05-31 Thread Rikard Bosnjakovic
On 5/30/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Quick question before this battery runs out: what would you want to be able to do in a village in this primitive island world, if the village is abstracted as a menu but the individual random tribesmen have names and hopefully some kind of

Re: [pygame] Need help testing Slingshot rc2

2007-05-25 Thread Rikard Bosnjakovic
On 5/24/07, Charles Joseph Christie II [EMAIL PROTECTED] wrote: It segfaulted when trying to find some timidity configs. Sounds very unlikely, and OTOH: strace is not a good tool for finding segmentation violations. But you can try adding the -f option to strace (follow forks) and see what

Re: [pygame] Need feed back on new game!

2007-05-22 Thread Rikard Bosnjakovic
On 5/22/07, John Eriksson [EMAIL PROTECTED] wrote: Could you try downloading it again? (I can't for some reason start my vmware windows right now.) pygame.org seems to be dead at the moment. -- - Rikard - http://bos.hack.org/cv/

Re: [pygame] BUG: Segfault when rotating a HWSURFACE

2007-05-12 Thread Rikard Bosnjakovic
On 5/10/07, John Krukoff [EMAIL PROTECTED] wrote: Is this a known problem? Unheard of. Please provide shortest possible sample code to reproduce the error. -- - Rikard - http://bos.hack.org/cv/

Re: [pygame]

2007-05-08 Thread Rikard Bosnjakovic
On 5/8/07, João Matos [EMAIL PROTECTED] wrote: help Help is on the way! -- - Rikard - http://bos.hack.org/cv/

Re: [pygame] fun game

2007-04-23 Thread Rikard Bosnjakovic
On 4/24/07, James Paige [EMAIL PROTECTED] wrote: Does anybody know a more fun operation than math.sqrt that I could use to push the fun up to 100%? while 1: pass -- - Rikard - http://bos.hack.org/cv/

Re: [pygame] Playable Game: Shooter Doodle

2007-04-06 Thread Rikard Bosnjakovic
On 4/6/07, Jason Massey [EMAIL PROTECTED] wrote: lol, you got a score of 10? That's amazing! You either have incredibly - *incredibly* - fast reflexes or something of a slow computer. I had to add in a tick delay to stand a chance, especially since the enemies are shooting spray patterns and

Re: [pygame] Re: Pygame 1.7.1 for Python 2.5 and BMP

2007-03-30 Thread Rikard Bosnjakovic
On 3/30/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I don't know what is a RLE-compressed BMP? Run-Length Encoding, it's a kind of compression for BMP-images. Probably for GIFs as well, but I dont have any first hand facts for this. And Why does this is working with the python 2.4

Re: [pygame] Running 'cmd' module as a pythread?

2007-03-14 Thread Rikard Bosnjakovic
On 3/14/07, JoN [EMAIL PROTECTED] wrote: (For some bizarre reason this never seems to have made it to the list. It did. -- - Rikard.

Re: [pygame] Strange syntax error

2007-03-05 Thread Rikard Bosnjakovic
On 3/6/07, Charles Joseph Christie II [EMAIL PROTECTED] wrote: It's on line 17. I don't see it though... There were two attachements, so a hint of in which one the error occured would be nice. -- - Rikard.

Re: [pygame] pygame.mixer crashes

2007-03-04 Thread Rikard Bosnjakovic
On 3/4/07, Παναγιώτης Τσιμπέρης [EMAIL PROTECTED] wrote: In fact I don't think it's a mixer problem at all: [...] Instead of python, issue gdb python and then run. Then do the imports and the like you did above. When you get SIGSEGV and return to gdb, type bt (backtrace) to see where the

Re: [pygame] pygame is a disgrace

2007-02-15 Thread Rikard Bosnjakovic
On 2/15/07, Bob Ippolito [EMAIL PROTECTED] wrote: I think it would've taken a lot less time to compile some version (any version) of pygame for Python 2.5 than to write this message. I'd beg to differ. Pygame 1.7 had a lot of dependencies which was a real pain in the backside to compile.

Re: [pygame] Using surfarray with numpy

2007-02-08 Thread Rikard Bosnjakovic
On 2/8/07, Malcolm Ryan [EMAIL PROTECTED] wrote: From the docs, pygame.surfarray will not work if you do not have Numeric installed. Is it possible to make it work with NumPy instead? Lenard Lindstrom did a post with this link some week ago:

Re: [pygame] Newbie needs help, what's the most efficient (or easiest) way to do this?

2007-02-06 Thread Rikard Bosnjakovic
On 2/6/07, Charles Christie [EMAIL PROTECTED] wrote: Anyway, Let's see. The tools I need: [...] May I suggest you start a new thread? This thread of 50+ posts has evolved a bit, and for newcomers it would be easier to do a follow up of the actual content if it's pinned down with a proper

Re: [pygame] PATCH: Make PyGame use new NumPy

2007-01-27 Thread Rikard Bosnjakovic
On 1/27/07, David Gowers [EMAIL PROTECTED] wrote: Looking it over, it seems that your email program has removed some vital spaces -- for instance, after the - and +'s. I suggest attaching it to your email instead. The patch was attached to his email. Also, may I suggest you discard useless

Re: [pygame] Newbie needs help, what's the most efficient (or easiest) way to do this?

2007-01-04 Thread Rikard Bosnjakovic
On 1/5/07, Charles Joseph Christie II [EMAIL PROTECTED] wrote: Thanks for the replies, guys. I was afraid of using mailing lists because I thought I would get loads of gtfo and noob replies and, well, I never tried to figure out how they worked. That's usually the case for www-forums and IRC.

Re: [pygame] Numpy slower than Numeric

2006-12-28 Thread Rikard Bosnjakovic
On 12/28/06, Kamilche [EMAIL PROTECTED] wrote: Sure, here it is. It's a total hack using global variables, but it works. Numeric takes 1 second, numpy takes 2.6, doing the same operations to the same picture. On line 30, array = pygame.surfarray.array3d(pic2).astype(numpy.int), I need to

Re: [pygame] Rotating Images on a specified axis.

2006-12-28 Thread Rikard Bosnjakovic
On 12/28/06, Caleb Mahase [EMAIL PROTECTED] wrote: That's not a bad idea at all! I'll give it a try. Thanks! Please try to avoid writing your own comments in a quoted block, it can be tricky to find your text. Thanks. -- - Rikard.

Re: [pygame] rc 3. please test windows installer.

2006-12-26 Thread Rikard Bosnjakovic
On 12/26/06, Kamilche [EMAIL PROTECTED] wrote: It's not backward compatible, that I've seen. *fear* Remembers me of old libimlib a decade ago. Every new version was completely uncompatible than an older one, so you had to have a whole bunch of imlibs scattered all over to make things work.

Re: [pygame] Fwd: Please hear me out.

2006-12-17 Thread Rikard Bosnjakovic
On 12/18/06, JoN [EMAIL PROTECTED] wrote: If this list is archived online then that should be sufficient. It is: http://aspn.activestate.com/ASPN/Mail/Browse/Threaded/pygame-users Most forum software is very annoying to use, though there are some exceptions. Agreed. Personally I never use

Re: [pygame] Re: [pygame] pygame.error: display Surface quit - ¿?

2006-12-05 Thread Rikard Bosnjakovic
On 12/6/06, Nicolas Bischof [EMAIL PROTECTED] wrote: it just came to me: ¿can it be because iI'm trying to blit in a place where my rect is not on? You mean as in out of screen? I find that very hard to believe. -- - Rikard.

Re: [pygame] Wave File Compatibility Problem

2006-11-13 Thread Rikard Bosnjakovic
On 11/13/06, JoN [EMAIL PROTECTED] wrote: AVICodec is a good one, or WinAmp which is probably easier to get. The Unix-program file can also be handy. -- - Rikard.

Re: [pygame] New User

2006-11-12 Thread Rikard Bosnjakovic
On 11/12/06, Jonah [EMAIL PROTECTED] wrote: Could you send me a link for the tutor list? I Googled it but couldn't find it. Pygame-tutorials: http://pygame.org/wiki/tutorials Python-tutorials: http://wiki.python.org/moin/BeginnersGuide Could someone please define these terms for me?:

[pygame] Re:

2006-11-10 Thread Rikard Bosnjakovic
On 11/10/06, Jason Ward [EMAIL PROTECTED] wrote: I must make the game playable on the web page, Ie the user must click on the game and run it while they are on the site. How do I do this. Is there any HTML command that I must give or what? Pygame is not the tool you would use for this

[pygame] Re:

2006-11-10 Thread Rikard Bosnjakovic
On 11/10/06, Jason Ward [EMAIL PROTECTED] wrote: I can't remember the error, but it just doesn't work. Then reproduce the error and let us know about it. -- - Rikard.

Re: [pygame] widescreen

2006-11-10 Thread Rikard Bosnjakovic
On 11/10/06, Jason Ward [EMAIL PROTECTED] wrote: Try making it fullscreen. If it still gives a distorted look then set the screen size [snip] Please, keep the posting threads INTACT by NOT posting an answer to a post on its own. Noone has no idea of to whom you were writing to - and why -

Re: [pygame] Some problem with WinXP Home and PyGame 1.7.1

2006-10-30 Thread Rikard Bosnjakovic
On 10/28/06, Tomasz Primke [EMAIL PROTECTED] wrote: All right, I found the bug. Thanks for your tip - indeed, doing it all in a manual session just doesn't work. It has to be done in a script (poor Windows users... ;-) ). Just for the record; interactive usage works fine for me in the editor

Re: [pygame] Python 2.5

2006-10-17 Thread Rikard Bosnjakovic
On 10/17/06, John Eriksson [EMAIL PROTECTED] wrote: Surly this is a silly question...but can i safely use python 2.5 with pygame 1.7.1? Most likely, yes. I can see no reason why it wouldn't work. As long as you use Python version = 2.3, you will be fine. -- - Rikard.

Re: [pygame] Checking For Pygame

2006-10-17 Thread Rikard Bosnjakovic
On 10/17/06, Greg Ewing [EMAIL PROTECTED] wrote: It's not clear what you mean by unloaded here. There's still a reference to it in sys.modules, so the module object will stay around for the life of the program. You're right, ofcourse. I was under the misunderstanding that modules within a

Re: [pygame] Current screen size

2006-09-25 Thread Rikard Bosnjakovic
On 9/25/06, John Eriksson [EMAIL PROTECTED] wrote: Hi, Is there a way to determine the desktops current screen resolution? From within pygame, I don't know of a way. If you have PIL (Python Imaging Library) installed, and run under Windows, you can use it like this: # - import ImageGrab

Re: [pygame] Dead display surfaces

2006-09-24 Thread Rikard Bosnjakovic
On 9/24/06, Luke Miller [EMAIL PROTECTED] wrote: Hello, What is a Dead Display surface in pygame, and what might cause it? A dead display is just what it sounds like, a display that is dead - i.e. it won't show anything and will not respond to events. Dead displays occur when your program

Re: [pygame] pygame.org problem

2006-09-24 Thread Rikard Bosnjakovic
On 9/24/06, Richard Jones [EMAIL PROTECTED] wrote: I can't seem to add a new project. I fill out the form and submit it, but nothing happens. It just returns the form to me, and doesn't appear to actually add the project. Um, where? -- - Rikard.

Re: [pygame] help!!!

2006-08-25 Thread Rikard Bosnjakovic
On 8/24/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: i write this message and i sending this message for all subscripted users? Yes. -- - Rikard.

Re: [pygame] Gaming Convention

2006-08-03 Thread Rikard Bosnjakovic
On 8/1/06, Simon Wittber [EMAIL PROTECTED] wrote: Are any pygamers planning on attending? That would have been cool. But alas, no. It's located on the other side of the earth. -- - Rikard.

Re: [pygame] Bltting numerous lines of text easily

2006-08-03 Thread Rikard Bosnjakovic
On 8/3/06, Παναγιώτης Τσιμπέρης [EMAIL PROTECTED] wrote: Also check out my new game at: http://takira.freehosting.net/beggar_my_neighbor.py that is the '_credits' function. I couldn't access that file: Forbidden Remote Host: [x.x.x.x] You do not have permission to access

Re: [pygame] pygame webplugin

2006-07-08 Thread Rikard Bosnjakovic
On 7/8/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: but with a webplugin it would be more serious since you potentially reach a bigger audience and it runs automatically? Also, you would not be able to peek the code, which you would be able to with a local application. -- - Rikard.

Re: [pygame] Font transparency in 8bits mode

2006-07-05 Thread Rikard Bosnjakovic
On 7/5/06, XTC's Addict [EMAIL PROTECTED] wrote: I only get some black areas where i intented to get some text :( Fonts are rendered on 24bpp if antialias is set. Else it will render to 8bpp. Your black font-render is probably an artefact from downsampling 24bpp to 8bpp. -- Rikard.

Re: [pygame] Font transparency in 8bits mode

2006-07-05 Thread Rikard Bosnjakovic
On 7/5/06, XTC's Addict [EMAIL PROTECTED] wrote: Maybe i could render my texts with a fixed background color, and then i could tell to pygame that this color is transparent ? You can always give it a try with my_rendered_font.convert_alpha() and then my_rendered_font.set_colorkey( (0,0,0) ),

Re: [pygame] Crop Image with Numeric

2006-07-05 Thread Rikard Bosnjakovic
On 7/5/06, Kamilche [EMAIL PROTECTED] wrote: if alpha[x][y] 0: Strip 0 from that line. That is, change it to if alpha[x][y]:. -- Rikard.

Re: [pygame] OT - getting file name from path string

2006-06-29 Thread Rikard Bosnjakovic
On 6/29/06, altern [EMAIL PROTECTED] wrote: i need to get the name of a file from the string containing the path. import os.path p = r'c:\file\myfile.gif' os.path.basename(p) 'myfile.gif' os.path.dirname(p) 'c:\\file' Hope that helps. -- Rikard.

[pygame] Question regarding a Rect()-object

2006-06-28 Thread Rikard Bosnjakovic
I've just learned how to use a Rect() and find them extremely useful. However, I just stumbled into a problem that confused me a lot. It's about defining a rect's bounds without using width and height. Consider this: a = Rect(0, 0, 0, 0) a.x, a.y = 10, 10 a.height, a.width (0, 0) So far so