Page 235 of 239 FirstFirst ... 135 185 225 233 234 235 236 237 ... LastLast
Results 2,341 to 2,350 of 2381

Thread: Universal Recovery Script

  1. #2341
    Senior Member
    Join Date
    Feb 2010
    Posts
    970

    Default

    Universal Recovery uses a data file hosted by zarqon on zachbardon.com/mafiatools/autoupdate.php. That server recently updated to push everything to HTTPS and something is being lost in the translation on the server side.

    To fix the problem change the three lines in Universal_recovery.ash that have the following string from
    Code:
    http://zachbardon.com/mafiatools/autoupdate.php
    to

    Code:
    https://zachbardon.com/mafiatools/autoupdate.php
    Last edited by Magus_Prime; 10-17-2017 at 02:03 PM.

  2. #2342
    Senior Member
    Join Date
    Oct 2017
    Posts
    287

    Default

    Universal Recovery uses a data file hosted by zarqon on zachbardon.com/mafiatools/autoupdate.php. That server recently updated to push everything to HTTPS and something is being lost in the translation on the server side.

    To fix the problem change the three lines in Universal_recovery.ash that have the following string from
    Code:
    http://zachbardon.com/mafiatools/autoupdate.php
    to

    Code:
    https://zachbardon.com/mafiatools/autoupdate.php
    Originally Posted by Magus_Prime View Post
    Ideally, this info should actually be stored in a file on the SVN that gets downloaded with the script. For example, the mushroom autofarm script stores its data in a text file which it downloads as part of the SVN pull

    Anyways, at the moment the script doesn't work

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

    Default

    @taltamir: Ideals vary. The benefit of using the Map Manager over SVN is that files are publicly editable. I definitely prefer this for BatBrain, as things are being constantly added to the game which that script needs to know about, and a lot of content has been added by users. For files that don't need frequent updating as new content is added (like, probably, this case, since the file hasn't been updated since February) SVN is preferable.

    I've updated ZLib to continue to work with the Map Manager, but Bale is using his own code to access the Map Manager and hasn't been around here in several months to update his script. If you want the script to 'work' again though, you can simply add the 's' in the right places as Magus noted above until Bale (hopefully -- fingers crossed) returns to update it. That's what I did -- so there was only a small glitch in my Unversal Recovering.

    Or, optionally, change it to simply use file_to_map() rather than checking the Map Manager at all. If Bale's not around, it's probably not getting updated anyway until the script itself updates.
    Last edited by zarqon; 10-24-2017 at 06:51 AM.
    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. #2344
    Senior Member
    Join Date
    Apr 2009
    Posts
    1,813

    Default

    But file_to_map does currently NOT update from https urls ...

  5. #2345
    Senior Member zarqon's Avatar
    Join Date
    Nov 2007
    Location
    Seoul, Korea
    Posts
    3,563

    Default

    Right, it didn't and then you bug reported it and then it did and then it didn't again. Hopefully that will be fixed soon.
    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!

  6. #2346
    Junior Member
    Join Date
    Sep 2010
    Posts
    22

    Default

    Not sure what has happened recently, but it seems like this gets stuck into a huge loop, and never proceeds for me.

    What I've found in the log is this:

    In mallmode, best MP restorative is: palm-frond fan @ 862.75 meat total.
    Mall price to restore 105MP is 447 meat.
    Trying to use 1 Medicinal Herb's medicinal herbs
    Failed to use an item from the mall.

    And then it just loops, and sits. Never to actually run anything at all.

    If something isn't available to purchase, does it not exclude it on the next cycle? Is there some way to skip past this one item?

  7. #2347
    Junior Member
    Join Date
    Jan 2018
    Posts
    4

    Default

    I had it Mafia going yesterday no problem, but today after setting universal recovery now have a problem.

    Now when I try to run any adventures it spams a huge amount of <html> looking code and then says "Restorative data is corrupted or missing. Troublesome!"

    I've installed it and set it as my recovery script, and it was after setting it as my script that this started (missed that step yesterday after first installing it)... anyone have any ideas?
    Last edited by kevtron; 01-10-2018 at 12:51 PM. Reason: clarity

  8. #2348
    Minion Bale's Avatar
    Join Date
    Jun 2008
    Posts
    13,287

    Default

    Sorry. Problem involving change of protocols for the map manager. My local copy was fixed, but I forgot to update the SVN.

    Try updating the script. Then let me know for sure that it worked.

  9. #2349
    Junior Member
    Join Date
    Jan 2018
    Posts
    4

    Default

    You're a bad ass. Thanks for the super quick fix! Looks all good from my side ^^

  10. #2350

    Default

    With the latest update, I'm now seeing the following error in my console when Universal Recovery is run:
    Code:
    IOException during data post     (https://zachbardon.com/mafiatools/autoupdate.php?f=recoveryScript_map_v2&act=getver):     sun.security.validator.ValidatorException: PKIX path building failed:     sun.security.provider.certpath.SunCertPathBuilderException: unable to find     valid certification path to requested target.
    IOException     during data post     (https://zachbardon.com/mafiatools/autoupdate.php?f=recoveryScript_map_v2&act=getver):     sun.security.validator.ValidatorException: PKIX path building failed:     sun.security.provider.certpath.SunCertPathBuilderException: unable to find     valid certification path to requested target.

Similar Threads

  1. Anecdote - Recovery Script not firing between auto-adventures?
    By fronobulax in forum Community Support
    Replies: 1
    Last Post: 02-20-2015, 07:36 PM
  2. Replies: 0
    Last Post: 09-21-2013, 05:50 PM
  3. what are all the ways mafia can consult a script? like recovery, breakfast
    By forgot my password in forum Scripting Discussion
    Replies: 5
    Last Post: 06-11-2009, 09:05 PM
  4. Recovery Script for Hardcore
    By Bale in forum Buff Upkeep Scripts
    Replies: 84
    Last Post: 03-04-2009, 08:17 AM
  5. Very New, Need a MP Recovery Script
    By Willie0248 in forum Scripting Discussion
    Replies: 2
    Last Post: 04-15-2006, 09:30 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
  •