From 22a56f82bb7cdccdc99a1597cda9aac0ced8687c Mon Sep 17 00:00:00 2001 From: haunter Date: Wed, 22 Apr 2026 23:01:07 +0300 Subject: [PATCH] 2nd fix --- GrepolisRemoteControl.user.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/GrepolisRemoteControl.user.js b/GrepolisRemoteControl.user.js index cf2a4fb..10e6ebe 100644 --- a/GrepolisRemoteControl.user.js +++ b/GrepolisRemoteControl.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Grepolis Remote Control // @namespace http://tampermonkey.net/ -// @version 3.0 +// @version 3.1 // @description Polls grepo.haunter-pets.top for remote commands and executes them in-game (Multi-Player) // @author Dimitrios // @match https://*.grepolis.com/game/* @@ -89,7 +89,10 @@ try { const pm = uw.MM.getModels().Player[player_id]; if (pm && pm.attributes) alliance_name = pm.attributes.alliance_name; - } catch(e) {} + console.log("GrepoRemote: Extracted alliance_name =", alliance_name); + } catch(e) { + console.log("GrepoRemote: Failed to extract alliance_name", e); + } const total_points = uw.Game?.player_points ?? 0; const world = uw.Game?.world_id || '';