Page 2 of 2 FirstFirst 1 2
Results 11 to 19 of 19

Thread: int my_path_ID()

  1. #11
    Senior Member
    Join Date
    Apr 2019
    Posts
    193

    Default

    <3

  2. #12
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    13,311

    Default

    Revision 20151 creates AscensionPath.Path object which is used internally in a bunch of places.
    I considered also modifying AscensionSnapshot and AscensionHistoryRequest, which are two other places that need to change when a new path comes, but punted, for now.
    New ASH functions:

    int my_path_id()
    int path_name_to_id( string )
    string path_id_to_name( int )

    Lets hope I didn't break anything; all of my characters are in aftercore.

  3. #13
    Senior Member
    Join Date
    Apr 2019
    Posts
    193

    Default

    seems like path_name_to_id( string ) has an error

    > ash return path_name_to_id("oxy")

    Unexpected error, debug log printed.
    Script execution aborted (java.lang.NullPointerException): ()
    Returned: void

  4. #14
    Senior Member
    Join Date
    Apr 2019
    Posts
    193

    Default

    (the others work)

  5. #15

  6. #16
    Senior Member
    Join Date
    Apr 2019
    Posts
    193

    Default

    Other than path_name_to_id not being testable, and so the page being incomplete, I finished adding the new functions to the wiki.

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

    Default

    Code:
    > ash path_id_to_name( 3 )
    
    Returned: Oxygenarian
    
    > ash path_id_to_name( 3 ).path_name_to_id()
    
    Returned: 3
    "oxy" is not the name of a path; we don't do fuzzy matching.

    I'll fix the NPE, but I think you'll get a -1 or something.

  8. #18
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    13,311

    Default

    Revision 20152 does that.

  9. #19
    Senior Member
    Join Date
    Feb 2010
    Posts
    1,155

    Default

    Not a bug report, per se, at least not for KoLmafia, but the following scripts have a function of the same name and will now fail until someone modifies the scripts:

    Ezandora's - Bastille, Guide, Asdon Martin, and Pocket Familiar (Helix Fossil).

    Thank you Veracity. You even caught those I didn't have installed and didn't think to look for.
    Last edited by Magus_Prime; 06-08-2020 at 09:01 PM.

Posting Permissions

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