Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
SpiritWolf
Wanderer


Joined: 02 Jul 2002
Posts: 74
Location: USA

PostPosted: Tue Mar 02, 2004 11:21 am   

Room scripts
 
Just upgraded to zmud 7.03 and am having a bit of a problem with room scripts. Any room that didn't have a room script before, now has an "All" command stuck in it. Gets really annoying to speed walk someplace a good distance away and have all these "Pardon?" messages show up because its a command the mud doesn't know.
Seems this problem has happened before, but I can't remember how to fix it, nor have I found any mention of it by serching these forums.

I tried to make an alias for All as follows:
Name: All
Pattern: #if (%roomcom !="") {%roomcom( ,"")}

That removes any room scripts a room might have (I don't use room scripts) and only works in map mode. Problem being that after I turn follow mode back on and hit a room that still has an "All" command in the room script it completely crashes zmud. No error messages or nothing.

Soo.. long story short - anyone have any other suggestions to remove the "All" command from every room script from every room I have? My maps are rather large so going room by room is not an option, and I don't have MS Access, so that's not an option either.
Reply with quote
SpiritWolf
Wanderer


Joined: 02 Jul 2002
Posts: 74
Location: USA

PostPosted: Tue Mar 02, 2004 11:46 am   
 
After some fiddling around, I changed the alias I had before to:
Name: All
Pattern: #if (%roomcom = All) {#call %maplocked(0);%roomcom( ,"");#call %maplocked(1)}

That works well and stops the crashing, but still leaves me having to manually enter every room in my maps to fix the problem..
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Wed Mar 03, 2004 4:07 am   
 
I THINK not sure test on a backup

turn on map mode
then slap these in


#call %roommode(1)
#loop %numrooms {%roomcom(%roomnum(%i), "")}

On a big map it may take a while to run so best to do offline well taking a shower or something :P
Reply with quote
SpiritWolf
Wanderer


Joined: 02 Jul 2002
Posts: 74
Location: USA

PostPosted: Wed Mar 03, 2004 4:45 pm   
 
Didn't appear to do anything. All room scripts still have an "All" command in them.
Any other suggestions?
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Wed Mar 03, 2004 5:21 pm   
 
Ok now that I have Zmud help files in front of me try it with these two changes

#call %roommode(1)
#loop %numrooms {#CALL %roomcom(%roomvnum(%i), "")}
Reply with quote
SpiritWolf
Wanderer


Joined: 02 Jul 2002
Posts: 74
Location: USA

PostPosted: Wed Mar 03, 2004 6:36 pm   
 
That seems to be working since zmud is now using 50% of the cpu (all it will ever use on a hyper-threaded machine).
Only problem is that it will wipe out any room script no matter if it had "All" in it or not, which is no big deal for me since I think I had simple scripts in like four rooms total out of 12,000+ rooms.

Think it finished in about five minutes on a p4 2.4ghz computer with 512mb of ram, so not too bad.

Gonna play around with it to see if I can skip rooms with normal scripts tho. Thanks for the help! :)
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Thu Mar 04, 2004 7:46 pm   
 
Lemme throw that at ya then. again test on a backup as I don't have zmud infront of me :P

#call %roommode(1)
#loop %numrooms {#CALL %if(%roomcom="ALL", %roomcom(%roomvnum(%i), ""))}
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net