Well, after reading all the talk about using KNN in an updater, I wanted to try my hand at it. I took the output from Speljohan’s tool to parse RSBot’s hooks and I took the previous revision of runescape.jar and tried my hand at it. According to the updater, it only doesn’t identify 1 class completely, but the output I was using to see if they were right wasn’t correct itself, so I couldn’t really test them all, but for the classes I did check, they were correct.
I was just wondering if I was using the KNN algorithm correctly, so if anyone would mind downloading this and looking over it, I’d be appreciative.
Download link is at the bottom of the post, if you’re interested in looking at it.
The output I got:
Parsing classes...Done. [877 ms]
Calculating field references...Done. [30 ms]
Calculating method references...Done. [62 ms]
Parsing classes...Done. [388 ms]
Calculating field references...Done. [30 ms]
Calculating method references...Done. [56 ms]
NodeSub: we
Model: ka
Signlink: ge
RSAnimable: oda
RSObjectDefLoader: mk
DetailInfo: vw
RSPlayerComposite: ah
RSAnimableNode: lr
NodeSubQueue: re
RSItemDef: su
RSObjectDef: su
RSInteractable: vs
Cache: jt
Render: ha
RSObject: tq
TileData: s
NodeDeque: ada
RSPlayer: bs
RenderData: ql
Node: efa
RSCharacter: iw
RSItem: dv
Reference: fc
RSNPCNode: uba
MenuItemNode: cs
Graphic: maa
ServerData: cr
RSInterface: sca
NodeListCache: se
RSNPC: kd
Client: client
RSObjectComposite: qea
SoftReference: iu
DetailInfoNode: hb
Settings: rm
RSItemDefLoader: hp
MenuGroupNode: k
StatusNodeListLoader: di
HashTable: he
ChatLine: ki
RSNPCDef: ow
LDModel: pt
RSGroundEntity: cea
RSInterfaceNode: mba
StatusNodeList: eia
RSGroundData: tea
RSInteractableDef: c
HardReference: Ambiguous
RSGroundObject: mfa
RSGround: ffa
StatusNode: gda
Identified 50 out of 51 (98 %)
I understand that I don’t have a lot of metrics in my checks, but I have a few (if I’m even using them correctly rofl)