[comp.sys.apollo] Need help with xtank

kcantrel@digi.lonestar.org (Keith Cantrell) (04/11/90)

Hello netlanders,

I am trying to port the xtank game written by Terry Donahue to an
Apollo running Domain-OS which supports BSD4.3 and Xwindows Version 11
release 2.  All of it compiles just fine but there is some strange
code in there that handles the amount of time it gives all the
"Vehicles".  It uses some "Mailbox Multitasker" package written by
Michael Benjamin Parker.  This package plays some pretty weird games
with the jmp_buf that setjmp() and longjmp() use.

My question is this: Has anybody ever tried to port the xtank game to
the Apollo, and if so, were you successful, and if so, will you PLEASE
tell me what all you had to change to make it fly.  If nobody has ever
gotten xtank to work, how about just the Mailbox Multitasker?

This is really a neat game (I was able to play it on a different type
of machine) and I would really like to be able to make it work on my
Apollo.  If there is anybody out there who has time to try and make it
work I would be more than happy to send you the sources.


Type at you later,

Keith Cantrell

-----------------------------------------------------------------------
Keith Cantrell                    Phones:  hm: 214-492-1088
Apollo Computer                            wk: 214-519-2399 @ DSC 
A Subsidiary of Hewlett-Packard
On site consultant at DSC.
USMAIL:                          EMAIL:
2100 Sonata Ln                   kcantrel@digi.lonestar.org
Carrollton TX 75007                           or
                                  ...!texbell!digi!kcantrel
-----------------------------------------------------------------------

pha@CAEN.ENGIN.UMICH.EDU (Paul H. Anderson) (04/11/90)

	Date: 10 Apr 90 20:15:07 GMT
	From: kcantrel%digi%texsun%newstop%sun-barr.uucp@apple.com
	Organization: DSC Communications, Plano Tx.
	Subject: Need help with xtank (PLEASE HELP)
	
	Hello netlanders,
	 
	I am trying to port the xtank game written by Terry Donahue to an
	Apollo running Domain-OS which supports BSD4.3 and Xwindows Version 11
	release 2.  All of it compiles just fine but there is some strange
	code in there that handles the amount of time it gives all the
	"Vehicles".  It uses some "Mailbox Multitasker" package written by
	Michael Benjamin Parker.  This package plays some pretty weird games
	with the jmp_buf that setjmp() and longjmp() use.

One clue here is that the Apollo setjmp, longjmp() does not save all
the registers that other setjmp,longjmp() calls do.  You will either have
to re-write setjmp,longjmp, or rewrite the code to use, say, CPS.
	 
	My question is this: Has anybody ever tried to port the xtank game to
	the Apollo, and if so, were you successful, and if so, will you PLEASE
	tell me what all you had to change to make it fly.  If nobody has ever
	gotten xtank to work, how about just the Mailbox Multitasker?

xtank works as given, you just can't use anything that relies on threads - robot
tanks, for example.  If you play the 'players' game, which is just humans (and
the very simple drones), then the game works fine for me.
	 
	This is really a neat game (I was able to play it on a different type
	of machine) and I would really like to be able to make it work on my
	Apollo.

I agree!

If anyone gets working patches for robot ships and custom program driven
ships, I'd really be interested in them!  I started writing the stuff to
do dynamic loading of the programs, but gave up for some reason (maybe lack
of time).
	 
	 
	Type at you later,
	 
	Keith Cantrell
	 
	-----------------------------------------------------------------------
	Keith Cantrell                    Phones:  hm: 214-492-1088
	Apollo Computer                            wk: 214-519-2399 @ DSC 
	A Subsidiary of Hewlett-Packard
	On site consultant at DSC.
	USMAIL:                          EMAIL:
	2100 Sonata Ln                   kcantrel@digi.lonestar.org
	Carrollton TX 75007                           or
	                                  ...!texbell!digi!kcantrel
	-----------------------------------------------------------------------
	
Paul Anderson
CAEN