diff --git a/captureviewer.pyw b/captureviewer.pyw index 55809b2..bf80c3c 100644 --- a/captureviewer.pyw +++ b/captureviewer.pyw @@ -35,6 +35,7 @@ component_name[4] = "Character", component_name[17] = "Inventory", component_name[5] = "Script", component_name[9] = "Skill", +component_name[19] = "Cannon", component_name[11] = "Item", component_name[60] = "BaseCombatAI", component_name[48] = "Stats", "Rebuild" @@ -660,13 +661,13 @@ class CaptureViewer(viewer.Viewer): if not packet.all_read(): raise ValueError except NotImplementedError as e: - values = (msg_name, str(e)+"\nlen: "+str(len(packet)-10)+"\n"+"\n".join(["%s = %s" % (a, b) for a, b in param_values.items()])) + values = (msg_name, str(e)+"\n"+"\n".join(["%s = %s" % (a, b) for a, b in param_values.items()])) tags.append("error") except Exception as e: print(packet_name, msg_name) import traceback traceback.print_exc() - values = ("likely not "+msg_name, "Error while parsing, likely not this message!\n"+str(e)+"\nlen: "+str(len(packet)-10)+"\n"+"\n".join(["%s = %s" % (a, b) for a, b in param_values.items()])) + values = ("likely not "+msg_name, "Error while parsing, likely not this message!\n"+str(e)+"\n"+"\n".join(["%s = %s" % (a, b) for a, b in param_values.items()])) tags.append("error") else: values = (msg_name, "\n".join(["%s = %s" % (a, pprint.pformat(b)) for a, b in param_values.items()])) diff --git a/packetdefinitions/replica/components/Cannon.structs b/packetdefinitions/replica/components/Cannon.structs new file mode 100644 index 0000000..3a75e15 --- /dev/null +++ b/packetdefinitions/replica/components/Cannon.structs @@ -0,0 +1,39 @@ +Component 19 - Cannon (tested using LOT 1864): +start of ScriptedActivity +[bit] - flag + [u32] - count + [s64] - player object id + constant size 10 loop + [float] - ??? + [float] - ??? + [float] - ??? + [float] - ??? + [float] - ??? + [float] - ??? + [float] - ??? + [float] - ??? + [float] - ??? + [float] - ??? +end of ScriptedActivity +if creation: + [float] - ??? + [float] - ??? + [float] - ??? + [float] - ??? + [float] - ??? + [float] - ??? +[bit] - flag + [double] - ??? + [double] - ??? + [double] - ??? + [float] - ??? + [float] - ??? + [float] - ??? + [float] - ??? + [float] - ??? + [float] - ??? + [float] - ??? + [u64] - ??? + [float] - ??? + [float] - ??? + diff --git a/packetdefinitions/replica/components/ControllablePhysics.structs b/packetdefinitions/replica/components/ControllablePhysics.structs index 2814fd4..3f1ae71 100644 --- a/packetdefinitions/replica/components/ControllablePhysics.structs +++ b/packetdefinitions/replica/components/ControllablePhysics.structs @@ -17,7 +17,7 @@ if creation: [float] - ??? [float] - ??? [bit] - flag - [u32] - ??? + [float] - ??? [bit] - ??? [bit] - flag [bit] - flag