Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#109125 - 02/08/2002 19:27 Sokoban for Empeg
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
I was bored so I wrote a Sokoban game for the Empeg.

It's here if anybody wants it. Move around using the front panel buttons or remote. You can scroll about manually with the knob.

- Trevor

Top
#109126 - 02/08/2002 21:21 Re: Sokoban for Empeg [Re: tman]
cael
new poster

Registered: 26/06/2002
Posts: 13
Just in case people aren't familiar with the name Sokoban, this is the puzzle game which involves pushing a number of blocks from their starting positions to an end location.

Here's an online java version:

http://www.pimpernel.com/sokoban/sokoban.html

Top
#109127 - 03/08/2002 05:23 Re: Sokoban for Empeg [Re: cael]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
New version here

Fixed a couple of bugs and compressed the level data to save some space. Put a move and push counter in as well.

- Trevor

Top
#109128 - 03/08/2002 13:04 Re: Sokoban for Empeg [Re: tman]
justinlarsen
old hand

Registered: 31/12/2001
Posts: 1109
Loc: Petaluma, CA
whoa, this is kick ass. I LOVE GAMES FOR THE EMPEG!
_________________________
---- Justin Larsen

Top
#109129 - 03/08/2002 15:08 Re: Sokoban for Empeg [Re: tman]
andym
carpal tunnel

Registered: 17/01/2002
Posts: 3996
Loc: Manchester UK
Hi Trevor,

Is there any chance of releasing the source. I'm in the middle of writing my GPS display program and would like to see as many examples of empeg progs to help me write mine. I've got the display routine and the NMEA parsing routine I just need some glue code to get it going.

PLEASE!!
_________________________
Cheers,

Andy M

Top
#109130 - 03/08/2002 15:48 Re: Sokoban for Empeg [Re: andym]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
Sure. I'll email it to you in a sec

- Trevor

Top
#109131 - 03/08/2002 15:54 Re: Sokoban for Empeg [Re: tman]
andym
carpal tunnel

Registered: 17/01/2002
Posts: 3996
Loc: Manchester UK
You're a wonderful man!
_________________________
Cheers,

Andy M

Top
#109132 - 05/08/2002 17:45 Re: Sokoban for Empeg [Re: tman]
kojak71
journeyman

Registered: 19/12/2001
Posts: 97
Wow, this will keep the girlfriend busy.

I do have 1 question, which directory should this program be sitting in, at the moment I have it sitting in /empeg/bin/.

Top
#109133 - 05/08/2002 18:13 Re: Sokoban for Empeg [Re: kojak71]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
It needs to have a cute aspect to be a true girlfriend distraction though

It doesn't matter where you put it so feel free to put it in /empeg/bin/

- Trevor

Top
#109134 - 06/08/2002 12:04 Re: Sokoban for Empeg [Re: tman]
oliver
addict

Registered: 02/04/2002
Posts: 691
Hi Trevor, very nice work. game is really awesome.
One thing i would like to see added in the future, is be able to hold down a button, and the guy will just go all the way to the wall. There is something that bothers me about pushing the buttons on a priceless display 1000's of times. Is this possible to add into your code?
_________________________
Oliver mk1 30gb: 129 | mk2a 30gb: 040104126

Top
#109135 - 06/08/2002 12:07 Re: Sokoban for Empeg [Re: oliver]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
Yeah. I was thinking of adding this. It was making my finger ache from pressing the buttons so many times

- Trevor

Top
#109136 - 06/08/2002 13:45 Re: Sokoban for Empeg [Re: oliver]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
Okay. I've added support for key repeating now. Just hold down the buttons for at least .25 seconds and it should start to repeat. New file is here. Same instructions to install.

It also now supports the launcher program. Give it the command line argument -l to turn it on.

Anybody else want anything else added to it? Or if there are any bugs?

- Trevor

Top
#109137 - 07/08/2002 11:56 Re: Sokoban for Empeg [Re: tman]
Dignan
carpal tunnel

Registered: 08/03/2000
Posts: 12338
Loc: Sterling, VA
Damn you! As if I hadn't ruined enough of my school year playing Sokoban on my Rex6000 in the middle of class, now you've got me playing it at work! Thanks a lot!
_________________________
Matt

Top
#109138 - 07/08/2002 19:41 Re: Sokoban for Empeg [Re: tman]
canuckInOR
carpal tunnel

Registered: 13/02/2002
Posts: 3212
Loc: Portland, OR
It also now supports the launcher program.

Woohoo! Thanks, mate!


Edit: Hmm... it doesn't seem to want to grab the display or buttons when run by launcher. I'm not sure if the problem is in my code, or yours. Will try tracking it down on my end.


Edited by canuckInLA (07/08/2002 22:44)

Top
#109139 - 08/08/2002 03:06 Re: Sokoban for Empeg [Re: canuckInOR]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
Oops. I accidently commented out the setgeometry ioctl I'll put it back in...

- Trevor

Top
#109140 - 08/08/2002 04:38 Re: Sokoban for Empeg [Re: canuckInOR]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
Okay. I've worked out what the problem was.
I'm a little bit more fussy on checking the return codes of the ioctls and it was dying because it couldn't bind the buttons. This always fails for some reason.

A workaround would be to have your launcher program bind all of the available buttons so that it can pass them onto the user app it launches. The viewer program works because it doesn't check the return codes and it also happens to use the same set of buttons that you do. Haven't had the time to work out why exactly since I'm technically supposed to be working...

I'll put a fixed version of empsoko up in a bit. Still trying to find out why empsoko isn't getting the "-l" argument to run in launcher mode though.

- Trevor

Top
#109141 - 08/08/2002 06:12 Re: Sokoban for Empeg [Re: canuckInOR]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
Okay. Fixed the problem about the command line arguments. And the button binding issue.

New version of empsoko is here. You don't need to upgrade unless you're using launcher.

Ignore patch. It's reversed. Will reply with proper one

- Trevor


Attachments
108335-launcher.patch (160 downloads)



Edited by tman (08/08/2002 06:15)

Top
#109142 - 08/08/2002 06:15 Re: Sokoban for Empeg [Re: tman]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
New patch for Launcher v1.0

Must get back to work!

- Trevor


Attachments
108337-launcher.patch (105 downloads)


Top
#109143 - 08/08/2002 19:43 Re: Sokoban for Empeg [Re: tman]
canuckInOR
carpal tunnel

Registered: 13/02/2002
Posts: 3212
Loc: Portland, OR
Ah, sweet! Thanks for the patch. Will get that fixed and distributed when I get home...

Edit: Ah, I see... I saw it commented out in the example in hijack.h, which said it was done by WAITMENU.

Edit2: See post in programming forum for updated distro. I need a website, I think.


Edited by canuckInLA (09/08/2002 00:36)

Top