Code center > Bugs and fixes

.in9 and .in10 don't work

(1/3) > >>

abyaly:
As topic states.
Coincidentally, 820 is the memory location used by .mkslime and by .in10.
I don't know if .in9 has a similar collision.

EricL:
Whoops.  Good catch and exactly right on as to the issue.  Made an error with the range on the new in/out sysvars.  

Fixed in 2.43.1g.

Here are new numbers.

sysvar(163).Name = "out1"
  sysvar(163).value = 800
  sysvar(164).Name = "out2"
  sysvar(164).value = 801
  sysvar(165).Name = "out3"
  sysvar(165).value = 802
  sysvar(166).Name = "out4"
  sysvar(166).value = 803
  sysvar(167).Name = "out5"
  sysvar(167).value = 804
  sysvar(168).Name = "in1"
  sysvar(168).value = 810
  sysvar(169).Name = "in2"
  sysvar(169).value = 811
  sysvar(170).Name = "in3"
  sysvar(170).value = 812
  sysvar(171).Name = "in4"
  sysvar(171).value = 813
  sysvar(172).Name = "in5"
  sysvar(172).value = 814


  sysvar(218).Name = "out6"
  sysvar(218).value = 805
  sysvar(219).Name = "out7"
  sysvar(219).value = 806
  sysvar(220).Name = "out8"
  sysvar(220).value = 807
  sysvar(221).Name = "out9"
  sysvar(221).value = 808
  sysvar(222).Name = "out10"
  sysvar(222).value = 809
  sysvar(223).Name = "in6"
  sysvar(223).value = 815
  sysvar(224).Name = "in7"
  sysvar(224).value = 816
  sysvar(225).Name = "in8"
  sysvar(225).value = 817
  sysvar(226).Name = "in9"
  sysvar(226).value = 818
  sysvar(227).Name = "in10"
  sysvar(227).value = 819

EricL:
I should point out that this bug only impacts sysvar name to number mapping.  The code to connect the actual underlying in/out mem locations as enumerated above should work correctly in 2.43.1f.  So, if you want to test your code in 2.43.1f, you can use numeric addressing (using the locations as above) instead of the textual sysvar names and it should work correctly.

abyaly:
Ah. That makes sense.
Don't know if you also caught this while fixing that, but .out10 seems to be mapped to 815.

In an unrelated note, it really irks me that the .in sysvars start at a "10" and the .tin sysvars start at an "11."

Numsgil:
Along that same train of thought:

It would be nice if (t)in1-10 were contigous, and (t)out 1-10 were contigous.  It could be treated as an array then.

Navigation

[0] Message Index

[#] Next page

Go to full version