rfxDarth wrote:Razikus wrote:Maybe!
Pong just started to walk!
Nice! Looks just like what I had before moving over to 3D. Good lord, it's been 5 years and I haven't yet made the thing public...
Hit me up if you hit any barriers though, maybe I could be of help overcoming some things. Or let me know if you figure out the last byte in clicking gobs wdgmsgs... or if have any idea how to handle code in resource objects, as I still haven't.
This is cool!
So you have this client in 3d version?
So at the moment I'm exactly working at decoding meshes and clickable objects - like a door on a house
I successfully mimic right click - because I debugged it from original client
Currently I'm working on it - so decoding and understanding how these clickables works
When right clicking a door on a house it sent "16" as last argument, and from what I so far understood - this is related to meshID extracted from mesh layer
So (probably) client tries to find a mesh, around click that you do, get its id and set as last argument
My current approach will be to extract mesh ids from the underlying resources and save it
then if I spot something that I can't click - I will think about how to proceed further
- Code: Select all
switch (layerType) {
case "mesh":
currentMeshId = extractMeshId(layerMsg);
layerMsg.skip();
break;
private static int extractMeshId(LimitMessage buf) {
int fl = buf.uint8();
int num = buf.uint16();
int matid = buf.int16();
if((fl & 2) != 0) {
return buf.int16();
} else {
return -1;
}