{% extends "base.html" %} {% block title %}{{ player.player_name if player else 'Player' }} - Dune Awakening Dashboard{% endblock %} {% block content %} {% if tunnel_down %}
SSH Tunnel Not Detected
Start the SSH tunnel first, then refresh.
{% elif db_error %}
Database Error: {{ db_error }}
{% elif not_found %}
Player Not Found
The requested player character does not exist.
{% else %} {% if vitals and vitals.max_health %}
{% if not is_online %} {% endif %}
Health {{ "%.0f"|format(vitals.current_health or 0) }}/{{ "%.0f"|format(vitals.max_health or 0) }} {% if is_online %}(WIP){% else %}(WIP){% endif %}
Hydration {{ "%.1f"|format(vitals.current_hydration | float if vitals.current_hydration else 0) }} {% if is_online %}(live){% endif %}
Spice {{ "%.0f"|format(vitals.current_spice | float if vitals.current_spice else 0) }} {% if is_online %}(live){% endif %}
{% if vitals.spice_addiction_level is not none or vitals.spice_tolerance is not none %}
Spice Addiction {{ "%.1f"|format(vitals.spice_addiction_level | float if vitals.spice_addiction_level else 0) }}
Spice Tolerance {{ "%.1f"|format(vitals.spice_tolerance | float if vitals.spice_tolerance else 0) }}
{% endif %} {% if is_online %}
Player is online — edit vitals only when offline. Health data is currently WIP.
{% endif %}
{% endif %}

Account Info

Character Name
{{ player.player_name or 'Unknown' }}
Funcom ID
{{ player.funcom_id or 'N/A' }}
Email / User
{{ player.account_email }}
Platform ID
{{ player.platform_id or 'N/A' }}
Map
{{ player.map or 'N/A' }}
Position
{{ player.transform_text or 'N/A' }}
{% if player.last_login_time or player.last_avatar_activity %}

Activity

{% if player.last_login_time %}
Last Login
{{ player.last_login_time.strftime('%Y-%m-%d %H:%M UTC') }}
{% endif %} {% if player.last_avatar_activity %}
Last Activity
{{ player.last_avatar_activity.strftime('%Y-%m-%d %H:%M UTC') }}
{% endif %}
{% endif %}
Faction {% if not is_online %} {% endif %}
{% if player.faction_name %} {{ player.faction_name }} {% if player.utc_time_faction_change %}
Since {{ player.utc_time_faction_change.strftime('%Y-%m-%d') }}{% endif %} {% else %}
No faction
{% endif %}
Guild
{% if guild %}
{{ guild.guild_name }}
{{ guild.faction_name or 'No faction' }}
{{ fmt_role(guild.role_id) }}
{% if guild.guild_description %}

{{ guild.guild_description }}

{% endif %} {% else %}
Not in a guild
{% endif %}

Currencies

{% for c in currency %} {% else %} {% endfor %}
CurrencyBalance
{{ c.currency_id | currency_label }} {{ c.balance | format_number }}
No currency data
Note: Currency values may be stale due to game server behavior
{% if is_online %}
Player is online — editing disabled. Log out first.
{% else %} {% endif %}
Read-only. Balances reflect last game save — game server writes deltas on top of DB value.
{% if specialization or tech_knowledge is not none %}

Specialization & XP {% if not is_online %} {% endif %}

{% for s in specialization %} {% endfor %} {% if tech_knowledge is not none %} {% endif %}
TrackXPLevel
{{ s.track_type }}{{ s.xp_amount | format_number }}{{ s.level }}
Tech Knowledge Points{{ tech_knowledge | format_number }}—
{% endif %} {% if faction_reputation %}

Faction Reputation

{% for fr in faction_reputation %} {% endfor %}
FactionReputation
{{ fr.faction_name }} {{ fr.reputation_amount | format_number }}
{% endif %} {% if landsraad_info and landsraad_info.daily_reward_charges is not none %}

Landsraad

{% if landsraad_info.daily_reward_charges is not none %} {% endif %} {% if landsraad_info.last_viewed_term_id is not none %} {% endif %}
InfoValue
Daily Reward Charges{{ landsraad_info.daily_reward_charges }}
Last Viewed Term{{ landsraad_info.last_viewed_term_id }}
{% endif %} {% if vehicles %}

Vehicles ({{ vehicles|length }})

{% for v in vehicles %} {% endfor %}
TypeNameMapAccessPosition
{{ v.class | class_name }} {{ v.actor_name or 'N/A' }} {{ v.map or 'N/A' }} {% if v.ownership_rank == 1 %}Owner{% elif v.ownership_rank %}Rank {{ v.ownership_rank }}{% endif %} {{ v.transform_text or '' }}
{% endif %} {% if buildings %}

Buildings ({{ buildings|length }})

{% for b in buildings %} {% endfor %}
IDClassMapInstancesPosition
{{ b.id }} {{ b.class | class_name }} {{ b.map or 'N/A' }} {{ b.instance_count }} {{ b.transform_text or '' }}
{% endif %} {% if inventories %}

Inventory

{% if is_online %}
Player is online — editing disabled. Log out first.
{% endif %}
{% for inv in primary_inventories %} {% if inv.inventory_type == 0 %}
{{ inv.inventory_type | inv_label }}(ID: {{ inv.id }}, Slots: {{ inv.max_item_count or '?' }}, Volume: {{ inv.max_item_volume or '?' }}) {% if not is_online %} {% endif %}
{% set max_main_slots = inv.max_item_count or 35 %}
{% for i in range(max_main_slots) %} {% set slot_item = inv.item_list | selectattr('position_index', 'equalto', i) | first %} {% if slot_item %}
📦
{{ slot_item.template_id | truncate(20) }}
{% if slot_item.stack_size and slot_item.stack_size > 1 %}
{{ slot_item.stack_size }}
{% endif %} {% if slot_item.ammo %}
🔥{{ slot_item.ammo }}
{% endif %} {% if slot_item.durability and slot_item.max_durability and slot_item.max_durability > 0 %} {% set dur_pct = (slot_item.durability / slot_item.max_durability * 100) | int %} {% set dur_class = 'low' if dur_pct < 30 else ('medium' if dur_pct < 70 else '') %}
{% endif %} {% if slot_item.quality_level and slot_item.quality_level > 0 %} {% set tier_color = quality_tiers[slot_item.quality_level].color if slot_item.quality_level in quality_tiers else '#9a8a7a' %}
{% endif %}
{% else %}
+
{% endif %} {% endfor %}
{% elif inv.inventory_type == 1 %}
{{ inv.inventory_type | inv_label }}(ID: {{ inv.id }}) {% if not is_online %} {% endif %}
{% for slot_idx in range(10) %} {% set slot_label = equipped_slot_labels[slot_idx] if slot_idx in equipped_slot_labels else 'Slot ' ~ slot_idx %} {% set slot_item = inv.item_list | selectattr('position_index', 'equalto', slot_idx) | first %} {% if slot_item %}
{{ slot_label }}
📦
{{ slot_item.template_id | truncate(15) }}
{% if slot_item.stack_size and slot_item.stack_size > 1 %}
{{ slot_item.stack_size }}
{% endif %} {% if slot_item.ammo %}
🔥{{ slot_item.ammo }}
{% endif %} {% if slot_item.durability and slot_item.max_durability and slot_item.max_durability > 0 %} {% set dur_pct = (slot_item.durability / slot_item.max_durability * 100) | int %} {% set dur_class = 'low' if dur_pct < 30 else ('medium' if dur_pct < 70 else '') %}
{% endif %} {% if slot_item.quality_level and slot_item.quality_level > 0 %} {% set tier_color = quality_tiers[slot_item.quality_level].color if slot_item.quality_level in quality_tiers else '#9a8a7a' %}
{% endif %}
{% else %}
{{ slot_label }}
+
{% endif %} {% endfor %}
{% elif inv.inventory_type == 5 %}
{{ inv.inventory_type | inv_label }}(ID: {{ inv.id }}) {% if not is_online %} {% endif %}
{% set hotbar_max = inv.max_item_count or 10 %}
{% for i in range(hotbar_max) %} {% set slot_item = inv.item_list | selectattr('position_index', 'equalto', i) | first %} {% if slot_item %}
📦
{{ slot_item.template_id | truncate(12) }}
{% if slot_item.stack_size and slot_item.stack_size > 1 %}
{{ slot_item.stack_size }}
{% endif %}
{% else %}
+
{% endif %} {% endfor %}
{% elif inv.inventory_type == 15 %}
{{ inv.inventory_type | inv_label }}(ID: {{ inv.id }}) {% if not is_online %} {% endif %}
{% if inv.item_list %}
{% for item in inv.item_list %}
📦
{{ item.template_id | truncate(25) }}
{% if item.stack_size and item.stack_size > 1 %} x{{ item.stack_size }} {% endif %}
{% endfor %}
{% else %}

(empty)

{% endif %} {% else %}
{{ inv.inventory_type | inv_label }} (ID: {{ inv.id }}) {% if not is_online %} {% endif %}
{% if inv.item_list %}
{% for item in inv.item_list %}
📦
{{ item.template_id | truncate(15) }}
{% if item.stack_size and item.stack_size > 1 %}
{{ item.stack_size }}
{% endif %} {% if item.ammo %}
🔥{{ item.ammo }}
{% endif %} {% if item.durability and item.max_durability and item.max_durability > 0 %} {% set dur_pct = (item.durability / item.max_durability * 100) | int %} {% set dur_class = 'low' if dur_pct < 30 else ('medium' if dur_pct < 70 else '') %}
{% endif %}
{% endfor %}
{% else %}

(empty)

{% endif %} {% endif %} {% endfor %} {% if unknown_inventories %}
{% for inv in unknown_inventories %}
{{ inv.inventory_type | inv_label }} (ID: {{ inv.id }})
{% if inv.item_list %}
{% for item in inv.item_list %}
📦
{{ item.template_id | truncate(20) }}
{% if item.stack_size and item.stack_size > 1 %}
{{ item.stack_size }}
{% endif %} {% if item.ammo %}
🔥{{ item.ammo }}
{% endif %} {% if item.durability and item.max_durability and item.max_durability > 0 %} {% set dur_pct = (item.durability / item.max_durability * 100) | int %} {% set dur_class = 'low' if dur_pct < 30 else ('medium' if dur_pct < 70 else '') %}
{% endif %} {% if item.quality_level and item.quality_level > 0 %} {% set tier_color = quality_tiers[item.quality_level].color if item.quality_level in quality_tiers else '#9a8a7a' %}
{% endif %}
{% endfor %}
{% else %}

(empty)

{% endif %}
{% endfor %}
{% endif %} {% for inv in other_inventories %}
{{ inv.inventory_type | inv_label }} (ID: {{ inv.id }}) {% if not is_online %} {% endif %}
{% if inv.item_list %}
{% for item in inv.item_list %}
📦
{{ item.template_id | truncate(15) }}
{% if item.stack_size and item.stack_size > 1 %}
{{ item.stack_size }}
{% endif %} {% if item.ammo %}
🔥{{ item.ammo }}
{% endif %} {% if item.durability and item.max_durability and item.max_durability > 0 %} {% set dur_pct = (item.durability / item.max_durability * 100) | int %} {% set dur_class = 'low' if dur_pct < 30 else ('medium' if dur_pct < 70 else '') %}
{% endif %}
{% endfor %}
{% else %}

(empty)

{% endif %} {% endfor %}
{% endif %} {% if landclaims %}

Land Claims ({{ landclaims|length }})

{% for lc in landclaims %} {% endfor %}
IDClassMapPosition
{{ lc.id }} {{ lc.class | class_name }} {{ lc.map or 'N/A' }} {{ lc.transform_text or '' }}
{% endif %} {% endif %} {% endblock %} {% block scripts %} {% endblock %}