Code center > Solved Bugs
Chloroplast cheaters
Botsareus:
I think I found it, it is the altzheimer code. It has to do with waste.
It was effecting .chlr directly.
Testlund:
Then they are more sensitive to waste than they should be imo, cause I've set it quite high, and most of the bots with chloroplasts don't have any waste at all.
Botsareus:
Altzheimer is definitely a possibility, it can overwrite mkchlr. I disabled this feature just now for a test only.
What is really bothering me is, chloroplasts should never have floating point values. edit: eh, nm, that will happen if the robot reproduces.
Anyway, I gtg, try this version and see if it fixed it, If not I'll keep digging.
Panda, try some stuff, maybe you can figure it out.
Botsareus:
Panda, here is the exact code I implemented btw:
Private Sub altzheimer(n As Integer)
'makes robots with high waste act in a bizarre fashion.
Dim loc As Integer, val As Integer
Dim loops As Integer
Dim t As Integer
loops = (rob(n).Pwaste + rob(n).Waste - SimOpts.BadWastelevel) / 4
For t = 1 To loops
loc = Random(1, 1000)
If loc = mkchlr Then Exit For
val = Random(-32000, 32000)
rob(n).mem(loc) = val
Next t
End Sub
Botsareus:
eh, I goofed up, I am bypassing the entire loop...
Private Sub altzheimer(n As Integer)
'makes robots with high waste act in a bizarre fashion.
Dim loc As Integer, val As Integer
Dim loops As Integer
Dim t As Integer
loops = (rob(n).Pwaste + rob(n).Waste - SimOpts.BadWastelevel) / 4
For t = 1 To loops
loc = Random(1, 1000)
If not loc = mkchlr Then
val = Random(-32000, 32000)
rob(n).mem(loc) = val
End If
Next t
End Sub
That should be cleaner.
Panda, go ahead and post your exe mods here.
Unless, I just figured out what the problem was.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version