Knuckle Cracker

Knuckle Cracker => Support => Topic started by: hi on May 22, 2011, 08:04:54 AM

Title: Influence of saving and loading on destruction of Phantoms
Post by: hi on May 22, 2011, 08:04:54 AM
Hi,
Situation: A Phantom Coil attacks a few Phantoms and manages to kill them.
In the progress of the destruction of the Phantoms I save and later load the game again. This time the Phantom Coil does not manage to kill them.

Video (42secs):
http://www.youtube.com/watch?v=TB9eflCxlvU
Title: Re: Influence of saving and loading on destruction of Phantoms
Post by: UpperKEES on May 22, 2011, 08:17:33 AM
Good catch!

Apparently the health of phantoms isn't being stored correctly:

(http://knucklecracker.com/forums/index.php?action=dlattach;topic=6979.0;attach=4058;image)

When saving both phantoms had less then 50% health.

(http://knucklecracker.com/forums/index.php?action=dlattach;topic=6979.0;attach=4060;image)

After reloading the game they are back at 100% again.
Title: Re: Influence of saving and loading on destruction of Phantoms
Post by: Grauniad on May 22, 2011, 11:42:33 AM
Oh boy, I wonder if Virgil already saves health status in the save file? Or will this nuke all save files out there?  Hmm.. does it do the same on, for instance, shield health? Or done health?
Title: Re: Influence of saving and loading on destruction of Phantoms
Post by: UpperKEES on May 22, 2011, 11:53:16 AM
Quote from: Grauniad on May 22, 2011, 11:42:33 AM
Or will this nuke all save files out there?

No problem when attributes are being saved with an XML-tag, like in CW1.
Title: Re: Influence of saving and loading on destruction of Phantoms
Post by: Ebon Heart on May 22, 2011, 12:43:08 PM
Hopefully that's fixed before people figure out how to exploit it.
Title: Re: Influence of saving and loading on destruction of Phantoms
Post by: Fisherck on May 22, 2011, 12:55:31 PM
Quote from: Ebon_Heart on May 22, 2011, 12:43:08 PM
Hopefully that's fixed before people figure out how to exploit it.

This seems to be a very negative scenario. I do not see how this could be exploited. :P
Title: Re: Influence of saving and loading on destruction of Phantoms
Post by: UpperKEES on May 22, 2011, 12:57:30 PM
Quote from: Fisherck on May 22, 2011, 12:55:31 PM
I do not see how this could be exploited.

By recommending others to save their game more frequently, especially when under phantom attack (just to be sure). ;D
Title: Re: Influence of saving and loading on destruction of Phantoms
Post by: Ebon Heart on May 22, 2011, 01:43:37 PM
Does it work for units too? Theoretically, you could give your LS infinite health using this same method if it does. Let it take some damage, save your game, then load it again and let it destroy more drones. Something like that.
Title: Re: Influence of saving and loading on destruction of Phantoms
Post by: thepenguin on May 22, 2011, 01:49:42 PM
Quote from: Ebon_Heart on May 22, 2011, 01:43:37 PM
Does it work for units too? Theoretically, you could give your LS infinite health using this same method if it does. Let it take some damage, save your game, then load it again and let it destroy more drones. Something like that.

unfortunately, no, virgil fixed it
Title: Re: Influence of saving and loading on destruction of Phantoms
Post by: Ebon Heart on May 22, 2011, 01:50:38 PM
So it just does that with phantoms then?
Title: Re: Influence of saving and loading on destruction of Phantoms
Post by: thepenguin on May 22, 2011, 01:55:57 PM
Quote from: Ebon_Heart on May 22, 2011, 01:50:38 PM
So it just does that with phantoms then?

and about 15 other things, until virgil fixed them :P
Title: Re: Influence of saving and loading on destruction of Phantoms
Post by: UpperKEES on May 22, 2011, 02:02:38 PM
Quote from: thepenguin on May 22, 2011, 01:55:57 PM
and about 15 other things, until virgil fixed that :P

Why do you say that? Everything else works just fine. The health of drones for instance is being saved as it should be.
Title: Re: Influence of saving and loading on destruction of Phantoms
Post by: thepenguin on May 22, 2011, 03:00:08 PM
Quote from: UpperKEES on May 22, 2011, 02:02:38 PM
Quote from: thepenguin on May 22, 2011, 01:55:57 PM
and about 15 other things, until virgil fixed that :P

Why do you say that? Everything else works just fine. The health of drones for instance is being saved as it should be.

works = present tense
fixed = past tense
everything works fine now, because virgil fixed them.
Title: Re: Influence of saving and loading on destruction of Phantoms
Post by: knucracker on May 22, 2011, 03:48:02 PM
Good catch.  Easy fix as well.
I do use XML, so it is easy to add the extra field and not break previous saves.

This will be fixed in the next update (which will include other goodies as well)