Updated at 6:05 p.m. with details throughout.

The Fort Worth man who shot his ex-wife and killed their three children and her boyfriend at a Ponder home had initiated their divorce in August, court records show.

Amanda Lee Simpson, the mother of the three children slain Wednesday, was the only survivor of the rampage carried out by her ex, Justin Painter. She was in stable condition Thursday, a hospital spokesperson said.

The Tarrant County medical examiner’s office identified the children as Drake Painter, 4; Caydence Painter, 6; and Odin Painter, 8. Simpson’s boyfriend Seth Richardson, 29, also was killed.

The children died of multiple gunshot wounds, according to the medical examiner. Richardson's cause of death was listed as a gunshot wound to the left side of his face.

From left: Drake Painter, 4; Caydence Painter, 6; and Odin Painter, 8. (Facebook)

Justin Painter, 39, died of a self-inflicted gunshot wound to the chin after shooting the others at a home on Lonestar Park Lane, officials said.

Records show Painter obtained a temporary restraining order against Simpson, 29, during their divorce to prevent her from communicating or interacting with him.

In October, two months after he filed for divorce, Painter posted on Facebook that he was in a "complicated" relationship.

"She is worth fighting for," he added in a comment.

1 / 7Judith McDuffie, 4, carries stuffed animals to place at a memorial with her mother Amanda McDuffie for the family that was killed May 16, 2018, in the Remington Park neighborhood of Ponder. Police say a man shot his ex-wife, three children and her boyfriend at a home Wednesday morning before turning the gun on himself. The ex-wife survived the shooting.(Rose Baca / Staff Photographer) 2 / 7Denton County Sheriff's officers investigate a crime scene at a home where five people were killed and one was hospitalized after a shooting at a home in the Remington Park neighborhood of Ponder.(Rose Baca / Staff Photographer) 3 / 7Denton County Sheriff's officers investigate a crime scene where five people were killed and one was hospitalized after a shooting at a home in the Remington Park neighborhood of Ponder.(Rose Baca / Staff Photographer) 4 / 7Denton County sheriff's officers investigate a crime scene at a home where five people were killed and one was hospitalized after a shooting at a home in the Remington Park neighborhood of Ponder.(Rose Baca / Staff Photographer) 5 / 7Items are left at a memorial for the family that was murdered May 16, 2018 in the Remington Park neighborhood of Ponder.(Rose Baca / Staff Photographer) 6 / 7Items are left at a memorial for the family that was murdered on May 16, 2018 in the Remington Park neighborhood of Ponder.(Rose Baca / Staff Photographer) 7 / 7Law enforcement officers and crime scene technicians investigate at a home where five people were killed and one was hospitalized.(Rose Baca / Staff Photographer)

That post has since been flooded with comments like: "I just don't understand how someone could kill their babies."

The divorce was finalized in March, court records show.

Simpson was ordered to pay child support to Painter, records show. He had primary custody of the children, but both parents cared for the children and spent time with them.

In Facebook Live videos she posted from her hospital bed, Simpson has recounted the events leading up to Wednesday's shooting and detailed her recovery. In one video, she said the judge who handled her divorce didn’t listen when she said her ex-husband was “mentally unstable” and had tried to kill himself.

Judge Nancy Berger, who said she remembered presiding over the case, said there was no hearing during the divorce proceedings, so there would not have been time for the comments Simpson mentioned.

In a video posted Thursday morning, Simpson said she and her boyfriend were just beginning to "start a life" together.

"Justin couldn't accept that I made a decision to make myself happy," she said, speaking about her ex-husband.

Richardson's older sister, Laura Kneeland, said her brother had always been a compassionate and dedicated family man. After his own recent divorce, an online relationship with Simpson gave Richardson, who had been living in Virginia, a chance to heal, she said.

Kneeland, who also lives in Virginia, said she knew her brother was planning to visit Simpson in Texas, but she was surprised to learn this week that he had quit his job to move here.

"We didn't know why he was going, or why it had to be right then," Kneeland said. "He drove 16 hours to start a new life, and within two hours, he was killed."

Kneeland learned her brother had been killed while reading comments on Simpson's Facebook Live broadcast. After calling her mother, Kneeland and her husband immediately drove to reunite with family in Savannah, Ga.

"It was the longest eight hours I've ever driven," Kneeland said.

The family plans to travel to Texas together to make arrangements for Richardson, she said.

In one of the videos, Simpson thanked people in Ponder for a playground memorial in her children's memory. She said she has kept a framed photo of her children by her side in the hospital.

"Think of the kids," she said. "Don’t worry about me, I’ll be fine."

Staff writer Julieta Chiquillo contributed to this report.

CORRECTION, 5:16 p.m., May 17, 2018: An earlier version of this story incorrectly misspelled the last name of the McDuffie family, who were visiting a memorial.