Wormhole X-Treme!

They locate Martin, who having once again lost his memories has created a television series called Wormhole X-Treme!, seemingly based upon the top secret Stargate Program.

An alien space ship has been detected heading towards Earth, and based upon its energy signature Major Samantha Carter (Amanda Tapping) believes that it belongs to the same species of people as Martin Lloyd, who Stargate Command set about locating.

They find Martin, who has become the creative consultant on a science fiction television show he sold called Wormhole X-Treme!, which bears a striking resemblance to the real life top secret Stargate Program.

Believing that Martin has once again had his memory erased, O'Neill searches his trailer and uncovers numerous vitamins, which he relays back to General Hammond (Don S. Davis) at Stargate Command, who dispatches the rest of SG-1 to assist.

The pair are soon freed by Teal'c (Christopher Judge) and Martin realizes that he needs to help Tanner's group escape Earth by getting the remote device for their ship.

Meanwhile NID Agent Barrett (Peter Flemming), whose men have apprehended Carter and Daniel, tells them that they plan on seizing the space ship, and soon receive a tip as to Martin's whereabouts.

He imagined the character of Martin Lloyd, who had previously appeared in the season four episode "Point of No Return" as having once again lost his memory, leading him to make a television series like SG-1.

The 1999 Science fiction comedy film Galaxy Quest enthused Wright and the shows writers to instead craft a story that parodied Stargate SG-1.

[10] As writing progressed it was the idea that Martin Lloyd had purposely decided to erase his own memory which "made certain events fall into place" for Mallozzi and Mullie.

Peter Deluise's earlier directorial decision to ask the props master to "Make the kiwi look alien", suggesting they be painted red during the production of "Beneath the Surface", was written directly into "Wormhole X-Treme!"

[12][6][11] The president of MGM Television, Hank Cohen, was also mocked for his advocacy that the show introduce a "sexy" female alien character, which ultimately took the form of Anise portrayed by actress Vanessa Angel.

This included Wright's idea for a "huge, knock down, full-on, comically-big fight scene" showing Carter and Daniel's escape from the NID.

Robert Lewis and Mar Andersons reprise their roles from "Point of No Return" as the alien refugees hiding on Earth, Dr. Peter Tanner and Bob.

As well as imbuing the character with "Shatnerisms," Michael sought to portray Danning as an "over-the-top TV hero" and Marlowe as a "pissy, self-absorbed actor".

[20] For the role, Michael DeLuise's hair was dyed slightly grey and two cuts were made into his right eyebrow as homage to the single slit in O'Neill's.

[6][11] Christopher Judge's stand-in Herbert Duncanson was cast as Douglas Anders, who portrays Grell the Robot within Wormhole X-Treme!, a parody of the character of Teal'c.

[6] Jill Teed was cast in the role of Yolanda Reese, who portrays the character of Stacy Monroe in Wormhole X-Treme!, a parody of Samantha Carter.

"[6] Christian Boucher was selected to parody Dr. Daniel Jackson, portraying the character of Raymond Gunne who plays Dr. Levant in Wormhole X-Treme!.

[21] Benjamin Immanuel, Don Thompson, Laura Drummond, Kiara Hunter and Keath Thome respectively play the parts of Producer, Props Guy, Security Guard, Alien Princess and Head SF.

[11] DeLuise opted to fill the Bridge backlot with as many easter eggs as he could, including props from Stargate SG-1 such as the Asgard puppet and a Goa'uld Death Glider model.

[22] He also looked to Disneyfy the backlot, hoping to give it a "'circus-type' atmosphere" and make it far more colourful and alive through having crew everywhere, added set dressing and saturating the scenes in post-production.

[23] For the warehouse being used by the NID, production took over a car dealership across the street from Bridge Studios, whilst the frequently used Richmond Sand Dunes features as the final location of the episode.

[11][6][23] Peter DeLuise's director's cut of the episode featured real bloopers of the Stargate SG-1 cast that was ultimately omitted from the broadcast and home release versions.

[15][25] One of Tanner's men uses the alias "Steve Austin," a reference to the character of the same name from the 1973 television series The Six Million Dollar Man, which Robert C. Cooper was a fan of.

[11] Although "a show about a talking dog who solves crimes" was included in the script, it was Richard Dean Anderson who, as an ad-lib decided to mention the unsold television pilot Poochinski by name.

[34] Keith R.A. DeCandido for Tor.com described "Wormhole X-Treme" as "a hilarious hundredth episode that celebrates by making fun of itself", applauding the return of Willie Garson's Martin Lloyd.

Willie Garson returned to the show as alien refugee Martin Lloyd .
Much of the episode was filmed in and around The Bridge Studios in Burnaby , British Columbia .