mirror of
https://github.com/lcdr/utils.git
synced 2024-08-30 17:32:16 +00:00
Added support for shooting gallery cannon component.
This commit is contained in:
parent
c3841d65d3
commit
5cd880ef51
@ -35,6 +35,7 @@ component_name[4] = "Character",
|
|||||||
component_name[17] = "Inventory",
|
component_name[17] = "Inventory",
|
||||||
component_name[5] = "Script",
|
component_name[5] = "Script",
|
||||||
component_name[9] = "Skill",
|
component_name[9] = "Skill",
|
||||||
|
component_name[19] = "Cannon",
|
||||||
component_name[11] = "Item",
|
component_name[11] = "Item",
|
||||||
component_name[60] = "BaseCombatAI",
|
component_name[60] = "BaseCombatAI",
|
||||||
component_name[48] = "Stats", "Rebuild"
|
component_name[48] = "Stats", "Rebuild"
|
||||||
@ -660,13 +661,13 @@ class CaptureViewer(viewer.Viewer):
|
|||||||
if not packet.all_read():
|
if not packet.all_read():
|
||||||
raise ValueError
|
raise ValueError
|
||||||
except NotImplementedError as e:
|
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")
|
tags.append("error")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(packet_name, msg_name)
|
print(packet_name, msg_name)
|
||||||
import traceback
|
import traceback
|
||||||
traceback.print_exc()
|
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")
|
tags.append("error")
|
||||||
else:
|
else:
|
||||||
values = (msg_name, "\n".join(["%s = %s" % (a, pprint.pformat(b)) for a, b in param_values.items()]))
|
values = (msg_name, "\n".join(["%s = %s" % (a, pprint.pformat(b)) for a, b in param_values.items()]))
|
||||||
|
39
packetdefinitions/replica/components/Cannon.structs
Normal file
39
packetdefinitions/replica/components/Cannon.structs
Normal file
@ -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] - ???
|
||||||
|
|
@ -17,7 +17,7 @@ if creation:
|
|||||||
[float] - ???
|
[float] - ???
|
||||||
[float] - ???
|
[float] - ???
|
||||||
[bit] - flag
|
[bit] - flag
|
||||||
[u32] - ???
|
[float] - ???
|
||||||
[bit] - ???
|
[bit] - ???
|
||||||
[bit] - flag
|
[bit] - flag
|
||||||
[bit] - flag
|
[bit] - flag
|
||||||
|
Loading…
Reference in New Issue
Block a user