Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15

Thread: Asdon Martin refueler, and redundancy

  1. #1
    Senior Member
    Join Date
    Apr 2012
    Posts
    131

    Default Asdon Martin refueler, and redundancy

    "No one buys crappy food for your car like Gasdon!"

    This will find the most cost-efficient semi-edible commodities to refuel your car with. It is also a blatant rebranding of that thing for boozing up the driver in Dread. (With food in addition to booze, because every car deserves the cheapest garbage you can possibly find, regardless of which organ it fills.)

    It can also crank out turns of the various driving modes, although newer versions of Mafia can do that too, apparently. This script should still work on older versions of Mafia that don't know what an Asdon Martin is.


    #JustCLIThings:

    gasdon (number) -> Fills tank up to at least that many litres.

    gasdon list -> Show the top eleven cheapest fuel sources.

    gasdon (type of driving) (number) -> Drive in the specified way for the specified number of turns. Will refuel if necessary.

    gasdon [name of item, in brackets, like this] (number) -> Fuel up using only the specified item. Mainly so you can use this in-run without accidentally fueling your car with something you wanted for fueling your body.


    Install link:

    Code:
    svn checkout https://svn.code.sf.net/p/guyymafia/code/gasdon

    Honestly, at the moment this doesn't seem all that necessary, since there's a lot of cheap food laying around. But if enough people use it, it could speed up the food/booze sinking process and end up making itself useful. The wheels on the circular justification go round and round...

  2. #2
    Senior Member AlbinoRhino's Avatar
    Join Date
    May 2008
    Posts
    707

    Default

    Sounds useful ! Thanks !

  3. #3

    Default

    This is useful indeed.

    Question- why doesn't it recognize loaf of soda bread when using the "Fuel up using only the specified item" command? I tried
    "gasdon [loaf of soda bread ] 40"
    and got:
    Gas gauge says: 31 litres. Need 40 litres.
    Only considering items currently in inventory.
    Can't find any suitable fuel!

    (loaf of soda bread works, and I had plenty in inventory.)

  4. #4
    Senior Member
    Join Date
    Apr 2009
    Posts
    1,756

    Default

    Loaf of soda bread is made from all npc-buyable ingredients. It should not work ... but apparently this is yet another different implementation of the same general idea, and crafted things are permissible here (unlike dreadsylvanian carriageman)? Or some crafted items work and others don't, because ... it's a hardcoded list somewhere?
    Last edited by xKiv; 07-13-2017 at 02:08 PM.

  5. #5
    Senior Member
    Join Date
    Apr 2012
    Posts
    131

    Default

    Yeah, it looks like crafted things are allowed this time. I think the carriageman was originally like that, and they added the craftable-from-NPC restriction later. I changed it to just block directly-bought NPC items (it still doesn't allow grapefruits, presumably because hippy store), so we'll see how that goes.

    As of now, it doesn't matter a whole lot because there are only ~40 items that were blocked by the carriageman carryover code; of those, the soda bread is basically the only thing worth using, and only in-run where you don't have easy access to more efficient fuelers.

  6. #6
    Senior Member AlbinoRhino's Avatar
    Join Date
    May 2008
    Posts
    707

    Default

    Maybe I am doing something wrong ? This keeps happening to me. I ask for buffs and it tells me about the fuel.

    > gasdon observantly 30;

    You're already Driving Observantly for 30 kilometers. I mean adventures.

    > gasdon observantly 60;

    Gas gauge says: 77 litres. Need 37 litres. Don't need to refuel.

    It stops there and doesn't actually extend the buff.
    Last edited by AlbinoRhino; 07-18-2017 at 02:14 AM.

  7. #7
    Senior Member
    Join Date
    Apr 2012
    Posts
    131

    Default

    Looks like it was set up to only drive if the tank needs more fuel, which doesn't make a whole lot of sense. Should work now.

    Also, you can use "item" instead of "observantly," or something analogous for the other types.

  8. #8
    Senior Member AlbinoRhino's Avatar
    Join Date
    May 2008
    Posts
    707

    Default

    Cool. Thanks. I read about the available shorthand but I was copying and pasting from a script button ! I only ever had to type that once ! lol

  9. #9

    Default

    So... this is great, but it just ate my splendid martinis in a LTA run, which may or may not increase my daycount.
    This is totally my fault for being lazy, and not creating a loaf of soda bread alias.

    Is there a way to blacklist a few items?

  10. #10
    Senior Member
    Join Date
    Apr 2012
    Posts
    131

    Default

    Yeah, I guess I should actually do that, instead of just considering doing it...

    "gasdon blacklist [item, other item, etc.]" should now let you blacklist stuff. "gasdon blacklist clear" will erase it.
    Also, you can list multiple items to only use any of those multiple items, i.e. "gasdon 23796593846 [item, other item, wow that's a lot of gas, yikes, etc.]"

Posting Permissions

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