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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Treluk
Newbie


Joined: 28 Nov 2010
Posts: 9

PostPosted: Sun Nov 28, 2010 10:28 pm   

General problems with CMUD
 
Hey guys, new to zuggsoft forums, but been experimenting with zmud and cmud for years.

I find really odd problems with cmud with regards to slow walking. I've never been able to get slow walking to work for longer than a day or 2, and then it breaks and i have to spend countless hours trying to figure out whats wrong with it, and it magically starts working again. So I decided i had enough, and reviewed some posts about scripting a new slow walk code, using dirlist and dirindex, when you have a successful move you #add dirindex 1 right? Now that stopped working for me too, so i started using %pop to remove the last item from my list, and i've had alot more success with this except: When i walk into a room with aggro mob, my Exits: trigger pops the list even though i havent been able to move due to combat. Solution? Add a lastdir variable that checks the last dir popped off and re-executes it. But this is what happens when i set up aliases for moving and defining lastdir variables:

Alias e

#VAR lastdir east
#SEND east
#SHOW The last direction walked was @lastdir // An unnecessary check to see if the alias fired properly.

the output to the mud is:

- <514hp 441m 260mv>??/???????????????????????????????????????????P
- 
-
- Huh?
-
- <514hp 441m 261mv>
- *interrupt*

And then in the scripting secion of the alias gets changed to ??/????????????????????????????????????????

Any ideas?
Reply with quote
Treluk
Newbie


Joined: 28 Nov 2010
Posts: 9

PostPosted: Sun Nov 28, 2010 10:40 pm   
 
As an addition to the problem i'm mentioned above, executed triggers are randomly changing in the script section to ???m and random crap like that. cant figure out whats happening, help! Shocked
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Nov 29, 2010 1:15 am   
 
1)trying to invent a more complicated workaround creates a more complicated problem. If you ever reach this place, stop what you are doing and go back to basics. Back to plain-text summarizing and outlining what you want to do, step by itsy-bitsy step, if you have to. The more detailed you can make it before you try to cobble together code, the fewer the problems you'll run into.

2)if you notice code changing, you're probably looking at some sort of corruption issue. Corruption, as you have witnessed, can make anything go wrong in ANY imagineable way, even to the point where you, other users, and Zugg himself are sitting there scratching your head going "OK, that should definitely NOT be possible...".

Regardless of any other advice, if you are experiencing #2 you need to stop everything and partake in anti-corruption measures:

1)the shift trick to uncorrupt your layout
2)the XML export/import process to uncorrupt package files
3)the mapconvert utility to uncorrupt .dbm mapper files

Once you know what you're doing, the process shouldn't take too long (unless you are a very prolific script writer and have many tens of package files), but the time you invest should have all interferences minimized so you don't have to go back and redo anything.
_________________
EDIT: I didn't like my old signature
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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