Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Rulaman on Wed 15/09/2010 21:29:16

Title: Game.agf changes by open and close (save) a game
Post by: Rulaman on Wed 15/09/2010 21:29:16
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.

(http://img825.imageshack.us/img825/1897/gameagf.png) (http://img825.imageshack.us/i/gameagf.png/)

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
Title: Re: Game.agf changes by open and close (save) a game
Post by: Pumaman on Sun 19/09/2010 19:40:03
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.
Title: Re: Game.agf changes by open and close (save) a game
Post by: Rulaman on Mon 20/09/2010 19:48:03
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.

Title: Re: Game.agf changes by open and close (save) a game
Post by: Pumaman on Sun 17/10/2010 18:52:27
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?
Title: Re: Game.agf changes by open and close (save) a game
Post by: Rulaman on Wed 20/10/2010 19:25:05
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.

Title: Re: Game.agf changes by open and close (save) a game
Post by: Endres on Thu 21/10/2010 10:51:53
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. ;)
Title: Re: Game.agf changes by open and close (save) a game
Post by: Pumaman on Sun 24/10/2010 20:17:22
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.