Code center > Bugs and fixes
Bug in 2.4.1
Light:
sorry num but they are right, 2.4.3 is well buggy. I tried running about 10 different sims with different bots and each one crashed with various different errors in less than 30 seconds. The bots do act really crazy, they seem to stop working after a very short while. I got this error report for one of them I dont know if its usefull.
"Out of Memory. path c:\games\darwinbots\robots\alga_minimalis.txt is not a valid robot"
Numsgil:
*grumbles heavily under breath*
lol.
If anyone wants to download VB6, and run the code from there, that would make finding disgusting errors 100% easier for you and for me.
I can't seem to reproduce the sorts of errors other people are getting. I probably know what not to do, and without even thinking I don't do that.
PurpleYouko:
I finally reached a point in my database project where I can take a break so I downloaded the source for 2.4.3 and tried running it.
Most of the GUI seems to work OK but a few parts do indeed lose their values when changing tabs. Notably the veggie cooldown and repopulate threshold.
Ran the sim and it started just fine with my existing settings file.
The robots then began to fall down the screen like rain, just as described by testlund.
I double checked and gravity is definitely turned off. After a while, th efirst Veggie repopulate event happened and almost immediately I got an overflow error.
Here is the offending code.
--- Code: ---If power > ((rob(n).BODY * 10) / 0.8 + Shell) And Not rob(n).Corpse Then
'shot will continue on past this bot since it wasn't all used up.
'with reduced impact
Shots(t).value = (power - (rob(n).BODY * 10) / 0.8 + Shell) * Shots(t).range / (Shots(t).age * SimOpts.EnergyProp)
Shots(t).nrg = Shots(t).range * (RobSize \ 3)
power = (rob(n).BODY * 10) / 0.8 + Shell
Shots(t).Exist = True
End If
--- End code ---
The error is in the line beginning "Shots(t).value =(" but I can't see why since all the individual variables in the code appear to be OK.
This is in the "Releasebod" subroutine.
I will look into it a little more myself but bear in mind this is the first look I've had at the 2.4 code so it might take a while.
Griz:
--- Quote ---That's weird, I'll see if I can figure out what's wrong.
Bots falling like raindrops means that you have gravity turned on. I know it's a minor point to your post, but when that happens, you just have to go to physics->turn of gravity.
--- End quote ---
it happened here too ... initially.
now that I have somehow been able to run and save a sim ...
it now defaults to those settings. apparently. I guess. who knows?
another thing I have to keep checking is that the veggies are "blocked" ...
that box never seems to come up checked.
anyway ...
I had the same problems getting even 2.37 to run until I added
that sample defalult.setting thing you showed me.
after that ... I had a chance!
so ...
where does the prog get it's initial default settings from ...
you know ... the very first time one runs it out of the box?
and does it indeed use default.set on startup ...
or what?
I was going to attach a settings that works for me on 2.43 ...
and might work for Testlund as well ...
using Alga_Minimals.txt and your new animials:
which I named Animal_Minimalis2.4.txt ...
but I can see no way to attach or upload files here.
can you point me to how/where to do that ...
or show me where such setting files might already exist?
thanks.
~griz~
PurpleYouko:
OK here is a breakdown of the calculation
power = 3286
rob(n).body = 49.03042
shell = 0
shots(t).range = 14
shots(t).age = 1
energyprop = 1
Shots(t).value = (power - (rob(n).BODY * 10) / 0.8 + Shell) * Shots(t).range / (Shots(t).age * SimOpts.EnergyProp)
therefore....
shots(t).value = 37423.6765
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version