[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

385.0. "Single person spacewar for DECwindows!" by VIA::FINNEGAN (All of the best intentions are less than one good act.) Sat Mar 11 1989 16:24

       Annoucing SPACEWAR a new DECwindows game based on a UIS game based on a
       PDP-1 games based on...

       Spacewar is a combination of traditional spacewar with asteroids. 
       Essentially I took all of the ship controls and gravity computations
       from Spacewar and made a single player dodge and fire game out of it
       (ala Asteriods).

       This was one of the original OOTB's that was dropped due to resource
       changes but I've managed to revive the single player version.

       Sometime I would like to get the multiplayer version going as well.

       The playing instructions are in the next note.

       Each spaceship is a separate font and there are fonts for other aspects
       so the game has two sets of files.  File that go where you are going to
       run the game from and files (the fonts) that go on the workstation that
       you going to display on.  The fonts have to go on EVERY workstation you
       want display on.

       To install spacewar on a VMS workstation:

       $ cop via::$USER1:[FINNEGAN.SWPUB]INSTALL_ALL.COM *.*
       $ @INSTALL_ALL.COM

       Then reboot the workstation to load the fonts.

       To install spacewar on a VMS non-workstation:

       $ cop via::$USER1:[FINNEGAN.SWPUB]WS_GAME_INSTALL.COM *.*
       $ @WS_GAME_INSTALL.COM

       Then install the fonts on the workstation:

       $ cop via::$USER1:[FINNEGAN.SWPUB]WS_FONT_INSTALL.COM *.*
       $ @WS_FONT_INSTALL.COM

       Then reboot the workstation to load the fonts.

       To install spacewar on an ULTRIX workstation:

       $ dcp -i cause::~ootb/sw/dxsw /usr/bin
       $ dcp -i cause::~ootb/sw/DXsw.uid /usr/lib/X11/uid
       $ dcp -i cause::~ootb/sw/DXsw /usr/lib/X11/app-defaults
       $ dcp -i cause::~ootb/swships/*.dwf /usr/lib/X11/fonts/decwin/screen75

       Then reboot the workstation to load the fonts.

       To install spacewar on an ULTRIX non-workstation:
       
       $ dcp -i cause::~ootb/sw/dxsw /usr/bin
       $ dcp -i cause::~ootb/sw/DXsw.uid /usr/lib/X11/uid
       $ dcp -i cause::~ootb/sw/DXsw /usr/lib/X11/app-defaults

       Then install the fonts on the workstation:

       $ dcp -i cause::~ootb/swships/*.dwf /usr/lib/X11/fonts/decwin/screen75

       Then reboot the workstation to load the fonts.

       Enjoy,

       Neal
    

T.RTitleUserPersonal
Name
DateLines
385.1Here are some very brief instructionsVIA::FINNEGANAll of the best intentions are less than one good act.Sat Mar 11 1989 16:2520
       Spacewar is a simple game.  The controls are:

       Rotate Left		Left Button (rotates until you let up)
       Rotate Right		Right Button (rotates until you let up)
       Accelerate		Middle Button (accelerates until you let up)

       Fire Missle		Space Bar
       Hyperspace		h key

       Pause Game		p key
       New Game			control-n
       Quit Game		q key
       Help			? key

       There are a lot of settings which can be preset through the xdefaults
       file.  These are describe in the help.  There is no help for Ultrix yet.

       Neal
    

385.2Something isn't quite right...TBD1::BURLEIGHDave, DECwindows TrainingMon Mar 13 1989 07:2730
    $ @install_all
    $ cop := copy/log
    $ define src via::$user1:[finnegan.swpub.sdc]
    $ define src_font via::$user1:[finnegan.swpub.font]
    $ define dst_font SYS$COMMON:[SYSFONT.DECW.USER_75DPI]
    $ cop/prot=(S:RWED, O:RWED, G:RWED, W:RE) src:decw$sw.exe
    sys$common:[sysexe]%COPY-S-COPIED,
    VIA::$USER1:[FINNEGAN.SWPUB.SDC]DECW$SW.EXE;1 copied to SYS$COMM
    ON:[SYSEXE]DECW$SW.EXE;1 (68 blocks)
    $ cop/prot=(S:RWED, O:RWED, G:RWED, W:RE) src:decw$sw.uid
    sys$common:[syslib]%COPY-S-COPIED,
    VIA::$USER1:[FINNEGAN.SWPUB.SDC]DECW$SW.UID;74 copied to SYS$COM
    MON:[SYSLIB]DECW$SW.UID;74 (96 blocks)
    $ cop/prot=(S:RWED, O:RWED, G:RWED, W:RE) src:decw$sw.dat
    sys$common:[syslib]%COPY-S-COPIED,
    VIA::$USER1:[FINNEGAN.SWPUB.SDC]DECW$SW.DAT;30 copied to SYS$COM
    MON:[SYSLIB]DECW$SW.DAT;30 (5 blocks)
    $ cop/prot=(S:RWED, O:RWED, G:RWED, W:RE) src:decw$sw.hlb
    sys$common:[syshlp]%COPY-S-COPIED,
    VIA::$USER1:[FINNEGAN.SWPUB.SDC]DECW$SW.HLB;1 copied to SYS$COMM
    ON:[SYSHLP]DECW$SW.HLB;1 (36 blocks)
    $ cop/prot=(S:RWED, O:RWED, G:RWED, W:RE) src_font:sw$*.decw$font
    dst_font:
    %COPY-E-OPENIN, error opening
    VIA::$USER1:[FINNEGAN.SWPUB.FONT]SW$*.DECW$FONT; a
    s input
    -RMS-E-DNF, directory not found
    -SYSTEM-W-NOSUCHFILE, no such file
    

385.3Here's the fixCSCMA::LEVYA leaf of all colorsMon Mar 13 1989 08:3217
    I was just going to send mail to Neil, but...
    
    Just change the following line in INSTALL_ALL.COM:
    
    From:
    
        $ define src_font via::$user1:[finnegan.swpub.font]

    To:
    
        $ define src_font via::$user1:[finnegan.swpub.fonts]

    
    That will make it work.
    
    	- Dave

385.4Sorry for the confusion, I changed the directory nameVIA::FINNEGANAll of the best intentions are less than one good act.Mon Mar 13 1989 09:0310
    Actually I got a number of mail messages about this problem before
    I read the conference.
    
    Sorry for the late night typing, yes the directry names don't match.
    
    I have changed the directory on VIA to via::$user1:[finnegan.swpub.font]
    to match the command procedure.
    
    Neal

385.5A minor Ultirx typo as wellVIA::FINNEGANAll of the best intentions are less than one good act.Mon Mar 13 1989 09:0510
    I also made a small mistake in the Ultrix specification.
    
    dcp -i causes a image copy to be done which is nessary for images,
    uid files and fonts.  The defaults file is text not image so the
    line should be:
    
    $ dcp cause::~ootb/sw/DXsw /usr/lib/X11/app-defaults
    
    Neal

385.6I can't install it on our systemEVETPU::REINIGThis too shall changeWed Mar 15 1989 12:259
    Some of us don't have the ability to put things into the system
    directories.  Can we run this privately?  I've already tried redefining
    sys$library and sys$help to be search lists pointing to a private
    directory, and then to the system directories.  This works find but I
    can't do the same for the fonts.  I can't find a logical referring to
    the system font directory.  
    
                                    August G. Reinig

385.7RAB::DESAIJatin DesaiWed Mar 15 1989 13:2511
I have used DECW$FONT logical successfully in past.

$ sh log decw$font/table=*
   "DECW$FONT" = "SYS$COMMON:[SYSFONT.DECW.USER_CURSOR16]" (DECW$SERVER0_TABLE)
        = "SYS$COMMON:[SYSFONT.DECW.CURSOR16]"
        = "SYS$COMMON:[SYSFONT.DECW.USER_75DPI]"
        = "SYS$COMMON:[SYSFONT.DECW.75DPI]"

Jatin

385.8Defining decw$font doesn't helpEVETPU::REINIGThis too shall changeThu Mar 16 1989 20:3454
    Is it possible to run a private copy of this game?

    Our system doesn't have a decw$font logical.  I define a decw$font
    logical in may spacewar command procedure like so:
    
        "DECW$FONT" = "PUBLIC$:[GAMES.SPACEWAR]" (LNM$PROCESS_TABLE)
	    = "SYS$COMMON:[SYSFONT.DECW.USER_CURSOR16]"
	    = "SYS$COMMON:[SYSFONT.DECW.CURSOR16]"
	    = "SYS$COMMON:[SYSFONT.DECW.USER_75DPI]"
	    = "SYS$COMMON:[SYSFONT.DECW.75DPI]"

    When I try to run spacewar, with this logical I get the following 
    errors:
    
       X Toolkit Warning: DwtDrm__ConvertValue detected error Couldn't
       convert fontlist font
       '-Spacewar-DisplayShips-Medium-R-Normal--*-310-*-*-P-*-ISO8859-1'
       - Not fo und (DRMNotFound)

       X Toolkit Warning: Cannot convert string
       "-Spacewar-DisplayShips-Medium-R-Normal
       --*-310-*-*-P-*-ISO8859-1" to type FontList, using fixed font
       
       X Toolkit Warning: DwtDrm__ConvertValue detected error Couldn't
       convert fontlist font
       '-Spacewar-DisplayShips-Medium-R-Normal--*-310-*-*-P-*-ISO8859-1'
       - Not fo und (DRMNotFound)

    If I do a dir decw$font in my command file I do find the files:

Directory PUBLIC$:[GAMES.SPACEWAR]

DECW$SW.DAT;30      DECW$SW.EXE;1       DECW$SW.HLB;1       DECW$SW.UID;74     
SW$ALIEN.DECW$FONT;1                    SW$BLIMP.DECW$FONT;1
SW$BROOM.DECW$FONT;1                    SW$CHOPPER.DECW$FONT;1
SW$CRUSHER.DECW$FONT;1                  SW$DESTROYER.DECW$FONT;1
SW$DISPLAYSHIPS.DECW$FONT;1             SW$DREADNAUGHT.DECW$FONT;1
SW$ENTERPRISE.DECW$FONT;1               SW$EXPLODE_FAST.DECW$FONT;1
SW$EXPLODE_MEDIUM.DECW$FONT;1           SW$EXPLODE_RING.DECW$FONT;1
SW$GHOST.DECW$FONT;1                    SW$JUPITER2.DECW$FONT;1
SW$KLINGON.DECW$FONT;1                  SW$LEM.DECW$FONT;1  SW$LIAR.DECW$FONT;1
SW$LIGHTSAIL.DECW$FONT;1                SW$PACMAN.DECW$FONT;1
SW$ROMULAN.DECW$FONT;1                  SW$SEMI.DECW$FONT;1 SW$SKYLAB.DECW$FONT;1
SW$SQUARE.DECW$FONT;1                   SW$TARDIS.DECW$FONT;1
SYSFONT.DIR;1       

Total of 29 files.

Directory SYS$COMMON:[SYSFONT.DECW.CURSOR16]

      :
       etc, etc, etc.
      :

385.9MELTIN::dickSchoeller - Xperimenting with XnotesFri Mar 17 1989 09:037
August,

I would guess that the logical has to be defined so the server can see it.
Maybe even before server startup?  After all, fonts are server resources.

Dick

385.10PMAX version ??22073::gabrielThank You Very LittleFri Mar 17 1989 14:245
 Has anyone gotten this to run on a PMAX ??????????????????????

-Joe

385.11Yes PMAX, not sure about fontsVIA::FINNEGANAll of the best intentions are less than one good act.Mon Mar 20 1989 12:1622
    RE -.1
    
    Yes there is a PMAX version but it still has a few bugs that I don't
    have time to track down.
    
    Its amazing on a B/W PMAX, I could get 30 enemy ships going at the
    same time without loading the system.
    
    The PMAX uses a strange font scheme that makes it harder to add
    new fonts (you have to edit the font list file).
    
    RE -.2
    
    I'm not sure when the server loads the fonts.  There is an X call
    to reload the fonts from a program that might help you but I've
    never looked into it.
    
    You could try defining the logical in a group table before starting
    the session.
    
    Neal

385.12ULTRIX installation summarySMURF::HOFFMANanywhere in the universeMon Mar 20 1989 13:3339
    re .0 and .5
    
    For those who want it all in one place AND correct For those who want the CORRECT procedure in o
    Here's what I did to get Space War up and running on my ULTRIX
    DECwindows VAXstation 2000.  This will work for any ULTRIX DECwindows
    system running SDC or later software.
    
    Become superuser on your worksystem.
    # dcp -i cause::~ootb/sw/dxsw /usr/bin	
    # dcp -i cause::~ootb/sw/DXsw.uid /usr/lib/X11/uid
    # dcp cause::~ootb/sw/DXsw /usr/lib/X11/app-defaults
    # dcp -i cause::~ootb/swships/*.dwf /usr/lib/dwf/75dpi
    # ps ax | grep X
    # kill -9 PID   [where PID is the X server process identified by grep]
    Wait for the X server to restart, login, and run "dxwm &".
    
    Previous notes contained incorrect pathname for installing the font files
    (the path was correct for PMAX systems, but then you would need the
    PMAX executable and uid file and fonts), incorrect method for 
    copying the app-defaults file over DECnet (correction posted in .5),
    and use of excessive force for registering fonts with the X server:
    restarting the X server is sufficient, and I've heard that the "xset"
    command might be successful in registering fonts without server off-on.
    
    The game is great!  Too bad we couldn't have had it in the V1
    DECwindows product.  I'm sure it would have been the most thoroughly
    tested application.  Even on my color VAXstation, it runs very 
    nicely with hardly any update "hickups" for the first 8 or 10 rounds.
    The default settings and the customization settings are excellent!
    Too bad about "There is no help for ULTRIX yet."  It does sound
    kind of humorous when worded that way.
    
    Thanks for your good work, Neal.  Looking forward to the updates.
    
    John Hoffman
    ULTRIX DECwindows Engineering
    
    

385.13Not all of us can reboot the system when we want.EVETPU::REINIGThis too shall changeMon Mar 20 1989 15:5319
    Asking a system manager to put game stuff into the system font
    directories is bad enough.  Asking him to reboot the cluster so that I
    can play my favorite game is way too much.  Surely there must be a
    better way.
    
       To install spacewar on a VMS non-workstation:

            :
            :
    
       Then install the fonts on the workstation:

            :
            :
    
       Then reboot the workstation to load the fonts.
    
                                        August G. Reinig

385.14RAB::DESAIJatin DesaiMon Mar 20 1989 16:1625

You do not have to put the fonts in the system directory. You can just define
DECW$FONT logical to include a directory with the new fonts. One thing to keep
in mind is that, with X, all fonts reside on the server. 

I haven't tried this but this should work: (Client may be same as Server)

1. Copy .exes, .uids, .dats on the client side.

2. Copy new fonts on the server side to a new directory or to an existing font
   directory.

3. If you created a new font directory, edit SYS$MANAGER:DECW$DEVICE.COM on the
   server to put it in. (May be you can create it in SYS$SPECIFIC:[SYSMGR]).

4. Stop DECwindows on the server side. (STOP/ID or If you didn't create a
   new font directory Session Manager QUIT menu should do.)

5. Re-start DECwindows on server workstation.

6. Start SPACEWAR on client and enjoy!

Jatin

385.15that's the ticket.TALLIS::ZANZERKIATue Mar 21 1989 09:2017
    Yes, the trick in .14 works.
    
    This is what i did.
    
    1. Install SpaceWar on my workstation.
    2. Re-boot workstation.
    3. Copy SYS$SYSTEM:decw$sw.exe to a directory on a client(big machine)
    4. Copy SYS$LIBRARY:DECW$SW*.* to a directory on a client(big machine)
    5. Define SYS$LIBRARY to that directory, so that SW can find the
    	.UID, .DAT files.
    6. Actually i created a command file that defines the SYS$LIBRARY
       logical runs the SW and then deassigns the SYS$LIBRARY logical.
    
    Works greate from 8800.
    Robert
    

385.16No need to reboot!CVG::CAMPANELLAMichael Campanella, DTN 261-2595Tue Mar 21 1989 14:0810
    Rather than re-booting your workstation to get new fonts loaded (which
    is entirely unnecessary), you can re-start decwindows on your
    workstation.  The easiest way to do this is to type
    
    @SYS$STARTUP:DECW$STARTUP RESTART
    
    from the SYSTEM account...
    
    							Michael

385.17Don't even have to restart DECwindows!ORAN::ORANDave OranTue Mar 21 1989 16:299
All you need to do is get the server to reload its font cache from the
(possibly modified) font path.

There's a program to do this floating around called
    SetFontPath

Don't as me for a copy. I have enough people squeezing DAP sessions
down the 9.6kb line to my workstation as it is!