Results 1 to 7 of 7

Thread: Delay burning across rollovers?

  1. #1
    Senior Member
    Join Date
    Aug 2008
    Posts
    120

    Default Delay burning across rollovers?

    Hello!

    Is there a way to make Mafia remember which zones already had their delay burned in previous days?

    Obviously these should reset after ascension, but currently (AFAICT) they are set in a way that causes Ezandora's Guide and some ascension scripts to waste resources burning delay in zones that are already burned (or even completed).

    I'm assuming this can be fixed within the scripts themselves (on a case by case basis perhaps?), but maybe there's a Mafia can do it in a more universal way?

  2. #2
    Developer
    Join Date
    Apr 2010
    Posts
    5,129

    Default

    Not exactly, and certainly not if the other days weren't played in Mafia.

    I haven't ascended recently, but when I did with Guide the issue would come up whenever an item that caused non-combats without spending turns was used, as Guide would not handle that elegantly. Ideally Guide would understand that if a quest was complete (or progressed) that completed only after delay, that it meant there was no remaining delay worth burning.

  3. #3

    Default

    What you are asking about is the turns_spent proxy value for a location, which Guide does use. Sometimes mafia doesn't track that properly. The most common cases are choices leading to combats and combats leading to choices.

    I spent hours looking over that code trying to find a way to handle the common edge cases, and gave up. I will happily look over any patch that someone else provides, but I'm done trying to figure it out myself.

    And yes, there are cases where Guide could check for a quest being completed in addition to just checking turns_spent (at least that's what I remember from last time I ascended).

  4. #4
    Senior Member
    Join Date
    Jun 2016
    Posts
    342

    Default

    turns_spent also seems to occasionally reset between days (resetting back to 0), as if it didn't get saved properly over rollover. This might be what is going on here, and I've been thinking about filing a bug report about that, but I was waiting to see if I could narrow down when it happened to include that in the bug report.

  5. #5
    Senior Member
    Join Date
    Aug 2008
    Posts
    120

    Default

    turns_spent also seems to occasionally reset between days (resetting back to 0), as if it didn't get saved properly over rollover. This might be what is going on here, and I've been thinking about filing a bug report about that, but I was waiting to see if I could narrow down when it happened to include that in the bug report.
    Originally Posted by the dictator View Post
    Alright, doing some data collecting from my last run. This is day 3, right after kingliberation, before doing any aftercore turns. Unfortunately I only checked turns_spent on day 3. I checked my session logs to see how many turns I actually spent, and on which day.

    I checked (most) locations Guide cares about (full list at line 3202).

    Oh, one more thing I should note- It's possible that during the run I left mafia open overnight once, and closed then reopened it in the morning, after rollover. I'm not sure if this was the first or second rollover of the run. Hoping this does not contaminate this data.


    Code:
    > ash $location[the spooky forest].turns_spent
    
    Returned: 12 (session logs say 7 on day 1, & 12 on day 2)
    
    > ash $location[the boss bat's lair].turns_spent
    
    Returned: 0 (7 on day 1)
    
    > ash $location[the haunted bedroom].turns_spent
    
    Returned: 0 (7 on day 1)
    
    > ash $location[the oasis].turns_spent
    
    Returned: 0 (3 on day 2)
    
    > ash $location[the upper chamber].turns_spent
    
    Returned: 0 (6 day 2)
    
    > ash $location[the haunted gallery].turns_spent
    
    Returned: 0 (11 on day 1)
    
    > ash $location[the haunted bathroom].turns_spent
    
    Returned: 1  (11 on day 1, & 1 on day 2)
    
    > ash $location[the haunted ballroom].turns_spent
    
    Returned: 7 (0 day 1, & 7 on day 2)
    
    > ash $location[the penultimate fantasy airship].turns_spent
    
    Returned: 0 (29 day 1)
    
    > ash $location[The Castle in the Clouds in the Sky (Ground Floor)].turns_spent
    
    Returned: 7 (9 on day 1, & 7 on day 2, 0 day 3) Note Sl_ascend decided to revisit this location, that's why it's >11
    
    > ash $location[the outskirts of cobb's knob].turns_spent
    
    Returned: 1 (11 day 1, 1 on day 2)
    
    > ash $location[the hidden apartment building].turns_spent
    
    Returned: 0 (9 on day 2)
    
    > ash $location[the hidden office building].turns_spent
    
    Returned: 0 (11 day 2)
    
    > ash $location[the upper chamber].turns_spent
    
    Returned: 0 (6 on day 2)
    TL: DR
    A couple of strange findings-
    None of the checked locations were remembered between day 1 and 2.

    Spooky forest and outskirts of cobb were remembered between day 2 & 3, but not day 1 & 2.
    On the other hand, The Oasis was not remembered between day 2 to 3, so there's something deeper than "some rollovers reset the count, some don't", or "some locations work as intended, some don't". I think it also means that (if) mafia was left open overnight, it had no effect?

    Well, I hope this can help narrow down what's going on. Thank you all!
    Last edited by PartyBasher; 08-07-2019 at 09:03 PM.

  6. #6
    Developer
    Join Date
    Apr 2010
    Posts
    5,129

    Default

    I have never seen that, but also never had mafia open over rollover (as it is early morning here)

  7. #7
    Senior Member
    Join Date
    Aug 2008
    Posts
    120

    Default

    I have never seen that, but also never had mafia open over rollover (as it is early morning here)
    Originally Posted by Darzil View Post
    This (the reset to 0 on rollover) happens to me quite frequently, and leaving mafia open overnight is not something I often do.

    I stayed an extra day in aftercore and checked again, all zones that had non-zero counts are still the same.

    If there's any other data I can collect to help find the cause let me know.
    Last edited by PartyBasher; 08-08-2019 at 01:40 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
  •