Author Topic: Game.agf changes by open and close (save) a game  (Read 971 times)

Hi,

I have a strange behaviour.
I open AGS and load a game. Without any changes i close it and Click "yes" to save the game.

When I run a diff between the last change and the current version of the game.agf it gaves me 126 changes.



Why is this?
I get two errors of the first one

--         <ScriptName>aMusic1</ScriptName>
--         <SourceFileName>music\music1.mid</SourceFileName>
++         <SourceFileName>music\music1.mid</SourceFileName>
++         <ScriptName>aMusic1</ScriptName>

and 124 of audio-date changes

--         <FileLastModifiedDate>2008-11-08 18:16:30Z</FileLastModifiedDate>
++         <FileLastModifiedDate>2008-11-08 19:16:30Z</FileLastModifiedDate>

only one seconds or so.

It is annoying when you set your files under source control and want to see the diff, when you add rooms or sprites or something else.

Greetings
Rulaman
« Last Edit: 20 Sep 2010, 19:48 by Rulaman »
Zak: Komm mit mir Sushi.
Zak: Come with me Sushi.

Pumaman

  • Creator of AGS
  • Administrator
  • Mittens Monarch
  • I sense danger.
    • Lifetime Achievement Award Winner
    •  
Re: Game.agf changes by open and close (save) a game
« Reply #1 on: 19 Sep 2010, 19:40 »
I can appreciate that this is annoying if you're using a source control diff. The way that AGS writes the Game.agf file, there is no gaurantee about the order that elements will come out in this sort of situation; so there's no easy way of changing it.

Re: Game.agf changes by open and close (save) a game
« Reply #2 on: 20 Sep 2010, 19:48 »
Thanks for your answer.

The first point is not my main problem but now I know about this behaviour.

What about the 124 time changes?
What reason is this?


Edited the wrong line in the second diff in my first post.

--         <FileLastModifiedDate>2008-11-08 18:16:30Z</FileLastModifiedDate>
++         <FileLastModifiedDate>2008-11-08 19:16:30Z</FileLastModifiedDate>



I see it is exact one hour.

Zak: Komm mit mir Sushi.
Zak: Come with me Sushi.

Pumaman

  • Creator of AGS
  • Administrator
  • Mittens Monarch
  • I sense danger.
    • Lifetime Achievement Award Winner
    •  
Re: Game.agf changes by open and close (save) a game
« Reply #3 on: 17 Oct 2010, 18:52 »
That looks like some sort of daylight-savings-offset problem with the times, it probably shouldn't be happening. Does it increase by an hour every time you save it, or just the first time after adding the sounds?

Re: Game.agf changes by open and close (save) a game
« Reply #4 on: 20 Oct 2010, 19:25 »
Hi Chris,

I do the following to reproduce this behaviour.
I open AGS 3.2 and press F7. Then I close AGS and get an increse by one hour. (122 changes)

I checked in my file (RCS) and open AGS again. F7 -> close and the same error.
This time, minus one hour. (122 changes).

The third time there are only 70 changes, but the same behaviour.

I didn't add some files or do something.


PS: I also see changes over an hour.

Zak: Komm mit mir Sushi.
Zak: Come with me Sushi.

Endres

    • I can help with scripting
    •  
    • I can help with translating
    •  
    • I can help with web design
    •  
Re: Game.agf changes by open and close (save) a game
« Reply #5 on: 21 Oct 2010, 10:51 »
How good, that AGS 3.2 is still in Beta-Stage. Because for sure it has to do something with the very strange new Sound System. ;D

Hi Rulaman BTW. ;)

Pumaman

  • Creator of AGS
  • Administrator
  • Mittens Monarch
  • I sense danger.
    • Lifetime Achievement Award Winner
    •  
Re: Game.agf changes by open and close (save) a game
« Reply #6 on: 24 Oct 2010, 20:17 »
Interesting, looks like sometimes the daylight savings offset is included in the saved time, and other times not.

I might look into it at some point.