Skip to main content

Main Configuration

This page covers the main configuration options available in config.yml.

Database Configuration​

Configure how player data is stored.

sql:
type: SQLITE # SQLITE, MYSQL, or MARIADB
user: homestead
password: secret
port: 3306
host: 192.168.10.10
database: zcookieclicker
prefix: "zcookieclicker_"
retry: 5
debug: false
OptionDescription
typeStorage type: SQLITE, MYSQL, or MARIADB
userDatabase username
passwordDatabase password
portDatabase port
hostDatabase host address
databaseDatabase name
prefixTable name prefix
retryNumber of connection retry attempts
debugEnable SQL query debugging

Price Scaling​

Configure how upgrade prices increase with each purchase:

price-upgrade-percent: 15

This means each upgrade purchase increases the next purchase price by 15%.

Example with 15% increase:

  • First Grandma: 100 cookies
  • Second Grandma: 115 cookies
  • Third Grandma: 132.25 cookies
  • And so on...

Number Formatting​

Standard Decimal Format​

decimal-format: "#,###.#"

This format is used when short number format is disabled.

Short Number Format​

For large numbers, enable short format with suffixes:

short-number-format:
enabled: true
decimal-format: "#.##"
suffixes:
- "" # < 1,000
- "K" # Thousands
- "M" # Millions
- "B" # Billions
- "T" # Trillions
- "Qa" # Quadrillions
- "Qi" # Quintillions
- "Sx" # Sextillions
- "Sp" # Septillions
- "Oc" # Octillions
OptionDescription
enabledEnable/disable short number formatting
decimal-formatDecimal format pattern for short numbers
suffixesList of suffixes for each magnitude

Examples:

ValueFormatted
500500
1,2341.23K
5,678,9015.68M
1,234,567,8901.23B

Complete Example Configuration​

# Database configuration
sql:
type: SQLITE
user: homestead
password: secret
port: 3306
host: 192.168.10.10
database: zcookieclicker
prefix: "zcookieclicker_"
retry: 5
debug: false

# Price increase percentage per upgrade purchase
price-upgrade-percent: 15

# Standard number format
decimal-format: "#,###.#"

# Short number format for large numbers
short-number-format:
enabled: true
decimal-format: "#.##"
suffixes:
- ""
- "K"
- "M"
- "B"
- "T"
- "Qa"
- "Qi"
- "Sx"
- "Sp"
- "Oc"

# Upgrade definitions (see Upgrades page for details)
upgrades:
- type: "MANUAL_CLICK"
cost: 10
cps: 0.1
# ... more upgrades

Configuration Tips​

Balancing Price Scaling​

  • Lower percentage (5-10%): Faster progression, easier to buy many upgrades
  • Standard percentage (15%): Balanced progression similar to original Cookie Clicker
  • Higher percentage (20-30%): Slower progression, more grinding required

Number Format Customization​

You can customize suffixes for your server's language:

# French example
suffixes:
- ""
- "K"
- "M"
- "Md" # Milliard (Billion in French)
- "T"

Database Recommendations​

  • Single Server: Use SQLite for simplicity
  • Multiple Servers: Use MySQL/MariaDB (note: data is not synchronized, just stored remotely)
  • Large Player Base: Use MySQL/MariaDB with connection pooling
Copyright © 2026 GroupeZ|Build #loading...|-