praydog / UEVR

Universal Unreal Engine VR Mod (4.8 - 5.4)
http://uevr.io
3.03k stars 157 forks source link

[BUG] False positive error log entry (loading persistent states) #283

Open gwizdek opened 2 days ago

gwizdek commented 2 days ago

Describe the bug Game: System Shock Remake.

I'm getting log errors: [2024-09-24 20:57:35.999] [UnrealVR] [error] [UObjectHook.cpp:1128] [UObjectHook] Malfomed JSON file (missing path or state)

When loading persistent state of properties type object. I assume there is no state property in json file, so the error is triggered. I've got a strange feeling that sometimes object states are not loaded, but most of the time they are propertly loaded despite error log entry.

[2024-09-24 20:57:35.998] [UnrealVR] [info] [UObjectHook.cpp:1177] [UObjectHook] JSON file contents:
[2024-09-24 20:57:35.998] [UnrealVR] [info] [UObjectHook.cpp:1178] {
    "hide": false,
    "hide_legacy": false,
    "path": [
        "Acknowledged Pawn",
        "Components",
        "SceneComponent LookPivot",
        "Properties",
        "RelativeLocation"
    ],
    "properties": [
        {
            "data": 0,
            "name": "Z"
        },
        {
            "data": 0,
            "name": "Y"
        },
        {
            "data": 0,
            "name": "X"
        }
    ],
    "type": "properties"
}
[2024-09-24 20:57:35.998] [UnrealVR] [info] [UObjectHook.cpp:1125] [UObjectHook] inside deserialize_mc_state
[2024-09-24 20:57:35.998] [UnrealVR] [error] [UObjectHook.cpp:1128] [UObjectHook] Malfomed JSON file (missing path or state)

To Reproduce Create persistent state for object property

Expected behavior No errors in log file.

gwizdek commented 2 days ago

Version image