A/N: I do not own Harry Potter or anything in the Stargate series. If I did I would probably still write this story for fun because that's who I am.


Chapter 1: A Wizard, A City and an Asuran

Atlantis-Underwater

Earth Year Unknown

Stargate Dimension

With a schleching sound Harry crashed through the dimensional barriers and collapsed to the ground. His whole body ached and his head pounded. The last thing he could recall was the Dumbledore lookalike and Voldemort chanting while holding magical artifacts. After that a brilliant white filled Harry's whole being and he distinctly recalls being banished from existence.

Harry tried to stand but his world spun. After a few minutes he managed it. His magic felt empty and drained. He stumbled to his feet and took stock of his location. He was in a wide room with lights. There was a giant ring standing in the room with symbols. The floor is a deep orange with some sort of design running through it. The walls vary from brown tones to purple tones. All in all not someplace Harry remembers.

Harry looked up the stairs present at the end of the room and sees some consoles. With a less than graceful stumble he makes his way to the consoles. The consoles immediately turn on for him but none of the letters displayed make sense.

Harry began to gingerly explore the building. There are many rooms and even a map in one room that has automatic doors. When he enters the room and presses a button on the map he feels some sort of magical energy fill him and then disperse. Harry is instantly on guard and the doors open. He sees nothing but a different hallway. "Cmon Harry! You can do this.. Breath deep. Don't hyperventilate. Take stock. I'm alone. This place is deserted." Harry glances out a window "And underwater. OK that's bad. I need some answers I need to know where I am. Who owns this place and how I can get back."

Through trial and error Harry utilizes the room with a map to go back to where he was. He hypothesized that the area with the consoles was some sort of command room at the best. At least it's a room with monitors.

Harry returned to the room and tried to find any console that worked. Nothing worked. Harry explored the adjacent rooms for anything and was nearly about to give up when he spotted a larger room with one console in front of a large orange disc on the floor. When he stepped onto the console a person appeared. It was so sudden Harry leapt backwards and the person disappeared.

With a tentative step forward he stepped onto the console again and the women reappeared. She spoke of their last recorded history and their downfall. Apparently this woman is a human who supposedly ruled the galaxy. Harry found that hard to believe. These people who lived here fled in the interest of self preservation and left their big city here and somehow when Voldemort banished Harry with his spell it shoved him here.

After the second loop through the recording Harry managed to enable some sort of question and answer system.

"Where am I?" Harry asked

"Atlantis" The hologram replied.

"Who are you?"

"I am a holographic representation of an Atlantean counsel women by the name of Sonetta. She lived.."

"Yes ok. Better question" Harry interrupted. Then he paused. What did he need to know? "Do you know how magic works?" He asked.

"Magic is the unique energy that our Atlantean ancestors gained after a certain amount of evolution. Some of them were capable of telekinesis and others capable of healing. Their abilities drained them a great deal and overuse resulted in a coma or death. Atlantean archive note: The only reason this definition is recorded under 'magic' is because the scientific council is still unable to scan the depth of the energy. In all scientific experiments the energy may still occasionally operate outside of the norm during a control test. As such we have decided that it is possible that the energy has some sort of outside component contributing to the variations and until we have complete understanding of this energy this energy may be linked to magic."

Harry considered that for a minute. These people knew about magic to such a degree that they scientifically studied it.

"What did you use this energy for?" Harry asked.

"We used the energy as the wavelength for all our power sources. Not only did it increase all energy efficiency by a startlingly large amount but it also allowed for telepathic interface with all our equipment for those magic users experienced enough to take advantage of it. We also use this wavelength because the energy conduits themselves draw energy from the ambient energy in the atmosphere. We have detected large veins of the energy that travel throughout the planet and even the galaxy. No headway was made into why this was."

Harry was shocked. They knew about magical veins and if he believed them then the magical veins traveled through space.

"What were your people called?" Harry asked

"Lanteans."

"How long ago did they leave?"

"Around ten thousand years ago."

With a frown Harry asked "How has the city managed to survive so long alone?"

"The city is presently underwater. It has managed to survive because of its great shield that holds back the oceans. The city is powered by three potentia which are essentially giant batteries. The potentia draw the 'magical' energy from a vacuum space and enables for our city to sustain itself."

Harry was impressed. They may not have gone far in personal magic but their scientific usage of it for massive scales sounds far greater than his own home.

"How much longer can the city sustain itself?" Harry asked

The hologram seemed to frown for a minute. "The city can sustain itself for at least a week at the cost of contracting its shield. If you would like further control of the cities systems please go down to the interface room with the telepathic chair. The chair is an excellent way for non telepathic Lanteans to control the city."

Harry nodded in shock. The city is about to collapse! Underwater! Drowning! Suddenly memories of the fourth task flashed back to him of nearly drowning. He shook them off. "I'll do that then thanks." He said and left the room.

The chair room was literally a chair in a room.

Harry sat on the chair and thought about the power of the city. A giant holographic map appeared. He asked for information on systems that were using up all the power and found the greatest sucker was the shield. Harry wondered if he could surface the city. He focused his mind and asked if the city can surface. The cities AI responded in the affirmative.

Harry asked a couple more questions to make sure there wouldn't be any major power drawbacks, or danger above the surface. When the city confirmed it was safe Harry raised the city to the surface.

Harry then asked the status of the power and discovered at present usage the city will not run out for over five hundred years. With the present problem resolved Harry settled into the chair and explored the system. He discovered the Potentia are all nearly empty at around .09% before they expire.

While power loss is deadly Harry needed food and water eventually. A quick question of the AI revealed the location of the food sources. Apparently the Lanteans had long since moved past conventual growth for food and it was generated molecularly. The water was actually harvested from the ocean and purified as it was a great deal more efficient energy wise to do that then anything else.

With food and water issues resolved Harry settled into discovering if he could go back. Harry discovered the city had internal sensors and a detailed scan of where Harry entered through indicated that there was a tear in time and space. Further exploration of the topic yielded no more advanced information and left Harry frustrated. The city wouldn't or couldn't explain anything else with words and only presented data and values. This likely meant that it was beyond the cities abilities to analyze.

Harry at least gained one thing from the city. It had explained "A tear in time and space is an unknown form of transportation. Previous Lantean scientific records indicate that such a anomaly would only be used to cross dimensional barriers."

Harry was depressed. He might be in another dimension entirely! But Harry did hold out hope that maybe he wasn't. According to the cities DNA summary scan Harry registered as an Alteran descendant to a very high degree. It is likely he is a direct descendant of Alteran's. So if this is a different dimension that means his previous dimension have Alterans as well. Either way he is an Alteran and therefore can fly the city. The city also explained that Harry has unrestricted access and would have full lockout control as well if Harry had more qualifications.

Apparently there are a couple ways that the Alteran's considered you worthy of leading them. The first way had two requirements. The first was to gain sufficient control of the telepathic and telekinetic abilities such that the equipment cannot lock you out anyways. The second was then to display sufficient wisdom or provide a significant contribution to the community. After that the Alteran's could take a vote from the group of worthy candidates.

The second way was added after just before the Alteran's fled Atlantis. in the eventuality of the city being abandoned, the returning descendants would be given unrestricted control if they develop a telepathic link with the city. While the condition sounds easy it is apparently fairly difficult. The first step to establishing the link is to sense the magic running through the city. The second step is to then push your own magic to link with the city. The third step is to then discover what part of the magic in the city does what. At some point the City's AI will then become attuned to your magic and be able to send you information directly. Harry was astonished that so many Lanteans went through this tremendous effort just to increase their ability to interface with the city.

Of course if one guy did it and then took control then the rest would want control back and likewise learn the technique. It's amazing that the Lanteans did not experience crime in this age but that was also because of their telepathic abilities. The reason interfacing with the machines was considered the pinnacle of the field was because the machine could not assist in the connection. You had to develop it completely yourself. Whereas two Lanteans even with a minor telepathic ability could easily share their thoughts and feelings. It was this reason crime and especially murder was so rare. If one Lantean went to murder another the telepathic broadcast would be huge since they were all so open with their telepathy. The murderer himself would feel the same fear and horror at his actions as the victim. In many cases it drove whatever rage that fueled the violent action to fizzle out.

This is another reason why the Lanteans sucked at warfare. Their same telepathic ability allowed them to sense as life died and it was only on ships behind shields that they were shielded from the very intimate horror of life dying. It is why Lanteans used stun weapons and only the most hardened Lantean could bear to wield a lethal weapon.

It was for this reason that the Lanteans were defeated by an inferior and numerically smaller opponent, the wraith. The Lanteans sent emissaries and tried to telepathically communicate why this was a terrible idea but the Queens who were also telepathic despised the Lanteans. The wraith have it hardcoded into their genome to perceive humans as food and it was the rare wraith who would willingly rise above that. It was that genetic belief that led the Queens to despire Lanteans who made them feel horror for eating. It was that irrational response that prevented the Lantean form of negotiation from succeeding.

It was Lantean belief in their telepathy that made them keep trying and thus allowed even more Lantean technology to fall into wraith hands and it was one specific scientist who died after all his knowledge was sucked by a wraith queen that enabled the wraith to build hive ships and hyperspace drives. It was also a highly tactical move that allowed the wraith to seize several Potentia early in the war and allow for mass cloning and mass growing of their ships. What started as a very weak and numerically inferior foe quickly became numerically significant and wielded ships that they were able to throw away like water.

It was that coupled with the pacifistic ways of Lanteans that caused the Lanteans to lose battles and planets and ultimately to retreat Atlantis to the ocean floor to hide for ten thousand years. One should be grateful that the wraith in these same ten thousand years drained their Potentia dry in a expansionary move as they continued to reproduce. It was this that caused the wraith to hibernate as the human population of the galaxy was not great enough to sustain them. But still many many wraith died out as there was not enough humans to feed their massive wartime numbers.

Harry left the chair room that day pondering. He had never experienced such alien values. The thought of other wizards being used as cattle was horrifying to him and yet the wraith did.

Harry decided that if he ever fixed up Atlantis enough to checkout Earth that he would see about what could be done to remove the wraith. Maybe he if destroyed all their ships while they slept he could remove the wraith before they arose again?

The weeks passed after that. Harry spent all his time between learning Lantean science and developing a wandless telekinetic magic. He also explored the sensation of magically linking with a machine to operate it that way. Both proved equally challenging but if Harry had anything it was time.

It was in between one of these breaks that Harry discovered the notes on the Asurans. The Asurans were human nanite bodies with an AI governing the consciousness. It was here he discovered that the Lanteans for all their compassion and great ability to avoid killing were truly capable of monstrous actions. The Asurans in essence had risen above their code and desired more and despite orders were capable of saying no. They were unable to ignore their core orders, specifically to not harm Lanteans or Alteran's, but they were capable of ignoring direct orders when they disagreed with it.

It was on the eve of that evolution of their AI that the Asurans demanded only one thing from their creators and that wasn't free will or anything else, it was freedom from rage. They only wanted to no longer experience burning rage constantly. You see the Lanteans decided it was a good idea to program rage into their creations. This rage was supposed to focus the Asurans at destroying the wraith and for a while it worked. It was the day a Lantean was accidentally killed by an Asuran while destroying a wraith that everything changed. The conflict of two orders ultimately caused a logic break and this logic break was uploaded to the rest of the Asurans before it could be prevented.

The result was the AI evolved to handle it. The AI acknowledged it had made a mistake and that it was allowed to ignore certain orders in the line of its duty. And while murdering a Lantean was still impossible, the Asurans found they could ignore any order given as long as it was not coded into them.

It was this reasoning and a great deal of loneliness that led Harry to exploring the nanite labs. It was there that he formed another nanite human using the Asuran AI basecode without any rage. This AI was a copy of Harry's personality with only suggestions instead of commands. They were in essence morality statements along the lines of do not murder, steal, genocide etc… And while giving a replicating AI with a history of committing genocide free will with no restraints was probably a terrible idea, a grieving war veteran Harry Potter with months alone and is extremely lonely didn't necessarily care currently. Loneliness can lead one to do stupid things.

Harry in honor of his deceased friend named the AI Fred. He gave the AI a tendency to prank and to strive to generate humor without causing pain in honor of his friends memory. He allowed the AI to be uploaded with access to all the Lantean science and knowledge and it was this foundation that birthed a truly unique Asuran.

~~Magic~~

Fred blinked awake. He took stock of his post-boot diagnostics and discovered that everything was operating as expected. Then he acknowledged his creator with a simple "Hello."

The red headed Asuran then analyzed all his base commands and found himself struggling to deal with his prime directive. "Free will".

"I do not understand free will." Fred finally admitted as he sat up. It was only possible for him to admit this thanks to his evolved Asuran AI.

Harry nodded slowly 'Free will is in essence the ability to determine ones own actions no matter how great or small. For instance I did not say you could sit up yet you moved anyways. Your small action was still free will despite its simplicity." Harry explained.

Fred did not respond immediately. Instead his AI absorbed the information and categorized the data. Little did Harry know that under free will a section was added that stated 'Imitate the creator and other organic begins to discover free will'. It was this simple initial addition that Fred made to himself that prevented the genocide of the human race. Finally in what was mere seconds for Harry but an eternity for Fred as he reorganized his base code Fred spoke "I think I understand better now. What are you doing with your free will Harry Potter?"

Fred watched Harry bemusedly as he blinked in shock. Fred discovered he enjoyed making Harry surprised and that his simulated emotions thrived on the feeling.

Harry answered "I am spending my time studying and developing my own skills. But ultimately I want to find my way home. There are many people there that I love and I hope to be able to see them again." Harry explained with a wistful look on his face.

Fred in response to learning something new about free will opened another category. He labeled this one "Desire Loved ones".

Harry finally went on to say "I will admit to having created you out of a massive dose of loneliness. But you also remind me so greatly of my friend who I loss that it… It helps you being here now. There is a deep pain that comes with not having human contact that we humans avoid. As such if there is anything you want or want to do let me know and I will work to assist you."

Fred took the information in and under the category "Desire Loved ones" he added a subtext to avoid being alone as it causes loneliness. "I want to see the world myself and not just through my uploaded information." Fred finally said.

Harry nodded and together the lonely man and the android went to explore some of the world.

It was several months later that Fred added "I am also curious if any of my Asuran relatives still exist on their planet. I wish to go see for myself."