Cal Jeffre

Posts: 4,312   +1,495
Staff member
A hot potato: Large language models and generative AI are topics that most video game developers would rather avoid. As tempting as using these tools is to replace human labor, the negative blowback is far too intense for most companies to handle, and that's not even considering that AI technology is not quite at the point where it can consistently produce quality content without human assistance.

However, such barriers don't exist for regular folks. People are already experimenting with AI technology in existing games. Modding communities have begun using platforms such as ChatGPT to give voice to NPCs and followers in games like Skyrim and Stardew Valley.

A Starview Valley modder who goes by DualityOfSoul created a mod that uses OpenAI's ChatGPT API to expand many of the game's NPC conversational trees. Usually, players can only speak to NPCs a few times per day, but Duality's "AI Valley" on Nexus Mods gives computer-controlled characters enough voice to carry on long free-form conversations.

Another modder, Tylermaister, developed a Skyrim mod using the same API to create a follower that can coherently converse on just about any game-related content. The follower, Herika, has at least a rudimentary understanding of the map. So, if the player asks her where Riften is, she can describe the hold's location.

In a project demo, a player asks Herika where Dragon's Reach is, and not only did she respond with the correct hold, but she also understood that they were currently only a few steps away from the keep.

While these mods are a pretty exciting application of LLM technology with the potential to spice up and expand a game's dialog, they have several drawbacks. First and foremost is the cost. Using the ChatGPT API costs money. The Verge notes that it's only fractions of a penny per dialog line, which isn't a lot, but it can add up, especially since it scales per user. Plus, players are accustomed to mods being free, so this is a big hurdle.

Another aspect is that ChatGPT's voice acting isn't going to blow anybody away. The robotic delivery will quickly grow old, even with slight speed adjustments that simulate the NPC's excitement.

In the video below, you can hear Herika's speech tempo quicken and pitch rise like a record player when the player says something exciting. This emotional reaction is impressive in that the model can recognize the situation dynamically, but it's far from creating a convincing response.

We've seen that OpenAI's impressive GPT-4o is capable of much more realistic conversation with a lifelike voice. However, its personality is as cookie-cutter as ChatGPT 3.0, but with the enthusiasm turned up to 11.

These models are trained to be polite, politically correct, and friendly towards users. This trait is not how humans speak, especially in video games where you might encounter an NPC who doesn't like you or is angry.

Lastly, dialog with chatbot-driven NPCs can quickly go off the rails. Just like when you use the web version of ChatGPT, the API is just as prone to hallucinations and may throw out dialog that is out of character or spew facts about the game world that are simply wrong.

While it's fun to think about a day when you can chat with an NPC like it's your best buddy, it still has a long way to go. Couple that with the fact that LLMs are unpredictable and can break the intended narrative of a game, and I don't think we'll be seeing the broad implementation of chatbots in video games any time soon.

Permalink to story:

 
I don't want my gameplay experience to change each time I play it. My NPCs should have a script and I should know each time I talk to an NPC, some human being created that dialogue in order to contribute to the story and the art of the world building inside of a video game. Whats next? AI books? Story is rewritten based on your reactions to each chapter?
 
A game changer would be realistic AI generated voices added to the game engines that read from text scripts that can be updated. The developers could extend conversations with various NPCs in ways that contribute to the ongoing story through DLCs and/or other updates without having to record actual dialogue. Want to further flesh out a story, update the game character's file. Tired of the same two sentences for an NPC, add 100 lines to the input file. Imagine Skyrim with this and the infinite arrow to the knee joke variations....
 
I don't want my gameplay experience to change each time I play it. My NPCs should have a script and I should know each time I talk to an NPC, some human being created that dialogue in order to contribute to the story and the art of the world building inside of a video game. Whats next? AI books? Story is rewritten based on your reactions to each chapter?

Imagine a world where AI and data profiling means your AI companion in a game knows your age, your gender, your political views, hobbies, search history, and anything you tell to your AI in a video game is used to sell you targeted ads on the next google search on your phone. We have search engines who gives us results based on what they think we want to see, rather than what we search for, and search bubbles strengthening people in their views and beliefs without access to other opinions, that sort of thing can eventually get mirrored in our video games, we'll all be sitting in closed cubicles and only have access to information that the AI and data profiling overlords deem necessary and relevant
 
Imagine a world where AI and data profiling means your AI companion in a game knows your age, your gender, your political views, hobbies, search history, and anything you tell to your AI in a video game is used to sell you targeted ads on the next google search on your phone. We have search engines who gives us results based on what they think we want to see, rather than what we search for, and search bubbles strengthening people in their views and beliefs without access to other opinions, that sort of thing can eventually get mirrored in our video games, we'll all be sitting in closed cubicles and only have access to information that the AI and data profiling overlords deem necessary and relevant
Can't wait to be recommend orthopedic surgeons to help with that arrow in my knee
 
We just need a specific AI trained to act roles. And writers will be writing background stories and speech samples and world descriptions for the AI. Obviously the AI needs to stay in character and understand what exists and doesn’t in the game’s world. It can work, but maybe it needs to run locally to be viable
 
Having AI in games is inevitable. They just need to have their parameters set beforehand. There is no need for them to have access to the entire WWW like ChatGPT though… if you’re playing a fantasy RPG for instance, why would your AI have the knowledge of advanced electronics, chemistry, etc?

Future game AIs simply need the appropriate datasets and they’ll be good to go.
 
We just need a specific AI trained to act roles. And writers will be writing background stories and speech samples and world descriptions for the AI. Obviously the AI needs to stay in character and understand what exists and doesn’t in the game’s world. It can work, but maybe it needs to run locally to be viable
I don't know if you remember that days of having seperate 2d and 3d graphics cards in your PC, but I have a feeling that if AI in games become popular we will end up having seperate AI cards in our computers
 
Gaming is all about immersion and having fun.
Currently, when interacting with NPCs, players often face limited options: either no interaction at all or a few pre-programmed responses that repeat endlessly. So rather than debating if LLM's are perfect, the question should be if the gaming experience could be enhanced - be more fun.

I asked Claude.ai to respond as a farmer NPC in Skyrim, I met for the third time. This is what I got when asking for directions.

"[Sighs and rolls eyes] Well, well, look who's back askin' for Dragon's Reach... again. [mutters] S'pose them fancy adventurer boots ain't good for much 'cept gettin' lost, eh?
[Speaks louder] Right then, listen close this time, will ya? It's right simple - just follow yer nose north for 'bout two kilometers. That's the big, tall buildin' you can't miss, 'less you've got yer head in a bucket.
[Gestures vaguely northward] Just keep the sun to yer right in the mornin', left in the evenin'. And for the love of Talos, try not to get turned around by any shiny pebbles or fluffy bunnies on the way. [Shakes head] Might wanna invest in a map next time you're in town... if ya can read one, that is.
Anythin' else you need spelled out for ya, or can I get back to my crops now? They don't tend themselves, ya know."

Ask yourself if this is a more immersive experience than getting the usual programmed non-options.

Btw. the tech advances rapidly and running custom trained LLM models on local machines is definetely already possible.
 
Day 1, 2006 when Oblivion came out, I had it installed. Was excited to be playing this brand new game. Great graphics at the time, so expected advances in the gameplay and elsewhere too. I was stuck in that cell and I banged on the door. The guard threatened me for making all that noise. Said they would come in and blah blah blah. Banged on the door again, expecting them to come in and kick my butt or something. Nope, they just kept repeating the same old lines, over and over and over again. My illusions were shattered. It was the same old game A.I with fancier graphics.
I remember thinking that in future, maybe they will fix that, as it would have been amazing to have different responses and actions, like someone would get in a real life situation. My thoughts for banging on the cell door were to get them to come in and I overpower them and escape but it was just scripted to be a different escape method. Maybe in the future...
 
I don't want my gameplay experience to change each time I play it. My NPCs should have a script and I should know each time I talk to an NPC, some human being created that dialogue in order to contribute to the story and the art of the world building inside of a video game. Whats next? AI books? Story is rewritten based on your reactions to each chapter?

AI books is already a thing.

Story being rewritten based on your reactions?

I used to LOVE the "Choose your adventure" books.

I wish they'd bring them back in fact.
 
I for one am excited for AI written scripting.

In fact, I hope someday the entire game can be rewritten on the fly by AI. The sad reality is that developers and writers are getting lazier and lazier. Cyberpunk 2077 is one of the best single player experiences I've had, but once you go through it once, the repeated playthroughs are boring and lagged down by the story and cutscenes. Imagine if the story and cutscenes could be completely re-written on the fly and somehow be congruent in quality and lore to the initial story.

You won't need to imagine it. It's coming eventually.
 
I don't want my gameplay experience to change each time I play it. My NPCs should have a script and I should know each time I talk to an NPC, some human being created that dialogue in order to contribute to the story and the art of the world building inside of a video game. Whats next? AI books? Story is rewritten based on your reactions to each chapter?
I think there is a compromise. Here is how I see it. There will be static scripts that allow to progress in the game.
But a variety of random NPCs that do not have those have the ability to talk with each other or with you about their lives or whatever is happening in their world.
Imagine being in a game where characters talk like they live there.
NPCs can be more with the right AI implementation.
I love the games like AC series. But I would love even more to see NPCs talk and act a bit more like alive human beings. It would make more realistic experience.
 
A game changer would be realistic AI generated voices added to the game engines that read from text scripts that can be updated. The developers could extend conversations with various NPCs in ways that contribute to the ongoing story through DLCs and/or other updates without having to record actual dialogue. Want to further flesh out a story, update the game character's file. Tired of the same two sentences for an NPC, add 100 lines to the input file. Imagine Skyrim with this and the infinite arrow to the knee joke variations....
The tech already exists. This has already been done in some proof of concept demos. But it may never see the light of day given some of the Union's current positions on generative voice AI.
 
I'm just tired of the same old stuff. There's a handful of good companies and a whole lot of bad ones. If AI makes games or anything better I'm all for it.
 

Similar threads