Welcome to NeonCore - A Text-Based Cyberpunk RPG
Dive into the neon-soaked streets of Night City in this immersive text-based role-playing game. As a cyberpunk operative, navigate through a world of corporate intrigue, street-level conflicts, and high-tech warfare.
Features:
- Choose your role: Become a street-smart Netrunner, a combat-ready Solo, or other unique characters
- Deep character customization with detailed lifepaths and backgrounds
- Dynamic skill-based gameplay system
- Text-based exploration of Night City's various districts
- Engaging NPC interactions and encounters
- Command-line interface with cyberpunk aesthetic
Built with Python, NeonCore delivers a classic RPG experience inspired by the Cyberpunk 2020 tabletop game system. Use your skills, cyber-enhancements, and street smarts to survive and thrive in the dark future of 2045.
- Clone the repository to your local machine
- Install using pip:
pip install -e .
- Run the game:
python run_game.py
- Create fresh virtual environment:
python -m venv venv
- Allow PowerShell script execution:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
- Activate virtual environment:
./venv/bin/Activate.ps1
- Upgrade pip:
python -m pip install --upgrade pip
- Install OpenAI using pre-built wheels only:
python -m pip install openai --no-build-isolation --only-binary :all:
- Run the game:
python run_game.py
NeonCore includes an AI chat system that lets you interact with NPCs. The system supports two backends:
Set up your environment variables:
# Windows PowerShell
$env:XAI_API_KEY="your-api-key-here"
# Linux/MacOS
export XAI_API_KEY="your-api-key-here"
- Install Ollama:
curl -fsSL https://ollama.com/install.sh | sh
- Download the smollm2 model (271MB):
ollama pull smollm2:135
- Set Ollama host (default is http://localhost:11434):
# Windows PowerShell
$env:OLLAMA_HOST="http://localhost:11434"
# Linux/MacOS
export OLLAMA_HOST="http://localhost:11434"
Use the talk
command to chat with NPCs. For example:
ᐸ/> talk Hey Judy, what's the word on the street about the latest cyberware?
Judy: Hey there, V! Word on the street is there's some nova chrome hittin'
the black market. Heard about this new neural booster that's supposed to
jack your processing speed through the roof. But watch yourself - corps
are crackin' down hard on unauthorized tech these days.