Asked for in Discord: "raidplan.io bitte einbauen für die harten Dungeons". raidplan.io has no Aion 2
(only WoW, FFXIV, Lost Ark, New World), so the map tactics got what it offers.
- Dungeon maps: the in-game map textures of 11 expeditions, 7 transcendence dungeons, the 3 sanctuaries
(Ludra, Corroded Decontamination Facility, Chalice of Muspel), the 6 awakening towers and 3
subjugations, as published by the DPS meter Waffle-ens/waffle_meter (dotnet/Assets/Maps, pinned
commit). assets/map/dungeons/dungeons.json is kept by hand: groups, slugs (= tactics.map_slug),
German names from the Global client (aion2.app), KR/TW-only dungeons marked as unavailable, boss
hints for the awakening towers. scripts/download_dungeon_maps.py fetches the images, writes
dungeons/<slug>.webp (2048 px, about 3 MB in total, in Git) and the previews, and finds the dungeon
area (bounds) by comparing each map with the shared background of all maps. Two empty arenas
(round, square) are drawn in code.
- Viewer: image maps and arenas next to the tile maps (MapView.drawImageMap/drawArena, half zoom
steps, opens fitted to the dungeon beside the tactic panel), map picker with the tabs "Welt" and
"Dungeons & Raids", each area remembers its last map, no category panel without markers. The mouse
wheel zooms to the cursor.
- New page raidplan.php ("Raidplaner" in the menu, map.view) = map.php started in the dungeon area.
Location links on dungeon maps point to /raidplan.php and are recognized in texts and by the
calendar picker.
- Tokens (shape type 'token', TokenIcons.js): classes, roles, players 1-8, markers A-D and symbols,
boss, add, danger, stack, spread, tower, orb, bomb. Colour and size come from the toolbar, numbers
and letters count up while placing, tokens are drawn above areas. Server whitelist
TACTIC_TOKEN_ICONS.
- Move tool (✥) with label/delete actions above the selected shape, double click and Del; new action
shape_update in tactics_api.php (points and label, same permissions, snapshot before). Undo also
reverts moves and labels. Rectangle and cone tools, saved as areas.
- Step transitions: tactic_shapes.ref is kept by "Kopie dieses Schritts", tactic copies and restores
(existing shapes get s<id>), so the same shape glides to its new place when stepping or playing;
play button (and space) runs through all steps. 🔗 copies a link to the tactic and step
(?taktik=&schritt=), which opens it after loading.
- Live view: the bot relay only knows the old shape types and events, so placing tokens and moving
send "changed" and the others reload - no bot deploy needed.
- Schema version 60 (tactic_shapes.icon, .ref, enum 'token'; also in sql/schema.sql), tour step on the
dashboard, patch notes and README.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
147 lines
No EOL
5 KiB
JavaScript
147 lines
No EOL
5 KiB
JavaScript
/**
|
|
* Aion 2 Map Viewer - Configuration
|
|
*/
|
|
|
|
const CONFIG = {
|
|
// Tile settings
|
|
TILE_SIZE: 256,
|
|
MIN_ZOOM: 2,
|
|
MAX_ZOOM: 6,
|
|
|
|
// World coordinate system (fixed for all maps)
|
|
WORLD_MIN_X: 0,
|
|
WORLD_MAX_X: 4096,
|
|
WORLD_MIN_Y: 0,
|
|
WORLD_MAX_Y: 4096,
|
|
|
|
// Data paths
|
|
TILES_DIR: 'data/tiles',
|
|
MARKERS_DIR: 'data/markers',
|
|
ICONS_DIR: 'data/icons',
|
|
// Vorschaubilder der Kartenauswahl - bewusst ausserhalb von data/ (das kommt per FTP),
|
|
// damit sie mit dem Code ausgeliefert werden.
|
|
PREVIEWS_DIR: 'previews',
|
|
DEFAULT_MAP: 'verteron',
|
|
|
|
// Anzeigenamen, die von data/maps.json abweichen (der Slug bleibt, an ihm haengen
|
|
// Kacheln und Taktiken).
|
|
MAP_NAMES: {
|
|
'elthen': 'Eltnen',
|
|
},
|
|
|
|
// Karten, die es auf unserem Patch noch nicht gibt - werden in der Auswahl und beim
|
|
// Ansehen mit einem Hinweis versehen.
|
|
MAP_UNAVAILABLE: ['elthen', 'morheim'],
|
|
|
|
// Gebiete der Kartenauswahl in dieser Reihenfolge, Karten darin ebenfalls sortiert.
|
|
// Karten, die hier fehlen, landen unter "Weitere".
|
|
MAP_ZONES: [
|
|
{ name: 'Elysea', maps: ['poeta', 'verteron', 'elthen'] },
|
|
{ name: 'Asmodae', maps: ['ishalgen', 'altgard', 'morheim'] },
|
|
{ name: 'Abyss', maps: ['abyss-reshanta-a', 'abyss-reshanta-b', 'chaotic-middle-reshanta', 'chaotic-upper-reshanta'] },
|
|
],
|
|
|
|
// Local maps list (generated by download scripts to avoid CORS)
|
|
MAPS_LIST: 'data/maps.json',
|
|
|
|
// Raidplaner: Dungeon- und Raid-Karten (je ein Bild, dungeons/<slug>.webp) und leere Arenen.
|
|
// Liste, Gruppen, Namen und Ausschnitte stehen in dungeons/dungeons.json (mit dem Code ausgeliefert).
|
|
DUNGEONS_LIST: 'dungeons/dungeons.json',
|
|
DUNGEONS_DIR: 'dungeons',
|
|
// Radius der leeren Arenen in Welteinheiten (Mitte der Welt) - passend zur Groesse der Figuren
|
|
// (10 Welteinheiten, TacticLayer.tokenRadius): etwa 15 Figuren passen nebeneinander in den Radius
|
|
ARENA_RADIUS: 160,
|
|
|
|
// Bereiche der Kartenauswahl: Weltkarten (Karte) und Dungeons & Raids (Raidplaner). Jeder merkt
|
|
// sich seine zuletzt gewaehlte Karte; map.php bzw. raidplan.php waehlen ihn per ?bereich=...
|
|
AREAS: [
|
|
{ id: 'welt', label: 'Welt', storage: 'lumina_map', page: '/map.php' },
|
|
{ id: 'dungeons', label: 'Dungeons & Raids', storage: 'lumina_raidmap', page: '/raidplan.php' },
|
|
],
|
|
|
|
// Icons, die unter ihrem Dateinamen nicht (richtig) in data/icons liegen:
|
|
// Pfad aus den Markerdaten (ohne ?...) -> Dateiname in data/icons.
|
|
// - Die Quelle hat zwei verschiedene kibelisk.png: /admin/... (blauer Elyos-Kisk, Verteron und
|
|
// Abyss) und .../location/kibelisk.png (lila Asmodier-Kisk, Morheim). Lokal liegt nur die lila
|
|
// Datei - Verteron und Abyss bekommen deshalb den blauen kibelisk-light.png (wie Eltnen).
|
|
// - kibelisk2.png (Altgard) fehlt in data/icons - bis dahin der lila Asmodier-Kisk kibelisk.png.
|
|
ICON_ALIASES: {
|
|
'/admin/assets/icons/kibelisk.png': 'kibelisk-light.png',
|
|
'/admin/assets/icons/kibelisk2.png': 'kibelisk.png',
|
|
},
|
|
|
|
// Category symbols (emoji)
|
|
CATEGORY_SYMBOLS: {
|
|
'Settlement': '🏘️',
|
|
'Stronghold': '🏰',
|
|
'Dungeon': '🕳️',
|
|
'Sealed Dungeon': '🔒',
|
|
'Region': '🗺️',
|
|
'Updraft': '💨',
|
|
'Rift': '⚡',
|
|
'Kibelisk': '🐉',
|
|
'Verteron Monolith': '🗿',
|
|
|
|
'Intellect': '🧠',
|
|
'Wild Monsters': '🐺',
|
|
'Feral': '🦁',
|
|
'Nature': '🌿',
|
|
'Special': '✨',
|
|
'Named Bosses': '💀',
|
|
|
|
'Citizens': '👤',
|
|
'NPC': '🗣️',
|
|
'General Goods Merchant': '🛒',
|
|
'Events': '🎉',
|
|
'Instance Entries': '🚪',
|
|
'Storage Manager': '📦',
|
|
'Alchemy Table': '⚗️',
|
|
'Armorsmithing Table': '🛡️',
|
|
'Blacksmithing Table': '⚒️',
|
|
'Cooking Table': '🍳',
|
|
'Handicrafting': '✂️',
|
|
'Morph Merchant': '🔄',
|
|
|
|
'Odyle': '💎',
|
|
'Orihalum Ore': '⛏️',
|
|
'Sapphire Gemstone': '💠',
|
|
'Diamond Gemstone': '💎',
|
|
'Ruby Gemstone': '❤️',
|
|
'Aria': '🌸',
|
|
'Yggdrasil Log': '🪵',
|
|
'Targena': '🍄',
|
|
'Kukuru': '🥜',
|
|
'Cypri': '🫐',
|
|
'Inina': '🌺',
|
|
'Coriolus': '🍂',
|
|
'Mela': '🍇',
|
|
|
|
'Empyrean Trace': '🔮',
|
|
'Hidden Cube': '📦',
|
|
'Boss': '👑',
|
|
|
|
'Fera': '🐾',
|
|
'Natura': '🌱',
|
|
'Cogni': '🤖',
|
|
'Varian': '🎭',
|
|
|
|
'Story Quests': '📜',
|
|
'Regional Quest': '🏴',
|
|
|
|
'Spawn Location': '🥚',
|
|
'Point of Interest': '⭐'
|
|
},
|
|
|
|
// Category colors by group
|
|
CATEGORY_COLORS: {
|
|
'Locations': '#3388FF',
|
|
'Monsters': '#FF4444',
|
|
'NPC': '#44AA44',
|
|
'Resources': '#FFAA00',
|
|
'Collectibles': '#AA44FF',
|
|
'Pets': '#FF66CC',
|
|
'Quests': '#FFFF44',
|
|
'Spawns': '#44AAAA',
|
|
'Community': '#FFFFFF'
|
|
}
|
|
}; |