Author Topic: Why aren't you using 2.42?  (Read 23709 times)

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Why aren't you using 2.42?
« Reply #60 on: April 21, 2006, 11:35:01 AM »
Sorry, the DNA parse stuff in 2.4 still drops certain sysvar strings, so I was reading sysvar numbers late at night and confused .readtie and .tienum.

The only change I have made that impacts tmemloc/tmemval is that putting something in .tmemloc now stays there like I think it does in 2.37.6, even when ties come and go or the bot puts something in .tienum.  Before .tmemloc was getting set to 0 if .numties went 0 or .tienum went 0 (or hadn't yet been set).
Many beers....

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Why aren't you using 2.42?
« Reply #61 on: April 21, 2006, 12:24:42 PM »
I think memloc stays put, but tmemloc didn't in 2.37.  I could be wrong but I'm pretty certain.

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Why aren't you using 2.42?
« Reply #62 on: April 21, 2006, 12:46:41 PM »
Quote from: Numsgil
I think memloc stays put, but tmemloc didn't in 2.37.  I could be wrong but I'm pretty certain.
If tmemloc does not stay put in 2.37 then I don't understand how this line in Elite's posted bot can work since it appears (to me at least) to set .tmemloc at age 0 and then never again.  The 2.4 code resets it back to 0 right away since .numties is still 0 :

.numties .tmemloc *.robage -1 mult 1 add sgn mult store
« Last Edit: April 21, 2006, 12:50:00 PM by EricL »
Many beers....

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Why aren't you using 2.42?
« Reply #63 on: April 21, 2006, 12:56:45 PM »
By the way, I now know what is going on with .fixang and perhaps othertie  sysvars that arn't working.  Bascially, there is no code in 2.4 that cares.  The routine named Momenti() in 2.37 which handles fixing tie angles was just never ported over to 2.4.  It's called TieTorque() in 2.4, but is completely commented out and the systax is still 2.37, referencing structures which no longer exist such as the robot node list, etc.  No wonder certain bots that fix tie angles just don;t work in 2.4.  I'll port it over.

Is Software Archeologist a viable profession?  
Many beers....

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Why aren't you using 2.42?
« Reply #64 on: April 21, 2006, 12:58:37 PM »
Quote from: EricL
By the way, I now know what is going on with .fixang and perhaps othertie sysvars that arn't working. Bascially, there is no code in 2.4 that cares.

 Oops, hehe.

Offline Welwordion

  • Bot Destroyer
  • ***
  • Posts: 325
    • View Profile
Why aren't you using 2.42?
« Reply #65 on: April 21, 2006, 01:08:19 PM »
Just a thought but could robage in 2.3 count age like in 2.4? its really annoying if  you try to make bots you want to test in both versions.

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Why aren't you using 2.42?
« Reply #66 on: April 21, 2006, 01:22:07 PM »
They don't count age the same way?

How does each version count age?

Offline Welwordion

  • Bot Destroyer
  • ***
  • Posts: 325
    • View Profile
Why aren't you using 2.42?
« Reply #67 on: April 21, 2006, 01:56:27 PM »
2.37 counts age in steps of 100 cyles, so age 3 means between 300 and 400 cylces
2.4 counts age in single cyles, so age 3 means cycle 3

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Why aren't you using 2.42?
« Reply #68 on: April 21, 2006, 01:58:45 PM »
I'm pretty certain that 2.37 also counts single cycles.  The robot info page, however, displays age in 100s of cycles.

Offline Elite

  • Bot Overlord
  • ****
  • Posts: 532
    • View Profile
Why aren't you using 2.42?
« Reply #69 on: April 21, 2006, 02:27:02 PM »
Quote from: Numsgil
I'm pretty certain that 2.37 also counts single cycles

100% certain, otherwise the classic antibirthtie genes would take 100 cycles to cut the cord

cond
*.robage 0 =
start
.tie inc
stop

cond
*.robage 1 =
start
.deltie inc
stop
« Last Edit: April 21, 2006, 02:27:18 PM by Elite »

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Why aren't you using 2.42?
« Reply #70 on: April 21, 2006, 02:57:12 PM »
Quote from: Numsgil
I'm pretty certain that 2.37 also counts single cycles.  The robot info page, however, displays age in 100s of cycles.

Right.  I changed this in 2.42.2.  The age sysvar works THE SAME in both versions.  It counts single cycles and caps out at 32000.  However, 2.42.2 and beyond now maintain an internal age counter that goes beyond 32000.  It is this that is displayed in the robot properties dialog (in cycles, not 100's of cycles as it was previously) and is also used for a few other things such as the logrythmic per cycle aging cost calculation.  That is, the logrythmic aging cost will continue to increase even after a bot reaches 32000 cycles of age.  See #24 and #25  here.
« Last Edit: April 21, 2006, 03:00:47 PM by EricL »
Many beers....

Offline Welwordion

  • Bot Destroyer
  • ***
  • Posts: 325
    • View Profile
Why aren't you using 2.42?
« Reply #71 on: April 21, 2006, 04:19:23 PM »
Sorry, somehow I always end up with finding the wrong reasons why certain genes do not work :/.

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Why aren't you using 2.42?
« Reply #72 on: April 21, 2006, 04:23:05 PM »
That's alright, it keeps us on our toes.

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Why aren't you using 2.42?
« Reply #73 on: April 24, 2006, 02:27:43 PM »
FYI, I have finished porting over the TieTorque() routine from 2.37.6 to 2.42.3.  Elite's battery bot gene posted earlier in this discussion now runs correctly in 2.42.3.  See #11 here.
Many beers....

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Why aren't you using 2.42?
« Reply #74 on: April 24, 2006, 02:52:02 PM »
Yay!