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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Pyron
Beginner


Joined: 11 Mar 2003
Posts: 19
Location: USA

PostPosted: Wed Jul 19, 2006 12:50 pm   

[1.03] #GAG Command Crashes/Enters Last Command
 
This is a bug I noticed in 1.02 as well and it has 2 parts:

1) Creating a trigger that uses the gag command will crash Cmud or it will work but will cause the last command to repeat itself, which may cause a loop if the last command creates the text that you were trying to gag.

ie:
Code:
#tr {Dispel what?} {#gag}
#al di {dispel greater winds;cast layered winds me outer high}


(If you don't have winds casted it will say "Dispel what?", which will get gagged. However, it will also do the cast layered winds command multiple times instead of just once and cause a loop that amazingly stops itself after 1-3 times.)

ie:
Hp: 2105(2105) Gp: 9240(9240) Xp: 407392(120000000)
Code:
#tr {Hp: (%d)~((%d)~) Gp: (%d)~((%d)~) Xp: (%d)~((%d)~)(*)} {#var hp %1;#var maxhp %2;#var gp %3;#var maxgp %4;#var xp %5;#var maxxp %6}


This trigger works now and will update the variables properly. However, add a #gag; in there and it'll cause a crash.

I'd submit a bug report but I can't connect to the server through my firewall for some reason.

Pyron
Reply with quote
Darrant
Beginner


Joined: 21 Jun 2003
Posts: 11
Location: USA

PostPosted: Wed Jul 19, 2006 5:11 pm   
 
The samething is happening with me. At first all it would do was update the variables but when I remove the nested #if statements and just left the #gag it would crash everytime it updated the variables.

My mud pattern is:

Code:
Hp: 9435(9435) [    ]  **    ** Gp: 1995(1995) Xp: 207601(123000000)


My trigger pattern is:

Code:
Hp: &hp~(&maxhp~) ~[(*)]  ~*~*&atarget~*~* Gp: &gp~(&maxgp~) Xp: &xp~(&maxxp~) &targetgroup
[/code]

This is updated every heartbeat which is like every 2 seconds.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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