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
Josiah.Bruns
Apprentice


Joined: 04 Mar 2007
Posts: 103

PostPosted: Wed Nov 11, 2009 9:16 pm   

Trouble shooting a bug?
 
i have a bot script that will run for hours some times without creating variables in the wrong locations. but then ever once in a while it does.

i don't really know how to reproduce it and narrow down whats causing it.

this is the only class that the creates my HP and End variables and it happens most often with my hp and end variables.

what happens is some times another HP variable gets created up and level at my root window level.


<class name="Status" id="285">
<class name="Gauge" id="217">
<trigger priority="2180" id="218">
<pattern><![CDATA[-=> HP: &Hp/&HpMax END: &End/&EndMax <=-]]></pattern>
<value>#If (@Hp<150) {'heal me please}</value>
</trigger>
<var name="Hp" id="219">383</var>
<var name="HpMax" id="220">470</var>
<var name="End" id="221">290</var>
<var name="EndMax" id="222">290</var>
<button type="Gauge" variable="@Hp" autosize="false" width="100" height="18" toolbar="2" color="lime" gaugelowcol="red" gaugebackcol="silver" priority="2236" id="223">
<caption>HP: @Hp / @HpMax</caption>
<expr>@Hp</expr>
<gaugemax>@HpMax</gaugemax>
<gaugelow>@HpMax/5</gaugelow>
</button>
<button type="Gauge" variable="@End" autosize="false" width="100" height="18" toolbar="2" color="purple" gaugelowcol="red" gaugebackcol="silver" priority="2452" id="245">
<caption>End: @End /@EndMax</caption>
<expr>@End</expr>
<gaugemax>@EndMax</gaugemax>
<gaugelow>@EndMax/5</gaugelow>
</button>
</class>
<event event="MobDied" priority="2860" id="286">
<value>//OverdriveGeneral/BotStatus/InCombat="false"
//Rock/Status/InCombat="false"</value>
</event>
<event event="StartBattle" priority="2890" id="289">
<value>//OverdriveGeneral/BotStatus/InCombat="true"
//Rock/Status/InCombat="true"</value>
</event>
<event event="SetCurrentMob" priority="2900" id="290">
<value>//OverdriveGeneral/BotStatus/CurrentMob=%1
//Rock/Status/CurrentMob=%1</value>
</event>
<var name="InCombat" type="Literal" id="291">true</var>
<var name="CurrentMob" id="292">veteran</var>
</class>
Reply with quote
Josiah.Bruns
Apprentice


Joined: 04 Mar 2007
Posts: 103

PostPosted: Thu Nov 12, 2009 7:05 pm   
 
Ok this is a smaller section of code that some times will create the variables at my root window level instead of changing the variables already in this class.

like i said it will run properly for hours and then it just creates new variables at the root level. i havn't been able to figure out why.

<class name="Status" id="285">
<class name="Gauge" id="217">
<trigger priority="2180" id="218">
<pattern><![CDATA[-=> HP: &Hp/&HpMax END: &End/&EndMax <=-]]></pattern>
<value>#If (@Hp<150) {'heal me please}</value>
</trigger>
<var name="Hp" id="219">383</var>
<var name="HpMax" id="220">470</var>
<var name="End" id="221">290</var>
<var name="EndMax" id="222">290</var>
<button type="Gauge" variable="@Hp" autosize="false" width="100" height="18" toolbar="2" color="lime" gaugelowcol="red" gaugebackcol="silver" priority="2236" id="223">
<caption>HP: @Hp / @HpMax</caption>
<expr>@Hp</expr>
<gaugemax>@HpMax</gaugemax>
<gaugelow>@HpMax/5</gaugelow>
</button>
<button type="Gauge" variable="@End" autosize="false" width="100" height="18" toolbar="2" color="purple" gaugelowcol="red" gaugebackcol="silver" priority="2452" id="245">
<caption>End: @End /@EndMax</caption>
<expr>@End</expr>
<gaugemax>@EndMax</gaugemax>
<gaugelow>@EndMax/5</gaugelow>
</button>
</class>
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