maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   [ANNOUNCE] Paper toss N900 (Python+pygame) (https://talk.maemo.org/showthread.php?t=70382)

jamiefuller 2011-02-26 22:44

[ANNOUNCE] Paper toss N900 (Python+pygame)
 
I've been playing with Python and Pygame over the last few days and decided to make a version of the best thing that is available for Android.

Now you can play Paper Toss without having to install Nitdroid, although you should still do that anyway :)

Its packaged as a zip file, simply extract to a folder on your n900 (preferably under your mydocs folder) and then launch the python file from xterm with "python game.py"

to download click here

hope you enjoy!

http://2.bp.blogspot.com/-Jms6QHkbZ3...screenshot.jpg

Bratag 2011-02-26 22:46

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
Lol awesome. Who has never played this in the office? Will check this out. Thanks.

Nokia 5700 2011-02-26 23:15

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
Im impressed! I've always liked your software. From Sensitive5800 to this. :)
Good performance with no lag, the controls work nicely, all good. The only missing feature is to have different backgrounds. :D

Tiboric 2011-02-26 23:18

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
Cheers jamie, you always produce something fun. hope you keep playing with python.

sake 2011-02-26 23:18

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
Awesome!
(best: 4)

jamiefuller 2011-02-26 23:20

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
Thanks guys!, glad you like it.

shazosbourne 2011-02-26 23:22

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
Yeah baby! Grabbing it now.
This is the only thing I nick my kids ipod touch for!

crail 2011-02-27 03:31

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
i get no such file or directory in terminal?

nicholes 2011-02-27 04:23

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
1 Attachment(s)
i have downloaded the file and extracted to Mydocs and did this

EDIT:just got that working! opened folder in file box and open terminal from file box !!!

crail 2011-02-27 04:36

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
got it working. just use filebox to open that folder in xterminal

debernardis 2011-02-27 04:58

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
It is very very nice. There's a problem, though.
I have installed the community ssu with autorotation of programs, and so, when I rotate the device in portrait mode to play, the program window rotates too. Could you please do something to make it stay portrait and ignore rotation signals from outside? Thanks

Addison 2011-02-27 04:59

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
Oooh!

Since this is in python, will it also work under Diablo as well?

Addison 2011-02-27 05:23

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
Sorry. My stupids.

I should have just tried it first before asking such a dumb question like I did.

Anyway, many super thanks Jamie!

I loves it! :D

N900L 2011-02-27 09:44

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
thanks a lot
can you make deb file of this game so it can be launched from the menu?

i guess doodle jump will be the next game.

Addison 2011-02-27 10:51

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
Hey Jamie, everything works just fine under Diablo unless it makes it in the basket.


[1|user@Nokia-N800-43-7|/usr/bin/toss]python game.py
game.py:1: RuntimeWarning: import cdrom: No module named cdrom
import pygame, math, random,time
game.py:1: RuntimeWarning: import joystick: No module named joystick
import pygame, math, random,time
Traceback (most recent call last):
File "game.py", line 116, in <module>
fo=open("game.dat","w")
IOError: [Errno 13] Permission denied: 'game.dat'


Any suggestions?

I have no game.bat file anywhere.

Thanks!

jamiefuller 2011-02-27 10:57

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
Hi Addison,

Is the game stored on a fat or ext partition?, it sounds like a simple permission issue, you might have to make the whole folder writable,

Its failing on writing out the high score file. (game.dat)

another thing to try might be to create a blank game.dat file and chmod 777 that file.

Addison 2011-02-27 10:59

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
Thanks!

I have it in
/usr/bin/toss/

From there all I did was change permissions on all of the .py files.

I'll try your ideas right now. :)

Addison 2011-02-27 11:04

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
Joy!

I just changed permissions for the whole stupid folder.

:thumbsup:

:D

ZogG 2011-02-27 11:10

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
if you package it and and upload to extra-devel it would be nice =)
thanks for game

jamiefuller 2011-02-27 11:13

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
Glad to hear it Addison,
ZogG, I'll try to package it later, but the wiki page for py2deb looks very complex. I'll try though,

StefanL 2011-02-27 11:31

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
If you need help with packaging, maybe talk to epage. He helped on this thread:

http://talk.maemo.org/showthread.php?t=69887

Cheers,

Stefan

couldvbb 2011-02-27 12:06

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
No work,I do not know how to do
http://images.plurk.com/d8542e0679b9...6657af70d7.jpg

i know
apt-get install python-pygame
it, work thank

Kevstacey 2011-02-27 13:26

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
Quote:

Originally Posted by crail (Post 956225)
got it working. just use filebox to open that folder in xterminal

ive tried that but no joy, what do i type once i open the folder with xterm through filebox?

edit: read above post and installed python-pygame lol :)

towhatend 2011-02-27 13:54

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
Quote:

Originally Posted by nicholes (Post 956221)
i have downloaded the file and extracted to Mydocs and did this

EDIT:just got that working! opened folder in file box and open terminal from file box !!!

In the future, you can use the command cd to get to the right folder. Use ls to see what to type.

jamiefuller 2011-02-28 01:12

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
I have managed to package and upload to the garage, it can be found in extras-dev at the moment, once I'm sure its ok I'll promote it.

be sure to only grab build 3 or higher (1.0.0-3) and as usual becareful when using extras-dev.

travla 2011-02-28 01:21

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
Quote:

Originally Posted by jamiefuller (Post 956939)
I have managed to package and upload to the garage, it can be found in extras-dev at the moment, once I'm sure its ok I'll promote it.

be sure to only grab build 3 or higher (1.0.0-3) and as usual becareful when using extras-dev.

Thank you jamiefuller, I can't wait to try this, but not prepared to try until it is in extras-testing.

Thank you for supporting this community.

anapospastos 2011-02-28 10:10

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
Very nice try dude but I ve got 2 problems. Firstly, the rotation problem as mentioned some posts ago and secondly when I m putting the paper into the bucket the game exits.

*installed version 1.0.0-3

jamiefuller 2011-02-28 10:29

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
Sorry guys, Unfortunatly I am not aware of any way to disable the autorotation of a thirdparty app within Python, so I doubt that it will ever be resolved. Unless someone can advise me how?

:( The bin error should have been resolved in 1.0.0-3.
could you go to xterm and type "ls /opt/papertoss/ -l" (without the quotes) and let me know the output (mainly for the game.dat line)

Thanks

anapospastos 2011-02-28 10:39

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
Here is the output you asked
Code:

-rw-r--r--    1 root    root        6334 Feb 26 22:17 bin.png
-rw-r--r--    1 root    root        2469 Feb 26 22:48 digits.png
-rw-r--r--    1 root    root        38364 Feb 26 22:16 fan1.png
-rw-r--r--    1 root    root        36109 Feb 26 22:16 fan2.png
-rw-r--r--    1 root    root            1 Feb 27 20:42 game.dat
-rwxrwxrwx    1 root    root        4354 Feb 28 02:15 game.py
-rw-r--r--    1 root    root        84012 Feb 27 00:03 hit.wav
-rw-r--r--    1 root    root        72748 Feb 27 00:03 miss.wav
-rw-r--r--    1 root    root      234116 Feb 26 22:14 office.png
-rw-r--r--    1 root    root        17065 Feb 18 20:41 paper.png

Regarding rotation someone will help you to solve it, dont worry.

jedi 2011-02-28 11:28

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
Cool lil' game - thanks for sharing it with us.

But why in the name of holy mother of mercy did you use *THAT* font?

http://bancomicsans.com/

:)

MaddogG 2011-02-28 13:35

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
Quote:

Originally Posted by anapospastos (Post 957155)
Very nice try dude but I ve got 2 problems. Firstly, the rotation problem as mentioned some posts ago and secondly when I m putting the paper into the bucket the game exits.

*installed version 1.0.0-3

Same problem here... :(

debernardis 2011-02-28 15:01

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
I have done
Code:

/opt/papertoss $ sudo chown user:users game.dat
/opt/papertoss $ sudo chmod 666 game.dat

and it doesn't crash any more.
But it would be better if game.dat were somewhere under /home.

jamiefuller 2011-02-28 17:06

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
Hi Guys,

The autobuilder script should automatically perform the command that debernardis mentions, so I am a little concerned as to why it doesn't work?

It changes the permission of the game.py file to executable so I am more than a little confused by it?

I'll try to repackage it again this evening.

Did the people who are getting this problem have any other version installed previously?

debernardis 2011-02-28 17:28

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
Nope, I only tried your first version in a subdirectory under MyDocs.

Hootenholler 2011-02-28 17:31

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
*THAT* font

http://i.imgur.com/E46C7.gif

couldvbb 2011-02-28 17:58

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
Paper toss deb good
bug: Opinions thrown out automatically

hope to deb
Nokia N900 Rifle Python Script with PyGame
http://www.youtube.com/watch?v=DglT-...feature=relmfu

Nokia N900 image shooting Python Script with PyGame
http://www.youtube.com/watch?v=b3iEx...layer_embedded

Clock game for N900
http://talk.maemo.org/showthread.php...441#post956441

jamiefuller 2011-02-28 18:52

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
Hi Everyone,,

I've just uploaded a new package to extras-dev , pretty sure I have fixed the problem this time.

new one is 1.0.0-4

cheers

lingling92 2011-02-28 20:07

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
hey, i have the problem that the game even does not start.
Just black screen and loading... then shut down of program. Also I'm not the only one with that problem.

Any idea?
Updated on newest package 1.0.0-4

thanks

jamiefuller 2011-02-28 20:24

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
Hi Lingling92,

could you try running the game from xterm and see if it gives you any errors?

in xterm, type the following

python /opt/papertoss/game.py

cheers
jamie

N900L 2011-02-28 20:29

Re: [ANNOUNCE] Paper toss N900 (Python+pygame)
 
hi thank you for packing it in a deb file.

I hope you will release a doodle jump clone.


All times are GMT. The time now is 08:24.

vBulletin® Version 3.8.8