Darwinbots Forum
Code center => Bugs and fixes => Topic started by: Testlund on March 22, 2006, 11:40:26 AM
-
I've been running the version 2.4d for 12 hours now. Everything looks fine. B)
I suspect the Animalis Remix bot might be a little problematic. I've been running with Alga Minimalis, Triangulus and Fisannis. Triangulus died out early. The rest kept going.
Still get everything in a clump sometimes though. Early this morning it was a big clump on the screen, several hours later they had all spread out, then they formed into a clump after few more hours.
-
I plan to have this up on the downloads page for everyone to use by the end of the week....
-E
-
By the way... When I start the program it tells me it can't find the sysvars file. When I try to manually load the sysvars2.21.txt it crashes. It works when I'm loading the old sysvars.txt but maybe that's not a good sysvars file to use. I don't know what these sysvars do and how important they are. Maybe you could do something about that Eric? :)
-
Questions:
Are you absolutely certain the DB exe and sysvars2.21.txt are in the same directory?
When it asks you to browse for the sysvars file, what directory is the open file dialog initally looking at? I.e. before you browse to find the file.
What is the crash I.e. what error number do you get? Path not found '76'?
Does it crash and go away or does it crash and hang so you have to kill it?
Thanks,
-E
-
Yes, they are in the same directory. ...but the window that pops up are some window I've been browsing in earlier, not the default directory. But even if I go to the default directory manually and try to load sysvars2.21.txt it crashes. Only sysvars.txt can load.
-
Can you compare the sysvars2.21.txt with this one (attached) and tell me if they are the same?
-
Okey, here's a better explanation. I quit the program and then restart. The program opens and the blue screen with the information about the bots is displaying. An error message appear on top of that saying: Cannot locate the variables file (sysvars2.21.txt)
I click ok. The blue info screen is frozen on the screen. If I minimize the program the blue screen is still there.
The dialog that opens (behind the blue screen) when I click ok on the error message is currently showing the path to my saved simulation. I manually browse to the main darwinbotsII folder and select sysvars2.21.txt and hit enter.
The program crashes displaying the following error message: Run-time error '62': Input past end of file. I click ok and the program is open displaying the blue screen. I can't click away the blue screen. Even if I close the program the blue screen is showing over the desktop.
I hit Ctrl-Alt-Delete and I see Darwinbots is still working in the background. I close the program from there.
I start up the program again. Going through the same things as mensioned above, except I select the sysvars.txt file instead and the blue screen dissapears. Everything is now fine.
-
Can you compare the sysvars2.21.txt with this one (attached) and tell me if they are the same?
The same thing happens with your sysvars.
-
FYI, I have found and fixed this and several other problems having to do with running DB in a directory without a local sysvars2.21.txt file or a local settings file and subdirectory. Pretty sure this is what was happening to you I.e. DB thought it was running somewhere other where the sysvars2.21.txt file was (not sure exactly why it thought this). The subsequent hang/crash after selecting sysvars2.21.txt was because there was no settings subdirectory in that folder.
There are no doubt more bugs in this area - DB still isn't very tolerant of not having its subdirectories pre-created - and it hates it if you cancel instead of telling it where whatever file it needs is, but its at least a little more well bahaved now then it was. I fixed a couple of cases, there are no doubt more. At some point, I'd love to code it up such that it just creates all the subdirectores and needed files including sysvars and default.set if all you have is the naked exe, sort of a self-extracting install. It will make writing an installer butt simple. But right now, if you don't have these it won't like it...
-
The program creating everything for itself if it doesn't exist isn't a bad idea. There are some obvious issues of course, but still...
-
Looking forward for the next version then. :)
-
The 2.11 installation does exactly that.
That's why we recommend that you install it first then upgrade to whatever version.
-
So you mean that the Darwin21 file is not the same version as Darwinsource2.11? There are no others main installs there.
-
By the way...I've managed to get VB6 working now. I removed some components from the default custom install, so it installs a little less stuff than with a default install. So...I guess I need the sourcecode now for version 2.4d, Eric. :)
-
I tried to open the sysvars2.21.txt file with the darwinsource2.11 and got the same run-time error. I don't get it. Even Eric's copy of sysvars2.21.txt doesn't work.
-
I tried to open the sysvars2.21.txt file with the darwinsource2.11 and got the same run-time error. I don't get it. Even Eric's copy of sysvars2.21.txt doesn't work.
I don't think DB 2.1 requires/uses it. 2.21 is for for later versions.
-
Darwinsource2.... is the source code to the original Darwinbots. It is not needed to run the program.
Darwin21 is the self installer that will create all the directories and give you some basic bots. As it says on the FTP, you need to install Darwin21 before you can install the patches.
-
I bet that there is no settings directory in whatever directory you are running DB. This is the actual cause of the runtime crash...
-
Yes, there is. Check the screenshot. Sounds like you mean the sysvars should be in the settings directory. I tried to move the sysvars2.21 over to the settings directory and tried to load it from there. Doesn't work either. It can only load sysvars.txt.
-
Hmmm. Have to noddle on that one. Let me know if you see the same thing in 2.41.0.
-
Ok, you've fixed it! You're fast! :D
-
Must have got it in one of the weird path/subdirectory open problems I fixed. Still don't understand the root cause though...
-
Actually, I found out that your sysvar file was larger then mine. It must have been another sysvar file than the one you've uploaded, because I copied that one and it didn't work. The one you provided with your last fix works. So maybe that was the reason.