Page 1 of 9 1 2 3 ... LastLast
Results 1 to 10 of 82

Thread: stannius' semi-automatic spaaace script

  1. #1
    Senior Member
    Join Date
    Dec 2006
    Location
    Seattle, WA
    Posts
    287

    Default stannius' semi-automatic spaaace script

    stannius_spaaace 1.2
    stannius' semi-automatic spaaace script 1.2

    A script to complete the "Repair_the_Elves'_Shield_Generator" quest for "Slyz's KoLMafia Scripting contest".

    Prerequisite: zlib.

    Please report bugs here so I can fix them, thus making the world a better place. CLI output would be helpful. I am also open to feedback.

    What it Does:
    * Completes the Repair the Elves' Shield Generator Quest
    * Burns adventures.
    * Changes your equiment and effects.
    * Uses items (see SETTINGS). Buys transponders (if needed, and mall is accessible and allowed by mafia settings) and cheap wind-up clocks.
    * Changes familiars (unless the zlib var is_100_run is set)

    What it Does Not/What you Should Do:
    * See USER SETTINGS below
    * It is up to you to create a custom combat script that will handle scaling monsters, preferably without taking damage. Might I suggest entangling noodles + an auto-hit skill (spell, shieldbutt, etc). Also, olfact "survivor" if you have olfaction.
    * Leave an AT song slot free. (And keep in mind that the script changes equipment, so don't count on having four songs)
    * Have in inventory: transponders, deodorant/pine needles, yellow candy hearts, and cheap wind-up clocks.

    USER SETTINGS

    spaaace_useitems (defaults to true) Use some items giving helpful effects (see "Have in inventory:" above).
    spaaace_escortmanually (defaults to false) Set to true if you want to handle the "Escort Axel Otto around the moons" part of the quest yourself. It is the trickiest part.


    Changelog (more detail given in individual version++ posts)
    0.1 Initial version
    0.2 Fix problems with the hamburglaris/porko code (I didn't get to test it the first time through.)
    0.3 Fix off-by one error in Porko playing code. Add automatic version checking.
    0.4 Fix abort when escorting Axel Otto. Attempt to deliberately shrug the buffs cast by the script (so as to not randomly shrug user's buffs.)
    0.5 Allow restart after loss of spooky little girl. Abort Porko if the probability isn't 1.0, just in case.
    0.6 Get the right porko probs by hitting choice.php an extra time. Keep track of Axel's courage level and warn user if it goes down too fast.
    0.7 Add familiar switching. Add user preferences. Abort if Beaten Up.
    0.8 Transpondentify when using maps from inventory.
    1.0 Rename script to "spaaace.ash". Remove On the Trail when switching zones. Support farming of distention/dog hair pills.
    1.1 Incorporate some code from slyz to make shieldbutt-substitution method more robust.
    1.2 Used sk1ll instead of skill, which is now a reserved keyword.
    Attached Files
    Last edited by stannius; 08-10-2012 at 08:16 PM. Reason: v1.2

  2. #2
    Senior Member Theraze's Avatar
    Join Date
    Mar 2010
    Posts
    8,741

    Default

    Two suggestions. One, don't put attachments inline, it makes it harder to evaluate, especially if you keep different versions. Second, once there's a new version, changelogs are awesome.

  3. #3
    Senior Member
    Join Date
    Dec 2006
    Location
    Seattle, WA
    Posts
    287

    Default

    Two suggestions. One, don't put attachments inline, it makes it harder to evaluate, especially if you keep different versions. Second, once there's a new version, changelogs are awesome.
    Originally Posted by Theraze View Post
    My existing version is obviously perfect and shall never change. However, on the off chance that it does, I have changed the attachment method, and I will be sure to include a changelog for 0.2

  4. #4
    Senior Member Theraze's Avatar
    Join Date
    Mar 2010
    Posts
    8,741

    Default

    Standard note regarding Spooky Little Girl and 2 handed weapons... To be more specific, if your best weapon for "DA, DR, -moxie, +equip spooky little girl" involves 2 hands, your maximize/equip will fail, and the rest of the script will fail to continue running properly...

    Your script will keep trying to run forever if you run out of adventures on certain steps, since your main loop is just while (true) and not all adventure/visit_urls involve another check to validate you have enough/any adventures. It's possible that the abort at the end of the PerformStep will avoid this though.
    Last edited by Theraze; 06-13-2011 at 11:28 PM.

  5. #5
    Senior Member
    Join Date
    Dec 2006
    Location
    Seattle, WA
    Posts
    287

    Default

    Standard note regarding Spooky Little Girl and 2 handed weapons... To be more specific, if your best weapon for "DA, DR, -moxie, +equip spooky little girl" involves 2 hands, your maximize/equip will fail, and the rest of the script will fail to continue running properly...
    Originally Posted by Theraze View Post
    Is there a way to force 1-handed weapons? This seems arguably a mafia bug... I remember a discussion about it somewhere, but I looked in the "Bug Reports" forum and didn't see anything...

    I have ascended so I can't re-test too thoroughly, but
    Code:
    maximize +shield -melee
    seems to work without error.

    I'll add a "1 hand, " in there. Also I noticed that muscle classes will try to equip a shield in the same equipment slot, which probably won't work too well.
    Last edited by stannius; 06-14-2011 at 12:01 AM.

  6. #6
    Developer
    Join Date
    Nov 2008
    Location
    Paris, France
    Posts
    4,510

    Default

    Is there a way to force 1-handed weapons?
    Originally Posted by stannius View Post
    There is, if you check the Maximizer's help button.
    Try the Nemesis Quest Script or the FamiliarFeeder interface.
    *shakes KoLMafia tech support magic 8-ball* Update mafia to the latest daily .JAR!
    NEW Dad ASCENSION STARTED 20120730
    ------------------------------
    Welcome to Parenthood, Noob

  7. #7
    Senior Member Theraze's Avatar
    Join Date
    Mar 2010
    Posts
    8,741

    Default

    Yes... I'd have pointed out the specifics, but that's part of the fun of doing it yourself. Seems you did find it though, so that should help avoid problems. And yes, maybe avoid trying to set both a shield and offhand. That should help decrease frustration.

    Specifically, the "1 hand" means only 1 handed weapons... you can force it to moxie weapons instead if you prefer, but what exactly it equips depends completely on what equipment is available to you and what you've prioritized and requested. If you don't have handed-ness explicitly stated, that's your fault, not mafia's.

  8. #8
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    11,317

    Default

    This seems arguably a mafia bug.
    Originally Posted by stannius View Post
    I love it when people say that, since, when you look at the particular "bug" closely, it is almost always a user misunderstanding, not a "mafia bug". Not always, certainly, but way more often than not.
    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

  9. #9
    Senior Member
    Join Date
    Dec 2006
    Location
    Seattle, WA
    Posts
    287

    Default

    I love it when people say that, since, when you look at the particular "bug" closely, it is almost always a user misunderstanding, not a "mafia bug". Not always, certainly, but way more often than not.
    Originally Posted by Veracity View Post
    Well, I did say "arguably." Though I'm not interested in being on the opposite side of an argument from you.

    I would edit the word "bug" out of my post, if it weren't for the fact that doing so would make it look like you quoted something I didn't say...
    Last edited by stannius; 06-20-2011 at 08:21 PM.

  10. #10
    Senior Member
    Join Date
    Dec 2006
    Location
    Seattle, WA
    Posts
    287

    Default

    I have uploaded version 0.2. This version is more likely to work correctly. Especially given that v0.1 has a 100% chance of not working correctly - it had an infinite loop in it, in a part of the script I wasn't able to test the first time through. (once-an-ascension scripts can be a little tricky...)

    The new version includes the no-shield-collision and 1-hand equipment maximization as discussed above.

Similar Threads

  1. bumcheekcend.ash - A zero setup semi-automated ascension script!
    By bumcheekcity in forum Turn-Burning Scripts
    Replies: 5457
    Last Post: 02-21-2018, 01:31 PM
  2. help determining what script is auto-getting my semi-rare
    By QVamp in forum Community Support
    Replies: 6
    Last Post: 05-18-2015, 08:54 PM
  3. Weatherboy's Completely Automatic Spaaace Script
    By Weatherboy in forum Turn-Burning Scripts
    Replies: 32
    Last Post: 08-31-2014, 03:40 AM
  4. Automatic Script Updating... Discuss!
    By matt.chugg in forum Community Support
    Replies: 76
    Last Post: 07-16-2012, 02:37 PM
  5. Feature - Implemented Cannot run Counter Script from automatic adventuring
    By Bale in forum Bug Reports
    Replies: 14
    Last Post: 03-23-2010, 10:44 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
  •