Collab shows diff on localRefs when opening Unity

Discussion and help for Easy Save 3
McGravity
Posts: 19
Joined: Sun Aug 02, 2015 12:56 pm

Collab shows diff on localRefs when opening Unity

Post by McGravity »

Hi, I'm using ES 3.3.2f4 and Unity 2020.3.11f1. Also I'm using AutoSave.

Before I finish work I push all changes in collab and close unity. When I now open Unity again it shows a lot of changes on prefabs which have the ES3 Prefab and ES3 Auto Save component attached. When checking the changes with a diff viewer I can see that the values of the localRefs have changes. Is it normal behaviour for the refs to change when opening unity?

greetings
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: Collab shows diff on localRefs when opening Unity

Post by Joel »

Hi there,

This is normal as the metadata changes when the ES3Prefab is automatically updated.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
McGravity
Posts: 19
Joined: Sun Aug 02, 2015 12:56 pm

Re: Collab shows diff on localRefs when opening Unity

Post by McGravity »

Could you elaborate on when exactly this is happening? Right now I have to upload around 200 to 300 MB for every small change I've made. I'm worried that this will soon be much more, when more auto saved content is added to the game.

Is the auto save functionality intended for games of the size like e.g. Stardew Valley? Or is collab the wrong way to go when using auto save?
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: Collab shows diff on localRefs when opening Unity

Post by Joel »

Hi there,

Just to check, are you using the latest version of Easy Save now? Looking at your original post you're using a much older version of Easy Save which might be the source of your issue.

Using the latest version I'm not seeing the behaviour you describe.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
McGravity
Posts: 19
Joined: Sun Aug 02, 2015 12:56 pm

Re: Collab shows diff on localRefs when opening Unity

Post by McGravity »

I've updated to the most current version. Maybe I'm not entirely understanding whats happening. I'll keep an eye on the collab tab and try to understand what things change when I do changes in the scene. Thanks for your support as always :)
McGravity
Posts: 19
Joined: Sun Aug 02, 2015 12:56 pm

Re: Collab shows diff on localRefs when opening Unity

Post by McGravity »

Hi, as my project grows I really want to make sure I use autosave in the intended way. I'm on ES3.3.2f7 right now.

Is it recommended for rather small projects? Because everytime I open unity I have all prefabs in the scene as changed in the collab tab. As a workaround I would actually have to push everything everytime I open unity to see real changes afterwards. Those commits spam my collab history though.

What could I change to have a clean collab history?
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: Collab shows diff on localRefs when opening Unity

Post by Joel »

Hi there,
Is it recommended for rather small projects?
Auto Save is fine for small and large projects. We have many customers using it on both without any issues.
Because everytime I open unity I have all prefabs in the scene as changed in the collab tab. As a workaround I would actually have to push everything everytime I open unity to see real changes afterwards. Those commits spam my collab history though.
Easy Save will only make changes to the prefab (or more specifically, the ES3AutoSave Component on the prefab) if a Component on the prefab has been removed. I've checked at my end and this is the only time the prefab or it's metadata is changed by Easy Save.

If it's making changes in other situations, and you are certain that it is Easy Save causing this, please could you create a new project containing only Easy Save with a simple scene which replicates this and private message it to me with step-by-step instructions.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
McGravity
Posts: 19
Joined: Sun Aug 02, 2015 12:56 pm

Re: Collab shows diff on localRefs when opening Unity

Post by McGravity »

Aah thanks for clearing that up to me. I try to find out what exactly is causing this behaviour!
McGravity
Posts: 19
Joined: Sun Aug 02, 2015 12:56 pm

Re: Collab shows diff on localRefs when opening Unity

Post by McGravity »

First let me say that I really much appreciate the time you spend giving support! Thanks for that.

I copied the part of the ES3 Prefab component from my diff viewer:

Code: Select all

MonoBehaviour:
  m_ObjectHideFlags: 0
  m_CorrespondingSourceObject: {fileID: 0}
  m_PrefabInstance: {fileID: 0}
  m_PrefabAsset: {fileID: 0}
  m_GameObject: {fileID: 3551133497605437741}
  m_Enabled: 1
  m_EditorHideFlags: 0
  m_Script: {fileID: 11500000, guid: baff8732cd3074ef88b34f9cc487846d, type: 3}
  m_Name: 
  m_EditorClassIdentifier: 
  prefabId: 2589524704837146102
  localRefs:
    _Keys:
    - {fileID: 3551133497605437741}
    - {fileID: 3551133497605437738}
    - {fileID: 3551133497605437747}
    - {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0}
    - {fileID: 3551133497605437746}
    - {fileID: 2100000, guid: 308680fc3656cdb49aa30c04aae1eb87, type: 2}
    - {fileID: 3551133497605437749}
    - {fileID: 11500000, guid: 584a6981ec771fd408b67106b41520c4, type: 3}
    - {fileID: 3551133497605437748}
    - {fileID: 3551133497605437751}
    - {fileID: 3551133497605437750}
    - {fileID: 11500000, guid: 6757b231cedd544c583ef8aeaf773b2a, type: 3}
    - {fileID: 2800000, guid: 6da22d6bce08a4f3d86542bb903de689, type: 3}
    - {fileID: 3551133497605437737}
    - {fileID: 11500000, guid: 62359d80fdc0e4315ab6331b78ec5b90, type: 3}
    - {fileID: 2800000, guid: 1788ce7c914374d949486d9789c9f306, type: 3}
    - {fileID: 3551133497605437736}
    - {fileID: 11500000, guid: fe002ddb983f71d428c866a8b12576a3, type: 3}
    - {fileID: 3551133497605437739}
    - {fileID: 6526886289316523147}
    - {fileID: 11500000, guid: af5a943be97fb444ebdf3809e6b6a18c, type: 3}
    - {fileID: 5815164264897655508}
    - {fileID: 11500000, guid: cc2a1645d4f21874b8695dbf7d3f75d0, type: 3}
    - {fileID: -5412087637785792635}
    - {fileID: 1072280015}
    - {fileID: 11500000, guid: b6dc48c641bb39742af066b7a0250f33, type: 3}
    - {fileID: 553515302011869727}
    - {fileID: 11500000, guid: 790b43d784604f0cb9e2d88e5f84cc93, type: 3}
    - {fileID: 1320816415761612128}
    - {fileID: 4471341765190858015}
    - {fileID: 3420372509616674436}
    - {fileID: 8569970690093427225}
    - {fileID: 7452287288288554640}
    - {fileID: 3395317347510744762}
    - {fileID: 0}
    - {fileID: 2800000, guid: ec87f07ff08494d4788ef4d396a584f4, type: 3}
    - {fileID: 21300000, guid: ec87f07ff08494d4788ef4d396a584f4, type: 3}
    - {fileID: 9091304472107516300}
    - {fileID: 11500000, guid: a81a9e081a4afa64dae6b9d42bc38c9f, type: 3}
    - {fileID: 2800000, guid: 146ad7c4429fc764088d2a5139a2537d, type: 3}
    _Values: 7026289befe6eb5cd0801c42b0f6df11938bdb9d772e9d2df8acaa15933b0d5e05a397e92794c16849c1886cec8cfc1476fc3673fb52ab603daa5cbcc429366b8e42c2f2a10a1526b2bc19c649f6e56cb0968a8f72815a574ff826d1f17e2c731fc5d61dc009df21080c06d0b1104a6ae71026b76b71aa32f34cd04e9d913b3a91c96d5ab4c6de0e62e5be65cf18e733715a32aa0249e23e200a897d58ed3c3e5da69e451478d740d207cc693050c600f85947103f00304619d1c456c29e49502f4517bbf9ae012830079c685a991d2efc52978d49764718443f6b1b065d5b7522fdc275b62d470883f17c0a164c6f6fd28a85fea52cff5c89a8a01ac2d1fc334283b9cc72afb6245eb071b17cdacf658717bd5a81842a4504e113f173d2ba54eeb0c99292a3fd21d5605d569db0d851d83bd98ea9ae0f763b51b2385ab78473
--- !u!114 &-1079440984499430930
The long string behing the Values key is what gets change a lot in my project. I really want to find out which component exactly it is, but I don't seem to be able to decode that string. It looks like hexadecimal, but when trying to convert I only get either gibber or numbers that don't correspond to the localRefs values I see in the unity editor inspector window. Do you know how I can translate that string to the actual localRef IDs from unity?
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: Collab shows diff on localRefs when opening Unity

Post by Joel »

Hi there,

In your previous message you mentioned Auto Save, but this seems to be the metadata for the ES3Prefab Component. I still am not able to replicate the issue with ES3Prefab either, but it sounds like accessing an object is causing the reference for that object to change.

If you private message me your invoice number I'll send over an update which might work around this, if this is the case.
Do you know how I can translate that string to the actual localRef IDs from unity?
I'm afraid this would be a question for Unity rather than ourselves, as this relates to their Editor serialization.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Post Reply