Skip to content
Snippets Groups Projects
  1. May 28, 2000
    • Chris Fry's avatar
      · 1cccb41e
      Chris Fry authored
      Set up the makefile and C files to allow hashtable/list switching. Uncomment
      the 'DEFS+=-DHASHTABLES' line to get hashtables (uncommented by default)
      
      Left 'clearvars' broken - 'VAR_DESTROY(&op)' left commented,
      At least it stops it from segv'ing...
      
      Fry
      1cccb41e
    • Chris Fry's avatar
      · 3d816e4a
      Chris Fry authored
      Ok. possibly fixed the incoming pipe stuff. I think finnw had a '<'->'<='
      mistake.
      
      So when it got to the maximum pipe length, you got an array overflow by 1.
      
      Fry
      3d816e4a
  2. May 27, 2000
    • Chris Fry's avatar
      · b37f33c7
      Chris Fry authored
      Final fixes for infinite length lines in script reading.
      
      Updated handle_mesg for longer incoming pipes
      
      Fry
      b37f33c7
    • Chris Fry's avatar
      · 94a0cef2
      Chris Fry authored
      Fixed a bug in the scripts, which cant cope with long lines when loading
      functions.
      
      Increased the amount of text that can be sent via the talker etc..., become
      some bloody pillock (cmc) cant be arsed not to write a *long* slap script
      that somehow happens to bugger his scripts, and then block the text sent to
      the talker. :(
      
      Wibble
      
      Fry
      94a0cef2
    • Chris Fry's avatar
      · e89e7bbb
      Chris Fry authored
      Fixed the hashtables - they were case sensitive - where variables had ALWAYS
      been insensitive in every other part of mw beforehand. [Fry whacks finnw]
      
      Added a couple of script commands - Q-ROOM, IREGEX, and CLEARVARS. These
      change rooms quietly, regex case insensitive, and clear all variables
      respectively.
      
      I think thats it, although I've most probably made other changes - I usually
      do.
      
      Fry
      e89e7bbb
  3. May 25, 2000
  4. May 24, 2000
    • Finn Wilcox's avatar
      Changed the implementation of variable lists from linked lists to · e9d36145
      Finn Wilcox authored
      hashtables, by changing the definitions of the VAR_xxx macros in
      script.h.  The old macros are still there but disabled by a '#if'
      directive.  The new macros do not yet work with the threaded version.
      
      Added hash.h and hash.c, containing structures and functions for
      manipulating hashtables.  There is also code for garbage collection,
      but this is untested, and needs more changes to the interpreter (the
      way function arguments are stored) before it can be useful.  The
      hashtable code can also be used to implement arrays, but there are no
      new commands for this yet.
      
      Removed the second (string) argument to VAR_FOUND.   It was redundant,
      because a pointer to the variable name is already stored in the
      var_op_t structure.
      
      Introduced a few new macros for iterating through variable lists.
      Modified some functions to use the new (and old) macros, including
      ListVars().
      
      Removed the function VAR_STR_GET, which has never been used, from
      script.h.
      e9d36145
    • Robert Grant's avatar
      · 2545551b
      Robert Grant authored
      I made a major change to mw and it still works :)
      
      ok:
      I change the link list that holds the script varables in to a ORDERED link
      list, I did this for 2 resons:
        a) faster search time for misses (each time to uses a global var you get a
           miss on the local var search.
        b) the command .variables now returns an ordered list.
      
      file changes:
        A lot of changes to macros in script.h
      
        he macro VAR_FOUND now takes 2 input the second being the name of the var
        you where looking for
      
        changes to script.c and script_inst.c to uses the new 2 input VAR_FOUND
      
      
      To be done:
      
      change the strcasecmp in script.h:48 to a nice number freindle one, ie:
        'fish1wibble' < 'fish12wibble'
      
      -- Rob aka Tnarg
      2545551b
  5. May 21, 2000
    • Chris Fry's avatar
      · da92c4fd
      Chris Fry authored
      Now allows user to specify 'reasons' for mrod and zod. There is an optional
      text after the user, eg:
      
      .zod dez
      .zod dez for being irritating
      .mrod dez
      .mrod dez for logging back on after the zod, and not taking the hint
      
      :)
      
      Fry
      da92c4fd
  6. May 20, 2000
    • Chris Fry's avatar
      · 6efe5058
      Chris Fry authored
      Fixed the 'change groups' message for 'changeinfo'
      
      Fry
      6efe5058
  7. May 19, 2000
    • Chris Fry's avatar
      · 82b166cf
      Chris Fry authored
      Changed '.variables' to allow a user to specify an optional argument, which
      is a starting pattern for the variable.
      
      eg:
      
      [.variables]
      Variable 'developer_mode' contains value '1'
      Variable 'encrypttag' contains value '<ENCRYPTED> '
      Variable 'tclr_listfg' contains value 'WGBMgYCcmYRr'
      Variable 'tclr_listbg' contains value '---------m--'
      Variable 'tclr_listpos' contains value '6'
      Variable 'slap_1' contains value 'a fetid running oozing decayed haddock'
      Variable 'slap_2' contains value 'a pint of 4 month old green milk glop'
      
      [.variables s]
      Variable 'slap_1' contains value 'a fetid running oozing decayed haddock'
      Variable 'slap_2' contains value 'a pint of 4 month old green milk glop'
      
      [.variables dog]
      
      [.variables tclr_list]
      Variable 'tclr_listfg' contains value 'WGBMgYCcmYRr'
      Variable 'tclr_listbg' contains value '---------m--'
      Variable 'tclr_listpos' contains value '6'
      
      [.variables tclr_listf]
      Variable 'tclr_listfg' contains value 'WGBMgYCcmYRr'
      
      
      Simple huh :)
      
      Fry
      82b166cf
    • Chris Fry's avatar
      · efced12c
      Chris Fry authored
      Added the .e's talker command, FOR THOSE PEOPLE WHO ARE SILLY ENOUGH TO
      KEEP TYPING IT!! (FireFury :)
      
      Made the random function 'int get_rand(int min, int max)' truly random. Any
      random numbers, please use this function.
      
      Added the 'Q-IGNORE', and 'Q-UNIGNORE' script functions for those with
      developer mode privs.
      NOTE: THIS IS ONLY FOR PEOPLE LIKE CMCKENNA, AND FRY WHO DO ROOM TESTING,
      AND IGNORE MANY PEOPLE. ANY ABUSE OF THIS COMMAND WILL NOT BE TOLERATED.
      PLEASE USE THE NORMAL 'VISIBLE' ONE
      
      Erm.. another fix, to do with scripts I think. May have already committed
      it, but its something to do with WHEREAMI or something.
      
      [Fry reminds himself, he really out to keep a log of what he does :/]
      
      Fry
      efced12c
  8. May 18, 2000
    • Chris Fry's avatar
      · 88d4b80b
      Chris Fry authored
      Fixed a mode/priv problem in the WHEREAMI script command
      
      Fry
      88d4b80b
    • Chris Fry's avatar
      · 96cbd373
      Chris Fry authored
      Can now pass commandline arguments into the autoexec function
      
      See 'mw -help' for details
      
      Fry
      96cbd373
    • Chris Fry's avatar
      · 95ff969b
      Chris Fry authored
      MUDEXITS script command - returns a list of the visible room exits for the
      current room
      
      Fry
      95ff969b
  9. May 17, 2000
    • Chris Fry's avatar
      · af25f5e2
      Chris Fry authored
      Fixed tnargs WHEREAMI command slightly to cope with mudmode
      
      Completely changed TALKPRIV to return your chatmodes, with a few
      differences. You have 'T' for timestamp, and you dont have the chat,
      verbose, or sticky modes listed.
      
      Fry
      af25f5e2
    • Robert Grant's avatar
      · d449fe27
      Robert Grant authored
      I added the script command whereami
      whereami needs globle to run
      whereami returns the room number your in regardless of mudmode
      
      PS: my first big vhange that I did mostly on my own!!!
      PPS: can some one give me globle :)
      d449fe27
    • Chris Fry's avatar
      · f87097bc
      Chris Fry authored
      Made the gags slightly nicer
      
      Added an extra gag flag, so now have 64 gags, and I'm going to leave it at
      that, so we still have 4 free chatmodes (or more, maybe)
      
      Fixed the script BOOLOPT command
      
      Fry
      f87097bc
    • Chris Fry's avatar
      · c1d9192c
      Chris Fry authored
      Oodles of new mud stuff to do with rooms (ie, the .examine command)
      
      Fixed the gags stuff
      
      Just commented out the new 'USER' code atm, which gives '?' if you dont have
      spy - because there is no GUESSUSER stuff for non-thread code. The threaded
      version still uses GUESSUSER.
      
      ERmm..Fish?
      
      Fry
      c1d9192c
  10. May 16, 2000
    • Steve Hill's avatar
      · 3430b04b
      Steve Hill authored
      Bunny gag (at jo's request)..  also her duck gag, but commented out because
      it doesn't seem to work with 16 gags defined :(
      
       - Steve
      3430b04b
  11. May 12, 2000
    • Finn Wilcox's avatar
    • Chris Fry's avatar
      · 7fc9b7b8
      Chris Fry authored
      More Tnargian.
      
      Lots of new 'rooms' stuff.
      
      ERmm.. a few other small changes, which I really cant remember. Most of them
      typo fixes
      
      Fry
      7fc9b7b8
    • Finn Wilcox's avatar
      Created new file special.h - moved prototypes for special flag · bf0070d0
      Finn Wilcox authored
      checks there.
      
      Added 'auto-ignore' function, intended for test users.  The new
      special flag '+D' will cause a message (FORCE_TESTING) to be
      broadcast whenever you log on, to all other logged-on users, making
      them ignore you automatically.  Also when a user joins the talker for
      the first time after logging on, they will check the 'who' list for
      anyone with the flag set, and ignore them.
      
      Test users do ignore each other (but not themselves).
      You can unignore a test user at any time, but you will automatically
      ignore them again if they log off and on.
      
      I don't recommend setting this flag for test users who log on/off
      frequently for the moment, since anyone running an earlier version
      will get 'unknown message type #20'.  A possible temporary workaround
      might be to broadcast these messages only to people with the 'D' or 'A'
      chatprivs, as they are more likely to be running the current cvs
      version.  Or to disable broadcasting (the checking when you join the
      talker will still work).
      bf0070d0
  12. May 06, 2000
    • Chris Fry's avatar
      · 72abf1a0
      Chris Fry authored
      More Tnargian..
      
      Fixed some small problems with virtual room names, and allows rooms to be
      hidden, to create 'not-obvious' links from rooms. This can be useful if you
      say 'there is a waterfall over <blah>', then a .room waterfall will take you
      to a hidden place. This is the start of a more advanced roomy thingy, where
      a room can also specify a series of 'examine' strings.
      
      ie:
      
      [examine]
      waterfall=There appears to be a room behind here.
      
      this way, a cunning user can do a '.examine <object>' and if it is defined
      will give cunning clues and hints about an environment.
      
      Fry
      72abf1a0
  13. May 05, 2000
  14. May 04, 2000
  15. May 02, 2000
    • Chris Fry's avatar
      · a8932637
      Chris Fry authored
      Changes the 'look' command for rooms, so it still lists users, if you are in
      a 'void'
      
      Fry
      a8932637
  16. May 01, 2000
  17. Apr 30, 2000
    • Chris Fry's avatar
      · 16340494
      Chris Fry authored
      Turned off the wrappers firefury and I left on
      
      Fry
      16340494
    • Chris Fry's avatar
      · 03ae16e0
      Chris Fry authored
      Fixed a memory leak when loading script files
      
      Fry
      03ae16e0
    • Chris Fry's avatar
      · ab33eba0
      Chris Fry authored
      Fixed the line numberings when reading in scripts..
      
      Fry
      ab33eba0
    • Chris Fry's avatar
      · 06016567
      Chris Fry authored
      some mem fixes...
      
      Fry
      06016567
    • Steve Hill's avatar
      · cd181a4d
      Steve Hill authored
      Fixed a memory problem - frl.c was trying to free a static string.
      (i.e. 'free("")').  Still does it for some stuff, looking into it
      
       - Steve
      cd181a4d
    • Chris Fry's avatar
      · d17b4c6d
      Chris Fry authored
      Put quotes around the 'realname' changeinfo message.
      
      Fixed room directions, I accidently got them the wrong way round. (said
      'entering room <left> from <going>' etc..)
      
      Fixed the soundproof stuff in rooms. Any room in the new format that didnt
      specify soundproof, was soundproofed, rather than *not* soundproofed (doh!)
      
      Fry
      d17b4c6d
  18. Apr 29, 2000
    • Justin Mitchell's avatar
      More notes on ideas for db file format, · 7c381b9d
      Justin Mitchell authored
      committed for future reference.
      7c381b9d
    • Chris Fry's avatar
      · c98f179a
      Chris Fry authored
      Added tab-completion to .notsayto
      
      Fry
      c98f179a
    • Chris Fry's avatar
      · b09c70f0
      Chris Fry authored
      Ermm.. fixed the privs I just broke in the last CVS ;)
      
      Fry
      b09c70f0
    • Chris Fry's avatar
      · 3f4a8f5b
      Chris Fry authored
      fixed the privs on notsayto
      
      Fry
      3f4a8f5b
    • Chris Fry's avatar
      · 179727f0
      Chris Fry authored
      Updated the '.sayto', and '.notsayto' commands, so it'll all work nicely
      from scripts and stuff too...
      
      Fry
      179727f0
    • Chris Fry's avatar
      · 52921f50
      Chris Fry authored
      Fixed some spelling in db.c ;)
      
      Added the '.notsayto' command to exclude a user - this needs RAW priv
      changed the '.sayto' command to not need the RAW priv - like whisper
      
      Fry
      52921f50
Loading