Page 219 of 224 FirstFirst ... 119 169 209 217 218 219 220 221 ... LastLast
Results 2,181 to 2,190 of 2234

Thread: BatBrain -- a central nervous system for consult scripts

  1. #2181
    Senior Member zarqon's Avatar
    Join Date
    Nov 2007
    Location
    Seoul, Korea
    Posts
    3,821

    Default

    Aha, thanks for the heads up. A couple days ago I tried to add all the familiars I could to batfactors, and looks like I forgot that BatBrain parses familiars differently than it parses other events. I've just uploaded a new batfactors with rate 1, before the existing comment which I believe ought to solve that issue.
    Sig by JakAtk
    My scripts: Prefref Plus | Skillref Plus | One-Click Woss | Om****est (??) | Psychose-a-Matic | RandBot
    Combat suite: Best Between Battle | Mercenary Mood | SmartStasis | BatMan | BatMan RE
    For script authors: ASH Wiki | ZLib | BatBrain | CLI Links | Drag-n-Drop Inventories | CanAdv | Script Registry | Map Manager
    If you appreciate my work, help me become BAT KING OF THE WORLD! Thanks to all donators!

  2. #2182

    Default

    Line 1267 in batbrain.ash
    Code:
       boolean are_attracting() { foreach s in $strings[gallapagosMonster, nosyNoseMonster, olfactedMonster, longConMonster, makeFriendsMonster] 
          if (to_monster(get_property(s)) == m) return true; return false; }
    gallapagosMonster should be _gallapagosMonster
    Otherwise it spams the mating call skill every adventure a zone it wants to attract a specific monster which burns a lot of MP unnecessarily.

    Also

    Code:
    Changing "Invader" to "the invader" would get rid of this message. (BatBrain.ash, line 1093)
    Also also, if you have Gallapagosian Mating Call and Transcendent Olfaction, it'll only ever cast the first one. I've not tested with the Nosy Nose as my test account doesn't have one but it will also be similarly ignored as the code pasted above returns true for the first match from left to right.
    Last edited by Malibu Stacey; 12-30-2019 at 07:53 PM.

  3. #2183
    Senior Member zarqon's Avatar
    Join Date
    Nov 2007
    Location
    Seoul, Korea
    Posts
    3,821

    Default

    Finally got around to posting a fix to those little bugs. r129.

    BatBrain's attraction logic only uses one of your available attraction actions at the moment, pending superior logic for determining when to use multiple attraction skills, which is unfortunately non-trivial.
    Sig by JakAtk
    My scripts: Prefref Plus | Skillref Plus | One-Click Woss | Om****est (??) | Psychose-a-Matic | RandBot
    Combat suite: Best Between Battle | Mercenary Mood | SmartStasis | BatMan | BatMan RE
    For script authors: ASH Wiki | ZLib | BatBrain | CLI Links | Drag-n-Drop Inventories | CanAdv | Script Registry | Map Manager
    If you appreciate my work, help me become BAT KING OF THE WORLD! Thanks to all donators!

  4. #2184
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    Central Virginia, USA
    Posts
    4,729

    Default

    r19887

    Latest version of all scripts according to svn update.

    Code:
    Cannot store advevent in res[] of type float [element]     (BatBrain.ash, line 149)
    Consult script     'wham.ash' not found.
    You're on your own,     partner.
    Click     here to continue in the relay browser.
    CCS is wham.

    Reporting here because the offending line was identified as being in Batbrain.

    Probably related to varargs work.

  5. #2185
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    13,407

    Default

    I'm on it.

    Code:
    typedef float[element] spread;
    
    record advevent {          // record of changes due to an event
       spread dmg;             // raw dmg dealt, before resists/vulns
    };
    
    spread copy(spread source) {
       spread res;
       foreach el,v in source res[el] = v;
       return res;
    }
    
    advevent copy(advevent source) {
       advevent res;
       res.dmg = copy(source.dmg);
       return res;
    }
    
    advevent base;             // happens every round for the rest of combat
    
    // **** TEST
    advevent test = copy( base );
    yields

    Code:
    > bbtest
    
    Cannot store advevent in res[] of type float [element] (bbtest.ash, line 15)
    Last edited by Veracity; 03-21-2020 at 03:19 PM.

  6. #2186
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    Central Virginia, USA
    Posts
    4,729

    Default

    I'm on it.
    Originally Posted by Veracity View Post
    Thank you.
    Well, thank you.
    Originally Posted by Veracity View Post

  7. #2187
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    13,407

    Default

    Revision 19888

  8. #2188
    Senior Member
    Join Date
    Jan 2012
    Location
    Texas
    Posts
    470

    Default

    Still getting
    Unexpected error, debug log printed.
    Consult script 'wham.ash' not found.
    You're on your own, partner.


    Even though it is there and nothing about my CSS has changed

  9. #2189
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    13,407

    Default

    Revision 19889

  10. #2190
    Junior Member
    Join Date
    Mar 2010
    Posts
    9

    Default

    Thank you Veracity. You are awesome!

Similar Threads

  1. Feature - Implemented random_attributes not being passed to consult scripts
    By DoctorRotelle in forum Bug Reports
    Replies: 9
    Last Post: 02-07-2019, 01:53 PM
  2. Replies: 25
    Last Post: 04-05-2015, 07:20 PM
  3. Feature - Implemented Duplicate scripts cause "not found" error for consult scripts
    By nightslide in forum Bug Reports
    Replies: 6
    Last Post: 06-10-2013, 07:07 PM
  4. Multiple consult scripts?
    By fxer in forum Scripting Discussion
    Replies: 2
    Last Post: 03-04-2013, 08:43 PM
  5. Passing variables to consult scripts from the ccs
    By Captain Kirk in forum Custom Combat Settings
    Replies: 0
    Last Post: 08-17-2008, 05:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •