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
Caled
Sorcerer


Joined: 21 Oct 2000
Posts: 821
Location: Australia

PostPosted: Fri May 23, 2008 2:07 am   

[2.25] Session will not load when specific package is in package list.
 
The following is all one package. It is almost fully self-contained, the only cross-package part is the @curestop() function, which by necessity exists in a different package. If this package is on the package list for a session, and I open that session, no packages get loaded, and the menu bar icons are frozen (I can access the drop-down menu though. File etc.)

If I remove this package form the list, the session opens as per normal, and then I can add it from the PE (File>open).

Rebuilding this package from xml does not solve the fault.

Can anyone see where the problem might be? I'm thinking it is somehow linked to the seemingly never ending problems I've been having with expression trigs, possibly with default values of associated variables... I'm not sure.


Code:
 <?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
<module name="exprAutoHeal" global="true">
  <uid>{62E7E8FC-E7A6-4DE6-BE63-316F069F8AFE}</uid>
  <packages>Sentinel|AetCuringBackbone|Aetolia</packages>
  <class name="ElixirBalance">
    <trigger priority="90">
      <pattern>Your mind feels stronger and more alert.$</pattern>
      <value>elixirbal=0</value>
    </trigger>
    <trigger priority="100">
      <pattern>You may drink another health or mana elixir.$</pattern>
      <value>pElixirBal=1
elixirbal=1</value>
    </trigger>
    <trigger priority="110">
      <pattern>The elixir heals and soothes you.$</pattern>
      <value>elixirbal=0</value>
    </trigger>
    <var name="elixirbal">1</var>
    <var name="pElixirBal" usedef="true">
      <value>1</value>
      <default>1</default>
    </var>
    <trigger name="pElixirBal_timer" priority="250">
      <pattern>This is the pElixirB reset trig</pattern>
      <trigger type="Wait" param="500">
        <value>pElixirBal=1</value>
      </trigger>
    </trigger>
  </class>
  <class name="AutoSip">
    <trigger priority="30" prompt="true">
      <pattern>H:(%d)~|(%d)</pattern>
      <value>curH=%1
curM=%2</value>
    </trigger>
    <trigger priority="60">
      <pattern><![CDATA[Health: &%dcurH/&%dmaxH  Mana: &%dcurH/&%dmaxM$]]></pattern>
    </trigger>
    <var name="maxM">2622</var>
    <var name="maxH">2784</var>
    <trigger name="sip health" type="Expression" priority="120">
      <pattern><![CDATA[@elixirbal && @pElixirBal && @curH<@maxH*0.8]]></pattern>
      <value>#IF (@cureStop()) {#SA @curestop(1)} {sip health;pElixirBal=0;#STATE pElixirBal_timer 1}</value>
    </trigger>
    <trigger name="sip mana" type="Expression" priority="130">
      <pattern><![CDATA[@elixirbal && @pElixirBal && @curM<@maxM*0.8]]></pattern>
      <value>#IF (@cureStop()) {#SA @curestop(1)} {sip mana;pElixirBal=0;#STATE pElixirBal_timer 1}</value>
    </trigger>
    <var name="curM">4179</var>
    <var name="curH">3980</var>
  </class>
  <class name="Clotting">
    <trigger name="mosstrig" type="Manual" priority="20760">
      <pattern>You bleed (%d) health</pattern>
      <value>#IF (@curM>@maxM*0.4 &amp;&amp; !@cureStop()) {#LOOP %1/25 {clot}} {#SA @curestop(1)}</value>
    </trigger>
  </class>
  <class name="AutoMoss">
    <trigger priority="280">
      <pattern>You feel your health and mana replenished.$</pattern>
      <value>mossBal=0</value>
    </trigger>
    <trigger priority="290">
      <pattern>You may eat another bit of irid moss.$</pattern>
      <value>pMossBal=1
mossBal=1</value>
    </trigger>
    <trigger name="pMossBal_timer" priority="300">
      <pattern>This is the pMossBal reset timer</pattern>
      <trigger type="Wait" param="700">
        <value>pMossBal=1</value>
      </trigger>
    </trigger>
    <trigger type="Expression" priority="320">
      <pattern><![CDATA[@mossBal && @pMossBal && (@curH<@maxH*0.6 || @curM<@maxM*0.7)]]></pattern>
      <value>#IF (@cureStop()) {#SA @curestop(1)} {eatherb moss;pMossBal=0;#STATE pMossBal_timer 1}</value>
    </trigger>
    <var name="pMossBal" usedef="true">
      <value>1</value>
      <default>1</default>
    </var>
    <var name="mossBal" usedef="true">
      <value>1</value>
      <default>1</default>
    </var>
  </class>
</module>
</cmud>
_________________
Athlon 64 3200+
Win XP Pro x64
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Wed May 28, 2008 5:49 pm   
 
I haven't had a chance to test this directly yet and can't think of a reason why it doesn't load. But one possibility is that you have a conflicting module/window in your main session package with the same UID. So do an XML export of your main session package and check to see if the UID of any window/module matches the {62E7E8FC-E7A6-4DE6-BE63-316F069F8AFE} UID of the package shown above.
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