Active Topics

 



Notices


Reply
Thread Tools
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#21
I received the exact same errors.

Is there any way to strip down the build for this?

I don't need any special cdrom, joystick, or even sound support.

So yeah, any chance you or someone else could look into this some more?
 

The Following User Says Thank You to Addison For This Useful Post:
Posts: 16 | Thanked: 14 times | Joined on Sep 2010 @ Finland
#22
Originally Posted by Addison View Post
I received the exact same errors.

Is there any way to strip down the build for this?

I don't need any special cdrom, joystick, or even sound support.

So yeah, any chance you or someone else could look into this some more?
Looking at the error message posted by linuxeventually more closely, it seems that the error is not in the missing cdrom, joystick, etc. libraries. Those are just warnings. The real error is of course:

Code:
  File "/opt/outlawsolitaire/guilib.py", line 32, in 
<module>
    class Widget(pygame.sprite.DirtySprite):
AttributeError: 'module' object has no attribute 
'DirtySprite'
So it seems that the pygame 1.7.1 ported to Diablo does not support dirty sprites.
Solution would be that somebody ports more recent version of pygame to Diablo or that somebody (I guess me) rewrites Outlaw Solitaire so that it does not use dirty sprites.
 

The Following User Says Thank You to tonika For This Useful Post:
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#23
Thank you for at least looking at this.

I really appreciate it.
 
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#24
So is it even possible to build this without using dirty sprites?
 
Posts: 16 | Thanked: 14 times | Joined on Sep 2010 @ Finland
#25
Originally Posted by Addison View Post
So is it even possible to build this without using dirty sprites?
It's only SW, so everything is possible

I will look into this, but no promises about schedule. Unfortunately I'm somewhat busy with other projects and Outlaw Solitaire was never meant to be supported on Diablo.

And I will not make a proper Diablo release, you'll just get a zip file to extract to your device (assuming there is a way to make this work with the older version of PyGame).
 

The Following User Says Thank You to tonika For This Useful Post:
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#26
That sounds perfect to me tonika! :swoon:
 
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#27
Any progress on this?
 
Posts: 16 | Thanked: 14 times | Joined on Sep 2010 @ Finland
#28
Originally Posted by Addison View Post
Any progress on this?
Sorry for late reply.

Could you try this:

- In your device at the outlawsolitaire directory replace the existing guilib.py with the version inside this zip file:
guilib.zip

- Download the pygame-1.8.1 release from here:
http://pygame.org/ftp/pygame-1.8.1release.zip

- Extract the zip somewhere

- From the extracted zip, copy this file:

pygame-1.8.1release\lib\sprite.py

to the outlawsolitaire directory on your device and rename it as pygame181sprite.py

- Try to run Outlaw Solitaire:
python ./outlawsolitaire.py
 

The Following User Says Thank You to tonika For This Useful Post:
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#29
Poopies.

I don't think that worked.

Ah nuts. *lol*


[1|user@Nokia-N800-43-7|~]python /home/user/outlaw/outlawsolitaire.py
/home/user/outlaw/outlawsolitaire.py:32: RuntimeWarning: import cdrom: No module named cdrom
import pygame, os, sys
/home/user/outlaw/outlawsolitaire.py:32: RuntimeWarning: import joystick: No module named joystick
import pygame, os, sys
Traceback (most recent call last):
File "/home/user/outlaw/outlawsolitaire.py", line 65, in <module>
mainapp.update()
File "/home/user/outlaw/main.py", line 1560, in update
self.update_rect_list = self.containers.draw(self.screen)
File "/home/user/outlaw/guilib.py", line 347, in draw
return self.widget_group.draw(surface)
File "/home/user/outlaw/pygame181sprite.py", line 991, in draw
spr.source_rect, spr.blendmode)
TypeError: function takes at most 3 arguments (4 given)
 
Posts: 16 | Thanked: 14 times | Joined on Sep 2010 @ Finland
#30
Originally Posted by Addison View Post
Poopies.

I don't think that worked.

Ah nuts. *lol*
Took some time to find old enough Linux distro that would support pygame 1.7.1.

Can you once again try couple of more things:

1. Start with your current setup with the modified guilib.py and pygame181sprite.py from the previous post

2. Overwrite your current pygame181sprite.py (located in outlawsolitaire directory) with a version from this zip:
pygame181sprite.zip

3. Overwrite your current gfxlib.py (located in outlawsolitaire directory) with a version from this zip:
gfxlib.zip

4. Try to run Outlaw Solitaire
python ./outlawsolitaire.py

Hope this helps. I got it working in Ubuntu 8.04 with pygame 1.7.1.
 

The Following User Says Thank You to tonika For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 12:39.