''Spectrum'' (''Спектр'', Spektr) is a 2002 science-fiction novel from the popular Russian sci-fi and fantasy author Creator/SergeyLukyanenko. The novel is set NextSundayAD. Several years before the events of the novel, aliens who call themselves Keymasters arrive in giant black ships and offer to add Earth to their PortalNetwork by growing Gates in key cities. The world governments agree, but the Keymasters impose several conditions, including a requirement that no government attempt to prevent an individual from seeking passage through a Gate. As a form of payment, the Keymasters listen to stories told by those seeking passage. If the stories are interesting and original, they allow the individual to pass. Within the Gate, the person uses an interface designed by each species to select the destination planet and Gate. For the humans, the Keymasters use a [[MicrosoftWindows Windows]]-based system and an ordinary keyboard-and-mouse interface.
The protagonist of the novel is a denizen of Moscow named Martin Doogin, a private investigator specializing in cases involving other planets. He has a rare gift to make up interesting and original stories on the spot, which allows him frequent passage through the Gates. Those who know him call him the Walker. One day, a rich client arrives to his office and asks him to find and return his daughter Irina, who has gone off-world in an attempt to be an AdventurerArchaeologist. Martin quickly finds her on the planet Library, called so because it's covered by mysterious ruins inscribed with symbols no one has been able to decipher. However, just as he finds her, Irina dies in a freak accident (a normally docile alien animal attacks her). Before dying, she gives him the name of another planet. Curious, he goes to that world and discovers another Irina who is alive and well... that is, until she once again dies in a series of unrelated events. He soon finds that there are a number of copies of the girl on different worlds, but each one he finds ends up dying. They explain that the Gate has somehow split Irina into multiple doubles with a HiveMind of sorts. How? Why, because of [[spoiler:Windows]], of course. She [[spoiler:selected multiple worlds on the screen using the standard Windows Ctrl+click function and hit Enter, expecting the software to randomize her choice]]. As told by another character, who had something similar happen to him, the Universe does not tolerate doubles and eliminates them through freak events straight out of ''FinalDestination''.
Eventually, he tracks yet another Irina to Bezzar, a planet where people can walk on water due to the extremely-high surface tension (however, spending more than a day on the planet without special equipment is fatal to offworlders). Irina is working with the Bezzarians, a race of man-sized amoebae, on a way to get to the Keymasters' homeworld in order to find out the truth about an ancient cataclysm that destroyed the old galactic community. The Bezzarians build a ship capable of "riding" the wave used by the Gates to link with one another. They jump to what they assume is the Keymasters' home system. When Martin realizes that the Bezzarians intend hostile action, he kills them with his gun (the bullets just pass through, but the heat caused by the friction turns them insane). Just before the Keymasters' black ships arrive to capture the intruders, Irina demands that the pilot kill her to avoid capture, which it does. Martin is captured by returned to Earth. He contacts Irina's father and explains the situation. Not only does the man tell Martin to stop looking, he also pays him the promised amount multiplied by the number of Irinas he found (Martin ''did'' put in the effort, after all), before going home to mourn.
After awhile, though, Martin begins to suspect that there is one more Irina out there. He tracks her down to a strange planet called Talisman, covered by a perpetual fog that transforms its star's light into electricity that is absorbed into the ground and powers the constant synthesis and destruction of matter in boxes called "safes". The planet is full of "prospectors" who claim a number of safes and periodically open them to see if anything valuable has been synthesized. Martin finds Irina who is looking for a way to jump-start the [[EvolutionaryLevels next step in human evolution]]. In the end, it's Martin who figures out how to generate the so-called "detonator", but they are attacked by [[HumanAliens Aranks]] who want the secret for themselves. At the moment of choice, Martin chooses to revive Irina (who jumps off a cliff, so that the Aranks can't use her as a hostage) and safely return home. After explaining what he has learned about the planet and the past to a Keymaster (in the form of a story, of course), Martin is told that he no longer needs to tell stories to pass through the Gates. Martin shrugs and tells him that he's used to pay for passage. Martin and Irina return to Earth.
!! The duology contains examples of the following tropes:
* AscendToAHigherPlaneOfExistence: This is implied to be the fate of [[spoiler:anyone who attains demigodhood on the planet Talisman after they realize that godlike power and a limited worldview don't mix]].
* BodyguardCrush: Well, though Martin wasn't hired exactly as a bodyguard, he ends up doing nothing but frantically trying to prevent another death of Irina... one of the reasons for being his gradually developing love for her.
* CataclysmBackstory: It's slowly revealed that an ancient cataclysm struck the previous galactic community that resulted in the PortalNetwork being shut down and the various cultures being thrown back to the Stone Age, and a number of races even experiencing genetic changes. The cataclysm was actually [[spoiler:intentional on the part of the Keymasters who chose to shut down the Gates for reasons of their own. Millennia later, they have decided to try again]].
* CrystalSpiresAndTogas: The [[HumanAliens Aranks]] are a HigherTechSpecies who might look this way to humans.
* EverythingTryingToKillYou: It seems Creation itself rebels whenever the Gates malfunction and create copies of people. The duplicates either die through a series of unrelated events or simply vanish if they try to use the Gates again.
* FrickinLaserBeams: The Aranks have both regular guns and "heat rifles" that act like typical laser guns.
* GeneticMemory: The Dio-Dao transfer half of their memories to their offspring (they can't pick which memories).
* [[HiddenTrack Hidden Text]]: Each of the 7 chapters starts with a word from the Russian mnemonic for colors of the rainbow (equivalent to English "Roy G. Biv"). In the Orange chapter, a cowboy appears whose name is not revealed unless you read only the capital letters (in the Russian version) of the paragraph describing him. The name turns out to be "Semetskiy", which is a well-known gag by Russian sci-fi authors to always include a bit character with that name, as a joke on a real-life sci-fi fan by that name (the character usually dies).
* HiveMind: The various copies of Irina receive the memories of the dead duplicates. They mistakenly begin to suspect Martin of murdering their copies, as he always seems to show up just before they die.
* HumanAliens: Two humanoid races are described. The planet Prairie 2 is colonized by American settlers but has a primitive native population (called Indians by the colonists).
** The Aranks are a highly-advanced race visually indistinguishable from humans. However, the concept of the "meaning of life" is foreign to them, and every other race's obsession with it seems ridiculous to them.
* ImportedAlienPhlebotinum: While it's implied that the various intelligence agencies have managed to get their hands on some advanced alien tech (including Arank "heat rifles"), the technology is too advanced for human science to comprehend, meaning no reverse-engineering is possible. Hell, they can't even recharge the rifles once the batteries run out.
** Arank law forbids them from giving technology to less advanced races. There are laws that supersede this, but they're invoked on a case-by-case basis. Martin ends up getting his hands on an Arank "heat rifle" after killing an Arank assassin sent after him. By Arank law, Martin can lay claim on the attempted killer's property and spouse (he refuses the latter, which the local police admits is the smart choice, as the wife would then divorce him, and he'd have to pay alimony). While the Aranks are initially reluctant to give Martin the weapon, they know that it's too advanced for human science and is only good for a few shots anyway.
* MostWritersAreWriters: While Martin isn't a writer, he does have the ability to make up interesting and original stories on the spot, which is what makes him such an effective offworld detective. He also states in the first part that he has a degree in literature.
* NamedAfterTheirPlanet: Played straight for the Aranks (from Arank), the Bezzarians (from Bezzar), and the Sheali (from Sheali). Averted with the Dio-Dao whose homeworld is called Fakyu (for obvious reasons, Americans prefer to call it "Mardj", meaning "planet" in Dio-Dao).
* NewOldWest: The planet Prairie 2 is, basically, the Old West InSpace. Settled by American colonists, it has a race of primitive HumanAliens who are derogatorily called Indians. The way of the gun is followed by many. Martin witnesses a shootout and notes that it looks very much like a Western.
* ObstructiveBureaucrat: The Dio-Dao are obsessed with bureaucracy, which is strange for a species whose lifespan is 6 months.
* OneGenderRace: The Dio-Dao are hermaphrodites. When they're 5 months old, a hormonal surge sends them into a mating frenzy, where they seek out the nearest available partner. Mating nearly always results in a pregnancy (it's not made clear if both partners are impregnated or just one). A month later, the pregnant Dio-Dao delivers a child capable of speech and independent action, usually dying in the process. Of course, if this is all true, then there's simply no way for the Dio-Dao to have a positive population growth.
* PettingZooPeople: The Dio-Dao look like small kangaroos with a bit of lizard thrown in.
* PoliticalCorrectnessGoneMad: Due to the unfortunate similarity of the Dio-Dao's homeworld's name (Fakyu) to a well-known English curse, the US government has decided to call the planet Mardj after the Dio-Dao word for "planet". Since the human-oriented Gates use a catalog designed by Microsoft, the name Mardj is used by any human traveler to that world.
* PortalNetwork: The Gates set up by the Keymasters that join all known worlds together. Earth is added to the network several years before the events of the novel.
* ProudWarriorRaceGuy: The Geddar are a race of TheReptilians who always walk around with swords. Even their deity is a warrior.
* TheReptilians: The Geddar. They are frequently seen with lizard-like pets ([[spoiler:who turn out to be their [[BizarreSexualDimorphism females]] who are non-sentient]]).
* SecretTestOfCharacter: It's implied that the stories that the Keymasters require for passage through the Gates are this. Or, they're just bored.
* StarfishAliens: The Bezzarians are man-sized amoebae. They utilize OrganicTechnology.
* StunGun: Aranks have beams that paralyze muscles. Apparently, they work on most races with muscles.
* WeAreAsMayflies: Everyone compared to the Keymasters. Inverted with the Dio-Dao, whose lifespan is only about 6 months.
* WeirdCurrency: The Keymasters only accept interesting and original stories as payment for passage through the Gates. Since the first time a person goes through they usually tell their life's story, it usually works, as each person's life is unique. However, many people end up getting stuck on other planets, as they can't think of a good story.