# Evony Mesh — atajos de gestión

Doble-clic en los `.command` (se abren en Terminal). O consola: `./meshctl.sh <acción> <objetivo>`.

## Estructura
```
Mesh/
├── Start ALL / Stop ALL / Restart ALL / Status   (generales, en la raíz)
├── Hub/            Start · Stop · Restart
├── Lume/           Start · Start (with emulator window) · Stop · Restart
├── DaSeaDoe/       Start · Start (with emulator window) · Stop · Restart
├── NiteMan/        Start · Start (with emulator window) · Stop · Restart
├── 2XS/            Start · Stop · Restart
├── RexValerius/    Start · Stop · Restart
├── ValkyriaSwift/  Start · Stop · Restart
├── meshctl.sh      (motor)
└── _common.sh      (config: puertos, dispositivos, cuentas)
```

- **Start (with emulator window)** — solo para los 3 nodos que corren en emulador en el Mac
  (Lume, DaSeaDoe, NiteMan): si el emulador está apagado lo arranca **con ventana visible**
  (+ frida + Evony) y luego el nodo. Si ya está corriendo, se usa tal cual (para forzar
  ventana, apágalo antes: `adb -s <device> emu kill` y reintenta).
- Los físicos (2XS, RexValerius, ValkyriaSwift) no tienen esa opción (son Pixels reales).

## Cómo funciona
- Arranca/para por **puerto** (fiable). Logs en `~/Desktop/Evony/Evony-Mesh/logs/`.
- Config en `_common.sh`. `meshctl.sh {start|stop|restart|start-window|status} {all|hub|<nodo>}`.

## URLs
| Servicio | Puerto | URL (Tailscale) |
|---|---|---|
| **Hub** | 8799 | http://100.127.215.100:8799/ |
| Lume | 8792 | http://100.127.215.100:8792/ |
| NiteMan | 8793 | http://100.127.215.100:8793/ |
| DaSeaDoe | 8794 | http://100.127.215.100:8794/ |
| 2XS | 8795 | http://100.127.215.100:8795/ |
| RexValerius | 8796 | http://100.127.215.100:8796/ |
| ValkyriaSwift | 8797 | http://100.127.215.100:8797/ |

(o `192.168.0.18` en LAN, `127.0.0.1` en el Mac).

## Relleno de rallies (Fase 4 — marcha tropas REALES)
OFF por defecto. Doble opt-in: preset marcado `mesh_fill` **+** arrancar con `MESH_FILL=1`
(`MESH_FILL=1 ./meshctl.sh start 2xs`). Sin ambas cosas ningún nodo marcha tropas.
