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/pennv181.hlp

    r557 r654  
    11& 1.8.1p10 
    22Version 1.8.1 patchlevel 10                     September 13, 2006 
    3  
    43Fixes: 
    54  * Cleaned up some compiler warnings. [SW] 
     
    1110  * Trying to ignore signals could crash on Win32. Reported by Intrevis. 
    1211  * Fixed parse errors in non-C99 compilers. Reported by Intrevis. 
    13   * Help fixes by Talvo, Sketch. 
     12  * Help fixes by Talvo, Sketch 
    1413  * Fixes for 64-bit platforms [SW] 
    1514  * @dump/paranoid produced corrupt databases.  
     
    2928  * The above is used in db.c, function.c and plyrlist.c [SW] 
    3029  * @config compile reports if MySQL support is present. (This does not  
    31     mean the game is configured to use it.) 
     30    mean the game is configured to use it.) [SW] 
    3231  * restart copies log files from the last time the mush was running to 
    3332    game/save/ instead of deleting them. [SW] 
     
    172171  * NT_TCP code has been removed from the server. It was deemed 
    173172    less useful than keeping the networking code unitary and 
    174 <    the ability to @shutdown/reboot. Patch by Nathan Baum. 
     173    the ability to @shutdown/reboot. Patch by Nathan Baum. 
    175174Flags: 
    176175  * New LOUD flag (admin-settable) causes an object to bypass