Structured file is writing new values instead of overwriting


I’m having trouble using a structured file to save the top 3 high scores from a scene. Every time the scene is run, the values are being written in the XML separately. In other words, instead of overwriting the existing scores, it just creates a separate set of scores. I can’t figure out what I’m doing wrong.


After playing the level/scene 3 times:

Good catch, I hadn’t noticed it becasue it works fine for web :confused:

It also works fine for a single value. I use another structured file in the same scene to save the number of stars earned (how well you did) and it works properly. It overwrites the value each time.

I have found the problem, you can’t use numbers as the first character in a group name. Instead “1st”, “2nd”, “3rd”, use “pos1”, “pos2”, “pos3”, or anything you like, but without a number in the first character, that’s all :slight_smile:

Thank you!! I later noticed that it wasn’t even reading the values and I was going crazy trying to figure it out. Of course during all my tests I used numbers as the first character so nothing worked… Thanks again!