Page MenuHomeFeedback Tracker

Update .meta GUID generation to take addon GUID as seed
Assigned, NormalPublic

Description

As per discussion on the Arma Reforger Discord with @reyhard the initial GUID for a newly created .meta files seems to be based only on the path inside the current addon. So two addons creating the same path generate the same GUID right now.

To avoid this conflict the generation must be updated to maybe use the addon GUID (what is inside addon.gproj) as a seed. Or it precedes the current input path in the generation code e.g. GenerateGUID(addon.GetGUID() + "_" + file.GetPath())
That would mean that a GUID is unique per addon per file or at least the chance of a collision is drastically minimized.

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce
  1. Create a helloworld.txt in mod A
  2. Create a helloworld.txt in mod B
  3. Compare both mod's helloworld.txt.meta files. They have the same GUID.

Event Timeline

Arkensor created this task.Jun 13 2022, 3:19 PM
Geez changed the task status from New to Assigned.Jun 20 2022, 5:38 PM