mirror of
https://github.com/lcdr/utils.git
synced 2024-08-30 17:32:16 +00:00
Updated gamemessage definitions and added option to retry with phantom component.
This commit is contained in:
parent
44bae062c7
commit
ee2da75c7c
@ -7,3 +7,4 @@ game_messages=True
|
||||
normal_packets=True
|
||||
retry_with_script_component=True
|
||||
retry_with_trigger_component=True
|
||||
retry_with_phantom_component=True
|
||||
|
@ -164,6 +164,7 @@ class CaptureViewer(viewer.Viewer):
|
||||
self.parse_normal_packets = BooleanVar(value=config["parse"]["normal_packets"])
|
||||
self.retry_with_script_component = BooleanVar(value=config["parse"]["retry_with_script_component"])
|
||||
self.retry_with_trigger_component = BooleanVar(value=config["parse"]["retry_with_trigger_component"])
|
||||
self.retry_with_phantom_component = BooleanVar(value=config["parse"]["retry_with_phantom_component"])
|
||||
self.create_widgets()
|
||||
|
||||
def create_widgets(self):
|
||||
@ -177,6 +178,7 @@ class CaptureViewer(viewer.Viewer):
|
||||
parse_menu.add_checkbutton(label="Parse Normal Packets", variable=self.parse_normal_packets)
|
||||
parse_menu.add_checkbutton(label="Retry parsing with script component if failed", variable=self.retry_with_script_component)
|
||||
parse_menu.add_checkbutton(label="Retry parsing with trigger component if failed", variable=self.retry_with_trigger_component)
|
||||
parse_menu.add_checkbutton(label="Retry parsing with phantom component if failed", variable=self.retry_with_phantom_component)
|
||||
menubar.add_cascade(label="Parse", menu=parse_menu)
|
||||
self.master.config(menu=menubar)
|
||||
|
||||
@ -250,6 +252,9 @@ class CaptureViewer(viewer.Viewer):
|
||||
lot_name = str(lot)
|
||||
component_types = [i[0] for i in self.db.execute("select component_type from ComponentsRegistry where id == "+str(lot)).fetchall()]
|
||||
component_types.extend(retry_with_components)
|
||||
if 40 in retry_with_components:
|
||||
if 3 in component_types:
|
||||
component_types.remove(3)
|
||||
|
||||
parsers = OrderedDict()
|
||||
try:
|
||||
@ -286,6 +291,8 @@ class CaptureViewer(viewer.Viewer):
|
||||
retry_with_components.append(5)
|
||||
elif self.retry_with_trigger_component.get():
|
||||
retry_with_components.append(69)
|
||||
elif self.retry_with_phantom_component.get():
|
||||
retry_with_components.append(40)
|
||||
|
||||
if retry_with_components:
|
||||
print("retrying with", retry_with_components, packet_name)
|
||||
|
@ -154,10 +154,15 @@ class LUZViewer(viewer.Viewer):
|
||||
|
||||
elif path_type == PathType.Spawner:
|
||||
spawn_lot = stream.read(c_uint)
|
||||
lot_name = str(spawn_lot)
|
||||
try:
|
||||
lot_name += " - "+self.db.execute("select name from Objects where id == "+str(spawn_lot)).fetchone()[0]
|
||||
except TypeError:
|
||||
print("Name for lot", spawn_lot, "not found")
|
||||
unknown3 = stream.read(c_uint), stream.read(c_int), stream.read(c_uint)
|
||||
object_id = stream.read(c_int64)
|
||||
unknown4 = stream.read(c_ubyte)
|
||||
values += spawn_lot, unknown3, object_id, unknown4
|
||||
values += lot_name, unknown3, object_id, unknown4
|
||||
|
||||
path = self.tree.insert(paths, END, text=PathType(path_type).name, values=values)
|
||||
|
||||
|
@ -61,7 +61,6 @@
|
||||
<attr name="directionRelative_Force" type="float"/>
|
||||
<attr default="false" name="bClientDeath" type="bool"/>
|
||||
<attr default="true" name="bSpawnLoot" type="bool"/>
|
||||
<attr default="-1.0f" name="coinSpawnTime" type="float"/>
|
||||
</message>
|
||||
<message id="38" name="RequestDie" network="server">
|
||||
<enum name="eKillType">
|
||||
@ -70,15 +69,12 @@
|
||||
</enum>
|
||||
<attr name="killerID" type="LWOOBJID"/>
|
||||
<attr name="lootOwnerID" type="LWOOBJID"/>
|
||||
<attr name="bDieAccepted" type="bool"/>
|
||||
<attr default="VIOLENT" name="killType" type="eKillType"/>
|
||||
<attr name="deathType" type="std::wstring"/>
|
||||
<attr name="directionRelative_AngleY" type="float"/>
|
||||
<attr name="directionRelative_AngleXZ" type="float"/>
|
||||
<attr name="directionRelative_Force" type="float"/>
|
||||
<attr default="false" name="bClientDeath" type="bool"/>
|
||||
<attr default="true" name="bSpawnLoot" type="bool"/>
|
||||
<attr default="-1.0f" name="coinSpawnTime" type="float"/>
|
||||
<attr name="bUnknownBoolean" type="bool"/>
|
||||
</message>
|
||||
<message id="41" name="PlayEmote" network="server">
|
||||
<attr name="emoteID" type="int"/>
|
||||
@ -794,7 +790,6 @@
|
||||
<attr name="bSendServerNotify" type="bool"/>
|
||||
<attr name="bCloseMultiInteract" type="bool"/>
|
||||
<attr default="false" name="bUseControlledObjectForAudioListener" type="bool"/>
|
||||
<attr name="bIsSkippable" type="bool"/>
|
||||
</message>
|
||||
<message id="763" name="EndCinematic" network="client">
|
||||
<attr default="-1.0f" name="leadOut" type="float"/>
|
||||
|
Loading…
Reference in New Issue
Block a user