Spartacus Wanderer
Joined: 23 Apr 2001 Posts: 53 Location: USA
|
Posted: Sat Mar 06, 2004 1:38 am
Out of memory? |
I have a halfway decent machine with 512M RAM and a 1.5G page file,
but after about a half hour or so of running around the mud with the mapper in either map creation or follow mode, I start getting out of memory errors relating to the tag commands I am using. Any help would be greatly appreciated
I use the following triggers to tag mud output for the mapper:
#CLASS {MapFormatter}
#VAR RoomDescLine {} {}
#VAR RoomName {} {}
#VAR RoomExits {} {}
#VAR RoomDescLineRaw {} {}
#VAR p {} {}
#VAR RoomExitsLine2 {} {}
#VAR RoomExitsLine1 {} {}
#VAR RoomExitsList {} {}
#VAR RoomNameRaw {} {}
#VAR RoomDesc {} {}
#TRIGGER {^%e[1;30m(*)} {; Room Desc and anything else;#var RoomDescLineRaw {%1} _nodef MapFormatter;#var p %pos({%e~[36m},{@RoomDescLineRaw}) _nodef MapFormatter;#if (@p=0) {#var p %pos({%e~[0~;36m},{@RoomDescLineRaw}) _nodef MapFormatter;#if (@p=0) {#var p %pos({%e~[1~;36m},{@RoomDescLineRaw}) _nodef MapFormatter}};#if (@p>0) {#var RoomDescLine {%stripansi(%left(@RoomDescLineRaw,%eval(@p-1)))} _nodef MapFormatter} {#var RoomDescLine {%stripansi(@RoomDescLineRaw)} _nodef MapFormatter};#if (@RoomDesc) {RoomDesc=%concat(@RoomDesc,@RoomDescLine)} {#var RoomDesc {%concat(@RoomDescLine,' ')} _nodef MapFormatter};; If anything past room desc is seen, room desc is done.;#if (p>0) {#tag desc @RoomDesc}} "" {color}
#TRIGGER {^(%e[30m*.)*(%e[34m*)$} {; room desc + players (ie - end of desc);#var RoomDescLine {%stripansi(%1)} _nodef MapFormatter;; #sub {%1 %cr %2};#if (@RoomDesc) {RoomDesc=%concat(@RoomDesc,@RoomDescLine)} {#var RoomDesc {%concat(@RoomDescLine,' ')} _nodef MapFormatter};#tag desc {@RoomDesc}} "" {color}
#TRIGGER {^%e[1;32m(*.)*$} {; Room Name;#var RoomNameRaw {%stripansi(%1)} _nodef MapFormatter;; Now, if we have a color change, it needs to be stripped out.;#var p {%pos(" (road)",@RoomNameRaw)} _nodef MapFormatter;#if (@p>0) {#var RoomName {%concat(%trimright(%left(@RoomNameRaw,@p)),".")} _nodef MapFormatter} {#var RoomName {@RoomNameRaw} _nodef MapFormatter};#tag name {@RoomName};#unvar RoomDesc MapFormatter} "" {color}
#TRIGGER {^(%e[36m*.)*(%e[1;30m*)$} {; weather detected;#var RoomDescLine {%stripansi(%2)} _nodef MapFormatter;; #sub {%1 %cr %2};#if (@RoomDesc) {RoomDesc=%concat(@RoomDesc,@RoomDescLine)} {#var RoomDesc {%concat(@RoomDescLine,' ')} _nodef MapFormatter}} "" {color}
#TRIGGER {^%e[1;34mYou see {exits|a single exit} leading (*)} {#var RoomExitsLine1 {%1} _nodef MapFormatter;#var RoomExitsList1 {%replace(%replace(%replace(@RoomExitsLine1,",","|"),"and","")," ","")} MapFormatter;#var RoomExits {@RoomExitsLine1} _nodef MapFormatter;#var RoomExitsList {@RoomExitsList1} _nodef MapFormatter} "" {notrig|color}
#TRIGGER {^%e[1;34m({~(closed|~(open|door~)|north|northeast|east|southeast|south|southwest|west|northwest|in|out|up|down}*).} {#var RoomExitsLine2 {%1} _nodef MapFormatter;#var RoomExitsList2 {%replace(%replace(%replace(@RoomExitsLine2,",","|"),"and","")," ","")} MapFormatter;#var RoomExits {%concat(@RoomExitsLine1,@RoomExitsLine2)} _nodef MapFormatter;#var RoomExitsList {%concat(@RoomExitsList1,@RoomExitsList2)} _nodef MapFormatter} "" {notrig|color}
#TRIGGER {You are recovering equilibrium and cannot move yet.} {#NODIR}
#TRIGGER {There's water ahead of you. You'll have to swim in that direction to make it} {#NODIR}
#TRIGGER {There is no exit in that direction.} {#nodir}
#CLASS 0 |
|