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
Macai
Newbie


Joined: 12 Jul 2004
Posts: 6
Location: USA

PostPosted: Mon Jul 12, 2004 1:46 pm   

Infinite loop detected....
 
...there was an 'infinite loop' error. Basically, I have an alias that calls upon itself again, like recursion.

I don't want this error.


THe loop is supposed to be infinite.

Any ideas? I'd appreciate any help!
Reply with quote
mr_kent
Enchanter


Joined: 10 Oct 2000
Posts: 698

PostPosted: Mon Jul 12, 2004 3:32 pm   
 
Use the tilde(~) character before the alias name in the commands-to-be-executed section of your alias.

quote:

THe loop is supposed to be infinite.



Instead of trying to create an infinite alias, you'd be better off using an #ALARM or another construct to repeat actions indefinitely.
Reply with quote
Old_Dreamer
Newbie


Joined: 26 Oct 2005
Posts: 1

PostPosted: Wed Oct 26, 2005 2:45 pm   
 
It's been a while since this post, but I was having the same problem. My fix was to enclose it in a #WHILE loop and get rid of the alias calling itself.

i.e.,

#VAR NeverEnding 1
#WHILE NeverEnding {
Put your script here
}
Reply with quote
xenapan
Wanderer


Joined: 26 May 2004
Posts: 68

PostPosted: Wed Oct 26, 2005 2:56 pm   
 
what is it that requires you to continually use these commands? i would split it into two parts.. the alias, then a trigger to set off the alias which triggers the trigger AFTER its done. or you could use a wait in the alias. but zmud wont allow you to have an infinite loop.. mainly cause it can send a whole lot of commands to the game which will prolly result in your connection being dropped.
_________________
Player on Realms of Despair. realms.game.org port 4000. Join us today!
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