Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

TravianZ

Maintenance GitHub Release GitHub contributors license

TravianZ is an open-source browser strategy game inspired by classic Travian-like gameplay.

This repository currently targets modern local/server setups with PHP 8.x and MariaDB.

Project Status

  • Version line: v8.3.5 (legacy naming)
  • Stability: playable and actively maintained
  • Migration note: this is not a drop-in upgrade over older 8.3.2 deployments

If you are upgrading from an older installation, do a fresh install and migrate data carefully.

Quick Start (Docker)

git clone https://github.com/Shadowss/TravianZ.git cd TravianZ cp .env.example .env docker compose up -d

Then open:

  • http://localhost:8080/install

Detailed container guide: DOCKER_README.md

System Requirements

Recommended:

  • PHP 8.3+
  • MariaDB latest stable (or MySQL-compatible server)
  • Apache or Nginx with PHP support
  • Linux server with enough CPU/RAM for your expected player count

Notes:

  • The game is query-heavy by design (legacy architecture), so shared hosting can become a bottleneck quickly.
  • For medium/large servers, prefer dedicated or well-sized VPS infrastructure.

Installation (Web Installer)

  1. Start services (Docker) or prepare your web+DB stack.
  2. Open http://your-host/install.
  3. Fill database settings:
  • Host: db (Docker) or your DB host
  • Port: usually 3306
  • DB/User/Password from your environment
  1. Complete installer steps:
  • DB structure
  • World data
  • Croppers build
  1. After success, access the game root.

Environment Configuration

Use .env (copy from .env.example) to manage deployment values.

Main keys:

  • MARIADB_ROOT_PASSWORD
  • MARIADB_DATABASE
  • MARIADB_USER
  • MARIADB_PASSWORD
  • DB_HOST
  • DB_PORT

Legacy compatibility keys (MYSQL_*) are still supported and can inherit MariaDB values.

Admin Panel

Admin entrypoint:

  • http://your-host/Admin/admin.php

Recent improvements include:

  • Users list under the Users menu
  • Better null/undefined handling in admin templates
  • Dynamic table prefix support in map tile queries

Performance Notes

For large worlds (for example 400x400), generation tasks can be expensive.

Recent optimizations include:

  • world data generation tuning for bulk operations
  • croppers generation batching and progress streaming
  • safer DB/session handling during installer workflows

For production-like loads, monitor:

  • DB CPU and slow queries
  • PHP-FPM/Apache worker limits
  • disk I/O during installer and reset operations

Troubleshooting

Common checks:

  1. If installer cannot connect to DB:
  • verify DB_HOST, port, user and password
  • in Docker, host should be db, not localhost
  1. If permissions fail during install:
  • ensure web user can write required runtime files/folders
  1. If pages show warnings after PHP upgrade:
  • ensure latest code is deployed
  • clear opcode/cache and retry

For container-specific troubleshooting, see DOCKER_README.md.

Development

Useful commands:

# Start stack docker compose up -d # Logs docker compose logs -f web # Validate PHP files find . -name '*.php' -not -path './var/*' -print0 | xargs -0 -n1 php -l

Repository references:

Community and Support

Credits

Thanks to the original and current maintainers, contributors, testers, and the TravianZ community.

Special acknowledgement to all legacy authors and maintainers who kept this project alive through multiple iterations.

License

This project is licensed under the terms described in LICENSE.

关于 About

Travian T3.6 , BEST VERSION EVER
gamegame-developmentmmorpgmmorpg-servertraviantravian-clone

语言 Languages

PHP43.8%
Go Template22.2%
Smarty20.1%
CSS9.5%
JavaScript4.1%
HTML0.3%
Dockerfile0.0%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
89
Total Commits
峰值: 17次/周
Less
More

核心贡献者 Contributors