Author Topic: Status of IM mode  (Read 69679 times)

Offline Peter

  • Bot God
  • *****
  • Posts: 1177
    • View Profile
Re: Status of IM mode
« Reply #30 on: January 24, 2014, 02:53:50 PM »
What's the bit that doesn't work in IM, anything I can do?  :)

We using Delphi?
Oh my god, who the hell cares.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Re: Status of IM mode
« Reply #31 on: January 24, 2014, 03:43:43 PM »
Ok, so IM was php/java based. That did not work very well and Ammeh was fixing it it until she started work.
I honestly do not care about simulation info being passed by pipe as long as the IM actually works, we can always pass info by file as we do the robots themselfs.
DB has two folders: The out folder and the in folder.
I currently have "local IM" shifting robots from the 'out' folder into the 'in' folder. But all computers in local IM must use the same file system.
What I really want is to have IM shift robots from the 'out' folder to the 'in' folder of any computer p2p connected to our network. If we follow this approach we will not need the php layer or even a online buffer to hold robots. All robots will be instantly transferred.

Offline Peter

  • Bot God
  • *****
  • Posts: 1177
    • View Profile
Re: Status of IM mode
« Reply #32 on: January 24, 2014, 04:05:32 PM »
Is the sourcecode available of the full solution?

edit: so including the server code.
« Last Edit: January 24, 2014, 04:07:54 PM by Peter »
Oh my god, who the hell cares.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Re: Status of IM mode
« Reply #33 on: January 24, 2014, 04:13:30 PM »
The only source I am aware of on this is "Darwinbots2IM" which is c# in the DB2 repository. Now that I think about it was Ammeh just trying to replace c# with java? Is there any other source on these Numsgil?

Offline Peter

  • Bot God
  • *****
  • Posts: 1177
    • View Profile
Re: Status of IM mode
« Reply #34 on: January 24, 2014, 04:37:31 PM »
Source of the server(php?) files. For me server client is easier to handle than p2p. May not be elegant, but it only has to work. ;)

Also is it correct if I miss dependencies in the darwinBots2IM. Using vb10 instead of vb08, so may be a result of some weird version mismatch.
Oh my god, who the hell cares.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Re: Status of IM mode
« Reply #35 on: January 24, 2014, 04:50:16 PM »
Fear warning: There was some serious scaling issues using this method.

Offline Peter

  • Bot God
  • *****
  • Posts: 1177
    • View Profile
Re: Status of IM mode
« Reply #36 on: January 24, 2014, 05:02:43 PM »
With how many users?
Oh my god, who the hell cares.

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Re: Status of IM mode
« Reply #37 on: January 25, 2014, 01:47:45 AM »
I think Ammeh and Shasta were setting up a client/server system.  The Darwinbots web server would act as the server and the clients would use the IM to route bots from the local folders to the web server.  You might ping Shasta and see if he remembers the specifics.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Re: Status of IM mode
« Reply #38 on: September 02, 2014, 10:35:29 PM »
Peter figured it out!  :happy:

Offline Peter

  • Bot God
  • *****
  • Posts: 1177
    • View Profile
Re: Status of IM mode
« Reply #39 on: September 03, 2014, 11:46:52 AM »
Does the pipe stuff still exist? Or some other way that helps with moving stats.

I'd like to have stats of the populations/specie/sim.
Oh my god, who the hell cares.

Offline Testlund

  • Bot God
  • *****
  • Posts: 1574
    • View Profile
Re: Status of IM mode
« Reply #40 on: September 03, 2014, 12:32:43 PM »
We used to have stats about the total population in IM mode, as well as being able to see what user was sending the bots. What happened to that? It would be nice to have.
The internet is corrupt and controlled by criminally minded people.

Offline Billy

  • Bot Destroyer
  • ***
  • Posts: 175
    • View Profile
Re: Status of IM mode
« Reply #41 on: September 03, 2014, 01:26:43 PM »
Agreed, that would be awesome. :)
"I cannot persuade myself that a beneficent and omnipotent God would have designedly created parasitic wasps with the express intention of their feeding within the living bodies of Caterpillars."

-Charles Darwin

Offline Peter

  • Bot God
  • *****
  • Posts: 1177
    • View Profile
Re: Status of IM mode
« Reply #42 on: September 03, 2014, 01:36:05 PM »
Aye, what's left of EricL's code surrounding this, bots?  Is there any way you could easily hook up these graphs if you had the data from other sims.

I could add a name to receiving a bot in IM, but that needs a change in the server as well. Making them incompatible(edit, with current versions). I'll include it when I can send sim stats as well.
« Last Edit: September 03, 2014, 01:43:19 PM by Peter »
Oh my god, who the hell cares.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Re: Status of IM mode
« Reply #43 on: September 03, 2014, 07:02:08 PM »
Sorry, posted in a wrong place.
The best way to go on this imo is to post a file every 15 seconds to the IM out folder.

Offline Peter

  • Bot God
  • *****
  • Posts: 1177
    • View Profile
Re: Status of IM mode
« Reply #44 on: September 04, 2014, 03:33:19 PM »
From the other topic,
Peter, I can add the list of users to the message box I configured in help menu. That second request is a bit more tricky as I hate named pipes after Ammeh. We can consider writing a file once in a while with info. timers are not too intensive when they are not running code. Please give me a file name I can use and a place to put it. I am thinking the IM out folder is as good as any.
How can you add the list of users to the message box? Wouldn't you need communication through the /in folder as well?

IM /out folder is good with me. Would a *.stats file be ok?

Sorry, posted in a wrong place.
The best way to go on this imo is to post a file every 15 seconds to the IM out folder.
I wouldn't use a set time. You could write to the file anytime the graph is also updated. Slow sims and quick sims would send enough datapoints this way.

Ok, time for a list!

Location?
IM /out folder.

What format to use?
The JSON format, Sammeh named is fine by me. I'm open for suggestions, though.

What to put in the stats files?
I'd like (at least)
population,
cyclenumber,
sim id(not sure what could be used for it, the random seed value seems to be a decent match)
unixtime
Other suggestions?

Edit

It would look something like this.
Code: [Select]
{"simId": 4934934, "unixtime": 1410000000,"cycle": 1000000, "population":[{"botName":"Einstein", "count":550},{"botName":"The One", "count":450}]}
« Last Edit: September 05, 2014, 01:22:32 AM by Peter »
Oh my god, who the hell cares.