Author Topic: Chloroplast cheaters  (Read 8111 times)

Offline Panda

  • Global Moderator
  • Bot Destroyer
  • *****
  • Posts: 476
  • Computer Science Undergraduate (nerd)
    • View Profile
Re: Chloroplast cheaters
« Reply #15 on: September 08, 2013, 12:03:12 PM »
I can't see how that code could be messed up like that, though. I looked at the settings and the threshold is higher than any bots waste.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Re: Chloroplast cheaters
« Reply #16 on: September 08, 2013, 12:05:13 PM »
Quote
I looked at the settings and the threshold is higher than any bots waste.

What settings? And, who cares it is just waste...


edit: Panda, I want you to make the decision on should we have altzheimers effect .mkchlr or not by the end of the day.

Offline Panda

  • Global Moderator
  • Bot Destroyer
  • *****
  • Posts: 476
  • Computer Science Undergraduate (nerd)
    • View Profile
Re: Chloroplast cheaters
« Reply #17 on: September 08, 2013, 12:10:38 PM »
I think it shouldn't be bypassed, it is just like every other memory location, but I think for robots to have such a high number of memories messed up like that with waste 40* smaller than the threshold there must be something else wrong.

Offline Panda

  • Global Moderator
  • Bot Destroyer
  • *****
  • Posts: 476
  • Computer Science Undergraduate (nerd)
    • View Profile
Re: Chloroplast cheaters
« Reply #18 on: September 08, 2013, 12:38:29 PM »
Unless they temporarily had a large amount of waste and got rid of it. Could that have happened in your bot, Testlund?

Offline Testlund

  • Bot God
  • *****
  • Posts: 1574
    • View Profile
Re: Chloroplast cheaters
« Reply #19 on: September 08, 2013, 02:29:14 PM »
Unless they temporarily had a large amount of waste and got rid of it. Could that have happened in your bot, Testlund?

I'm trying to figure that out. I've been running the two latest beta versions at the same time now on each core with identical sims and it appeared Botsareus never really turned the waste function off, cause they got alzeimers in both instances, but than I realized I should have run with waste treshold set to -1 instead. Lol.

Well, altzeimers seems to work as it should, putting random values in chloroplasts and other places.

I'll run a test with waste treshold set to -1 now to see what happens.  :)
The internet is corrupt and controlled by criminally minded people.

Offline Testlund

  • Bot God
  • *****
  • Posts: 1574
    • View Profile
Re: Chloroplast cheaters
« Reply #20 on: September 08, 2013, 03:16:37 PM »
Ok, this is what I think happened.

In the sim I uploaded in the zip file the program decided that Alzheimer's should mostly affect chloroplasts. That seemed odd and why I thought there was something wrong. Waste threshold was set to 4096 and most bots didn't have any waste when I looked.

When I ran the two beta versions, as Alzheimer's started to build up it favored to affect venom first and once it got to the waste threshold it started to affect everything randomly.

Maybe it was some pseudo random/seed thing that caused this difference.

In my last test with waste threshold set to -1 there was no Alzheimer's.
The internet is corrupt and controlled by criminally minded people.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Re: Chloroplast cheaters
« Reply #21 on: September 08, 2013, 04:11:06 PM »
I just got back, I may know what is going on here:

I have changed the way feedvegs2 works: I made it work across all robots and I made it dependent how much chloroplasts a robot has:

Code: [Select]
Public Sub feedveg2(t As Integer) 'gives veg an additional meal based on waste 'Botsareus 8/25/2013 Fix for all robots based on chloroplasts
  With rob(t)
  If .nrg + (.Waste / 2) * (.chloroplasts / 32000) < 32000 Then
    .nrg = .nrg + (.Waste / 2) * (.chloroplasts / 32000)
    .Waste = .Waste - .Waste * (.chloroplasts / 32000)
  End If
  End With
End Sub 

This means the more chloroplasts a robot has the more waste it converts into energy.
Sorry for the confusion, I only realized this can be the culprit half way to the mall.

edit: I am thinking get rid of the mkchlr block that I just implemented, and do something about this specific function.

Any ideas?



edit:

rofl, how appropriate: the conversation is about Alzheimer's
« Last Edit: September 08, 2013, 04:53:15 PM by Botsareus »

Offline Panda

  • Global Moderator
  • Bot Destroyer
  • *****
  • Posts: 476
  • Computer Science Undergraduate (nerd)
    • View Profile
Re: Chloroplast cheaters
« Reply #22 on: September 08, 2013, 05:07:46 PM »
Yeah, I don't like having that block there, I can't see how it's that subroutine that is causing the problem as it doesn't modify the number of chloroplasts does it?

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Re: Chloroplast cheaters
« Reply #23 on: September 08, 2013, 05:10:28 PM »
No, it does not

Your question was:

Quote
Unless they temporarily had a large amount of waste and got rid of it. Could that have happened in your bot, Testlund?

I may have your answer.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Re: Chloroplast cheaters
« Reply #24 on: September 08, 2013, 05:30:43 PM »
What do you think we should do Testlund?


Here is essentially what is happening:

Robot gets a sh*t load of waste
Robot gets Alzheimer's
Alzheimer's causes robot to use chloroplasts
Chloroplasts dump the robots waste into energy

Offline Panda

  • Global Moderator
  • Bot Destroyer
  • *****
  • Posts: 476
  • Computer Science Undergraduate (nerd)
    • View Profile
Re: Chloroplast cheaters
« Reply #25 on: September 08, 2013, 05:40:08 PM »
Oh of course! That is why! You genius, bots!

Offline Testlund

  • Bot God
  • *****
  • Posts: 1574
    • View Profile
Re: Chloroplast cheaters
« Reply #26 on: September 08, 2013, 05:46:00 PM »
What do you think we should do Testlund?


Here is essentially what is happening:

Robot gets a sh*t load of waste
Robot gets Alzheimer's
Alzheimer's causes robot to use chloroplasts
Chloroplasts dump the robots waste into energy

Well, I don't see anything wrong with that really, now when I understand what's going on.

But since you asked, how about a .fdwaste sysvar? You could have a more interesting eco sim with that, instead of waste automatically turns into chloroplasts.

Edit: Bah! I got that wrong! Ok, chloroplast converts waste to energy? Ok.

« Last Edit: September 08, 2013, 05:52:33 PM by Testlund »
The internet is corrupt and controlled by criminally minded people.