Page 214 of 216 FirstFirst ... 114 164 204 212 213 214 215 216 LastLast
Results 2,131 to 2,140 of 2160

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

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

    Default

    Thanks Theraze, being able to do a diff really sped up the editing process (especially since no line number is given yet for the friendly warnings).

    r119 uses correct capitalization for monster names, as well as adds some round tracking fixes for Pocket Familiars (which is relevant for the Pocket Familiars support I'll be adding to Batman RE).
    Sig by JakAtk
    My scripts: Prefref Plus | Skillref Plus | One-Click Wossna | Om*****st (??) | 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. #2132
    Developer
    Join Date
    Apr 2006
    Posts
    922

    Default

    I updated batfactors.txt to have basic support for A New Habit, it doesn't know about the stat gain but should allow it to be cast now if you have turns of Habituated.

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

    Default

    r120 brings us Disguises Delimit support!

    • Initial support for mask effects. I assumed 20% for most of the elemental damage masks, which I would be happy to replace with actual spading.
    • Correctly detect combat completion when you don't win.
    • To make the "instead of attacking" monsters work, I added a new monster keyword: dmgformula. This keyword can be used to specify a unique damage formula for monsters that don't follow the normal damage formula. It is expressed as a spread and can contain fvars; for instance, the batfactors entry for Your Shadow now contains "dmgformula 95+maxhp/6". This also let me streamline m_regular() (the function that returns expected monster damage) by moving a lot of custom cases into batfactors. Felt nice to compact 34 lines into 1!

    Enjoy and have a happy Chuseok everyone!
    Sig by JakAtk
    My scripts: Prefref Plus | Skillref Plus | One-Click Wossna | Om*****st (??) | 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. #2134
    Senior Member
    Join Date
    Jan 2012
    Location
    Texas
    Posts
    410

    Default

    Hey Zargon, I am getting this [110493] The Neverending Party
    Encounter: "plain" girl
    Round 0: txranger wins initiative!
    Unexpected error, debug log printed.
    Script execution aborted (java.lang.NullPointerException): (zlib.ash, line 316)
    Unexpected error, debug log printed.
    Script execution aborted (java.lang.NullPointerException): (zlib.ash, line 316)
    You're on your own, partner.

    on the newest build with WHAM, Smartstatis and Batbrain

  5. #2135
    Senior Member
    Join Date
    Apr 2009
    Posts
    1,813

    Default

    on the newest build with WHAM, Smartstatis and Batbrain
    Originally Posted by txrangersxx View Post
    And what revision of mafia?

    You might also want to look up the debug file generated by this (I think on windows they are generated into the directory where you run mafia from?) and post it as an attachment. Or just copypaste relevant stack trace from it, if you can do that.

  6. #2136
    Senior Member
    Join Date
    Jan 2012
    Location
    Texas
    Posts
    410

    Default

    I went back to 18899 and didn't have the issue but on 18905 I did

  7. #2137
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    11,415

    Default

    Could you please post the debug log? There is some underlying error in KoLmafia which we should fix.

  8. #2138
    Senior Member
    Join Date
    Jan 2012
    Location
    Texas
    Posts
    410

    Default

    Code:
    Unexpected error, debug log printed.
    class java.lang.NullPointerException: null
    java.lang.NullPointerException
        at java.base/java.io.ByteArrayInputStream.<init>(Unknown Source)
        at net.sourceforge.kolmafia.textui.DataFileCache.getReader(DataFileCache.java:193)
        at net.sourceforge.kolmafia.textui.RuntimeLibrary.file_to_map(RuntimeLibrary.java:7315)
        at net.sourceforge.kolmafia.textui.RuntimeLibrary.file_to_map(RuntimeLibrary.java:7306)
        at jdk.internal.reflect.GeneratedMethodAccessor185.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.base/java.lang.reflect.Method.invoke(Unknown Source)
        at net.sourceforge.kolmafia.textui.parsetree.LibraryFunction.execute(LibraryFunction.java:104)
        at net.sourceforge.kolmafia.textui.parsetree.FunctionCall.execute(FunctionCall.java:154)
        at net.sourceforge.kolmafia.textui.parsetree.BasicScope.execute(BasicScope.java:417)
        at net.sourceforge.kolmafia.textui.Interpreter.executeScope(Interpreter.java:393)
        at net.sourceforge.kolmafia.textui.Interpreter.execute(Interpreter.java:341)
        at net.sourceforge.kolmafia.textui.Interpreter.execute(Interpreter.java:334)
        at net.sourceforge.kolmafia.request.FightRequest.nextRound(FightRequest.java:1037)
        at net.sourceforge.kolmafia.request.FightRequest.runOnce(FightRequest.java:1917)
        at net.sourceforge.kolmafia.request.FightRequest.run(FightRequest.java:1979)
        at net.sourceforge.kolmafia.request.FightRequest.run(FightRequest.java:1950)
        at net.sourceforge.kolmafia.webui.RelayAutoCombatThread.run(RelayAutoCombatThread.java:76)
    Last edited by Veracity; 09-24-2018 at 07:58 PM.

  9. #2139
    Senior Member
    Join Date
    Apr 2009
    Posts
    1,813

    Default

    NPE in bytestream *again*? What was it last time? Bug in java?

  10. #2140
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    Central Virginia, USA
    Posts
    4,148

    Default

    NPE in bytestream *again*? What was it last time? Bug in java?
    Originally Posted by xKiv View Post
    I was thinking corrupt file but...
    You just vehemently agreed with me
    Originally Posted by Veracity View Post
    I agree with frono.
    Originally Posted by Veracity View Post

Similar Threads

  1. Feature - Implemented random_attributes not being passed to consult scripts
    By DoctorRotelle in forum Bug Reports
    Replies: 7
    Last Post: 05-25-2015, 04:38 AM
  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
  •