Code center > Solved Bugs
runtime 6/compile error
Numsgil:
--- Quote ---
--- Quote ---
--- Quote --- find this section of code in "Updatepos"
--- Code: ---If .mem(216) <> 0 Then
.Fixed = True
.vx = 0
.vy = 0
Else
.Fixed = False
End If
--- End code ---
and change it to
--- Code: ---If .mem(216) <> 0 Then
.Fixed = True
Else
.Fixed = False
End If
if .Fixed then
.vx = 0
.vy = 0
Endif
--- End code ---
--- End quote ---
The two are logically identical (that is, they both do the same thing).
--- End quote ---
Actually they aren't quite the same thing.
The first one sets .fixed to true or false depending on the value in the sysvar .fixpos
It also sets .vx and .vy to zero at this point
The second one takes the .vx and .vy resets out of the sysvar conditional and resets them whenever .fixed is true since it is quite possible for .fixed to be true without the corresponding sysvar value.
Take veggies that are fixed from the GUI or bots that are fixed due to Altzheimers
--- End quote ---
To me it seems that they are identical in effect (not in implementation obviously). Try walking trhough it manually with different values for different things and see if you can provide a case where they're not. I could just be a little sleepy.
Numsgil:
You guys, if desperate, can actually comment out the lines that are crashing. They provide information to the bots but don't hurt the simulation if mising.
Some bots (mostly mine) won't work without it, but many bots will. Dominator Invincibalis for one.
Testlund:
What does that code do for the bots anyway. Whouldn't want to comment out something that whould cripple the bots or make them less advanced or something.
Right now I don't see any use for the program as I can't load a saved sim or insert a bot that's been autosaved. Can't evolve bots if I have to start over with a new simulation all the time. I think maybe that worked in version 2.36.7, but you don't have the sourcecode for that version, do you?
Endy:
Windiff over on the downloads section at bottom. Allows you to select diff pages and find changes between them.
Numsgil:
The one in downloads is actually better than the standard one that comes with VB because it ignores capitalization differences.
I modified it myself ;)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version