praydog / UEVR

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

sublevel changes not saving [BUG] #41

Open bratamic opened 9 months ago

bratamic commented 9 months ago

possible bug

I have been trying to make changes to the "skeletal mesh components" in psychonauts 2. If I make changes to the "visible" box in this category then the changes will stick/save but if I go into the subfield "properties" and disable "cast shadow" and then toggle "visible" again the shadow is removed but it wont stick/save this state. When I enter a new area the shadow will return

windows 11 VD open XR rtx 4090

armax9 commented 9 months ago

Some games change the numbers in the name of the parameter after each run. Probably it's the same problem as in Hogwarts Legacy, High on Life, etc. Praydog said that he'll work on a fix image

praydog commented 9 months ago

possible bug

I have been trying to make changes to the "skeletal mesh components" in psychonauts 2. If I make changes to the "visible" box in this category then the changes will stick/save but if I go into the subfield "properties" and disable "cast shadow" and then toggle "visible" again the shadow is removed but it wont stick/save this state. When I enter a new area the shadow will return

windows 11 VD open XR rtx 4090

You can right click on properties to save them. Are you doing this? Don't think there's a way to right click at the moment with VR controllers or a gamepad. Will need to use the mouse.

bratamic commented 9 months ago

I have been testing in the "object hook"section of the injector. Right click on mouse does not seem to do anything for me. Im basically able to get native running on what seems visually perfect to me, if I am able to remove the "bCastCapsuleDirectShadow" & "bCastCapsuleIndirectShadow" in the skeletal mesh section how ever I cant make it stick. I did notice the components name does change slightly depending on what area/level im on. The "sequencial" seems to get a fatal error after a while of game play so I decided to try get a deeper understanding of the injector. My idea was to create a native profile that works well and upload it to you guys.

CYB3R-JUNKI3 commented 9 months ago

I have recently been trying to save x,y,z offsets buried 12 sub-levels deep and have also been experiencing this issue. I can however confirm (at least from my end) that right clicking the actual value will indeed present me with 2 options, "Save" being one of them. However, I have found that if the property we are trying to save has multiple values (such as camera/location/scale offsets "X,Y and Z") then only the last value is saved.

To add more info, the value that IS saved is a bit odd. ie. Trying to save an offset named "RelativeScale3D" Via UEVR UObjectHooks changed the X,Y,Z values, All from 0.2 to 1.0 I right click each value and save starting with X, and ending with Z. In the UEVR mods folder a new file is created with the following :

{
    "hide": false,
    "path": [
        "Acknowledged Pawn",
        "Properties",
        "WeaponComponent",
        "Properties",
        "InitialWeapon",
        "Properties",
        "WeaponMesh",
        "Properties",
        "AttachParent",
        "Properties",
        "AttachParent",
        "Properties"
    ],
    "properties": [
        {
            "data": 1088421888,
            "name": "Z"
        }
    ],
    "type": "properties"
}

Perhaps this is how UEVR saves the value ?

I was expecting to see something like this :

{
    "hide": false,
    "path": [
        "Acknowledged Pawn",
        "Properties",
        "WeaponComponent",
        "Properties",
        "InitialWeapon",
        "Properties",
        "WeaponMesh",
        "Properties",
        "AttachParent",
        "Properties",
        "AttachParent",
        "Properties"
    ],
    "properties": [
        {
            "data": 1088421888,
            "X": 1.0,
            "Y": 1.0,
            "Z": 1.0      
        }
    ],
    "type": "properties"
}

Anywho, to cut a long story short, the value I was trying to save did not and was back to the original value when the game restarted.

I managed to resolve my issue via pak edit, but I saw this particular issue and thought I would share my experience.

bratamic commented 9 months ago

Appologies I understand what was meant by the right click now and it does in fact work, However CYB3R-JUNKI3 is correct in saying that after saving there are some unexpected behaviours.

ashwad3 commented 8 months ago

possible bug I have been trying to make changes to the "skeletal mesh components" in psychonauts 2. If I make changes to the "visible" box in this category then the changes will stick/save but if I go into the subfield "properties" and disable "cast shadow" and then toggle "visible" again the shadow is removed but it wont stick/save this state. When I enter a new area the shadow will return windows 11 VD open XR rtx 4090

You can right click on properties to save them. Are you doing this? Don't think there's a way to right click at the moment with VR controllers or a gamepad. Will need to use the mouse.

I am running UEVR as an administrator. The "appdata" subfolder is not read-only. I can confirm that changes to sublevel items such as skeletal meshes do not save or are not applied.

Also, right-clicking does nothing. No dialog appears. The exported profiles have JSON files which appear to represent the changes (i.e., hide = true). The application of the change does not occur in game however. Changes to attached items work correctly.

Tested on Sandstorm : Insurgency and Ground Branch with UEVR 1.03 on Windows 10.