Unhandled Exception issue

public override void SerializeReferences (GraphSerializationContext ctx) {
  	// TODO: Deduplicate code
  	if (connections == null) {
  		ctx.writer.Write(-1);
  	} else {
  		ctx.writer.Write(connections.Length);
  		for (int i = 0; i < connections.Length; i++) {
  			ctx.SerializeNodeReference(connections[i]);
  			ctx.writer.Write(connectionCosts[i]);
  		}
  	}
  }
  /** Cached to avoid allocations */
  static readonly System.Version VERSION_3_8_3 = new System.Version(3, 8, 3);
  public override void DeserializeReferences (GraphSerializationContext ctx) {
  	// Grid nodes didn't serialize references before 3.8.3
  	if (ctx.meta.version < VERSION_3_8_3)
  		return;
  	int count = ctx.reader.ReadInt32();
  	if (count == -1) {
  		connections = null;
  		connectionCosts = null;
  	} else {
  		connections = new GraphNode[count];
  		connectionCosts = new uint[count];
  		for (int i = 0; i < count; i++) {
  			connections[i] = ctx.DeserializeNodeReference();
  			connectionCosts[i] = ctx.reader.ReadUInt32();
  		}
  	}
  }

Also - It looks greyed out - probably because have ASTAR_GRID_NO_CUSTOM_CONNECTIONS on

Ah, you are right. I misread the version in the file.

I am not sure why those GUIDs are zero, but I tried loading it and then saving it again and that saved it with unique GUIDs. So try doing that and if it still saves the graphs with zero GUIDs then that must be a bug in your version that has since been fixed. Regardless you do not need to worry about this warning.

Thank you. I will update you on the other bug.
When is the new version up?

Ok.

Not sure. As soon as I have written all the compatibility code.

1 Like

Hello again! Itā€™s been quite a few months and versions but iā€™m still getting lots of the Guid Conflict when importing graphs additively. Imported graph will get a new Guid warning. Any solution for that?

Hi

Have you exported the graphs again or are you using the same graph data as before?

I exported the graphs again

Think you could send the graph files again?

1 Like

Sending now. Btw iā€™m on version 4.0.10

Hi

Those graphs donā€™t load properly for me (even when enabling ASTAR_NO_ZIP). Have you made any local modifications to your version of the package?

Hmā€¦ Those donā€™t load properly for me either.
Are you sure they load correctly without any error messages (except the guid conflict) for you if you try to use the ā€œSave & Load Tab -> Load from fileā€ button?

Yes it loads perfectly but throws the guid conflict warning when i use the load from file.