Skip to content

Latest commit

 

History

History
211 lines (127 loc) · 11.3 KB

README_EN.md

File metadata and controls

211 lines (127 loc) · 11.3 KB

🐱🐹 LifeReloaded Simulator 🐹🐱 (Chinese|English)

ChatGPT GitHub stars version

🌟 Introduction

"Life is but a dream, where everything seems fleeting; yet, within this fleetingness, lies the essence of all existence." Have you ever wondered about the countless "what ifs" in life? LifeReloaded Simulator offers you a second chance to rejuvenate and relive life!

🔥🔥🔥 Web Version Updated on Nov. 13th

This Web version maintains the core principles of the original project while innovating and optimizing for GPT-3.5 features, streamlining the user experience without the need to configure GPT-4. Additionally, the project is supported by the EmbraceAGI community and continues to foster interaction between players and developers, advancing AI in gaming.

You are invited to try the game via this link. Our goal with this Web version is to provide a more accessible and intuitive platform, allowing a wider audience to enjoy the unique experience of restarting life through AI technology.

Life-Reload Simulator Picture

🌈 Overview

This project is a life simulation game powered by GPT-4's Advanced Data Analysis (formerly Code Interpreter) feature.

The game content is dynamically generated by the top-tier AI, GPT-4, providing a comprehensive and vibrant real-life experience.

  • Project Name: LifeReloaded Simulator
  • Version: 0.3 (updated at 20231113)
  • Core Engine: GPT-4 Advanced Data Analysis
  • Author: Chen CaiMao🐱, Taited, ydyjya

🚀 Features(ver 0.3 updated!)

  • 🚀AI-Powered, All-Encompassing: Real-time content generation by GPT-4. Experience true randomness that opens up infinite possibilities.
  • 📖A Union of Literature & AI: Carefully curated styles from modern European literature to offer an immersive gaming experience.
  • 🎲Psychologically Crafted Characters: Leveraging developmental psychology to design life events and introducing the MBTI personality system. The characters in the game aren't mere NPCs; they're individuals with histories, stances, and emotions.
  • 🌌A Diverse Universe: Now with a rare chance to trigger peculiar events. Players may experience exciting DLC contents such as encounters with extraterrestrials, time travel, or a journey to stardom. And yes, the choice to time travel is entirely yours.
  • 🛠️Open Source & Community Driven: This project is part of AIGoodGames, supported by the LangGPT structured prompt community. Join us, not only to get a fish but to learn to fish – learn how to use AI to craft your very own game!

📥 Installation & Execution

Installation of Web Version

1. Installing Dependencies

To install the necessary dependencies for this project, use the following command:

pip install -r requirements.txt
Optional: Redis Configuration for Improved Performance

If you wish to improve the performance, please configure a Redis service on your local machine and install the Python redis dependency:

pip install redis

2. Setting Up Environment Variables

For the proper functioning of this project, you need to set some environment variables.

  • Create a new file in the project root directory with the name .env.

  • The content structure of .env should mirror that of .env.example. However, make sure to update specific values. Particularly:

    • Replace the placeholder for the OPENAI_API_KEY with your actual API key.
    • Replace the placeholder for the REDIS with your actual Redis password.

Note: If you're planning to run the project locally without Redis, maintain the REDIS attribute as given in .env.example without any changes.

3. Running the Code

Once you've set up the environment variables, you can execute the project within terminal by:

python moderator.py

If you would like to launch this project locally, you can run the script:

python app.py

Contributing to this Repository

To ensure code consistency and quality, this repository utilizes the pre-commit tool to automatically format code. Before making any contributions or commits, it's recommended that you set up pre-commit.

Setting Up pre-commit
  1. Install pre-commit: Use the following command to install or upgrade pre-commit:

    pip install -U pre-commit
  2. Install Git Hooks: Once pre-commit is installed, you'll need to set it up for this repository. Run the following command:

    pre-commit install

After setting up, the pre-commit hooks will automatically check and format your changes before each commit. This helps to maintain code consistency throughout the project.

Execution of ChatGPT

To run the game, open GPT-4's Advanced Data Analysis (formerly Code Interpreter) feature and paste the content from LifeReloaded.txt into the dialogue box. You can also check out the prompt here.

Prerequisites

⚠️ Please ensure you have activated the GPT-4's Advanced Data Analysis feature. Currently, this feature is available only to ChatGPT Plus users.

💡 Community

Our community, AIGG (AI Good Games), is managed by the EmbraceAGI organization and is backed by the LangGPT structured prompt project. We're currently recruiting new members. We welcome participation from every gamer and developer. Click on this link to join the AIGG community!

💡 For developers aspiring to craft their own AI games:

  • Explore the endless possibilities of AI in game development, with guidance in areas like prompt engineering and LLM program development.
  • Network with industry experts, sharing and learning the latest AI game development techniques.
  • Gain early access rights to experience and test our most recent features and tools.
  • Showcase your creations in the community and benefit from increased exposure and community support.

🎮 For gamers:

  • Stay updated with firsthand information on new games released in our community and get the chance to be a beta tester.
  • Share gaming experiences and life stories with fellow gamers.
  • Provide feedback and influence the future direction of the games.

🎮 Game Previews

Here are some previews of the game. Due to the randomness of the large language model, your gameplay experience might vary.

Initialization

Every time you enter the game, the system truly randomizes and assigns a gender, birthplace, initial attributes, family background, and MBTI personality for the player.

Additionally, each individual will receive a unique poem crafted just for them.

Birth_Scene

birth2

Normal Events

Players will encounter various events at different stages of life and can react to these events.

Each event and its options are real-time generated by GPT-4 Code Interpreter.

Every choice you make can alter the course of your character's life or their attributes. Attributes and gender may also present special options, so choose wisely.

Childhood 1

Childhood 2

Late Adulthood

### Special Events In each game round, there's a small chance (about 1 in 16) that you might encounter a special event.

These special events can entirely reshape your life's trajectory, including but not limited to traveling back in time to ancient eras, meeting extraterrestrials, participating in a child star talent show, and more.

These special events are fully auto-generated by GPT-4, making them unpredictable – no one knows what you might encounter.

If you're transported to a new world, you might end up living there indefinitely. Of course, the choice remains yours. You can also decline these extraordinary encounters and continue your regular life.

Alien Encounter

Ancient World

Another World

During these adventures, if players are dissatisfied, they can always request GPT-4 to recreate the scenario, ensuring a better experience.

Another World 2

🤝 Open Source & Collaboration

🔗 This game has received support from the EmbraceAGI open-source community and is a sister project to LangGPT.

Visit the LangGPT project on GitHub.

📜 License

🔗 This project is open-sourced under the CC BY-NC-SA 4.0 (Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International).

💌 Contact the Author

For inquiries or suggestions, please reach out via:

Advertisement

Follow my public account CaiMaoAI for a series of informative articles.

Additionally, you can read my published book "ChatGPT Advanced: An Introduction to Prompt Engineering" on WeChat Reading or purchase it through online retailers. Book Display

Special Thanks


🎮 Don't wait any longer, come and experience your second life now!