In the third and final part of the three-part season 9, the Dwarfers finally find their creator and begin begging him for more life, only to find out he's written that they kill him, effectively killing them. When they turn to the script to find out how it all ends, Lister tosses the pages into a fire and begins typing new lines, causing everything he types to happen. Eventually, they realize they are under the effects of a female despair squid, which, instead of causing despair, causes happiness. Upon realizing this dimension is not real, they begin to wake up back on Red Dwarf.
—TheDefiant604