Author Topic: Opening A simulation automatically when DB is started  (Read 1228 times)

Offline theblaze

  • Bot Builder
  • **
  • Posts: 82
    • View Profile
Opening A simulation automatically when DB is started
« on: November 16, 2013, 12:57:06 PM »
Is there any way to have DB open a simulation from a file when it is launched?

I currently have it running headless, but would like for it to be able to load a simulation (most recent autosave would be prefered, otherwise I can work around that with some linux tools)

I have a long running zerobot sim runnnig, which is why I would like it to start automatically if DB is launched. Maybe you can pass the filename on the command prompt?

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
    • DJ Paul Kononov
Re: Opening A simulation automatically when DB is started
« Reply #1 on: November 16, 2013, 01:01:55 PM »
Sounds reasonable, I am adding this to my todo list.



I was actually going to expose command line for some of the things I am working on, might as well start now.
Version 2.46BetaF will posted next weekend. This mod will be implemented.
« Last Edit: November 16, 2013, 01:07:04 PM by Botsareus »

Offline theblaze

  • Bot Builder
  • **
  • Posts: 82
    • View Profile
Re: Opening A simulation automatically when DB is started
« Reply #2 on: November 16, 2013, 01:24:55 PM »
Hey, just saw that you can pass the file name oof the .sim and it will open it.

Eg. Darwinbots.exe "Saves\lastexit.sim"

Offline theblaze

  • Bot Builder
  • **
  • Posts: 82
    • View Profile
Re: Opening A simulation automatically when DB is started
« Reply #3 on: November 16, 2013, 01:33:17 PM »
Ok, it seems to still ask for if it should connect to internet mode. Any way to disable that?
It would also be rather nice if it could start with display turned off....

Thanks for your help :)

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
    • DJ Paul Kononov
Re: Opening A simulation automatically when DB is started
« Reply #4 on: November 23, 2013, 12:50:10 PM »
Both requests implemented, expect in next version drop.
Starting simulation with video off will be configurable from global settings.