Author Topic: path or file access error followed by file not found  (Read 807 times)

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
    • DJ Paul Kononov
path or file access error followed by file not found
« on: February 12, 2017, 07:44:58 PM »
This is an old error that potentially is preventing people from playing with my restart modes (such as leagues and automatic evolutions)
I finally figured out what is causing it. Basically if you have a file open in the "league" or "evolution" folder and after that without closing the file or folder initiate a new restart mode the program will crash trying to delete the old league or evolution folder recursive.

The problem is, after that crash  if you run the program again, it is still trying to look for a restart mode and the whole install of the program seems butched.

The quick work around for now instead of reinstalling darwinbots completely just delete "restartmode.gset" file from the main folder.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
    • DJ Paul Kononov
Re: path or file access error followed by file not found
« Reply #1 on: February 20, 2017, 06:48:06 PM »
... I am working on 2.49 when I am not swamped with math homework  :)

Offline Shadowgod2

  • Bot Destroyer
  • ***
  • Posts: 386
    • View Profile
Re: path or file access error followed by file not found
« Reply #2 on: February 23, 2017, 11:21:06 PM »
hmm.. when i last tried it, it always seemed to pop up 3 or so windows.. would changing the settings have to do with that or something? i am retrying it now...

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
    • DJ Paul Kononov
Re: path or file access error followed by file not found
« Reply #3 on: March 01, 2017, 08:22:55 PM »
... You must have used some really funky settings and got an infinite loop somehow that launches restarter repeatedly.
edit: I think I fixed all conditions that lead to such stuff happening but I may have missed something.
« Last Edit: March 01, 2017, 08:29:46 PM by Botsareus »

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
    • DJ Paul Kononov
Re: path or file access error followed by file not found
« Reply #4 on: March 02, 2017, 11:12:21 AM »
... Another culprit could be you running more then one simulation from the same instance of the exe. If you are running with restart modes you must run each instance from a unique folder. Just make a copy of the entite DB2 folder from the install.

Offline Shadowgod2

  • Bot Destroyer
  • ***
  • Posts: 386
    • View Profile
Re: path or file access error followed by file not found
« Reply #5 on: March 02, 2017, 11:28:19 PM »
no i never use more than 1 instance per exe.. i dont like to have to deal with the bug error pop up saying to send xyz and if i want to use safe mode and what not

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
    • DJ Paul Kononov
Re: path or file access error followed by file not found
« Reply #6 on: March 06, 2017, 05:33:22 PM »
That has nothing to do with multi instance

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
    • DJ Paul Kononov
Re: path or file access error followed by file not found
« Reply #7 on: March 06, 2017, 05:34:54 PM »
That has nothing to do with multi instance, just turn off safe mode for automatic error ignore. I do wish error handling was easier though.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
    • DJ Paul Kononov
Re: path or file access error followed by file not found
« Reply #8 on: March 08, 2017, 06:16:39 PM »
Btw, Shadow, how are the restart modes working for you? I know Peter had leagues going. Also I recall when we had IM up Virukt and I had an eco-survival mode going. I never had any problems with it and even worked on windows 10 first try.

Offline Shadowgod2

  • Bot Destroyer
  • ***
  • Posts: 386
    • View Profile
Re: path or file access error followed by file not found
« Reply #9 on: March 08, 2017, 11:22:49 PM »
ill try again but last time which was right after my post above after 2 days as far as  could tell it never started a restart... it just kept going with the same sim.. am i missing something? do all the bots have to die before it starts a restarts? ill pause my eco sims for now both to try it again and to make a mutations friendly animal min if i can


edit: it seems to be working ok...
« Last Edit: March 09, 2017, 08:33:19 AM by Shadowgod2 »