UFO:Alien Invasion

Technical support => Bugs in stable version (2.5) => Topic started by: cevaralien on July 06, 2014, 10:50:53 pm

Title: Figthers unreparable.
Post by: cevaralien on July 06, 2014, 10:50:53 pm
When the fighters are at 50% of damage, the craft doesn´t repair. I must sell the aircraft and buy another one.

I think this is a bug.
Title: Re: Figthers unreparable.
Post by: anonymissimus on July 07, 2014, 05:08:43 pm
Never happened to me, but if they repair if they are below 50% and continue to do so once they reach 50% you could carefully get them some more damage instead of selling.
Title: Re: Figthers unreparable.
Post by: cevaralien on July 08, 2014, 02:58:36 am
Yeah, but less than 50% is a dead fighter normaly. So, i prefer to sell the craft.
Title: Re: Figthers unreparable.
Post by: cevaralien on August 07, 2016, 04:43:45 pm
Hi.

I retake this post because i had the problem of 2014. I begun a new game and i notice that my craft aren't repairing more than 50% of the initial health. This is a bug or is a natural condition of the game?
Title: Re: Figthers unreparable.
Post by: geever on August 07, 2016, 06:41:45 pm
The aircraft are slowly repaired while idle in the hangar. Could you upload the savegame so I can check?

-geever

Title: Re: Figthers unreparable.
Post by: cevaralien on August 12, 2016, 05:15:05 am
Sure, no problem.

https://www.dropbox.com/sh/sm8u0ua16tbjq85/AABv_YSjJb_Pa7wOgO_MhZzna?dl=0
Title: Re: Figthers unreparable.
Post by: geever on August 14, 2016, 04:13:17 pm
Sure, no problem.

https://www.dropbox.com/sh/sm8u0ua16tbjq85/AABv_YSjJb_Pa7wOgO_MhZzna?dl=0

@cevaralien are you playing a modded version of the game? Asking because your savegame is not compatible with the main game (neither 2.5 nor 2.6 versions).

-geever
Title: Re: Figthers unreparable.
Post by: cevaralien on August 17, 2016, 04:49:19 am
Yes, it is a mod. I'm playing 2.5, Linux version, but my own mod.
Title: Re: Figthers unreparable.
Post by: cevaralien on August 20, 2016, 11:54:56 pm
Do you need a copy of my mod, really? I was waiting for publishing, but, here it is:

https://www.dropbox.com/s/wrhw7byj2zhkpdt/Proyect%20Reality%20V2.zip?dl=0


Thanks for the help.

Title: Re: Figthers unreparable.
Post by: geever on August 24, 2016, 12:20:03 am
Sorry for the late answer, I was busy with RL. Actually first, I wanted to fix the crash that happen on loading the savegame, then investigate the repair issue. The later has turned out to be a rounding issue, I fixed both issues in master (2.6-dev).

-geever
Title: Re: Figthers unreparable.
Post by: geever on August 24, 2016, 12:35:58 am
Backported the fixes to ufoai_2.5 branch too.

-geever
Title: Re: Figthers unreparable.
Post by: cevaralien on September 04, 2016, 04:37:43 pm
Ok. Thanks.
Title: Re: Figthers unreparable.
Post by: cevaralien on December 23, 2016, 02:11:32 am
Hi friends.

I know why this bug is happening. If you mod the aircraft armour shield value, giving a number below +4, the game take it as a percentage. For example, i changed the value to +2 but the game shows 100%, not +2. When i put again on +4, the game show that value and the aircraft repair itself at base.

So, if you mod the aircraft shield armour, don't give values below +4.

Title: Re: Figthers unreparable.
Post by: cevaralien on December 25, 2016, 02:27:41 am
Well...

The game was working well, but... again, my aircraft isn't repairing.

  :-[
Title: Re: Figthers unreparable.
Post by: cevaralien on December 30, 2016, 02:55:47 am
Ok, i found the problem.

When the damage of the aircraft is changed to a value below 100, the craft don't repair. I search the source code and i found that the repair ecuation is divided by 100, so, i think it is a "problem" with the aircraft damage modding.