PennMUSH Community
Show
Ignore:
Timestamp:
01/27/07 02:12:14 (1 year 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/pennattr.hlp

    r525 r654  
     1& ATTRIBUTE FLAGS 
     2  Attribute flags are set on an object's attributes using @set, or applied 
     3  to attributes globally using @attrib. Their names (and, when applicable, 
     4  the character used in examine as shorthand for the flag) include: 
     5 
     6  no_command ($)    Attribute will not be checked for '$' commands and 
     7                    '^' listen patterns. 
     8  visual (v)        Attribute can be seen by anyone via get(), eval(), 
     9                    ufun(), zfun(), and similar functions. 
     10  no_inherit (i)    Attribute will not be inherited by the children of 
     11                    this object. 
     12  no_clone (c)      Attribute will not be copied if the object is @clone'd. 
     13  regexp (R)        Match $-commands and ^-listens using regular expressions. 
     14                    See 'help regexps'. 
     15  case (C)          Match $-commands and ^-listens case sensitively. 
     16  safe (S)          Attribute may not be modified, without unsetting this flag. 
     17  mortal_dark (m)   Attribute cannot be seen by mortals. This flag can only 
     18                    be set by royalty and wizards.  "hidden" is a synonym. 
     19 
     20  Continued in 'help attribute flags2' 
     21& ATTRIBUTE FLAGS2 
     22  noname (N)        Attribute won't show name in @o-* messages. 
     23  nospace (s)       Attribute won't append a space in @o-* messages. 
     24  wizard (w)        Attribute can only be set by wizards. 
     25                    This flag can only be set by royalty and wizards. 
     26  veiled (V)        Attribute value will not be shown on default examine, 
     27                    but is still otherwise accessible (for spammy attribs). 
     28  debug (b)         Show debug output when this attribute is evaluated. 
     29  nearby (n)        Even if this attribute is visual, it can only be 
     30                    retrieved if you're co-located with the object. 
     31  public (p)        This attribute can be evaluated by any object, even 
     32                    if safer_ufun is in use. DANGEROUS! AVOID! 
     33  aahear (A)        ^-listens on this attribute match like @aahear 
     34  amhear (M)        ^-listens on this attribute match like @amhear 
     35 
     36  Continued in 'help attribute flags3' 
     37& ATTRIBUTE FLAGS3 
     38  prefixmatch       When a user attempts to set an attribute using @<attrib>, 
     39                    this attribute will be matched down to its unique 
     40                    prefixes. This flag is primarily used internally. 
     41  `                 This attribute is a branch. See: help ATTRIBUTE TREES 
    142& ATTRIBUTE TREES 
    243& ATTR TREES 
     
    2465attributes will be created as needed to support it. 
    2566 
    26 See help attribute trees2 for more information and examples. 
     67See 'help attribute trees2' for more information and examples. 
    2768 
    2869& ATTRIBUTE TREES2 
     
    4788on examine.  
    4889 
    49 See help attribute trees3 for more information and examples. 
     90See 'help attribute trees3' for more information and examples. 
    5091 
    5192& ATTRIBUTE TREES3 
     
    74115  ... 
    75116 
    76 See help attribute trees4 for information about @parent and attribute trees. 
     117See 'help attribute trees4' for information about @parent and attribute trees. 
     118 
    77119& ATTRIBUTE TREES4 
    78120& ATTR TREES4