Editing Glitches

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 22: Line 22:
This glitch forces Denjuu with specific personalities to misbehave.
This glitch forces Denjuu with specific personalities to misbehave.


* One should get a Denjuu with either a [[File:T1-p09.gif]] Irritable personality (おこりんぼ), a [[File:T1-p10.gif]] Hotheaded personality (ちょーおこりんぼ) (both of which cause the Denjuu to sometimes use the first move automatically), a [[File:T1-p05.gif]] Stubborn personality (わがまま), or a [[File:T1-p06.gif]] Selfish personality (ちょーわがまま) (both of which cause the Denjuu to sometimes not attack at all).
* One should get a Denjuu with either a short-tempered personality (おこりんぼ), a very short-tempered personality (ちょーおこりんぼ) (both of which cause the Denjuu to sometimes use the first move automatically), a selfish personality (わがまま), or a very selfish personality (ちょーわがまま) (both of which cause the Denjuu to sometimes not attack at all).
* The player should select "Fight."
* The player should select "Fight."
* Next, the player should press B to return to the Fight/Flee screen. Each time this is done, there is a chance that the Denjuu will attack on its own (if it has a [[File:T1-p09.gif]] Irritable/ [[File:T1-p10.gif]] Hotheaded personality) or not attack at all (if it has a [[File:T1-p05.gif]] Stubborn/ [[File:T1-p06.gif]] Selfish personality).
* Next, the player should press B to return to the Fight/Flee screen. Each time this is done, there is a chance that the Denjuu will attack on its own (if it has a short-tempered/very short-tempered personality) or not attack at all (if it has a selfish/very selfish personality).
* If this doesn't happen, then the player should repeat the above two steps until it does.
* If this doesn't happen, then the player should repeat the above two steps until it does.


This occurs because every time the Fight/Flee screen is shown, there is a random chance that these four personalities will cause the Denjuu to use whatever move it wants/not attack at all.
This occurs because every time the Fight/Flee screen is shown, there is a random chance that these four personalities will cause the Denjuu to use whatever move it wants/not attack at all.


==== Personality probability bug ====
==== Personality probability glitch ====


Due to a glitch, a Denjuu is more likely to have a [[Image:T1-p01.gif]] Relaxed (のんびり) personality than any other personality. There is a 14% chance of having a [[Image:T1-p01.gif]] Relaxed personality and an 8% chance of having any other personality. This is because the game uses a random 8-bit number (0-255) for generating random events. However, the problem here is that if the random number comes up between 240 to 255, the Denjuu will have the "default" [[Image:T1-p01.gif]] Relaxed personality, because the programmers only considered the outcomes from 0 to 240 (0-19 represents the first personality, [[Image:T1-p01.gif]] Relaxed, 20-39 represents the second personality, [[Image:T1-p02.gif]] Carefree, and so on).
Due to a glitch, a Denjuu is more likely to have a Relaxed (のんびり) personality than any other personality. There is a 14% chance of having a Carefree personality and an 8% chance of having any other personality. This is because the game uses a random 8-bit number (0-255) for generating random events. However, the problem here is that if the random number comes up between 240 to 255, the Denjuu will have the "default" Carefree personality, because the programmers only considered the outcomes from 0 to 240 (0-19 represents the first personality, Carefree, 20-39 represents the second personality, Relaxed, and so on).


==== Raise FD past 100 ====
==== Raise FD past 100 ====
Line 39: Line 39:
==== Frequently misbehaving Denjuu ====
==== Frequently misbehaving Denjuu ====


If a Denjuu with an FD greater than 100 (due to the above glitch) has the following personalities below, it can very frequently misbehave, depending on the FD and personality. Normally, FD is only intended to fall between 0-100, so an FD value above 100 can cause an integer overflow.
If a Denjuu with an FD greater than 100 (due to the above glitch) has any of the following personalities: Relaxed (のんびり), Carefree (ちょーのんびり), Careless (あわてもの), Oblivious (ちょーあわてもの), Timid (おくびょう), Cowardly (ちょーおくびよう), Tense (おこりんぼ), Irritable (ちょーおこりんぼ), Selfish (わがまま), or Stubborn (ちょーわがまま), it can misbehave very frequently, depending on its personality -- even more than it would if its FD were 0. Denjuu with personalities Faithful (りちぎ) and Loyal (ちょーりちぎ) are unaffected by the glitch.


The following personalities use the following formula for behaving well: (FD*2+55)/256
If it has the personalities Relaxed (のんびり), Carefree (ちょーのんびり), Careless (あわてもの), Oblivious (ちょーあわてもの), it has a very high chance that it will arrive late with this glitch. Denjuu with the personalities Timid (おくびょう) or Cowardly (ちょーおくびよう) will instead have a very high rate of running away. If a Denjuu has the personalities Tense (おこりんぼ) or Irritable (ちょーおこりんぼ), it will almost always use the first move. In all of these cases, normally the probability of behaving well is: (FD*2+55)/256. However, due to integer overflow, the formula becomes (FD*2-201)/256 when 100 < FD <= 228, and (FD*2-457)/256 when FD > 228. Therefore, if a Denjuu's FD is greater than, but very close to, 100, then it will have less than 1% chance of behaving.


* [[Image:T1-p01.gif]] Relaxed (のんびり)
If it has the personalities Selfish (わがまま) or Stubborn (ちょーわがまま), then it will have a very low chance of attacking (a special case occurs at FD = 101, where the chances are 0%). Normally, the probability of behaving is (FD+155)/256. However, integer overflow causes this formula to change to (FD-101/256) when FD > 100, making the probability very low at values just above 101.
* [[Image:T1-p02.gif]] Carefree (ちょーのんびり)
* [[Image:T1-p03.gif]] Careless (あわてもの)
* [[Image:T1-p04.gif]] Oblivious (ちょーあわてもの)
* [[Image:T1-p07.gif]] Timid (おくびょう)
* [[Image:T1-p08.gif]] Cowardly (ちょーおくびょう)
* [[Image:T1-p09.gif]] Irritable (おこりんぼ)
* [[Image:T1-p10.gif]] Hotheaded (ちょーおこりんぼ)


Due to integer overflow, the formula is effectively (FD*2-201)/256 when 100 < FD <= 228, and (FD*2-457)/256 when FD > 228.
{{stub}}
 
For example, if a Denjuu's FD is 101, this results in a 1/256 chance of behaving well, meaning a 255/256 chance of either arriving late (Relaxed, Carefree, Careless, or Oblivious), running away (Timid or Cowardly), or using the first move (Irritable or Hotheaded).
 
By comparison, if a Denjuu has an FD of 0, it has a 55/256 chance of behaving well, meaning a 201/256 chance of misbehaving. If a Denjuu has an FD of 100, it has a 255/256 chance of behaving well, meaning a only a 1/256 chance of misbehaving.
 
The following personalities use the following formula for behaving well: (FD+155)/256
 
* [[Image:T1-p05.gif]] Selfish (わがまま)
* [[Image:T1-p06.gif]] Stubborn (ちょーわがまま)
 
Due to integer overflow, the formula is effectively (FD-101/256) when FD > 100.
 
For example, if a Denjuu's FD is 101, it has a 0/256 chance of behaving well, meaning that a Selfish or Stubborn Denjuu will '''never''' attack.
 
By comparison, if a Denjuu has an FD of 0, it has a 155/256 chance of attacking. If it has an FD of 100, it will '''always''' attack.
 
Denjuu with [[Image:T1-p11.gif]] Honest (りちぎ) and [[Image:T1-p12.gif]] Righteous (ちょーりちぎ) personalities are unaffected by the glitch due to lacking negative traits.
 
=== Field Guide completion glitch ===
 
If the Field Guide is completed when playing on a monochrome Game Boy, the graphics are garbled when the game attempts to congratulate the player. This is because the game does not check if it is being played on a monochrome Game Boy or not, so it tries to set attributes (i.e. color palettes of each tile) by writing to a RAM bank that does not exist on the original Game Boy, and ends up overwriting the tile map instead. [https://twitter.com/obskyr/status/1139534782424125441]
[[File:DMG Zukan Completion.png|left]]
<br clear="all" />
 
=== 99 items glitch ===
 
They player can only carry 99 of any item. However, when attempting to buy a 100th item, the shop will charge for it, even though the player cannot add it to their inventory, wasting money in the process. This bug was fixed in Telefang 2; shops will not sell an item that the player cannot carry more of.
 
=== Eryngo sprite error in Toulipa Antenna Tree ===
 
In a certain acre in Toulipa Antenna Tree (1F), there is a [[Gaiurus]] in Power Version and an [[Eryngo]] in Speed Version. However, in both versions, this Denjuu has a Byakubu sprite in the overworld, even though it should be an Eryngo sprite in Speed Version.
 
<gallery widths="160" heights="144">
File:Toulipa Antenna Tree Speed Eryngo 1.png|This Eryngo looks like a Gaiurus...
File:Toulipa Antenna Tree Speed Eryngo 2.png|...But when fighting him, it turns out to be an Eryngo in Speed Version.
</gallery>
 
=== VS battle disconnect graphical glitch ===
 
In a VS battle, if one player selected up to 3 Denjuu and is asked to confirm, and the other player resets the game by pressing A+B+Select+Start, the player that selected his or her Denjuu will see a minor graphical glitch when he is disconnected. The cursor sprite that is used to confirm or cancel the Denjuu selection remains even when the player is informed that he/she is disconnected.
 
<gallery widths="160" heights="144">
File:Telefang_VS_Selection.png
File:Telefang VS Disconnected.png
</gallery>
 
=== Shop text glitch ===
 
If Shigeki stands in a specific spot in a shop, vertically, and buys an item, the text box on the top-left has glitches and shows part of the text in the bottom text box.
 
[[File:Telefang 1 Shop Text Bug.png]]
 
=== Overworld lag ===
 
When the phone rings in the overworld, if the player answers it on a specific frame, the game can lag, causing unintended effects, such as NPCs disappearing, and can even lead to arbitrary code execution. This can happen because normally, when either opening the map with Start, entering a building, or triggering a Telefang battle, the game writes temporarily bytes for sprites (including Shigeki and NPCs) from main RAM to SRAM, which are later written back to main RAM when a battle ends or the map is closed. Lag can prevent all of the bytes being written before an interrupt occurs. This glitch can be abused in speedruns, including a tool-assisted speedrun that beats the game in just over 5 minutes. [https://tasvideos.org/4437M]
 
(TODO: Elaborate on the details more, including how the arbitrary code execution works.)
Please note that all contributions to Wikifang are considered to be released under the Attribution-NonCommercial-ShareAlike 3.0 Unported (see Wikifang:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)