From 0973c909e474ad92de17abf70dfd62728f37741a Mon Sep 17 00:00:00 2001 From: krustophski Date: Thu, 18 Jun 2026 07:29:36 +0300 Subject: [PATCH] Stabilize KAMAZ physics and assign materials --- .../Kamaz/Materials/M_Kamaz_black.uasset | 3 + .../Kamaz/Materials/M_Kamaz_blue.uasset | 3 + .../Kamaz/Materials/M_Kamaz_body.uasset | 3 + .../Kamaz/Materials/M_Kamaz_chrome.uasset | 3 + .../Kamaz/Materials/M_Kamaz_fabric.uasset | 3 + .../Kamaz/Materials/M_Kamaz_glass.uasset | 3 + .../Kamaz/Materials/M_Kamaz_metal.uasset | 3 + .../Kamaz/Materials/M_Kamaz_orange.uasset | 3 + .../Kamaz/Materials/M_Kamaz_red.uasset | 3 + .../Kamaz/Materials/M_Kamaz_rubber.uasset | 3 + .../Kamaz/Materials/M_Kamaz_white.uasset | 3 + .../Kamaz/Materials/M_Kamaz_yellow.uasset | 3 + .../Vehicles/Kamaz/SK_Kamaz_Chassis.uasset | 4 +- Source/mrPlow58/Kamaz/mrPlow58KamazCar.cpp | 23 ++ Source/mrPlow58/Kamaz/mrPlow58KamazCar.h | 3 + Tools/Unreal/assign_kamaz_basic_materials.py | 139 ++++++++ Tools/Unreal/inspect_vehicle_asset_details.py | 90 +++++ ...l_assign_kamaz_basic_materials_report.json | 312 ++++++++++++++++++ ...l_inspect_kamaz_playable_setup_report.json | 20 +- .../unreal_vehicle_asset_details_report.json | 260 +++++++++++++++ 20 files changed, 875 insertions(+), 12 deletions(-) create mode 100644 Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_black.uasset create mode 100644 Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_blue.uasset create mode 100644 Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_body.uasset create mode 100644 Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_chrome.uasset create mode 100644 Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_fabric.uasset create mode 100644 Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_glass.uasset create mode 100644 Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_metal.uasset create mode 100644 Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_orange.uasset create mode 100644 Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_red.uasset create mode 100644 Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_rubber.uasset create mode 100644 Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_white.uasset create mode 100644 Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_yellow.uasset create mode 100644 Tools/Unreal/assign_kamaz_basic_materials.py create mode 100644 Tools/Unreal/inspect_vehicle_asset_details.py create mode 100644 VehicleExports/unreal_assign_kamaz_basic_materials_report.json create mode 100644 VehicleExports/unreal_vehicle_asset_details_report.json diff --git a/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_black.uasset b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_black.uasset new file mode 100644 index 0000000..634b322 --- /dev/null +++ b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_black.uasset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9ee8f174fc9b4fd7908872c46c2e017a5df20817e5020feea560b24fc91d5404 +size 5705 diff --git a/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_blue.uasset b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_blue.uasset new file mode 100644 index 0000000..42f58be --- /dev/null +++ b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_blue.uasset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3ae08f1d599548a5910933b74a70232861ceb0fc850c18b93d1a7b36c8312190 +size 5700 diff --git a/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_body.uasset b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_body.uasset new file mode 100644 index 0000000..cd545a6 --- /dev/null +++ b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_body.uasset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:77aecac576eb361205fc47f0bbc12f7e2399072f5b1b5943cf73b208c9a8a4eb +size 5700 diff --git a/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_chrome.uasset b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_chrome.uasset new file mode 100644 index 0000000..ee36ee2 --- /dev/null +++ b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_chrome.uasset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c968cfda0e4aed2386b394a34411631fb2caad8c6be3e2f891b9fcc8512d66c +size 5739 diff --git a/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_fabric.uasset b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_fabric.uasset new file mode 100644 index 0000000..f80d55e --- /dev/null +++ b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_fabric.uasset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:63fb455471e857e34756760360832280035ec22864d0a6380060011a5381e295 +size 5710 diff --git a/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_glass.uasset b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_glass.uasset new file mode 100644 index 0000000..743eeec --- /dev/null +++ b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_glass.uasset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bb9e34612bb1dd3d2c127abd741ac57c532233737405fca17302ba43b60f1164 +size 6282 diff --git a/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_metal.uasset b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_metal.uasset new file mode 100644 index 0000000..11e6edb --- /dev/null +++ b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_metal.uasset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3512dadcfcf65331169080e5b660161848fc64c76d9555855b3d0c67bb6bb669 +size 5734 diff --git a/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_orange.uasset b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_orange.uasset new file mode 100644 index 0000000..877464b --- /dev/null +++ b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_orange.uasset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dc472f08b09384013e4b5992dfb900acffbe179d9e56620f26ef1c5f13b8574b +size 5710 diff --git a/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_red.uasset b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_red.uasset new file mode 100644 index 0000000..8f9b1b3 --- /dev/null +++ b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_red.uasset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:64bc6f20f473c56295d55c30295367791f44a6f3cc03027eb6db254d29e6bd24 +size 5695 diff --git a/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_rubber.uasset b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_rubber.uasset new file mode 100644 index 0000000..9b87014 --- /dev/null +++ b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_rubber.uasset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cfa70aa462b3616fcc990e32dc0be8db9eec1d2727b6e1ef1144989706a09d6a +size 5710 diff --git a/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_white.uasset b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_white.uasset new file mode 100644 index 0000000..c4714e6 --- /dev/null +++ b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_white.uasset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3a492b6aba7b1b3d91207564d5b1af41ecd90e176f649601329b8f276ff8565 +size 5705 diff --git a/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_yellow.uasset b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_yellow.uasset new file mode 100644 index 0000000..7a7c338 --- /dev/null +++ b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_yellow.uasset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7c6890f86dd987345eeae1dfb71b7de442c7c0760d218fab635321a07d87a872 +size 5710 diff --git a/Content/MrPlow/Vehicles/Kamaz/SK_Kamaz_Chassis.uasset b/Content/MrPlow/Vehicles/Kamaz/SK_Kamaz_Chassis.uasset index 26a4201..0c1b2d6 100644 --- a/Content/MrPlow/Vehicles/Kamaz/SK_Kamaz_Chassis.uasset +++ b/Content/MrPlow/Vehicles/Kamaz/SK_Kamaz_Chassis.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4ff776443725e270deb9a5352bb2e324cb3084b1febe65ab504f618c1a20e519 -size 121290882 +oid sha256:7a3dd94fb9f639be32cea4a9baa58906e045aaf79f1585e468c6b35dfe8e365e +size 121292816 diff --git a/Source/mrPlow58/Kamaz/mrPlow58KamazCar.cpp b/Source/mrPlow58/Kamaz/mrPlow58KamazCar.cpp index 31f1da3..7f07062 100644 --- a/Source/mrPlow58/Kamaz/mrPlow58KamazCar.cpp +++ b/Source/mrPlow58/Kamaz/mrPlow58KamazCar.cpp @@ -78,3 +78,26 @@ AmrPlow58KamazCar::AmrPlow58KamazCar() Movement->SteeringSetup.SteeringType = ESteeringType::AngleRatio; Movement->SteeringSetup.AngleRatio = 0.55f; } + +void AmrPlow58KamazCar::BeginPlay() +{ + Super::BeginPlay(); + + static const FName WheelBones[] = { + FName("Phys_Wheel_FL"), + FName("Phys_Wheel_FR"), + FName("Phys_Wheel_ML1"), + FName("Phys_Wheel_ML2"), + FName("Phys_Wheel_MR1"), + FName("Phys_Wheel_MR2"), + FName("Phys_Wheel_RL1"), + FName("Phys_Wheel_RL2"), + FName("Phys_Wheel_RR1"), + FName("Phys_Wheel_RR2"), + }; + + for (const FName& WheelBone : WheelBones) + { + GetMesh()->SetAllBodiesBelowSimulatePhysics(WheelBone, false, true); + } +} diff --git a/Source/mrPlow58/Kamaz/mrPlow58KamazCar.h b/Source/mrPlow58/Kamaz/mrPlow58KamazCar.h index 48de251..6c4068e 100644 --- a/Source/mrPlow58/Kamaz/mrPlow58KamazCar.h +++ b/Source/mrPlow58/Kamaz/mrPlow58KamazCar.h @@ -16,4 +16,7 @@ class AmrPlow58KamazCar : public AmrPlow58Pawn public: AmrPlow58KamazCar(); + +protected: + virtual void BeginPlay() override; }; diff --git a/Tools/Unreal/assign_kamaz_basic_materials.py b/Tools/Unreal/assign_kamaz_basic_materials.py new file mode 100644 index 0000000..6f249bd --- /dev/null +++ b/Tools/Unreal/assign_kamaz_basic_materials.py @@ -0,0 +1,139 @@ +import json +from pathlib import Path + +import unreal + + +PROJECT_DIR = Path(unreal.Paths.project_dir()) +REPORT_PATH = PROJECT_DIR / "VehicleExports" / "unreal_assign_kamaz_basic_materials_report.json" + +MESH_PATH = "/Game/MrPlow/Vehicles/Kamaz/SK_Kamaz_Chassis.SK_Kamaz_Chassis" +MATERIAL_DIR = "/Game/MrPlow/Vehicles/Kamaz/Materials" + + +MATERIAL_PROFILES = { + "body": {"color": (0.63, 0.58, 0.48, 1.0), "metallic": 0.0, "roughness": 0.58}, + "black": {"color": (0.01, 0.011, 0.012, 1.0), "metallic": 0.0, "roughness": 0.72}, + "rubber": {"color": (0.005, 0.005, 0.005, 1.0), "metallic": 0.0, "roughness": 0.88}, + "metal": {"color": (0.63, 0.64, 0.62, 1.0), "metallic": 0.85, "roughness": 0.28}, + "chrome": {"color": (0.9, 0.88, 0.82, 1.0), "metallic": 1.0, "roughness": 0.12}, + "glass": {"color": (0.18, 0.32, 0.42, 0.45), "metallic": 0.0, "roughness": 0.08}, + "red": {"color": (0.9, 0.03, 0.02, 1.0), "metallic": 0.0, "roughness": 0.22}, + "orange": {"color": (1.0, 0.35, 0.02, 1.0), "metallic": 0.0, "roughness": 0.24}, + "yellow": {"color": (0.95, 0.78, 0.08, 1.0), "metallic": 0.0, "roughness": 0.3}, + "white": {"color": (0.88, 0.86, 0.8, 1.0), "metallic": 0.0, "roughness": 0.35}, + "fabric": {"color": (0.12, 0.11, 0.1, 1.0), "metallic": 0.0, "roughness": 0.9}, + "blue": {"color": (0.03, 0.12, 0.75, 1.0), "metallic": 0.0, "roughness": 0.32}, +} + + +def classify_slot(slot_name): + name = slot_name.lower() + if "rubber" in name: + return "rubber" + if "glass" in name or "steklo" in name or "mirror" in name: + return "glass" + if "chrom" in name: + return "chrome" + if "alumin" in name or "silver" in name or "radiator" in name: + return "metal" + if "red" in name: + return "red" + if "orange" in name or "catafot" in name or "katafot" in name: + return "orange" + if "yellow" in name or "yeloow" in name: + return "yellow" + if "white" in name or "led_white" in name or "lampa" in name: + return "white" + if "blue" in name: + return "blue" + if "tkan" in name or "sidenia" in name: + return "fabric" + if "black" in name or "plastic" in name: + return "black" + return "body" + + +def package_path(name): + return f"{MATERIAL_DIR}/M_Kamaz_{name}" + + +def load_or_create_material(profile_name, profile): + asset_path = package_path(profile_name) + material = unreal.load_asset(asset_path) + if material: + return material + + tools = unreal.AssetToolsHelpers.get_asset_tools() + factory = unreal.MaterialFactoryNew() + material = tools.create_asset(f"M_Kamaz_{profile_name}", MATERIAL_DIR, unreal.Material, factory) + if not material: + raise RuntimeError(f"Failed to create material {asset_path}") + + color = unreal.MaterialEditingLibrary.create_material_expression(material, unreal.MaterialExpressionConstant4Vector, -400, 0) + color.set_editor_property("constant", unreal.LinearColor(*profile["color"])) + unreal.MaterialEditingLibrary.connect_material_property(color, "", unreal.MaterialProperty.MP_BASE_COLOR) + + metallic = unreal.MaterialEditingLibrary.create_material_expression(material, unreal.MaterialExpressionConstant, -400, 160) + metallic.set_editor_property("r", profile["metallic"]) + unreal.MaterialEditingLibrary.connect_material_property(metallic, "", unreal.MaterialProperty.MP_METALLIC) + + roughness = unreal.MaterialEditingLibrary.create_material_expression(material, unreal.MaterialExpressionConstant, -400, 320) + roughness.set_editor_property("r", profile["roughness"]) + unreal.MaterialEditingLibrary.connect_material_property(roughness, "", unreal.MaterialProperty.MP_ROUGHNESS) + + if profile["color"][3] < 1.0: + alpha = unreal.MaterialEditingLibrary.create_material_expression(material, unreal.MaterialExpressionConstant, -400, 480) + alpha.set_editor_property("r", profile["color"][3]) + unreal.MaterialEditingLibrary.connect_material_property(alpha, "", unreal.MaterialProperty.MP_OPACITY) + material.set_editor_property("blend_mode", unreal.BlendMode.BLEND_TRANSLUCENT) + + unreal.MaterialEditingLibrary.layout_material_expressions(material) + unreal.MaterialEditingLibrary.recompile_material(material) + unreal.EditorAssetLibrary.save_loaded_asset(material) + return material + + +def main(): + mesh = unreal.load_asset(MESH_PATH) + if not mesh: + raise RuntimeError(f"Missing mesh: {MESH_PATH}") + + materials_by_profile = { + name: load_or_create_material(name, profile) + for name, profile in MATERIAL_PROFILES.items() + } + + assignments = [] + slots = mesh.get_editor_property("materials") + new_slots = [] + for index, slot in enumerate(slots): + slot_name = str(slot.get_editor_property("material_slot_name")) + profile_name = classify_slot(slot_name) + new_slot = unreal.SkeletalMaterial() + new_slot.set_editor_property("material_interface", materials_by_profile[profile_name]) + new_slot.set_editor_property("material_slot_name", slot.get_editor_property("material_slot_name")) + try: + new_slot.set_editor_property("imported_material_slot_name", slot.get_editor_property("imported_material_slot_name")) + except Exception: + pass + new_slots.append(new_slot) + assignments.append( + { + "index": index, + "slot": slot_name, + "profile": profile_name, + "material": materials_by_profile[profile_name].get_path_name(), + } + ) + + mesh.set_editor_property("materials", new_slots) + unreal.EditorAssetLibrary.save_loaded_asset(mesh) + + report = {"mesh": MESH_PATH, "assignments": assignments, "ok": True} + REPORT_PATH.parent.mkdir(parents=True, exist_ok=True) + REPORT_PATH.write_text(json.dumps(report, indent=2), encoding="utf-8") + + +if __name__ == "__main__": + main() diff --git a/Tools/Unreal/inspect_vehicle_asset_details.py b/Tools/Unreal/inspect_vehicle_asset_details.py new file mode 100644 index 0000000..4cbd7ca --- /dev/null +++ b/Tools/Unreal/inspect_vehicle_asset_details.py @@ -0,0 +1,90 @@ +import json +from pathlib import Path + +import unreal + + +PROJECT_DIR = Path(unreal.Paths.project_dir()) +REPORT_PATH = PROJECT_DIR / "VehicleExports" / "unreal_vehicle_asset_details_report.json" + +ASSETS = { + "kamaz_mesh": "/Game/MrPlow/Vehicles/Kamaz/SK_Kamaz_Chassis.SK_Kamaz_Chassis", + "kamaz_physics": "/Game/MrPlow/Vehicles/Kamaz/SK_Kamaz_Chassis_PhysicsAsset.SK_Kamaz_Chassis_PhysicsAsset", + "offroad_mesh": "/Game/Vehicles/OffroadCar/SKM_Offroad.SKM_Offroad", + "offroad_physics": "/Game/Vehicles/OffroadCar/SKM_Offroad_PhysicsAsset.SKM_Offroad_PhysicsAsset", +} + + +def path(asset): + return asset.get_path_name() if asset else None + + +def safe_get(obj, prop): + try: + return obj.get_editor_property(prop) + except Exception as exc: + return f"" + + +def summarize_mesh(mesh): + if not mesh: + return None + + materials = [] + for slot in mesh.get_editor_property("materials"): + materials.append( + { + "slot": str(slot.get_editor_property("material_slot_name")), + "material": path(slot.get_editor_property("material_interface")), + } + ) + + return { + "path": path(mesh), + "physicsAsset": path(mesh.get_editor_property("physics_asset")), + "materials": materials, + } + + +def summarize_physics(asset): + if not asset: + return None + + summary = { + "path": path(asset), + "class": asset.get_class().get_path_name(), + "dirContains": [name for name in dir(asset) if "body" in name.lower() or "constraint" in name.lower()], + } + + for prop in [ + "skeletal_body_setups", + "SkeletalBodySetups", + "constraint_setup", + "ConstraintSetup", + "body_setup_index_map", + "BodySetupIndexMap", + ]: + value = safe_get(asset, prop) + if isinstance(value, list): + summary[prop] = [path(item) or str(item) for item in value] + else: + summary[prop] = str(value) + + return summary + + +def main(): + report = {} + for key, asset_ref in ASSETS.items(): + asset = unreal.load_asset(asset_ref) + if "mesh" in key: + report[key] = summarize_mesh(asset) + else: + report[key] = summarize_physics(asset) + + REPORT_PATH.parent.mkdir(parents=True, exist_ok=True) + REPORT_PATH.write_text(json.dumps(report, indent=2), encoding="utf-8") + + +if __name__ == "__main__": + main() diff --git a/VehicleExports/unreal_assign_kamaz_basic_materials_report.json b/VehicleExports/unreal_assign_kamaz_basic_materials_report.json new file mode 100644 index 0000000..d6b9080 --- /dev/null +++ b/VehicleExports/unreal_assign_kamaz_basic_materials_report.json @@ -0,0 +1,312 @@ +{ + "mesh": "/Game/MrPlow/Vehicles/Kamaz/SK_Kamaz_Chassis.SK_Kamaz_Chassis", + "assignments": [ + { + "index": 0, + "slot": "Base", + "profile": "body", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_body.M_Kamaz_body" + }, + { + "index": 1, + "slot": "Base_ncl1_1", + "profile": "body", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_body.M_Kamaz_body" + }, + { + "index": 2, + "slot": "alumin_ncl1_1", + "profile": "metal", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_metal.M_Kamaz_metal" + }, + { + "index": 3, + "slot": "bezh", + "profile": "body", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_body.M_Kamaz_body" + }, + { + "index": 4, + "slot": "logo-horse", + "profile": "body", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_body.M_Kamaz_body" + }, + { + "index": 5, + "slot": "yellow_ncl1_1", + "profile": "yellow", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_yellow.M_Kamaz_yellow" + }, + { + "index": 6, + "slot": "black_ncl1_2", + "profile": "black", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_black.M_Kamaz_black" + }, + { + "index": 7, + "slot": "05_-_Default", + "profile": "body", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_body.M_Kamaz_body" + }, + { + "index": 8, + "slot": "Material__38", + "profile": "body", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_body.M_Kamaz_body" + }, + { + "index": 9, + "slot": "Material__48", + "profile": "body", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_body.M_Kamaz_body" + }, + { + "index": 10, + "slot": "Material__49", + "profile": "body", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_body.M_Kamaz_body" + }, + { + "index": 11, + "slot": "Material__50", + "profile": "body", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_body.M_Kamaz_body" + }, + { + "index": 12, + "slot": "Material__63", + "profile": "body", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_body.M_Kamaz_body" + }, + { + "index": 13, + "slot": "tkan", + "profile": "fabric", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_fabric.M_Kamaz_fabric" + }, + { + "index": 14, + "slot": "sidenia", + "profile": "fabric", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_fabric.M_Kamaz_fabric" + }, + { + "index": 15, + "slot": "Rubber", + "profile": "rubber", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_rubber.M_Kamaz_rubber" + }, + { + "index": 16, + "slot": "black", + "profile": "black", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_black.M_Kamaz_black" + }, + { + "index": 17, + "slot": "chrom", + "profile": "chrome", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_chrome.M_Kamaz_chrome" + }, + { + "index": 18, + "slot": "steklo_polos", + "profile": "glass", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_glass.M_Kamaz_glass" + }, + { + "index": 19, + "slot": "plastik-catafot", + "profile": "orange", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_orange.M_Kamaz_orange" + }, + { + "index": 20, + "slot": "steklo_polos_ncl1_1", + "profile": "glass", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_glass.M_Kamaz_glass" + }, + { + "index": 21, + "slot": "alumin", + "profile": "metal", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_metal.M_Kamaz_metal" + }, + { + "index": 22, + "slot": "silver", + "profile": "metal", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_metal.M_Kamaz_metal" + }, + { + "index": 23, + "slot": "Plastic_Black_Matte", + "profile": "black", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_black.M_Kamaz_black" + }, + { + "index": 24, + "slot": "black_ncl1_1", + "profile": "black", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_black.M_Kamaz_black" + }, + { + "index": 25, + "slot": "catafot-orange", + "profile": "orange", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_orange.M_Kamaz_orange" + }, + { + "index": 26, + "slot": "blue-filter", + "profile": "blue", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_blue.M_Kamaz_blue" + }, + { + "index": 27, + "slot": "glass", + "profile": "glass", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_glass.M_Kamaz_glass" + }, + { + "index": 28, + "slot": "07_-_Default", + "profile": "body", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_body.M_Kamaz_body" + }, + { + "index": 29, + "slot": "chrom_ncl1_1", + "profile": "chrome", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_chrome.M_Kamaz_chrome" + }, + { + "index": 30, + "slot": "chrom-polos", + "profile": "chrome", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_chrome.M_Kamaz_chrome" + }, + { + "index": 31, + "slot": "led_white", + "profile": "white", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_white.M_Kamaz_white" + }, + { + "index": 32, + "slot": "led-yeloow", + "profile": "yellow", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_yellow.M_Kamaz_yellow" + }, + { + "index": 33, + "slot": "lampa", + "profile": "white", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_white.M_Kamaz_white" + }, + { + "index": 34, + "slot": "glass-bump", + "profile": "glass", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_glass.M_Kamaz_glass" + }, + { + "index": 35, + "slot": "chrom-yellow", + "profile": "chrome", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_chrome.M_Kamaz_chrome" + }, + { + "index": 36, + "slot": "black_ncl1_3", + "profile": "black", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_black.M_Kamaz_black" + }, + { + "index": 37, + "slot": "mirror_ncl1_2", + "profile": "glass", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_glass.M_Kamaz_glass" + }, + { + "index": 38, + "slot": "Material__928", + "profile": "body", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_body.M_Kamaz_body" + }, + { + "index": 39, + "slot": "black_ncl1_4", + "profile": "black", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_black.M_Kamaz_black" + }, + { + "index": 40, + "slot": "alumin-bolt_ncl1_1", + "profile": "metal", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_metal.M_Kamaz_metal" + }, + { + "index": 41, + "slot": "radiator_ncl1_2", + "profile": "metal", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_metal.M_Kamaz_metal" + }, + { + "index": 42, + "slot": "blackMatte", + "profile": "black", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_black.M_Kamaz_black" + }, + { + "index": 43, + "slot": "04_-_Default", + "profile": "body", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_body.M_Kamaz_body" + }, + { + "index": 44, + "slot": "Material__38_ncl1_1", + "profile": "body", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_body.M_Kamaz_body" + }, + { + "index": 45, + "slot": "katafot", + "profile": "orange", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_orange.M_Kamaz_orange" + }, + { + "index": 46, + "slot": "redGlass", + "profile": "glass", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_glass.M_Kamaz_glass" + }, + { + "index": 47, + "slot": "yellow-orange", + "profile": "orange", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_orange.M_Kamaz_orange" + }, + { + "index": 48, + "slot": "white", + "profile": "white", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_white.M_Kamaz_white" + }, + { + "index": 49, + "slot": "black_ncl1_5", + "profile": "black", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_black.M_Kamaz_black" + }, + { + "index": 50, + "slot": "alumin_ncl1_2", + "profile": "metal", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_metal.M_Kamaz_metal" + } + ], + "ok": true +} \ No newline at end of file diff --git a/VehicleExports/unreal_inspect_kamaz_playable_setup_report.json b/VehicleExports/unreal_inspect_kamaz_playable_setup_report.json index 9e58dc0..fa870f6 100644 --- a/VehicleExports/unreal_inspect_kamaz_playable_setup_report.json +++ b/VehicleExports/unreal_inspect_kamaz_playable_setup_report.json @@ -10,52 +10,52 @@ { "bone": "Phys_Wheel_FL", "wheelClass": "/Script/mrPlow58.mrPlow58KamazWheelFront", - "offset": "" + "offset": "" }, { "bone": "Phys_Wheel_FR", "wheelClass": "/Script/mrPlow58.mrPlow58KamazWheelFront", - "offset": "" + "offset": "" }, { "bone": "Phys_Wheel_ML1", "wheelClass": "/Script/mrPlow58.mrPlow58KamazWheelRear", - "offset": "" + "offset": "" }, { "bone": "Phys_Wheel_ML2", "wheelClass": "/Script/mrPlow58.mrPlow58KamazWheelRear", - "offset": "" + "offset": "" }, { "bone": "Phys_Wheel_MR1", "wheelClass": "/Script/mrPlow58.mrPlow58KamazWheelRear", - "offset": "" + "offset": "" }, { "bone": "Phys_Wheel_MR2", "wheelClass": "/Script/mrPlow58.mrPlow58KamazWheelRear", - "offset": "" + "offset": "" }, { "bone": "Phys_Wheel_RL1", "wheelClass": "/Script/mrPlow58.mrPlow58KamazWheelRear", - "offset": "" + "offset": "" }, { "bone": "Phys_Wheel_RL2", "wheelClass": "/Script/mrPlow58.mrPlow58KamazWheelRear", - "offset": "" + "offset": "" }, { "bone": "Phys_Wheel_RR1", "wheelClass": "/Script/mrPlow58.mrPlow58KamazWheelRear", - "offset": "" + "offset": "" }, { "bone": "Phys_Wheel_RR2", "wheelClass": "/Script/mrPlow58.mrPlow58KamazWheelRear", - "offset": "" + "offset": "" } ], "boneNames": [ diff --git a/VehicleExports/unreal_vehicle_asset_details_report.json b/VehicleExports/unreal_vehicle_asset_details_report.json new file mode 100644 index 0000000..0adbf77 --- /dev/null +++ b/VehicleExports/unreal_vehicle_asset_details_report.json @@ -0,0 +1,260 @@ +{ + "kamaz_mesh": { + "path": "/Game/MrPlow/Vehicles/Kamaz/SK_Kamaz_Chassis.SK_Kamaz_Chassis", + "physicsAsset": "/Game/MrPlow/Vehicles/Kamaz/SK_Kamaz_Chassis_PhysicsAsset.SK_Kamaz_Chassis_PhysicsAsset", + "materials": [ + { + "slot": "Base", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_body.M_Kamaz_body" + }, + { + "slot": "Base_ncl1_1", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_body.M_Kamaz_body" + }, + { + "slot": "alumin_ncl1_1", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_metal.M_Kamaz_metal" + }, + { + "slot": "bezh", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_body.M_Kamaz_body" + }, + { + "slot": "logo-horse", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_body.M_Kamaz_body" + }, + { + "slot": "yellow_ncl1_1", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_yellow.M_Kamaz_yellow" + }, + { + "slot": "black_ncl1_2", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_black.M_Kamaz_black" + }, + { + "slot": "05_-_Default", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_body.M_Kamaz_body" + }, + { + "slot": "Material__38", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_body.M_Kamaz_body" + }, + { + "slot": "Material__48", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_body.M_Kamaz_body" + }, + { + "slot": "Material__49", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_body.M_Kamaz_body" + }, + { + "slot": "Material__50", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_body.M_Kamaz_body" + }, + { + "slot": "Material__63", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_body.M_Kamaz_body" + }, + { + "slot": "tkan", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_fabric.M_Kamaz_fabric" + }, + { + "slot": "sidenia", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_fabric.M_Kamaz_fabric" + }, + { + "slot": "Rubber", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_rubber.M_Kamaz_rubber" + }, + { + "slot": "black", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_black.M_Kamaz_black" + }, + { + "slot": "chrom", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_chrome.M_Kamaz_chrome" + }, + { + "slot": "steklo_polos", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_glass.M_Kamaz_glass" + }, + { + "slot": "plastik-catafot", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_orange.M_Kamaz_orange" + }, + { + "slot": "steklo_polos_ncl1_1", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_glass.M_Kamaz_glass" + }, + { + "slot": "alumin", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_metal.M_Kamaz_metal" + }, + { + "slot": "silver", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_metal.M_Kamaz_metal" + }, + { + "slot": "Plastic_Black_Matte", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_black.M_Kamaz_black" + }, + { + "slot": "black_ncl1_1", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_black.M_Kamaz_black" + }, + { + "slot": "catafot-orange", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_orange.M_Kamaz_orange" + }, + { + "slot": "blue-filter", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_blue.M_Kamaz_blue" + }, + { + "slot": "glass", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_glass.M_Kamaz_glass" + }, + { + "slot": "07_-_Default", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_body.M_Kamaz_body" + }, + { + "slot": "chrom_ncl1_1", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_chrome.M_Kamaz_chrome" + }, + { + "slot": "chrom-polos", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_chrome.M_Kamaz_chrome" + }, + { + "slot": "led_white", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_white.M_Kamaz_white" + }, + { + "slot": "led-yeloow", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_yellow.M_Kamaz_yellow" + }, + { + "slot": "lampa", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_white.M_Kamaz_white" + }, + { + "slot": "glass-bump", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_glass.M_Kamaz_glass" + }, + { + "slot": "chrom-yellow", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_chrome.M_Kamaz_chrome" + }, + { + "slot": "black_ncl1_3", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_black.M_Kamaz_black" + }, + { + "slot": "mirror_ncl1_2", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_glass.M_Kamaz_glass" + }, + { + "slot": "Material__928", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_body.M_Kamaz_body" + }, + { + "slot": "black_ncl1_4", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_black.M_Kamaz_black" + }, + { + "slot": "alumin-bolt_ncl1_1", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_metal.M_Kamaz_metal" + }, + { + "slot": "radiator_ncl1_2", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_metal.M_Kamaz_metal" + }, + { + "slot": "blackMatte", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_black.M_Kamaz_black" + }, + { + "slot": "04_-_Default", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_body.M_Kamaz_body" + }, + { + "slot": "Material__38_ncl1_1", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_body.M_Kamaz_body" + }, + { + "slot": "katafot", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_orange.M_Kamaz_orange" + }, + { + "slot": "redGlass", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_glass.M_Kamaz_glass" + }, + { + "slot": "yellow-orange", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_orange.M_Kamaz_orange" + }, + { + "slot": "white", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_white.M_Kamaz_white" + }, + { + "slot": "black_ncl1_5", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_black.M_Kamaz_black" + }, + { + "slot": "alumin_ncl1_2", + "material": "/Game/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_metal.M_Kamaz_metal" + } + ] + }, + "kamaz_physics": { + "path": "/Game/MrPlow/Vehicles/Kamaz/SK_Kamaz_Chassis_PhysicsAsset.SK_Kamaz_Chassis_PhysicsAsset", + "class": "/Script/Engine.PhysicsAsset", + "dirContains": [ + "get_constraint_by_bone_names", + "get_constraint_by_name", + "get_constraints" + ], + "skeletal_body_setups": "", + "SkeletalBodySetups": "", + "constraint_setup": "", + "ConstraintSetup": "", + "body_setup_index_map": "", + "BodySetupIndexMap": "" + }, + "offroad_mesh": { + "path": "/Game/Vehicles/OffroadCar/SKM_Offroad.SKM_Offroad", + "physicsAsset": "/Game/Vehicles/OffroadCar/SKM_Offroad_PhysicsAsset.SKM_Offroad_PhysicsAsset", + "materials": [ + { + "slot": "MI_Vehicle_Advanced_Vehicle_Suspension_Engine", + "material": "/Game/Vehicles/OffroadCar/Materials/MI_OffroadCar_Suspension.MI_OffroadCar_Suspension" + }, + { + "slot": "MI_Vehicle_Advanced_Vehicle_Wheels", + "material": "/Game/Vehicles/OffroadCar/Materials/MI_OffroadCar_Wheel.MI_OffroadCar_Wheel" + }, + { + "slot": "MI_Vehicle_Advanced_Vehicle_Body", + "material": "/Game/Vehicles/OffroadCar/Materials/MI_OffroadCar_Main.MI_OffroadCar_Main" + } + ] + }, + "offroad_physics": { + "path": "/Game/Vehicles/OffroadCar/SKM_Offroad_PhysicsAsset.SKM_Offroad_PhysicsAsset", + "class": "/Script/Engine.PhysicsAsset", + "dirContains": [ + "get_constraint_by_bone_names", + "get_constraint_by_name", + "get_constraints" + ], + "skeletal_body_setups": "", + "SkeletalBodySetups": "", + "constraint_setup": "", + "ConstraintSetup": "", + "body_setup_index_map": "", + "BodySetupIndexMap": "" + } +} \ No newline at end of file