Author Topic: Weird DNA thing OPEN  (Read 2482 times)

Offline Peksa

  • Bot Destroyer
  • ***
  • Posts: 118
    • View Profile
Weird DNA thing OPEN
« on: February 07, 2008, 12:10:02 PM »
It may have been present before, but I just noticed this:
Code: [Select]
start
'You have some extra energy...
*.nrg 2000 >
'...and not so much poison!
dupbool
*.poison 300 < and
25 .mkpoison store
dropbool
'...and not quite enough body!
*.body 800 < and
  100 .strbody store
Works like it is supposed to work, but...

Code: [Select]
start
'You have some extra energy...
*.nrg 2000 >
'...and not so much poison!
dupbool
*.poison 300 < and
25 .mkpoison store
dropbool
'...and not quite enough body!
*.body 800 < and
  100 .strbody store
...doesn't take notice of the second condition, and just produces poison until nrg is 2000 The empty spaces are made with tab (the button next to Q).
« Last Edit: December 22, 2011, 11:44:46 AM by Shasta »

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Weird DNA thing OPEN
« Reply #1 on: February 07, 2008, 12:32:37 PM »
Looks to be a bug in treating tabs as white space in the DNA parse routine.  For some reason, it manifests itself as changing the next boolean operator after the tab into a number, usually 0.  Take a peak at the tabbed DNA in the bot properties dialog to see the effect.

I'll get to it in the next drop in a couple weeks.
Many beers....