Git Product home page Git Product logo

dd-chatgpt-dm's Introduction

๐Ÿ‰ dd-chatgpt-dm ๐Ÿคบ

Background

I created this to automate the process of setting up ChatGPT or some other similar LLM to act as a DM in a game of "Dungeons and Dragons". If you want to do this manually, you could start with a player character sheet for each player, and explain each detail to the LLM in a prompt, such as character attributes, skills, race, background, etc. After this the LLM can help you begin the game and you would just interact with the LLM through chat dialogs. This works great, but is difficult to manage and eventually the LLM starts to forget about things due to the context limitations.

To workaround these limitations, this project attempts to implement a stateful database and a MUD style navigation system. Information about "rooms" is stored in the database backend and retrieved via gRPC calls from the client to the server. Ultimately, it is our goal to be able to network other servers, and figure out things like economies, currencies, exchanges, even possibly doing this all in a decentralized manner.

Game Mechanics

The web front-end is used to generate new characters. The gRPC backend is used to keep state and store information in the database, and perform navigation. Communication through the DM after character creation is typically going to be done through a chat system like IRC or Discord.

After a user navigates to a room, if it is a new room that has never been explored, the ChatGPT DM will describe the room, and then save it using gRPC, to the database. In future versions, a networked version would possibly broadcast a message about it to a system like Kafka (TBD). Perhaps each room is a 'topic' in kafka, users that are in that room subscribe to that topic, and if a new user joins or something dynamic happens in that room, they are made aware/updated.

Finally, the description of the room is used to create generative AI art of what that room might look like, and then the link to that picture is displayed or rendered to the user, depending on the client (Dall-E).

If we can, I would also like to generate background music for that scene and start playing it for the users.

Install ๐Ÿ—

Protobufs

brew install protobuf

Go plugins for the protobuf compiler or refer here

make install

TLS

Configuring TLS

  • Client - TBD
  • Server - TBD

Invoking RPCs ๐Ÿš€

TBD

Useful commands ๐Ÿ“ก

Generate Go stubs

make gen

Clean stubs

make clean

Contributions

TBD

dd-chatgpt-dm's People

Contributors

mfreeman451 avatar

Stargazers

Yuri D. Meira avatar Matthew J. Oldach avatar Braden Mason avatar  avatar

Watchers

 avatar Kostas Georgiou avatar

dd-chatgpt-dm's Issues

pg

Add support for Postgres

feat: regions

Add the concept of regions to pre-empt the chatgpt prompts with, for example, a room at coordinates X,Y,Z , and those coords belong to region X, and region X has a particular weather system/microclimate, etc.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.