Results 1 to 6 of 6

Thread: Stealthcore Scheduler: Error - Object reference not set to an instance of an object

  1. #1
    Praise_the_Sun's Avatar
    Joined
    Jan 2024
    Posts
    97
    Userbars
    4
    Thanks
    91
    Thanked
    41/34
    DL/UL
    18/1
    Mentioned
    8 times
    Time Online
    11d 23h 15m
    Avg. Time Online
    2h 43m

    Stealthcore Scheduler: Error - Object reference not set to an instance of an object

    Hi Folks,

    For the life of me I can't get Stealthcore's scheduler working via loading text schedule file working. I'm using more than 10 accounts.



    Is the format not Account_Name|Task|*|False|Waiting..|No ? Where * and False are start and end times?

    It looks like manual scheduling always produces a start time. Is this the problem?



    When I load a schedules file for my logged-in accounts I get: Once-A-Day Dailies Error - Object reference not set to an instance of an object.

    I've only had luck manually recreating the schedule each and every time. Haven't been able to load a preset schedule yet.



    I'd also like to know the best method of loading different schedules. Is it copy and pasting over the Schedules.txt file with other text?

    Your help is so very appreciated!

  2. #2
    DarkSkies's Avatar
    Joined
    Sep 2021
    Posts
    3,099
    Pronouns
    She
    Userbars
    99
    Thanks
    8,018
    Thanked
    5,996/2,315
    DL/UL
    31/0
    Mentioned
    420 times
    Time Online
    84d 21h 36m
    Avg. Time Online
    2h 8m
    The schedule format is correct, I normally do it manually but tested now for science

    It seems the first account go through dailies normally but when next one is coming the error arises (only for a preloaded schedule with Dailies task). It goes through if you make the schedule manual, which wouldn't be so comfortable doing for many accounts.

    Have you tried doing the tasks separately instead of Once Dailies? Yeah I know it's longer and defeats the purpose of Once a Dailies task, but wouldn't hurt to try?

    If you can load your Schedules.txt (which yes this is the one and only file SC uses) you would need to do the list once and then copy, paste or rename according to your needs.

    Just asking because I was able to do different tasks with the second account with no troubles.

    Let me know how it goes! The "Object reference not set to an instance of an object" for the rest of accounts may be something that would need code intervention, speaking blindly here because I'm not sure what triggers it for everything but the first acc.








    ~~ Shooting stars ~~

    Many thanks to:

    @(you need an account to see links) for the Wolf Ryu and @(you need an account to see links) for the Kousetsu puppy <)
    @(you need an account to see links) for my howling wolf and @(you need an account to see links) for my wolf pumpkin <3
    @(you need an account to see links) for my custom userbars and @(you need an account to see links) for the lovely popsicle/lycanroc bar ^^
    @(you need an account to see links) for my star puppy and @(you need an account to see links) for my Rockruff avatar :3


  3. The Following 2 Users Say Thank You to DarkSkies For This Useful Post:

    j03 (02-21-2024),Praise_the_Sun (02-21-2024)

  4. #3
    Praise_the_Sun's Avatar
    Joined
    Jan 2024
    Posts
    97
    Userbars
    4
    Thanks
    91
    Thanked
    41/34
    DL/UL
    18/1
    Mentioned
    8 times
    Time Online
    11d 23h 15m
    Avg. Time Online
    2h 43m
    Quote Originally Posted by DarkSkies View Post
    The schedule format is correct, I normally do it manually but tested now for science

    It seems the first account go through dailies normally but when next one is coming the error arises (only for a preloaded schedule with Dailies task). It goes through if you make the schedule manual, which wouldn't be so comfortable doing for many accounts.

    Have you tried doing the tasks separately instead of Once Dailies? Yeah I know it's longer and defeats the purpose of Once a Dailies task, but wouldn't hurt to try?

    If you can load your Schedules.txt (which yes this is the one and only file SC uses) you would need to do the list once and then copy, paste or rename according to your needs.

    Just asking because I was able to do different tasks with the second account with no troubles.

    Let me know how it goes! The "Object reference not set to an instance of an object" for the rest of accounts may be something that would need code intervention, speaking blindly here because I'm not sure what triggers it for everything but the first acc.
    You're right. Avoiding the once a day daily task seems to fix this problem.

    For those interested/lurking, I wrote a simple python program to autoformat a list. It doesn't have scheduling beyond "start now" essentially, but it's a good baseline. Happy to adjust it if people want/I might do because I want it. It also randomizes the tasks:

    Code:
    import random
    
    # List of tasks
    tasks = [
        "Account Re-Login",
        "Food Club Better",
        "Lottery Ticket Buyer",
        "Battledome AP",
        "Kadoatie Feeder",
        "Snow Wars Auto-Player",
        "Cheat! Auto-Player",
        "Shop Auto-Pricer",
        "Kitchen Quester",
        "Igloo Garage Buyer",
        "Dice-A-Roo AP",
        "Gormball AP",
        "Money Tree Collector",
        "NeoPoker AP",
        "Edna Quester",
        "Kacheek Seek Auto-Player",
        "Pick Your Own Auto-Player",
        "Faerie Quester",
        "The Coincidence",
        "Snowager",
        "Buried Treasure",
        "Coltzans Shrine",
        "Test Your Strength",
        "Qasalan Expellibox",
        "Grave Danger",
        "Healing Springs",
        "Deadly Dice",
        "Stamp Collector",
        "Neodeck Collector",
        "Fishing",
        "Meteor Crash",
        "Winter Scratchcard",
        "Spooky Scratchcard",
        "Desert Scratchcard",
        "Kiss the Mortog AP",
        "Double or Nothing AP",
        "Symol Hole",
        "Cheeseroller",
        "Lever of Doom AP",
        "Black Pawkeet Slots",
        "Brucey B Slots",
        "Turmaculus",
        "SSW sniper",
        "Stock Market",
        "Spider Refresher",
        "Neo Link Visitor",
        "Tyranu Evavu",
        "Coconut Shy",
        "Bagatelle",
        "Brain Tree Quester",
        "Cellblock Auto-Player",
        "Illusen Quester",
        "Jhudora Quester",
        "Wishing Well",
        "Wheel of Excitement",
        "Wheel of Extravagance",
        "Wheel of Monotony",
        "Wheel of Misfortune",
        "Wheel of Knowledge",
        "Wheel of Mediocrity",
        "Grumpy Old King",
        "Wise Old King",
        "Giant Jelly",
        "Giant Omelette",
        "Lunar Temple",
        "Forgotten Shore",
        "Gera tiku Tomb",
        "Tombola",
        "Bank Interest",
        "Fruit Machine",
        "Blue Grundo (DMBGPOP)",
        "Secret Lab",
        "Anchor Management",
        "Advent Calendar",
        "Kiko Pop",
        "Faerie Caverns",
        "Obsidian Quarry",
        "King Altador"
    ]
    
    
    # List of account names
    account_names = [
        "Account 1",
        "Account 2",
        #Add Accounts as above to list
    ]
    
    # Format string
    format_string = "{}|{}|*|False|Waiting..|No"
    
    # Create a list to hold all the formatted tasks for all accounts
    all_formatted_tasks = []
    
    # Generate formatted task for each account
    for account in account_names:
        for task in tasks:
            formatted_task = format_string.format(account, task)
            all_formatted_tasks.append(formatted_task)
    
    # Randomize the list of formatted tasks
    random.shuffle(all_formatted_tasks)
    
    # Output the formatted tasks
    for task in all_formatted_tasks:
        print(task)
    Sample output:

    Code:
    Account 1|Brucey B Slots|*|False|Waiting..|No
    Account 1|Buried Treasure|*|False|Waiting..|No
    Account 2|Forgotten Shore|*|False|Waiting..|No
    Account 2|Cheat! Auto-Player|*|False|Waiting..|No
    Account 1|Symol Hole|*|False|Waiting..|No
    Account 2|Secret Lab|*|False|Waiting..|No
    Account 1|Grave Danger|*|False|Waiting..|No
    Account 2|Stock Market|*|False|Waiting..|No
    Account 2|Giant Omelette|*|False|Waiting..|No
    Account 2|Desert Scratchcard|*|False|Waiting..|No
    Account 1|Igloo Garage Buyer|*|False|Waiting..|No
    Account 1|Black Pawkeet Slots|*|False|Waiting..|No
    Account 2|Kiss the Mortog AP|*|False|Waiting..|No
    Account 1|Snow Wars Auto-Player|*|False|Waiting..|No
    Account 2|Winter Scratchcard|*|False|Waiting..|No
    Account 2|Gera tiku Tomb|*|False|Waiting..|No
    Account 1|Money Tree Collector|*|False|Waiting..|No
    Account 1|Brain Tree Quester|*|False|Waiting..|No
    Account 2|Grave Danger|*|False|Waiting..|No
    Account 1|Wheel of Misfortune|*|False|Waiting..|No
    Account 1|Gormball AP|*|False|Waiting..|No
    Account 2|Giant Jelly|*|False|Waiting..|No
    Account 2|Coltzans Shrine|*|False|Waiting..|No
    Account 2|Meteor Crash|*|False|Waiting..|No
    Account 2|Neo Link Visitor|*|False|Waiting..|No
    Account 2|Wheel of Extravagance|*|False|Waiting..|No
    Account 1|Kiss the Mortog AP|*|False|Waiting..|No
    Account 2|Spider Refresher|*|False|Waiting..|No
    Account 2|Lottery Ticket Buyer|*|False|Waiting..|No
    Account 2|Dice-A-Roo AP|*|False|Waiting..|No
    Account 1|Cheat! Auto-Player|*|False|Waiting..|No
    Account 2|Pick Your Own Auto-Player|*|False|Waiting..|No
    Account 2|Tombola|*|False|Waiting..|No
    Account 2|Kitchen Quester|*|False|Waiting..|No
    Account 2|Symol Hole|*|False|Waiting..|No
    Account 1|Advent Calendar|*|False|Waiting..|No
    Account 1|Qasalan Expellibox|*|False|Waiting..|No
    Account 1|Shop Auto-Pricer|*|False|Waiting..|No
    Account 2|Coconut Shy|*|False|Waiting..|No
    Account 1|Spider Refresher|*|False|Waiting..|No
    Account 1|Anchor Management|*|False|Waiting..|No
    Account 1|Fruit Machine|*|False|Waiting..|No
    Account 1|Neo Link Visitor|*|False|Waiting..|No
    Account 1|Blue Grundo (DMBGPOP)|*|False|Waiting..|No
    Account 2|The Coincidence|*|False|Waiting..|No
    Account 1|Coltzans Shrine|*|False|Waiting..|No
    Account 1|Secret Lab|*|False|Waiting..|No
    Account 1|Wheel of Excitement|*|False|Waiting..|No
    Account 2|Edna Quester|*|False|Waiting..|No
    Account 2|Bank Interest|*|False|Waiting..|No
    Account 1|Gera tiku Tomb|*|False|Waiting..|No
    Account 1|Stock Market|*|False|Waiting..|No
    Account 1|Illusen Quester|*|False|Waiting..|No
    Account 2|Gormball AP|*|False|Waiting..|No
    Account 2|Battledome AP|*|False|Waiting..|No
    Account 2|Kadoatie Feeder|*|False|Waiting..|No
    Account 1|Kadoatie Feeder|*|False|Waiting..|No
    Account 2|Stamp Collector|*|False|Waiting..|No
    Account 2|Lever of Doom AP|*|False|Waiting..|No
    Account 1|Wishing Well|*|False|Waiting..|No
    Account 2|Wheel of Excitement|*|False|Waiting..|No
    Account 2|Faerie Quester|*|False|Waiting..|No
    Account 1|Tyranu Evavu|*|False|Waiting..|No
    Account 2|Wheel of Monotony|*|False|Waiting..|No
    Account 2|Bagatelle|*|False|Waiting..|No
    Account 1|Giant Jelly|*|False|Waiting..|No
    Account 2|Lunar Temple|*|False|Waiting..|No
    Account 1|Snowager|*|False|Waiting..|No
    Account 1|Account Re-Login|*|False|Waiting..|No
    Account 1|Pick Your Own Auto-Player|*|False|Waiting..|No
    Account 1|Bank Interest|*|False|Waiting..|No
    Account 2|Shop Auto-Pricer|*|False|Waiting..|No
    Account 1|Obsidian Quarry|*|False|Waiting..|No
    Account 2|Obsidian Quarry|*|False|Waiting..|No
    Account 2|Double or Nothing AP|*|False|Waiting..|No
    Account 2|Anchor Management|*|False|Waiting..|No
    Account 1|Winter Scratchcard|*|False|Waiting..|No
    Account 1|Food Club Better|*|False|Waiting..|No
    Account 2|Wishing Well|*|False|Waiting..|No
    Account 1|Wheel of Knowledge|*|False|Waiting..|No
    Account 1|Meteor Crash|*|False|Waiting..|No
    Account 1|Battledome AP|*|False|Waiting..|No
    Account 1|Lever of Doom AP|*|False|Waiting..|No
    Account 1|Test Your Strength|*|False|Waiting..|No
    Account 1|Bagatelle|*|False|Waiting..|No
    Account 2|Snow Wars Auto-Player|*|False|Waiting..|No
    Account 1|Fishing|*|False|Waiting..|No
    Account 1|Coconut Shy|*|False|Waiting..|No
    Account 2|Jhudora Quester|*|False|Waiting..|No
    Account 1|Deadly Dice|*|False|Waiting..|No
    Account 2|Kiko Pop|*|False|Waiting..|No
    Account 2|Brain Tree Quester|*|False|Waiting..|No
    Account 1|Lunar Temple|*|False|Waiting..|No
    Account 2|Money Tree Collector|*|False|Waiting..|No
    Account 1|NeoPoker AP|*|False|Waiting..|No
    Account 2|Black Pawkeet Slots|*|False|Waiting..|No
    Account 2|Spooky Scratchcard|*|False|Waiting..|No
    Account 2|Qasalan Expellibox|*|False|Waiting..|No
    Account 2|Wheel of Mediocrity|*|False|Waiting..|No
    Account 2|Account Re-Login|*|False|Waiting..|No
    Account 1|Giant Omelette|*|False|Waiting..|No
    Account 1|Edna Quester|*|False|Waiting..|No
    Account 2|Healing Springs|*|False|Waiting..|No
    Account 2|Tyranu Evavu|*|False|Waiting..|No
    Account 2|Cheeseroller|*|False|Waiting..|No
    Account 1|Tombola|*|False|Waiting..|No
    Account 2|Fishing|*|False|Waiting..|No
    Account 2|SSW sniper|*|False|Waiting..|No
    Account 1|Kitchen Quester|*|False|Waiting..|No
    Account 2|Fruit Machine|*|False|Waiting..|No
    Account 2|Deadly Dice|*|False|Waiting..|No
    Account 1|Faerie Caverns|*|False|Waiting..|No
    Account 2|King Altador|*|False|Waiting..|No
    Account 1|Faerie Quester|*|False|Waiting..|No
    Account 2|Advent Calendar|*|False|Waiting..|No
    Account 2|Neodeck Collector|*|False|Waiting..|No
    Account 2|Blue Grundo (DMBGPOP)|*|False|Waiting..|No
    Account 1|Wheel of Monotony|*|False|Waiting..|No
    Account 2|Turmaculus|*|False|Waiting..|No
    Account 1|Wheel of Extravagance|*|False|Waiting..|No
    Account 2|Snowager|*|False|Waiting..|No
    Account 1|Kacheek Seek Auto-Player|*|False|Waiting..|No
    Account 2|Food Club Better|*|False|Waiting..|No
    Account 1|Dice-A-Roo AP|*|False|Waiting..|No
    Account 1|King Altador|*|False|Waiting..|No
    Account 2|Cellblock Auto-Player|*|False|Waiting..|No
    Account 1|Cellblock Auto-Player|*|False|Waiting..|No
    Account 1|The Coincidence|*|False|Waiting..|No
    Account 1|Jhudora Quester|*|False|Waiting..|No
    Account 1|Forgotten Shore|*|False|Waiting..|No
    Account 1|Grumpy Old King|*|False|Waiting..|No
    Account 2|Faerie Caverns|*|False|Waiting..|No
    Account 2|Kacheek Seek Auto-Player|*|False|Waiting..|No
    Account 1|Neodeck Collector|*|False|Waiting..|No
    Account 2|NeoPoker AP|*|False|Waiting..|No
    Account 1|Spooky Scratchcard|*|False|Waiting..|No
    Account 1|Kiko Pop|*|False|Waiting..|No
    Account 1|Desert Scratchcard|*|False|Waiting..|No
    Account 1|SSW sniper|*|False|Waiting..|No
    Account 2|Illusen Quester|*|False|Waiting..|No
    Account 1|Stamp Collector|*|False|Waiting..|No
    Account 1|Cheeseroller|*|False|Waiting..|No
    Account 2|Igloo Garage Buyer|*|False|Waiting..|No
    Account 1|Lottery Ticket Buyer|*|False|Waiting..|No
    Account 1|Wise Old King|*|False|Waiting..|No
    Account 2|Wheel of Knowledge|*|False|Waiting..|No
    Account 1|Healing Springs|*|False|Waiting..|No
    Account 1|Double or Nothing AP|*|False|Waiting..|No
    Account 2|Buried Treasure|*|False|Waiting..|No
    Account 2|Wheel of Misfortune|*|False|Waiting..|No
    Account 2|Test Your Strength|*|False|Waiting..|No
    Account 2|Wise Old King|*|False|Waiting..|No
    Account 2|Brucey B Slots|*|False|Waiting..|No
    Account 2|Grumpy Old King|*|False|Waiting..|No
    Account 1|Wheel of Mediocrity|*|False|Waiting..|No
    Account 1|Turmaculus|*|False|Waiting..|No

    Some tasks do still seem to cause crashes and I'm troubleshotting. Simply comment out or delete tasks you don't want to run. Remove or comment out

    # Randomize the list of formatted tasks
    random.shuffle(all_formatted_tasks)

    if you don't want them randomized. That will create a schedule in the order of the given list.

    ---------- Post added at 10:10 PM ---------- Previous post was at 09:11 PM ----------

    Also getting System.ArgumentOutOfRangeException: Length cannot be less than zero.

    Code:
    TIME PM[Account 1]: System.ArgumentOutOfRangeException: Length cannot be less than zero.
    ...
    TIME PM[Account 2]: System.ArgumentOutOfRangeException: Length cannot be less than zero.
    
    System.ArgumentOutOfRangeException: Length cannot be less than zero.
    Parameter name: length
       at System.String.Substring(Int32 startIndex, Int32 length)

    This indicates that somewhere in the code, there is likely a substring operation or similar string manipulation that is not correctly handling the string input it is given. The error message points to the System.String.Substring method, which fails when the specified parameters are out of the bounds of the string being processed. Perhaps review the code handling this?

    - - - Updated - - -

    Going back to manually setting daily operations. Loading the individual task lists is causing crashes later in the schedule.
    Last edited by Praise_the_Sun; 02-21-2024 at 11:27 PM.

  5. The Following User Says Thank You to Praise_the_Sun For This Useful Post:

    DarkSkies (02-21-2024)

  6. #4
    DarkSkies's Avatar
    Joined
    Sep 2021
    Posts
    3,099
    Pronouns
    She
    Userbars
    99
    Thanks
    8,018
    Thanked
    5,996/2,315
    DL/UL
    31/0
    Mentioned
    420 times
    Time Online
    84d 21h 36m
    Avg. Time Online
    2h 8m
    @(you need an account to see links) that's a nice list generator!

    I would suggest to add a bit of difference on start times for the tasks to give SC some breath, especially when using many accounts (and the forever lag on the site). In the past I noticed some tasks crashed the program so a good idea would be to start filtering tasks too.

    Begin with a shorter and simpler llist and go from there.

    For example, I don't do fishing, lottery (I know don't hate me for this T_T), the different rounds, auto pricer, refreshers, games or collecting either because of past crashes or just simply lack of interest from me (I mean I like to shorten my time haha).

    Maybe choose 20 easy tasks first, leave 3 seconds among each one and begin to test. Once you get a batch going the rest is trial and error.

    For the times you could use an array by incrementing 2/3 secs on each start_time_item and then pass to your "Generate formatted task for each account" block.

    Starting times:
    + for task1
    +0:0:2 for task2
    +0:0:4 for next
    +0:0:6 next
    ......
    and so on

    Don't be afraid to play with times.

    Very curious about your results! I'm so settled on my lazy configurations that it's been a while since I tried different stuff, but I'm following this for science








    ~~ Shooting stars ~~

    Many thanks to:

    @(you need an account to see links) for the Wolf Ryu and @(you need an account to see links) for the Kousetsu puppy <)
    @(you need an account to see links) for my howling wolf and @(you need an account to see links) for my wolf pumpkin <3
    @(you need an account to see links) for my custom userbars and @(you need an account to see links) for the lovely popsicle/lycanroc bar ^^
    @(you need an account to see links) for my star puppy and @(you need an account to see links) for my Rockruff avatar :3


  7. The Following User Says Thank You to DarkSkies For This Useful Post:

    Praise_the_Sun (02-22-2024)

  8. #5
    Praise_the_Sun's Avatar
    Joined
    Jan 2024
    Posts
    97
    Userbars
    4
    Thanks
    91
    Thanked
    41/34
    DL/UL
    18/1
    Mentioned
    8 times
    Time Online
    11d 23h 15m
    Avg. Time Online
    2h 43m
    Quote Originally Posted by DarkSkies View Post
    @(you need an account to see links) that's a nice list generator!

    I would suggest to add a bit of difference on start times for the tasks to give SC some breath, especially when using many accounts (and the forever lag on the site). In the past I noticed some tasks crashed the program so a good idea would be to start filtering tasks too.

    Begin with a shorter and simpler llist and go from there.

    For example, I don't do fishing, lottery (I know don't hate me for this T_T), the different rounds, auto pricer, refreshers, games or collecting either because of past crashes or just simply lack of interest from me (I mean I like to shorten my time haha).

    Maybe choose 20 easy tasks first, leave 3 seconds among each one and begin to test. Once you get a batch going the rest is trial and error.

    For the times you could use an array by incrementing 2/3 secs on each start_time_item and then pass to your "Generate formatted task for each account" block.

    Starting times:
    + for task1
    +0:0:2 for task2
    +0:0:4 for next
    +0:0:6 next
    ......
    and so on

    Don't be afraid to play with times.

    Very curious about your results! I'm so settled on my lazy configurations that it's been a while since I tried different stuff, but I'm following this for science
    If you were open to sharing anonymized configurations in dms it might save a lot of time and energy. Though I will experiment regardless. Eager to get something dependable solved and augment from there.

    ---------- Post added 02-22-2024 at 01:27 AM ---------- Previous post was 02-21-2024 at 11:58 PM ----------

    Here's a version that's set to start in 2 minutes to allow loading and adds a random number of seconds to each task start time between. It also includes a bonus tasks section if you want to assign bonus tasks to only one of the accounts (e.g., Kitchen Quester)

    Code:
    from datetime import datetime, timedelta
    import random
    
    # Use the current datetime as the starting point
    current_time = datetime.now()
    
    # Adding 2 minutes to the current time for the initial start time
    start_time = current_time + timedelta(minutes=2)
    
    # List of tasks for general users
    general_tasks = [
        "Account Re-Login", "Food Club Better", "Lottery Ticket Buyer", "Shop Auto-Pricer",
        "Dice-A-Roo AP", "Kacheek Seek Auto-Player", "Pick Your Own Auto-Player", "Snowager",
        "Buried Treasure", "Coltzans Shrine", "Test Your Strength", "Qasalan Expellibox",
        "Grave Danger", "Healing Springs", "Fishing", "Meteor Crash", "Symol Hole",
        "Cheeseroller", "Turmaculus", "Stock Market", "Tyranu Evavu", "Coconut Shy",
        "Wishing Well", "Wheel of Excitement", "Wheel of Extravagance", "Wheel of Monotony",
        "Wheel of Knowledge", "Wheel of Mediocrity", "Grumpy Old King", "Wise Old King",
        "Giant Jelly", "Giant Omelette", "Lunar Temple", "Forgotten Shore", "Gera tiku Tomb",
        "Tombola", "Bank Interest", "Fruit Machine", "Blue Grundo (DMBGPOP)", "Anchor Management",
        "Advent Calendar", "Kiko Pop", "Faerie Caverns", "Obsidian Quarry", "King Altador"
    ]
    
    
    bonus_tasks = [
        'Jhudora Quester', 'The Coincidence', 'Kitchen Quester', 'Edna Quester',
        'Brain Tree Quester', 'Stamp Collector', 'Neodeck Collector'
    ]
    
    # List of account names
    account_names = [
        "Account_Name"
    ]
    
    # Format string
    format_string = "{}|{}|{}|False|Waiting..|No"
    
    # Create a list to hold all the formatted tasks for all accounts
    all_formatted_tasks = []
    
    # Function to generate tasks
    def generate_tasks(tasks, account, start_time):
        global all_formatted_tasks
        for task in tasks:
            # Randomly choose the number of seconds between 2 and 8 for each task's start time
            seconds_to_add = random.randint(2, 8)
            start_time += timedelta(seconds=seconds_to_add)
            formatted_time = start_time.strftime("%b %d, %Y %I:%M:%S %p*")
            formatted_task = format_string.format(account, task, formatted_time)
            all_formatted_tasks.append(formatted_task)
    
    # Generate tasks for all accounts
    for account in account_names:
        if account == "Account_Name":  # Assuming this is the specific account needing bonus tasks
            generate_tasks(general_tasks + bonus_tasks, account, start_time)
        else:
            generate_tasks(general_tasks, account, start_time)
    
    # Save the formatted tasks to a file
    with open("/mnt/data/Schedules.txt", "w") as file:
        for task in all_formatted_tasks:
            file.write(task + "\n")

  9. #6
    Praise_the_Sun's Avatar
    Joined
    Jan 2024
    Posts
    97
    Userbars
    4
    Thanks
    91
    Thanked
    41/34
    DL/UL
    18/1
    Mentioned
    8 times
    Time Online
    11d 23h 15m
    Avg. Time Online
    2h 43m
    If anyone's curious:

    It turns out breaking up all of the once-a-day dailies across tens of accounts (making discrete tasks) has a high likelihood of crashing StealthCore.

    However, the one-a-day dailies task assignment (not its constitutents), seems to play nice with many accounts.

    My hypothesis is that once-a-day dailies the task has some built in handling to avoid overwhelming / causing an exception and subsequent crash.

    In my attempts to generate via python, schedule.txt files, it has never accepted once-a-day dailies as a task it will execute (note to respect case sensitivity). Only the discrete tasks with the corrected formatting. The actual scheduler builder and official export functions do not export a timing format that StealthCore is able to load.

    I'm still experimenting with workarounds. Weird things like automating interacting with the UI so I'm not manually assigning the once-a-day tasks to many accounts over and over again. Launching the program itself via external scripts to function like an external scheduler etc.

    For what it's worth, if you click right arrow key twice with the accounts dropdown active, it will move to the next account in the dropdown list. So it's a bit less tedious to schedule (I have a tremor so fine motor function is a pain in the butt )

    I recognize it's not necessarily built for many accounts, but I'm moreso motivated to do that.

Posting Permissions

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