Code center > Bugs and fixes
It looks great now!
EricL:
Can you compare the sysvars2.21.txt with this one (attached) and tell me if they are the same?
Testlund:
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.
Testlund:
--- Quote ---Can you compare the sysvars2.21.txt with this one (attached) and tell me if they are the same?
--- End quote ---
The same thing happens with your sysvars.
EricL:
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...
Numsgil:
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...
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version