pycurses for window

G

Guest

Guest
Archived from groups: rec.games.roguelike.development (More info?)

Thanks to help of Grzegorz Makarewicz there's
a curses Z-Day version for windows available here:

http://m32home.dyndns.org/gego/zday.zip

I can't test it myself, but if somebody tries it, any feedback would be
appreciated.

In particular, if it segfaults on you, or throws an exception, or just
behaves weird -- please tell us -- it's important for development of
pythoth curses library for windows, and thus for improving the usability
of python to write roguelike games!

--
Radomir @**@_ Bee! .**._ .**._ .**._ .**._ zZ
`The Sheep' ('') 3 (..) 3 (..) 3 (..) 3 (--) 3
Dopieralski .vvVvVVVVVvVVVvVVVvVvVVvVvvVvVVVVVVvvVVvvVvvvvVVvVVvv.v.
 
Archived from groups: rec.games.roguelike.development (More info?)

The Sheep <sheep@atos.wmid.amu.edu.pl> wrote:

> Thanks to help of Grzegorz Makarewicz there's a curses Z-Day version for
> windows available here:

> http://m32home.dyndns.org/gego/zday.zip

> I can't test it myself, but if somebody tries it, any feedback would be
> appreciated.

What do I have to do with the files? Just having them in one directory
together with zday.py doesn't work, just as copying them to the
python\lib\curses directory doesn't do anything. Does it matter which Python
version I'm using? (2.3.3)

> In particular, if it segfaults on you, or throws an exception, or just
> behaves weird -- please tell us -- it's important for development of
> pythoth curses library for windows, and thus for improving the usability
> of python to write roguelike games!

A noble goal, one I wish to support in whatever way possible!

Cheers, Gero
--
Gero Kunter (gero.kunter@epost.de)
 
Archived from groups: rec.games.roguelike.development (More info?)

Dnia Mon, 2 May 2005 18:38:13 +0000 (UTC),
Gero Kunter napisal(a):

> The Sheep <sheep@atos.wmid.amu.edu.pl> wrote:

> What do I have to do with the files? Just having them in one directory
> together with zday.py doesn't work, just as copying them to the
> python\lib\curses directory doesn't do anything. Does it matter which Python
> version I'm using? (2.3.3)

Good question :)
As I said, I coudn't test it myself. I'm pretty new to python too, but...

Under linux I'd put them into ./curses/ or
/usr/share/python2.4/site-packages/curses/ probably. Windows should have
similar directories...

As I look on it some more... say, shoudn't there be an init file?

>> In particular, if it segfaults on you, or throws an exception, or just
>> behaves weird -- please tell us -- it's important for development of
>> pythoth curses library for windows, and thus for improving the usability
>> of python to write roguelike games!

> A noble goal, one I wish to support in whatever way possible!

The author told me he was using pdcurses in python for some time now. He
stopped development because of lack of feedback and general interest.

I think hearing about roguelike games motivated him again. :)

--
Radomir @**@_ Bee! .**._ .**._ .**._ .**._ zZ
`The Sheep' ('') 3 (..) 3 (..) 3 (..) 3 (--) 3
Dopieralski .vvVvVVVVVvVVVvVVVvVvVVvVvvVvVVVVVVvvVVvvVvvvvVVvVVvv.v.
 
Archived from groups: rec.games.roguelike.development (More info?)

The Sheep wrote:
> Under linux I'd put them into ./curses/ or
> /usr/share/python2.4/site-packages/curses/ probably. Windows should have
> similar directories...

Really? Which Windows is that? I've never seen a Windows with a
/usr/share/anything directory myself... 😉

(Now, I *have* seen one with a C:\Cygwin\usr\share directory mind you...)

--
http://www.gnu.org/philosophy/right-to-read.html
Palladium? Trusted Computing? DRM? Microsoft? Sauron.
"One ring to rule them all, one ring to find them
One ring to bring them all, and in the darkness bind them."
 
Archived from groups: rec.games.roguelike.development (More info?)

"Gero Kunter" <gero.kunter@epost.de> schrieb im Newsbeitrag
news:d55s2l$lje$1@surz18.uni-marburg.de...
> The Sheep <sheep@atos.wmid.amu.edu.pl> wrote:
>
>> Thanks to help of Grzegorz Makarewicz there's a curses Z-Day version for
>> windows available here:
>
>> http://m32home.dyndns.org/gego/zday.zip
>
>> I can't test it myself, but if somebody tries it, any feedback would be
>> appreciated.
>
> What do I have to do with the files? Just having them in one directory
> together with zday.py doesn't work, just as copying them to the
> python\lib\curses directory doesn't do anything. Does it matter which
> Python
> version I'm using? (2.3.3)

Yeah, I don't know how to get this to work, either.

>> In particular, if it segfaults on you, or throws an exception, or just
>> behaves weird -- please tell us -- it's important for development of
>> pythoth curses library for windows, and thus for improving the usability
>> of python to write roguelike games!
>
> A noble goal, one I wish to support in whatever way possible!

If you finish this please try to push it into the standard Python
distribution. Having to install a special runtime to run a program is bad
enough but if the user has to install additional modules for this runtime
too it really becomes unbearable. I still remember this Perl dude who
expected you to download Perl + about four modules for it just to run his
pre-alpha RL...

copx
 
Archived from groups: rec.games.roguelike.development (More info?)

copx wrote:
> "Gero Kunter" <gero.kunter@epost.de> schrieb im Newsbeitrag
> news:d55s2l$lje$1@surz18.uni-marburg.de...
>
>>The Sheep <sheep@atos.wmid.amu.edu.pl> wrote:
>>
>>>Thanks to help of Grzegorz Makarewicz there's a curses Z-Day version for
>>>windows available here:
>>
>>>http://m32home.dyndns.org/gego/zday.zip
>>
>>>I can't test it myself, but if somebody tries it, any feedback would be
>>>appreciated.
>>
>> What do I have to do with the files? Just having them in one directory
>>together with zday.py doesn't work, just as copying them to the
>>python\lib\curses directory doesn't do anything. Does it matter which
>>Python
>>version I'm using? (2.3.3)
>
> Yeah, I don't know how to get this to work, either.
>
>>>In particular, if it segfaults on you, or throws an exception, or just
>>>behaves weird -- please tell us -- it's important for development of
>>>pythoth curses library for windows, and thus for improving the usability
>>>of python to write roguelike games!
>>
>> A noble goal, one I wish to support in whatever way possible!
>
> If you finish this please try to push it into the standard Python
> distribution. Having to install a special runtime to run a program is bad
> enough but if the user has to install additional modules for this runtime
> too it really becomes unbearable. I still remember this Perl dude who
> expected you to download Perl + about four modules for it just to run his
> pre-alpha RL...
>
> copx

I agree with copx! Lower those barriers to entry...
This is the 2nd time I have wanted to get Sheep's
game working and the 2nd time it didn't happen
for me... :l(

Can't you make stand alone runtimes with this
python by shipping its interepter/virtual machine/whatever?

--
ABCGi ---- (abcgi@yahoo.com) ---- http://codemonkey.sunsite.dk
Fun RLs in rgrd that I have tested recently!
DoomRL - DwellerMobile - HWorld - AburaTan - DiabloRL
Heroic Adventure - Tower of Doom - Tendrils - TheTombs
 
Archived from groups: rec.games.roguelike.development (More info?)

ABCGi <abcgi@yahoo.com> wrote:
[ ... ]
> Can't you make stand alone runtimes with this python by shipping its
> interepter/virtual machine/whatever?

It is possible; I've tried to do this with my own roguelike written in
Python (see my Shuruppak announcement in this newsgroup). After the failure
I had with the source package, I'd really like to hear what problems occur
with the binary distribution.

Cheers, Gero

--
Gero Kunter (gero.kunter@epost.de)
 
Archived from groups: rec.games.roguelike.development (More info?)

Dnia Tue, 03 May 2005 08:12:07 +1000,
ABCGi napisal(a):

> copx wrote:

> Can't you make stand alone runtimes with this
> python by shipping its interepter/virtual machine/whatever?

Well, that's how the ditro Filip made works, doesn't it?
There's a link on the z-day page.


--
Radomir @**@_ Bee! .**._ .**._ .**._ .**._ zZ
`The Sheep' ('') 3 (..) 3 (..) 3 (..) 3 (--) 3
Dopieralski .vvVvVVVVVvVVVvVVVvVvVVvVvvVvVVVVVVvvVVvvVvvvvVVvVVvv.v.
 
Archived from groups: rec.games.roguelike.development (More info?)

The Sheep wrote:
> Dnia Tue, 03 May 2005 08:12:07 +1000,
> ABCGi napisal(a):
>
>>copx wrote:
>
>>Can't you make stand alone runtimes with this
>>python by shipping its interepter/virtual machine/whatever?
>
> Well, that's how the ditro Filip made works, doesn't it?
> There's a link on the z-day page.

Nope - I tried it - there is no exe 🙁

--
ABCGi ---- (abcgi@yahoo.com) ---- http://codemonkey.sunsite.dk
Fun RLs in rgrd that I have tested recently!
DoomRL - DwellerMobile - HWorld - AburaTan - DiabloBand
Heroic Adventure - Tower of Doom - Tendrils - TheTombs
 
Archived from groups: rec.games.roguelike.development (More info?)

Dnia Tue, 03 May 2005 08:56:51 +1000,
ABCGi napisal(a):

> The Sheep wrote:
>> Dnia Tue, 03 May 2005 08:12:07 +1000,
>> ABCGi napisal(a):
>>
>>>copx wrote:
>>
>>>Can't you make stand alone runtimes with this
>>>python by shipping its interepter/virtual machine/whatever?

>> Well, that's how the ditro Filip made works, doesn't it?
>> There's a link on the z-day page.

> Nope - I tried it - there is no exe 🙁
Let's see:

[sheep@ghostwheel test]$ wget -nd http://bajobongo.net/fdreger/zday.zip
<snip>
Downloaded: 1,549,764 bytes in 1 files
[sheep@ghostwheel test]$ unzip zday.zip
<snip>
inflating: zday/Lib/UserDict.pyc
inflating: zday/Lib/zday.pyc
inflating: zday/Lib/_socket.pyd
inflating: zday/Lib/_sre.pyd
inflating: zday/python23.dll
inflating: zday/zday.exe
[sheep@ghostwheel test]$ cd zday/
[sheep@ghostwheel zday]$ ls
Lib/ python23.dll zday.exe

Are you sure the download isn't broken?

--
Radomir @**@_ Bee! .**._ .**._ .**._ .**._ zZ
`The Sheep' ('') 3 (..) 3 (..) 3 (..) 3 (--) 3
Dopieralski .vvVvVVVVVvVVVvVVVvVvVVvVvvVvVVVVVVvvVVvvVvvvvVVvVVvv.v.
 
Archived from groups: rec.games.roguelike.development (More info?)

The Sheep wrote:
> Dnia Tue, 03 May 2005 08:56:51 +1000,
> ABCGi napisal(a):
>
>
>>The Sheep wrote:
>>
>>>Dnia Tue, 03 May 2005 08:12:07 +1000,
>>> ABCGi napisal(a):
>>>
>>>
>>>>copx wrote:
>>>
>>>>Can't you make stand alone runtimes with this
>>>>python by shipping its interepter/virtual machine/whatever?
>
>
>>>Well, that's how the ditro Filip made works, doesn't it?
>>>There's a link on the z-day page.
>
>
>>Nope - I tried it - there is no exe 🙁
>
> Let's see:
>
> [sheep@ghostwheel test]$ wget -nd http://bajobongo.net/fdreger/zday.zip
> <snip>
> Downloaded: 1,549,764 bytes in 1 files
> [sheep@ghostwheel test]$ unzip zday.zip
> <snip>
> inflating: zday/Lib/UserDict.pyc
> inflating: zday/Lib/zday.pyc
> inflating: zday/Lib/_socket.pyd
> inflating: zday/Lib/_sre.pyd
> inflating: zday/python23.dll
> inflating: zday/zday.exe
> [sheep@ghostwheel test]$ cd zday/
> [sheep@ghostwheel zday]$ ls
> Lib/ python23.dll zday.exe
>
> Are you sure the download isn't broken?

heh - yeah - looks like that is what happened. doh!

WORKS! finally I get to play sheeps RL!!!

--
ABCGi ---- (abcgi@yahoo.com) ---- http://codemonkey.sunsite.dk
Fun RLs in rgrd that I have tested recently!
DoomRL - DwellerMobile - HWorld - AburaTan - DiabloBand
Heroic Adventure - Tower of Doom - Tendrils - TheTombs
 
Archived from groups: rec.games.roguelike.development (More info?)

Gero Kunter wrote:
> ABCGi <abcgi@yahoo.com> wrote:
> [ ... ]
>
>>Can't you make stand alone runtimes with this python by shipping its
>>interepter/virtual machine/whatever?
>
> It is possible; I've tried to do this with my own roguelike written in
> Python (see my Shuruppak announcement in this newsgroup). After the failure
> I had with the source package, I'd really like to hear what problems occur
> with the binary distribution.
>
> Cheers, Gero

Yours works fine on Win XP and so does Sheeps now
(my download was corrupt).

Definately the way to distribute python games on
winboxes - just a py file is a real pain.

--
ABCGi ---- (abcgi@yahoo.com) ---- http://codemonkey.sunsite.dk
Fun RLs in rgrd that I have tested recently!
DoomRL - DwellerMobile - HWorld - AburaTan - DiabloRL
Heroic Adventure - Tower of Doom - Shuruppak - TheTombs
 
Archived from groups: rec.games.roguelike.development (More info?)

Uzytkownik "ABCGi" <abcgi@yahoo.com> napisal w wiadomosci
news:4276a5b5$0$79452$14726298@news.sunsite.dk...
> I agree with copx! Lower those barriers to entry...
> This is the 2nd time I have wanted to get Sheep's
> game working and the 2nd time it didn't happen
> for me... :l(
>
> Can't you make stand alone runtimes with this
> python by shipping its interepter/virtual machine/whatever?

Yes, it's pretty simple. I have made a bundle like that out of Sheep's
game, and it works on all the computers I tried it on (there were not
many of them). It shoul work just by double-clicking zday.exe. Was
this the version you tried to run? What were the problems? Could you
please run this exe from a console and tell me, what the output was?

I know this is the third time I repeat this request, but you never
answered 🙂

regards,
Filip
 
Archived from groups: rec.games.roguelike.development (More info?)

Uzytkownik "ABCGi" <abcgi@yahoo.com> napisal w wiadomosci
news:4276b7b9$1$79452$14726298@news.sunsite.dk...
> WORKS! finally I get to play sheeps RL!!!

oops! sorry, I started reading posts in the wrong order - consider my
post from a minute ago non-existant 🙂

regards,
Filip