Steel Jaw Posted April 18, 2021 Posted April 18, 2021 Can anyone explain this error please? Runtime Error: Index out of bounds for: keyalloc in ActKey ( line 83 in target.tmh )Aborting script (check output above for reason)... Script stopped! I have not altered the target.tmh file, and it reads: ahk = keyaloc[k & 0xffff]; "You see, IronHand is my thing" My specs: W10 Pro, I5/11600K o/c to 4800 @1.32v, 64 GB 3200 XML RAM, Red Dragon 7800XT/16GB, monitor: GIGABYTE M32QC 32" (31.5" Viewable) QHD 2560 x 1440 (2K) 165Hz.
Lange_666 Posted April 19, 2021 Posted April 19, 2021 My (original which i actually don't use so 100% vanilla) target.tmh has this on line 81: &hk = keyalloc[k & 0xffff]; I have an & instead of an a before &hk = keyalloc[k & 0xffff]; Win11 Pro 64-bit, Ryzen 5800X3D, Corsair H115i, Gigabyte X570S UD, EVGA 3080Ti XC3 Ultra 12GB, 64 GB DDR4 G.Skill 3600. Monitors: LG 27GL850-B27 2560x1440 + Samsung SyncMaster 2443 1920x1200, HOTAS: Warthog with Virpil WarBRD base, MFG Crosswind pedals, TrackIR4, Rift-S, Elgato Streamdeck XL. Personal Wish List: A6 Intruder, Vietnam theater, decent ATC module, better VR performance!
Thermal Posted April 19, 2021 Posted April 19, 2021 &hk = keyalloc[k & 0xffff]; I have the same as Lange_666
sedenion Posted September 16, 2021 Posted September 16, 2021 On 4/19/2021 at 12:50 AM, Mower said: Can anyone explain this error please? Runtime Error: Index out of bounds for: keyalloc in ActKey ( line 83 in target.tmh )Aborting script (check output above for reason)... Script stopped! I have not altered the target.tmh file, and it reads: ahk = keyaloc[k & 0xffff]; Late answere (I guess you already found solution) I suppose you unproperly copied the line, indeed the first character is "&" and not "a". Anyway, the error probably do not come from this line in the target.tmh, but this is where the error "occured". Somewhere in your mapping function, you probably mapped a key, a macro or invalid value, which in the internal mapping process (which occure within functions of target.tmh) trow an "index out of bound" error, which mean: you (the program) attempted to reach an array index (here, the array is kayalloc[]) that is out of bound. For example, if an array is defined with a size of 128 (128 slots), and you try to access to the index n° 240 (the 240th slot) of this array, the programm will tell you this is impossible, because this array does not have 240 "slots"... This is what "index out of bound" mean. byte MyArray[2]; //< declare an array of 3 char MyArray[0] = 10; //< assign value to index 2 MyArray[1] = 6; //< assign value to index 0 int foo = MyArray[1] + MyArray[0]; // OK, foo is now equal to 16 int bar = MyArray[8]; // Error, MyArray[] have a size of 2, the index n°8 does not exists : Index out of bound.
Recommended Posts