Inspiration
I used to program a lot of games in unity and I would end up having to create a lot of Npcs. When I heard the hackathon's track was gaming I relieved some of those memories and realized how annoying it is to brainstorm an Npc from scratch. My inspiration for NpcGenerator came from my previous frustration in game development projects.
What it does
A lot of Game Developers have to create NPCs (non playable characters) for their games. Often, each one of these Npc’s needs a name, pre-made dialogue, and a well thought backstory, making the creation of NPCs very boring and tedious for game devs. NpcGenerator uses OpenAI's new large language model (chatGPT 3.5 turbo) to automate this process. Hours of planning simplified to the click of a button.
How we built it
I used React.js to create the webpages. I used a router to link the homepage with the page where you can generate npcs. To actually generate npcs I took in user info about the npc with a bunch of text fields. Those fields were then used to prompt the chat gpt api in a python script. The responses is then formatted and printed out bellow the textfields.
Challenges we ran into
The first challenge I ran into was setting up the routing as this was my first time doing it in react. But I was able to fix that by watching a couple YouTube tutorials. Another one of my biggest challenges was getting the chat gpt api to work. I had to read OpenAI's documentation and write a script in python, a language I am not that fluent in. The api also sometimes didn't understand my prompts but I was able to trouble shoot and fix the issue.
Accomplishments that we're proud of
The main accomplishment I am proud of is using chat gpt in this project. This was my first time using the chat gpt api and it worked out pretty well. I always wanted to incorporate gpt into my projects but I never took the time to read the documentation to do so. This hackathon pushed me to go outside of my limits and try something new.
What we learned
I learnt a lot about React.js in general from routing to how you supposed to properly format your code. I also learnt the chat gpt api and the basics of python. But as corny as it sounds one of the most important things I learned was to trouble shoot. I believe one of the most important tools a programmer has is google and I learnt to use my resources to tackle the challenges I faced.
What's next for NpcGenerator(Akshat M)
I think a little bit of css would make the website look and feel a lot better, I would add it right now but I don't have that much time left. I want to use Dalle to get AI generated images what the npc could look like. I feel that this would be a really helpful feature and would go a long way for the user.
Log in or sign up for Devpost to join the conversation.