PennMUSH Community
Show
Ignore:
Timestamp:
01/27/07 02:12:14 (2 years ago)
Author:
penndev
Message:

PennMUSH 1.8.3p0 release candidate.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 1.8.3/trunk

    • Property svn:ignore changed from
      .config
      config.h
      config.sh
      ignore
      Makefile
      options.h
      to
      #!/bin/sh
      #
      # usage: restart
      #
      # REQUIRED: You must set this to the path to your game directory.
      # E.g.: /home/mush/game
      GAMEDIR=

      # OPTIONAL things that you may want to tweak.

      # Uncomment the line below to attempt to allow crashes to produce
      # core dumps. If you're getting crashes, this is the best way
      # to debug them.
      #ulimit -c unlimited

      # Internationalization stuff
      # Set LANG here to get international character sets and, if someone's
      # done it, translation of messages.
      # Vaild locales are usually <lang_code>_<COUNTRY CODE>
      # Example (uncomment to use):
      #LANG=fr_FR

      # Time zone stuff
      # If you want your MUSH to run in a different timezone than the one
      # you're in, you need to identify the target time zone file in
      # /usr/share/zoneinfo or /usr/lib/zoneinfo. Then uncomment the next
      # two lines and set TZ to the desired timezone file, as shown, with
      # an initial colon:
      #TZ=:EST5EDT
      #export TZ


      # The config file. Best to keep this as is. If you must change
      # the name, make it a link to mush.cnf.
      CONF_FILE=mush.cnf

      #######################################################################

      if [ -z "$GAMEDIR" ]; then
      echo "You must set GAMEDIR in the restart script."
      exit 1
      fi

      if [ ! -d "$GAMEDIR" ]; then
      echo "GAMEDIR doesn't appear to be a directory. It's: $GAMEDIR"
      exit 1
      fi

      cd $GAMEDIR
      echo Running from `pwd`

      if [ ! -f "$CONF_FILE" ]; then
      echo "CONF_FILE doesn't exist. It's: $CONF_FILE"
      echo "Create $CONF_FILE from $GAMEDIR/mushcnf.dst and run 'make update'"
      exit 1
      fi

      # If netmush isn't here, they probably didn't make install
      # In any case, we'd better not proceed.
      if [ ! -e netmush ]; then
      echo "I don't see $GAMEDIR/netmush. Did you remember to make install?"
      exit 1
      fi

      #
      # Read the cnf file and set some variables.
      #
      INDB=`egrep "^input_database" $CONF_FILE | sed "s/.*[ ][ ]*.*\/\(.*\)/\1/" | sed 's/\r$//'`
      OUTDB=`egrep "^output_database" $CONF_FILE | sed "s/.*[ ][ ]*.*\/\(.*\)/\1/" | sed 's/\r$//'`
      PANICDB=`egrep "^crash_database" $CONF_FILE | sed "s/.*[ ][ ]*.*\/\(.*\)/\1/" | sed 's/\r$//'`
      PANICDIR=`egrep "^crash_database" $CONF_FILE | sed "s/.*[ ][ ]*\(.*\)\/.*/\1/" | sed 's/\r$//'`
      COMPRESSOR="cat"
      SUFFIX=""

      # Find out what the compression program is, if any
      egrep -s "^compress_program[ ]*[A-Za-z0-9]" $CONF_FILE
      nocompress=$?
      if [ "$nocompress" -eq 0 ]; then
      COMPRESSOR=`egrep "^compress_program" $CONF_FILE | sed "s/[^ ]*[ ]*\(.*\)/\1/" | sed 's/\r$//'`
      SUFFIX=`egrep "^compress_suffix" $CONF_FILE | sed "s/[^ ]*[ ]*\(.*\)/\1/" | sed 's/\r$//'`
      fi


      #-- start up everything

      # Prevent double-starting things. You may need to provide a pathname for
      # some of the commands. System V flavors need "ps -f" instead of "ps uwx".
      mush=`ps uwwx | grep " $GAMEDIR/$CONF_FILE" | grep -v grep | wc -l`


      if [ "$mush" -gt 0 ]; then
      echo Mush already active or some other process is using $GAMEDIR/$CONF_FILE.
      exit 0
      fi

      echo Building text file indexes.
      (cd txt; make)

      echo Restarting Mush.

      if [ -r "$PANICDIR/$PANICDB" ]; then
      end="`tail -1 $PANICDIR/$PANICDB`"
      if [ "$end" = "***END OF DUMP***" ]; then
      echo "Recovering PANIC dump."
      cat $PANICDIR/$PANICDB | $COMPRESSOR > data/$OUTDB$SUFFIX
      rm $PANICDIR/$PANICDB
      echo "PANIC dump successfully recovered."
      else
      mv $PANICDIR/$PANICDB save/$PANICDB.corrupt
      echo "Warning: PANIC dump corrupt. Using older db."
      fi
      fi

      # Copy the last set of log files to save/
      mv -f log/*.log save/

      if [ -r "data/$OUTDB$SUFFIX" ]; then
      rm -f save/$INDB$SUFFIX.old
      mv -f data/$INDB$SUFFIX save/$INDB$SUFFIX.old
      mv data/$OUTDB$SUFFIX data/$INDB$SUFFIX
      else
      echo "No $OUTDB$SUFFIX found."
      if [ -r "data/$INDB$SUFFIX" ]; then
      echo "Using $INDB$SUFFIX."
      else
      echo "No $INDB$SUFFIX found."
      if [ -r "save/$INDB$SUFFIX.old" ]; then
      echo "Using save/$INDB$SUFFIX.old."
      cp save/$INDB$SUFFIX.old data/$INDB$SUFFIX
      else
      echo "No database found. Mush will start with a minimal world."
      fi
      fi
      fi

      if [ -r reboot.db ]; then
      rm -f reboot.db
      fi

      DATEMSK="${GAMEDIR}/getdate.template"
      export DATEMSK

      LC_ALL=$LANG LANG=$LANG ./netmush $GAMEDIR/$CONF_FILE &
  • 1.8.3/trunk/game

    • Property svn:ignore changed from
      *.cnf
      ignore
      netmush
      info_slave
      to
      #!/bin/sh
      #
      # usage: restart
      #
      # REQUIRED: You must set this to the path to your game directory.
      # E.g.: /home/mush/game
      GAMEDIR=/Users/shawnw/src/penn/1.8.3/devel/game/

      # OPTIONAL things that you may want to tweak.

      # Uncomment the line below to attempt to allow crashes to produce
      # core dumps. If you're getting crashes, this is the best way
      # to debug them.
      #ulimit -c unlimited

      # Internationalization stuff
      # Set LANG here to get international character sets and, if someone's
      # done it, translation of messages.
      # Vaild locales are usually <lang_code>_<COUNTRY CODE>
      # Example (uncomment to use):
      #LANG=fr_FR

      # Time zone stuff
      # If you want your MUSH to run in a different timezone than the one
      # you're in, you need to identify the target time zone file in
      # /usr/share/zoneinfo or /usr/lib/zoneinfo. Then uncomment the next
      # two lines and set TZ to the desired timezone file, as shown, with
      # an initial colon:
      #TZ=:EST5EDT
      #export TZ


      # The config file. Best to keep this as is. If you must change
      # the name, make it a link to mush.cnf.
      CONF_FILE=mush.cnf

      #######################################################################

      if [ -z "$GAMEDIR" ]; then
      echo "You must set GAMEDIR in the restart script."
      exit 1
      fi

      if [ ! -d "$GAMEDIR" ]; then
      echo "GAMEDIR doesn't appear to be a directory. It's: $GAMEDIR"
      exit 1
      fi

      cd $GAMEDIR
      echo Running from `pwd`

      if [ ! -f "$CONF_FILE" ]; then
      echo "CONF_FILE doesn't exist. It's: $CONF_FILE"
      echo "Create $CONF_FILE from $GAMEDIR/mushcnf.dst and run 'make update'"
      exit 1
      fi

      # If netmush isn't here, they probably didn't make install
      # In any case, we'd better not proceed.
      if [ ! -e netmush ]; then
      echo "I don't see $GAMEDIR/netmush. Did you remember to make install?"
      exit 1
      fi

      #
      # Read the cnf file and set some variables.
      #
      INDB=`egrep "^input_database" $CONF_FILE | sed "s/.*[ ][ ]*.*\/\(.*\)/\1/" | sed 's/\r$//'`
      OUTDB=`egrep "^output_database" $CONF_FILE | sed "s/.*[ ][ ]*.*\/\(.*\)/\1/" | sed 's/\r$//'`
      PANICDB=`egrep "^crash_database" $CONF_FILE | sed "s/.*[ ][ ]*.*\/\(.*\)/\1/" | sed 's/\r$//'`
      PANICDIR=`egrep "^crash_database" $CONF_FILE | sed "s/.*[ ][ ]*\(.*\)\/.*/\1/" | sed 's/\r$//'`
      COMPRESSOR="cat"
      SUFFIX=""

      # Find out what the compression program is, if any
      egrep -s "^compress_program[ ]*[A-Za-z0-9]" $CONF_FILE
      nocompress=$?
      if [ "$nocompress" -eq 0 ]; then
      COMPRESSOR=`egrep "^compress_program" $CONF_FILE | sed "s/[^ ]*[ ]*\(.*\)/\1/" | sed 's/\r$//'`
      SUFFIX=`egrep "^compress_suffix" $CONF_FILE | sed "s/[^ ]*[ ]*\(.*\)/\1/" | sed 's/\r$//'`
      fi


      #-- start up everything

      # Prevent double-starting things. You may need to provide a pathname for
      # some of the commands. System V flavors need "ps -f" instead of "ps uwx".
      mush=`ps uwwx | grep " $GAMEDIR/$CONF_FILE" | grep -v grep | wc -l`


      if [ "$mush" -gt 0 ]; then
      echo Mush already active or some other process is using $GAMEDIR/$CONF_FILE.
      exit 0
      fi

      echo Building text file indexes.
      (cd txt; make)

      echo Restarting Mush.

      if [ -r "$PANICDIR/$PANICDB" ]; then
      end="`tail -1 $PANICDIR/$PANICDB`"
      if [ "$end" = "***END OF DUMP***" ]; then
      echo "Recovering PANIC dump."
      cat $PANICDIR/$PANICDB | $COMPRESSOR > data/$OUTDB$SUFFIX
      rm $PANICDIR/$PANICDB
      echo "PANIC dump successfully recovered."
      else
      mv $PANICDIR/$PANICDB save/$PANICDB.corrupt
      echo "Warning: PANIC dump corrupt. Using older db."
      fi
      fi

      # Copy the last set of log files to save/
      mv -f log/*.log save/

      if [ -r "data/$OUTDB$SUFFIX" ]; then
      rm -f save/$INDB$SUFFIX.old
      mv -f data/$INDB$SUFFIX save/$INDB$SUFFIX.old
      mv data/$OUTDB$SUFFIX data/$INDB$SUFFIX
      else
      echo "No $OUTDB$SUFFIX found."
      if [ -r "data/$INDB$SUFFIX" ]; then
      echo "Using $INDB$SUFFIX."
      else
      echo "No $INDB$SUFFIX found."
      if [ -r "save/$INDB$SUFFIX.old" ]; then
      echo "Using save/$INDB$SUFFIX.old."
      cp save/$INDB$SUFFIX.old data/$INDB$SUFFIX
      else
      echo "No database found. Mush will start with a minimal world."
      fi
      fi
      fi

      if [ -r reboot.db ]; then
      rm -f reboot.db
      fi

      DATEMSK="${GAMEDIR}/getdate.template"
      export DATEMSK

      LC_ALL=$LANG LANG=$LANG ./netmush $GAMEDIR/$CONF_FILE &
  • 1.8.3/trunk/game/txt/hlp/pennflag.hlp

    r525 r654  
    3333  indicates the object is of type THING. 
    3434 
    35   See also: examine, flags(), hasflag(), orflags(), andflags(), 
    36   orlflags(), andlflags(), types of objects, type(), hastype(), @flag 
     35See also: examine, flags(), hasflag(), orflags(), andflags(), orlflags(), 
     36  andlflags(), types of objects, type(), hastype(), @flag 
    3737& FLAG LIST 
    3838& FLAGS LIST 
     
    7373  room. 
    7474 
    75   See also: @link 
     75See also: @link 
    7676& ANSI 
    7777  Flag:  ANSI  (players) 
     
    8787  see vt100 ANSI codes, but not color ANSI codes. 
    8888 
    89   See also: COLOR, ansi(), @config 
     89See also: COLOR, ansi(), @config 
    9090& AUDIBLE 
    9191  Flag:  AUDIBLE  (all types) 
     
    144144  GAME: Object Walker(#123) lost a Penny to queue loss. 
    145145 
    146   See also: no_pay 
     146See also: no_pay 
    147147& BUILDER 
    148148  BUILDER  
     
    155155  check @command for the various building commands. 
    156156 
    157   See also: POWERS, @power, @dig, @open, @create 
     157See also: POWERS, @power, @dig, @open, @create 
    158158& CHOWN_OK 
    159159  Flag:  CHOWN_OK  (things, rooms, exits) 
     
    164164  flag, unless you use the DBREF number. 
    165165 
    166   See also: @chown 
     166See also: @chown 
    167167& CLOUDY 
    168168  Flag:  CLOUDY (exits) 
     
    181181  The ANSI flag must also be set. 
    182182 
    183   See also: ANSI, ansi() 
     183See also: ANSI, ansi() 
    184184& CONNECTED 
    185185  Flag:  CONNECTED  (players) 
     
    192192  connected. Consider using conn(), lwho(), or mwho() instead. 
    193193 
    194   See also: conn(), lwho(), mwho() 
     194See also: conn(), lwho(), mwho() 
    195195& DARK 
    196196  Flag:  DARK  (all types) 
     
    268268  DESTROY_OK takes precedence over SAFE. 
    269269 
    270   See also: @destroy 
     270See also: @destroy 
    271271& ENTER_OK 
    272272  Flag:  ENTER_OK  (all types) 
     
    281281  This flag has no effect on rooms. 
    282282 
    283   See also: enter, leave, give, @lock 
     283See also: enter, leave, give, @lock 
    284284& FIXED 
    285285  Flag: FIXED (players) 
     
    321321  etc. 
    322322 
    323   See also: @halt, @restart 
     323See also: @halt, @restart 
    324324& HAVEN 
    325325  Flag:  HAVEN (players, rooms) 
     
    332332  If a room is set HAVEN, the 'kill' command cannot be used in that room. 
    333333 
    334   See also: @haven, kill 
     334See also: @haven, kill 
    335335& HEAVY 
    336336  Flag:  HEAVY (all types) 
     
    340340  This flag can only be set by royalty or wizards. 
    341341 
    342   See also: @tel 
     342See also: @tel 
    343343& LOUD 
    344344  Flag:  LOUD (all types) 
     
    408408  (and are not also set DARK) appear in the contents of DARK rooms. 
    409409 
    410   See also: DARK 
     410See also: DARK 
    411411& LINK_OK 
    412412  Flag: LINK_OK  (rooms, things) 
     
    443443  players are automatically considered to be MYOPIC. 
    444444 
    445   See also: DBREF 
     445See also: DBREF 
    446446& MISTRUST 
    447447  Flag:  MISTRUST  (things, rooms, exits) 
     
    462462  privileges are granted to the object.) 
    463463 
    464   See also: control 
     464See also: control 
    465465& NOACCENTS 
    466466  Flag: NOACCENTS  (players) 
     
    469469  before being sent to a connection. See HELP STRIPACCENTS() for caveats. 
    470470 
    471   See also: i18n, accent(), stripaccents() 
     471See also: i18n, accent(), stripaccents() 
    472472& NO_COMMAND 
    473473  Flag:  NO_COMMAND  (all types) 
     
    480480  NO_COMMAND at creation. The flag has no effect on exits. 
    481481 
    482   See also: USER-DEFINED COMMANDS 
     482See also: USER-DEFINED COMMANDS 
    483483& NO_LEAVE 
    484484& NOLEAVE 
     
    489489  and @ALFAIL, if set. 
    490490 
    491   See also: leave 
     491See also: leave 
    492492& NO_TEL 
    493493  Flag:  NO_TEL  (rooms) 
     
    563563  Meaningless for rooms. 
    564564 
    565   See also: TRANSPARENT, look 
     565See also: TRANSPARENT, look 
    566566& ORPHAN 
    567567  Flag:  ORPHAN   (all types) 
     
    572572  true @parents, only on its use of the ancestor. 
    573573 
    574   See also: @parent, ancestors 
     574See also: @parent, ancestors 
    575575& PLAYER 
    576576  Flag:  PLAYER  (player) 
     
    672672  room will NOT be displayed. See also CLOUDY. 
    673673 
    674   See also: CLOUDY, OPAQUE, EXITS, @exitformat 
     674See also: CLOUDY, OPAQUE, EXITS, @exitformat 
    675675& UNFINDABLE 
    676676  Flag:  UNFINDABLE  (all types) 
     
    708708  good example of typical VERBOSE output. 
    709709 
    710   See also: PUPPET, DEBUG 
     710See also: PUPPET, DEBUG 
    711711& VISUAL  
    712712  Flag:  VISUAL  (all types) 
     
    717717  for getting help with code. 
    718718 
    719   See also: examine, brief 
     719See also: examine, brief 
    720720& WIZARD 
    721721  Flag:  WIZARD    (all types) 
     
    731731  Only Wizards may set the WIZARD flag on objects. 
    732732 
    733   See also: ROYALTY, @power 
     733See also: ROYALTY, @power 
    734734& Z_TEL 
    735735  Flag:  Z_TEL  (things, rooms) 
     
    742742  This flag is intended for use in puzzle rooms and IC areas. 
    743743 
    744   See also: ZONES, ZONE MASTERS, @chzone, ZONE MASTER ROOMS 
     744See also: ZONES, ZONE MASTERS, @chzone, ZONE MASTER ROOMS 
    745745& SHARED 
    746746& ZONE 
     
    751751  player's zone lock.   
    752752 
    753   See also: ZONE MASTERS 
     753See also: ZONE MASTERS 
    754754& LISTEN_PARENT 
    755755  Flag:  LISTEN_PARENT (things, rooms) 
     
    759759  well as on the object. 
    760760 
    761   See also: MONITOR, LISTENING 
    762  
     761See also: MONITOR, LISTENING 
     762