Added support for shooting gallery cannon component.

This commit is contained in:
lcdr 2018-04-02 00:09:09 +02:00
parent c3841d65d3
commit 5cd880ef51
3 changed files with 43 additions and 3 deletions

View File

@ -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()]))

View 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] - ???

View File

@ -17,7 +17,7 @@ if creation:
[float] - ???
[float] - ???
[bit] - flag
[u32] - ???
[float] - ???
[bit] - ???
[bit] - flag
[bit] - flag