Skip to content

Basic: EggHatcher

Ryder edited this page Jul 13, 2021 · 4 revisions

EggHatcher

Hatch eggs from your boxes. This is the counterpart to EggFetcher2.

This program does not use bike boosts, but is nevertheless roughly the same speed as brianuuuSonic’s AutoController egg hatcher. For fastest egg hatching, you should use EggCombined2 and EggSuperCombined2 once have familiarized yourself with this program. This program is no longer optimized since you should be using the aforementioned combined egg hatchers for speed.

This program will tolerate early hatching eggs as long as they don't hatch immediately to prevent the character from reaching the bridge. Thus EggHatcher is mainly used to clean up eggs of unknown remaining step-count.

Instructions:

  • Casual mode is off.
  • Your text speed must be set to fast.
  • Nicknaming needs to be off.
  • Your party must have exactly 1 Pokémon.
  • The one Pokémon in your party MUST be a flame body (or similar) Pokémon.
  • The menu icons are in their default locations:
    • The Town Map must be in the 2nd row on the far left.
    • The Pokémon option must be in the 1st row, 2nd from the left.
  • The cursor in the menu is over the "Pokémon" option.
  • You must be on Route 5.
  • You must be on your bike.
  • You must be in the overworld. (not in the menu)
  • There is nothing in front of you that can be interacted with.
  • Start the program in the Change Grip/Order Menu.

Box Setup:

  • Place entire boxes filled with eggs consecutively*.
  • You must be on the first box of eggs.

*It is okay to have non-eggs mixed in with eggs. The only requirement is that first row of each box is occupied.

Required Parameters:

  • BOXES_TO_HATCH: You MUST set this to the # of boxes you wish to hatch. Otherwise, you either won't hatch all the eggs you want, or the program goes crazy if you run out of eggs.
  • STEPS_TO_HATCH: You MUST set this to the correct step-count for the Pokémon you are hatching. If this is set too small, the program will fail and may unintentionally start a trade. (see Precautions)

The program will hatch eggs in batches of 5 (one column at a time). Once a box is complete, it moves to the next box. It will continue until it has hatched N boxes where N is specified by BOXES_TO_HATCH.

Safety Recommendations:

  • Make sure you're offline. (see below)
  • Don't run this program unattended if any eggs are close to hatching.

As a precaution, it is strongly recommended to be offline. In the event that the eggs do not finish hatching before the program enters the storage system, there is a high chance that it will go into YCOMM and start a trade.

This program is not as reliable when the eggs hatch before the character can travel to the safe location on the bridge. Therefore, it is not recommended to run this program unattended when cleaning up eggs of unknown origin and unknown remaining step-count.

Options:

This program uses TOLERATE_SYSTEM_UPDATE_MENU_FAST to bypass the system update window.

In addition to the main options below, there are more global options that can be configured if you encounter problems.

Boxes of Eggs to Hatch:

const uint8_t   BOXES_TO_HATCH      =   3;

Hatch this many boxes of eggs.

Egg Step-Count:

const uint16_t  STEPS_TO_HATCH      =   5120;

The number of steps needed to hatch the eggs. Look up the value on Serebii.

Advanced Settings:

These are advanced settings. You shouldn’t need to touch these unless something isn’t working and you’re trying to debug it yourself.

Safety Time:

const uint16_t SAFETY_TIME      =   8 * TICKS_PER_SECOND;

Additional time added to the spinning. If any shinies are hatched, they will eat into this safety buffer along with any other unexpected slowdowns. Hatching a shiny takes 2 seconds longer than a non-shiny.

If you see that the program is going into Y-COMM or there is less than 5 seconds of extra spinning after the last egg in the batch, please report this as a bug. As a temporary work-around, you can increase this number.

Hatch Delay:

const uint16_t HATCH_DELAY      =   88 * TICKS_PER_SECOND;

Total animation time for hatching 5 eggs when there are no shinies.

Clone this wiki locally