OpenSim NPCs simulate disasters

For most people, NPCs — non-player characters — are the princesses you need to save in video games, dragons you need to defeat, and shopkeepers who give advice about how to proceed in your quests.

David Prior

But for David Prior, CTO at Simudyne , NPCs are a way to model emergency evacuation plans for amusement parks, hotels, banks and other large venues — even entire cities.

One customer using the technology is the European Union’s SAVE ME project, the goal of which is to develop a system that detects disasters and offers mass evacuation guidance in order to save public lives and the lives of the rescuers. The first two pilot sites will be Italy’s Colle Capretto tunnel and England’s Monument Metro station.

“With the ‘Save Me’ project, the requirement was to take people’s real world locations and actually represent those locations and behaviors and types within the 3D world,” Prior told Hypergrid Business.

Virtual travelers evacuating subway station for Save Me project. (Image courtesy Simudyne.)

To make it work, the company created a separate module to control the NPCs. OpenSim does have built-in NPC functionality, but Prior wanted to be able to run the simulations on other platforms if needed.

“We’re interested in offering some Unity delivery, especially for offering embedded clients,” he said. “And there are also the likes of Open Wonderland, Open Cobalt, or the Unreal development kit. There’s a huge raft of different options out there.”

In addition, running the NPC functionality externally eliminates the need for heavy in-world scripting, he said.

“We currently run 18 regions and will be running 111 by the end of this month,” he said. “All on a single server. We have to represent a city, and we’re not using megaregions at all.”

Scripts would not only place more load on the server, but also would stop functioning once the NPCs crossed region boundaries, he said.

Another advantage of keeping the functionality in a separate application is that it be more readily applied to other projects.

Simudyne, for example, is also working with the Bank of England and several other financial sector clients in the U.K. and the U.S.  Other clients include the city of London, a major theme park,  hotels and resorts, and companies in the entertainment and consumer electronic industries.

The company’s simulation software can be used to model large-scale events with transient, diverse populations, Prior said. “That’s one of the reasons why our human simulator steps up to 50,000 individuals.”

NPCs spawning in a virtual environment. (Image courtesy Simudyne.)

Projects typically start out with safety and evacuation training, he said.

“We’re also looking at supply chain modeling, which is something we’ve done extensively for the oil and gas industry,” he added.

Clients use the simulations to look at projected behavior and test out different designs, but, for the most part, clients don’t go in-world.

“They’re just not in that mindset yet,” Prior set.

Clients start out looking at stills or videos.

Hotels, for example, use the technology to model evacuation routes and create videos that are played to guests on the in-room television channel.

“The next step is leading people into thinking that this is not a static drawing, but an interactive space that you can use to develop policies and procedures in,” Prior said. “Then the next step is saying ‘This is cool, we can collaborate from India to the U.S., from the U.K. to Japan.”

Virtually real people

The company’s software simulates human behavior, with each NPC distinct from others. Differentiating factors include social and economic, physical disabilities,  tendency to panic or follow parents. There’s even a variable for “bloody mindedness,” Prior said.

“That’s very much what we were doing in the European Union project,” he said.

The NPCs even interact with one another, piling at narrow exits and stepping on one another.

“We look at something called elaborated social identity modeling, which is how people perceive themselves,” he said. “And social physics, which is longer term, more community-oriented.”

Right now, the external human simulation software sends instructions into the OpenSim grid.

“The next phase that we’re doing is we’re trying to get their encounter data from within OpenSim fed back out to the human simulator to complete the feedback route,” he said. “Right now, they’re just puppets. Soon they’ll be reporting their encounters, which we’re quite confident we can do in short order – between two and three months. Most likely end of September.”

The bottom line

Simudyne does not release the price of any of the projects. But Prior did say that the company works in a variety of ways.

“In one model, we provide everything, soup to nuts, in a phased approach,” he said. “The server, the hardware, the design, the content, the implementation.”

That will typically run between 14 and 16 months, he said.

“On the other end of the spectrum, we have a rolling deal with one client, where we charge them a very small amount per floor to produce a 3D model, and it’s up to them to say how many floors,” he said. “They have a number of buildings regionally totalling somewhere over 800 floors.”

The length of time it takes to do a project can vary from five days to create a populated region, to as much as 18 months for a very detailed model of a building, he said.

The total cost for a project can vary from tens of thousands to hundreds of thousands of dollars, depending on the scope and complexity, he said.

The company’s OpenSim grid is run on a dedicated private server, as a staging area for clients. When the project is complete, the company puts everything together in a package and ships the hardware to clients.

The company has three designers on staff, builders, two of whom are based in the U.K. and one in Scandinavia.  There is also a 3D artist and a developer, both of whom are based in Boston. Prior himself works all over the world, he said.

The company also uses outside contractors for the software development, but finding freelance builders has been harder.

“Even if someone passes an interview with flying colors and builds something right in front of you, it can be hard to get them to work and not to treat it as a game,” Prior said.

Simudyne’s Avatar Control Module from Justin Lyon on Vimeo.'

Maria Korolov

Maria Korolov is editor and publisher of Hypergrid Business. She has been a journalist for more than twenty years and has worked for the Chicago Tribune, Reuters, and Computerworld and has reported from over a dozen countries, including Russia and China. Follow me on Twitter @MariaKorolov.

3 Responses

  1. Wow Maria! You come up with such cool articles, and here I was all proud of my silly OpenSim NPCs that I’ve done for kicks and play. And you always seem to find these companies that make tons of money in your stories. “From tens of thousands to hundreds of thousands of dollars”? Wow! I can’t fathom that, but I like the idea of going external with the code to cut back on sim load. I’ve ran as many as 30 NPCs with my custom in world NPC scripts doing cool animations and stuff on my wimpy low end cloud server just for kicks. I considered all that just a grown up play toy though.  Its cool to see “business people” apply the idea. I’m more of a story telling/ arts enthusiast who enjoys a bit of code.

    • Ener Hax says:

      Araxie is da bomb on NPCs, including sharing code  =)

      “the princesses you need to save” – i watched a lot of Xena, in my world it’s the Prince’s that need saving!  *grrl power* =D

  2.' Dave Gubser says:

    Ok… I’ve been developing totally independent bots …devoid of human intervention, except to click ONE button to say… evaluate what the sim looks like to YOU!. After 10 minutes, the “program” comes back and tell me…”it looks like …. THIS to the Avatar”.

    at that point i tell the “avatars”… go wander the sim ( to see programing errors…….in “what does it LOOK like to YOU”….. and hmmm now can i solve what is reality (to them) and what is real (in numbers) to them…. ok fix … uh…. Problem ….continue….

    with that in mind (and of course, a “different” way of looking at artificial intelligence (a total bunch of gabage ideas of couse set into a set of well hmmm” we can give them this set of constraints”…<<<< gees what unabashidily, unthinkingly, uneverything set of structured……confining premisis…. gees…. OK… time for a little bit of HEY LOOK HERE, (never mind that i can't spell…english IS my first language….unfortunately, it did not make any sense…..where programming languages and MATH have a structured format which DO make sense….in most cases. "ok rule me slightly autistic"… your judgement… not my call.. i would simply say… "uh.. hmmm. I see things from a very different point of view than most people I have encountered (who can't balance their checkbooks or see the B.S. in what is taken to be "REAL" to those who manipulate. (from the last few sentences, i would think the writer..( uneducated and vicious ) in determinging what his fellow humans are…. hmmm not so, mostly WE are a collection of creatures that have some basic needs and some extraodinary capabilities. WE can fulfill dreams, OUR OWN.. through technology. WE "Need" several things. (1) to be loved for WHATEVER we present to the Universe as the REAL US. (I'm pretty normal in this respect…(boring)…but hey…shrugs.) (2) To be recognized for what we contribute. Ok ….break here (1) is like 99.9 percent of what's needed….. (2) is like …uh… hmm gravy….that is nice but …. shrugs…. does not encompass our souls….feel like a really warm blanket , tucked in at all the right places…….or a lover… just …. waking us up, accidently , in the middle of the night , to give us a thoughful kiss on the forehead… <<< that ones is really a killer if you manage to catch it as you sleep….BIG SIGH. (yeah baby)…. ok…back to MY reality… so…boils down to THIS…. you need to be loved. If your not loved quite ENOUGH… you NEED #2…more recognition……<<< if TWO does not do it….hmmm you're basically screwed and need to concentrate on #1………..(ok … so youve proven your smart, are well worth sitting next to on a couch, after a hard days work,…and can stimulate a mind until….it wanders into a submissive zone of……..delerium………..but hmmm wouln't it e just a tad better to just kiss, him/her to pieces and ravage their bodies into nirvana?

    sighs…. hmm i will pick and chose as i desire…

    be well and safe.. (i really mean that… a loving gesture)