Fatal FD-related glitch

Discuss anything about the wonderful GBC Telefang games here!
Post Reply
Blaziken257
Posts: 983
Joined: Fri Dec 22, 2006 11:52 am

Re: Fatal FD-related glitch

Post by Blaziken257 »

Telefang has a glitch related to FD. As is general knowledge, FD is an indicator of how "friendly" a Denjuu is towards you, and this has an effect in battles, depending on the Denjuu's personality. In general, the higher the FD, the less likely it is for a Denjuu to misbehave due to its personality, unless it is a "neutral" personality that does nothing. Also, as some people know, under normal circumstances, the FD caps out at 100.

Well, there's a glitch that increases it. When a Denjuu calls you and asks you questions, this can affect its FD, depending on how you answer the questions. There is an oversight here: There is no check to see if the FD increases past 100. So it is possible to increase your Denjuu's FD to above 100 in this way. According to Kimbles, this page mentions this bug, on the bottom of the page.

Why is this a bad thing? Well, it has to do with the formula for the probability of behaving well in a battle. For personalities where the Denjuu refuses to attack, the formula for the probability is ((FD+155) mod 256)/256. (For FDs at 100 or less, like in normal circumstances, this can be simplified to (FD+155)/256.) For example, if the FD is 50, then the probability is ((50+155) mod 256)/256 = (205 mod 256)/256 = 205/256 = 80.1% chance of attacking. So if the FD for a Denjuu with this personality exceeds 100, then an overflow occurs, causing the Denjuu to have a very low chance of attacking! For example, if the FD was 104, then the probability would be ((104+155) mod 256)/256 = (259 mod 256)/256 = 3/256 or a very low 1.2% chance!

For other personalities, such as the Denjuu prone to being late, or attacking on its own, the probability is ((2*FD+55) mod 256)/256. For FDs at 100 or less, this can be simplified to (2*FD+55)/256. For example, for an FD of 50, the probability is: ((2*50+55) mod 256)/256 = (155 mod 256)/256 = 155/256 = 60.6% chance of behaving normally (e.g. arriving to battle on time). Like the other formula, this overflows when the FD exceeds 100 (and it overflows again when it exceeds 228, not that it's likely to get that high). So, for example, if you have a Denjuu that arrives late frequently and it has an FD of 105, then the probability of arriving on time is ((2*105+55) mod 256)/256 = (265 mod 256)/256 = 9/256 = 3.5%!

So if you have a Denjuu that has an FD that is at or very close to 100, you'd better hope it doesn't call you and ask you questions, because the bottom line is that you don't want a Denjuu with an FD above 100. And if it does, try to answer them wrong (although this is hard if you don't know Japanese). If you have a Denjuu with an FD above 100, I think you can work around this problem by making it lose enough times (which shouldn't be too hard) so that it lowers back down to 100.

Also, this bug doesn't affect Denjuu with neutral personalities as far as I know, since they don't affect the Denjuu in battle.

I hope this bug isn't also in Telefang 2...
Sherkel(imported)
Posts: 74
Joined: Mon Dec 28, 2009 10:07 am

Re: Fatal FD-related glitch

Post by Sherkel(imported) »

I must say I find this quite interesting.
Post Reply