Darwinbots Forum

Bots and Simulations => Evolution and Internet Sharing Sims => Internet Mode Commentary => Topic started by: Billy on February 10, 2012, 08:54:30 AM

Title: Internet mode "fix" using file synchronisation software
Post by: Billy on February 10, 2012, 08:54:30 AM
Yesterday Numsgil and I worked out a way to use file syncing software for IM. It seems to be working okay-ish. Definitely better than nothing. :)

Instructions:


That's it! Your simulation is now connected to internet mode. :D
Title: Re: Internet mode "fix" using file synchronisation software
Post by: Billy on February 10, 2012, 09:13:47 AM
Please don't use this for a while, I'm trying to work something out.
Title: Re: Internet mode "fix" using file synchronisation software
Post by: Billy on February 10, 2012, 12:12:06 PM
I have modified the instructions and updated the settings file in the first post. It should now be ready for use.
Title: Re: Internet mode "fix" using file synchronisation software
Post by: Numsgil on February 10, 2012, 12:39:08 PM
I'll see if I can get a sim going this weekend to kickstart things
Title: Re: Internet mode "fix" using file synchronisation software
Post by: Billy on February 10, 2012, 02:06:36 PM
Thanks. :)
Title: Re: Internet mode "fix" using file synchronisation software
Post by: Billy on February 10, 2012, 06:30:30 PM
Updated settings file and instructions again. Yeah, they're more complicated, but it fixes a problem I've been having with bots building up in the outbound folder.
Title: Re: Internet mode "fix" using file synchronisation software
Post by: Numsgil on February 10, 2012, 07:39:16 PM
You might post the settings file you're using.  (Or I'll post something if I work on this at all tonight).  Not bots or anything, just the settings you're using.  Would make it easier for people to jump in, since tuning a long term simulation is a pain.
Title: Re: Internet mode "fix" using file synchronisation software
Post by: Billy on February 11, 2012, 08:26:47 AM
I can never get simulations stable.
Title: Re: Internet mode "fix" using file synchronisation software
Post by: ikke on February 11, 2012, 08:56:55 AM
define stable...
Title: Re: Internet mode "fix" using file synchronisation software
Post by: Billy on February 11, 2012, 09:01:24 AM
Neither bots nor veg dying out?
Title: Re: Internet mode "fix" using file synchronisation software
Post by: Billy on February 11, 2012, 09:01:47 AM
Or becoming overpopulated?
Title: Re: Internet mode "fix" using file synchronisation software
Post by: ikke on February 12, 2012, 06:34:36 AM
http://forum.darwinbots.com/index.php/topic,2819.0.html (http://forum.darwinbots.com/index.php/topic,2819.0.html) this thread contains a working evo sim and may also be interesting for you to read.
Title: Re: Internet mode "fix" using file synchronisation software
Post by: Billy on February 12, 2012, 11:25:48 AM
Yay, I just got a predator prey cycle working without using population caps! :D (https://jxqr0g.sn2.livefilestore.com/y1pxbwqoKktwAz43hzGayP5fXXDT9vpH0Jz3cz0pyYsTTCGEDetRsmsfABEOKYf9oSBUg9-tRTqYowdIhROI2RwuSpx6R5mzEZ0/predator%20prey%20cycle.jpg?psid=1)
Title: Re: Internet mode "fix" using file synchronisation software
Post by: Botsareus on May 10, 2012, 07:03:31 PM
Quote
Start by disabling automatic synchronisation on all jobs. Then enable it, one job at a time, starting from the left, with one minute between each enablisation. So, enable it on the first job, wait one minute, enable it on the second job, wait one minute, etc.. You will have to do this every time you open Allway Sync.
How do i do that? Because, it just says Automatic synchronisation is on...


Also I am getting an inbound error and/or no inbound robots

Is https://docs.live.net/DarwinbotsIM up?
Title: Re: Internet mode "fix" using file synchronisation software
Post by: Botsareus on May 11, 2012, 05:39:40 PM
Never mind;
Title: Re: Internet mode "fix" using file synchronisation software
Post by: rwill128 on September 06, 2012, 12:52:40 PM
Anyone still doing this?! I'll try to jump in tonight if so.
Title: Re: Internet mode "fix" using file synchronisation software
Post by: Botsareus on September 06, 2012, 06:38:43 PM
sorry to burst your bubble. (again)
But this was also abandoned due to instability...
Title: Re: Internet mode "fix" using file synchronisation software
Post by: rwill128 on September 07, 2012, 10:20:48 AM
Haha, damn. Seems like it would still be a viable option.
Title: Re: Internet mode "fix" using file synchronisation software
Post by: Numsgil on September 07, 2012, 10:04:55 PM
I think the issue is that Darwinbots would try to read a file before it was finished downloading.  If you could figure out a system to get around that, it would basically work.
Title: Re: Internet mode "fix" using file synchronisation software
Post by: Botsareus on September 08, 2012, 03:24:15 PM
lol, really? So, if I would of implemented p2p I would still have the same problem? Wow, that's good to know...

We can upload a second file that simply contains the length of the main file, but I still need to know what IM software we are using: Shasta's or this?

edit: I still need to know what we are using, but that will not work ether because the two files are not attached to each other in any way... I'll think of something else...
Title: Re: Internet mode "fix" using file synchronisation software
Post by: Botsareus on September 08, 2012, 03:38:00 PM
I think I have something, I need to know  two more things:

1.) Does darwinbots trow an error when it tries to read a file being written to?
2.) If darwinbots trys to read a file while it is being downloaded does it screw up the file downloader?
Title: Re: Internet mode "fix" using file synchronisation software
Post by: Botsareus on September 08, 2012, 05:23:48 PM
I just tried the following that may actually work. I have tested it using a vb.net script. I hope the file sharing program writes using similar methods. The following is written in C# , to extract the program itself for testers that don't have C# 2K08 or later go to the bin > debug folder.
Title: Re: Internet mode "fix" using file synchronisation software
Post by: Numsgil on September 09, 2012, 04:19:13 PM
Looks reasonable enough.  Have you tested it with some running instances of Darwinbots and Always Sync?
Title: Re: Internet mode "fix" using file synchronisation software
Post by: rwill128 on September 11, 2012, 08:39:05 AM
*Crosses fingers*
Title: Re: Internet mode "fix" using file synchronisation software
Post by: Botsareus on September 12, 2012, 05:20:47 PM
ah, Here is a better version that uses StringDictionary hashtables (I am putting my MCPD homework to use)

sorry, no time to test , rwill128 please do...
If you don't have a newer c# compiler head down to the bin > debug folder ...
Title: Re: Internet mode "fix" using file synchronisation software
Post by: rwill128 on September 13, 2012, 10:11:28 PM
Will do.
Title: Re: Internet mode "fix" using file synchronisation software
Post by: rwill128 on September 15, 2012, 01:31:59 PM
I'm not experienced with how IM normally operates, and I'm not sure how test whether the intermediate file checker is doing what it's supposed to do, or solving any problems..
Title: Re: Internet mode "fix" using file synchronisation software
Post by: Botsareus on September 15, 2012, 04:22:01 PM
Step 1.) rename my intermidate checker as "DarwinbotsIM.exe" and place at in the same folder as the program(Darwin2.45.01).

Step 2.) set the outbound* folder within the program(Darwin2.45.01) to match the out file folder of allway sinc.

Step 3.) make a folder to be an "in file" folder of allway sinc.

Step 4.)  set the inbound* folder inside the program(Darwin2.45.01) as a third folder, lets call this "finalinfolder"

Step 5.) enable internet mode, my code should open. First select the "in file" allway sinc. folder, then select finalinfolder.


Title: Re: Internet mode "fix" using file synchronisation software
Post by: rwill128 on September 15, 2012, 04:54:51 PM
I think it's working! The syncing has been going on just fine, but I'm not sure how you had the live drive set up... how did it keep track of whose bots were whose, and when my "Skydrive Clean" routine runs, couldn't I  be wiping everyone else's bots out before I downloaded them?

Title: Re: Internet mode "fix" using file synchronisation software
Post by: Botsareus on September 15, 2012, 05:56:37 PM
I am getting no inbound files, are you?

https://docs.live.net/DarwinbotsIM/ does not contain any robots, I am sending 5 robots per minute to it, whats going on?
Title: Re: Internet mode "fix" using file synchronisation software
Post by: rwill128 on September 15, 2012, 06:54:51 PM
I'll turn it back on and see.
Title: Re: Internet mode "fix" using file synchronisation software
Post by: Botsareus on September 15, 2012, 07:29:02 PM
ok, now I am getting stuff.
I am getting IFlamma from my last run on the laptop, but I am not getting any 'the one' that I was sending from my laptop currently.

You should double click on a robot to and look at the "coming from" if you want to see who sent the robot
Title: Re: Internet mode "fix" using file synchronisation software
Post by: Botsareus on September 15, 2012, 07:33:43 PM
Holy sh* IM actually works  :D