Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Portuguese server domain is not up to date #2975

Closed
mrxxix opened this issue Apr 3, 2024 · 11 comments
Closed

[BUG]: Portuguese server domain is not up to date #2975

mrxxix opened this issue Apr 3, 2024 · 11 comments

Comments

@mrxxix
Copy link

mrxxix commented Apr 3, 2024

What happened?

operador112.com/ is the new Portuguese server domain. Had to manually change, and some other features are buggy or out of place, or simply don't work.

How to reproduce?

Both of the domains are available and it's the same server.

Expected behavior

What would be expected is the new domain to be added so it can launch with it.

System

  • LSSM-Version: 4.7.12+20240321.2220 [stable]
  • Game-Version: operador112.com

Additional

No response

@mrxxix mrxxix added the bug Something isn't working label Apr 3, 2024
@mrxxix
Copy link
Author

mrxxix commented Apr 3, 2024

// ==UserScript==
// @name         LSS-Manager V.4
// @version      4.7.12-CZ-DK-DE-AU-GB-US-ES-MX-FI-FR-IT-JP-KR-NO-NL-PL-BR-PT-RO-RU-SK-SE-TR-UA
// @author       The LSSM-Team: Sanni, Jan (jxn_30), Ron31, Crazycake
// @description  LSSM V4 is a Script-Collection for Leitstellenspiel, Missionchief, Meldkamerspel and its other language versions.
// @namespace    https://lss-manager.de/
// @homepage     https://docs.lss-manager.de/
// @downloadURL  https://v4.lss-manager.de/lssm-v4.user.js
// @updateURL    https://v4.lss-manager.de/lssm-v4.user.js
// @supportURL   https://docs.lss-manager.de/en_US/error_report
// @icon         https://docs.lss-manager.de/img/lssm.png
// @match        https://www.operacni-stredisko.cz/*
// @match        https://policie.operacni-stredisko.cz/*
// @match        https://www.alarmcentral-spil.dk/*
// @match        https://politi.alarmcentral-spil.dk/*
// @match        https://www.leitstellenspiel.de/*
// @match        https://polizei.leitstellenspiel.de/*
// @match        https://www.missionchief-australia.com/*
// @match        https://police.missionchief-australia.com/*
// @match        https://www.missionchief.co.uk/*
// @match        https://police.missionchief.co.uk/*
// @match        https://www.missionchief.com/*
// @match        https://police.missionchief.com/*
// @match        https://www.centro-de-mando.es/*
// @match        https://www.centro-de-mando.mx/*
// @match        https://www.hatakeskuspeli.com/*
// @match        https://poliisi.hatakeskuspeli.com/*
// @match        https://www.operateur112.fr/*
// @match        https://police.operateur112.fr/*
// @match        https://www.operatore112.it/*
// @match        https://polizia.operatore112.it/*
// @match        https://www.missionchief-japan.com/*
// @match        https://www.missionchief-korea.com/*
// @match        https://www.nodsentralspillet.com/*
// @match        https://politiet.nodsentralspillet.com/*
// @match        https://www.meldkamerspel.com/*
// @match        https://politie.meldkamerspel.com/*
// @match        https://www.operatorratunkowy.pl/*
// @match        https://policja.operatorratunkowy.pl/*
// @match        https://www.operador193.com/*
// @match        https://www.jogo-operador112.com/*
// @match        https://www.operador112.com/*
// @match        https://policia.jogo-operador112.com/*
// @match        https://www.jocdispecerat112.com/*
// @match        https://www.dispetcher112.ru/*
// @match        https://www.dispecerske-centrum.com/*
// @match        https://www.larmcentralen-spelet.se/*
// @match        https://polis.larmcentralen-spelet.se/*
// @match        https://www.112-merkez.com/*
// @match        https://www.dyspetcher101-game.com/*
// @run-at       document-idle
// @grant        GM_info
// @grant        unsafeWindow
// ==/UserScript==
/* global I18n, user_id */
const e=()=>{const e=document.createElement("script");e.src=`https://v4.lss-manager.de/core.js?_=${Math.floor(Date.now()/6e5)}&branch=${localStorage.getItem("lssmv4_branch")??"stable"}`;e.setAttribute("type","module");e.setAttribute("async","");unsafeWindow["lssmv4-GM_Info"]=JSON.parse(JSON.stringify(GM_info));document.body.append(e)};if((!window.frameElement||window.frameElement?.src.startsWith("https"))&&!/^\/users\//u.test(window.location.pathname)&&"undefined"!=typeof user_id&&"undefined"!=typeof I18n)if(window!==window.parent&&window.parent.hasOwnProperty("lssmv4-redesign-lightbox")){const t="lssmv4-redesign-iframe-trigger-lssm-load";window.parent.addEventListener(t,e);window.addEventListener("pagehide",(()=>window.parent.removeEventListener(t,e)));window.parent["lssmv4-redesign-lightbox"].src=new URL(window.location.href).toString()}else e();

This fixed it. Just added the new domain on Tampermonkey editor.

@Suchty112
Copy link
Member

What happened?

operador112.com/ is the new Portuguese server domain. Had to manually change, and some other features are buggy or out of place, or simply don't work.

That is wrong. The official domain of PT is https://www.jogo-operador112.com/ . It is linked on Facebook and in the other countries at the bottom of the flags.

Unfortunately, with the current state of our script, we can only support one country domain. And that is the official https://www.jogo-operador112.com/ domain

@mrxxix
Copy link
Author

mrxxix commented Apr 3, 2024

It's not a problem, but i always access it from https://www.operador112.com/ , just thinking about other players that might enter from that domain too and for that reason can never use the plugins.

@kdev
Copy link
Member

kdev commented May 13, 2024

@Suchty112 how do we proceed with this? As far as my understanding goes we can only support 1 domain per game (@jxn-30)

@jxn-30
Copy link
Member

jxn-30 commented May 13, 2024

technically, it probably only requires an extra field in config (smth. like string[] additionalUrls) plus adjustment in userscript generation to include this URL(s) too.
As far as I know we don't rely on the exact domain anywhere within LSSM itself but I cannot guarantee this atm. Accessing via the correct game URL (jogo-operando) is still the recommended way!

@kdev
Copy link
Member

kdev commented May 13, 2024

Since we support the correct game url and haven't had any complains from other users, I think we can close this as "works-as-intended" then.

@jxn-30 jxn-30 closed this as not planned Won't fix, can't repro, duplicate, stale May 13, 2024
@jxn-30
Copy link
Member

jxn-30 commented May 21, 2024

According to the devs, any other domain than jogo-operador112.com should forward to jogo-operador112.com. They will ensure that this will happen again.
This confirms us in our current approach not to include multiple domains for a single game.

@Cr4zyc4k3 Cr4zyc4k3 reopened this May 23, 2024
@Cr4zyc4k3
Copy link
Collaborator

Open till the redirects are implemented.

@kdev
Copy link
Member

kdev commented May 23, 2024

Open till the redirects are implemented.

Again, this is not an issue on our end so it does not belong here as an open issue. I will close this.

@kdev kdev closed this as not planned Won't fix, can't repro, duplicate, stale May 23, 2024
@Cr4zyc4k3 Cr4zyc4k3 added awaiting game update The work on this issue cannot be proceeded as an update of the game itself is required and removed bug Something isn't working labels May 23, 2024
@Cr4zyc4k3
Copy link
Collaborator

Open till the redirects are implemented.

Again, this is not an issue on our end so it does not belong here as an open issue. I will close this.

It is an issue on our end. It is not our fault but has an impact for us.

@Cr4zyc4k3 Cr4zyc4k3 reopened this May 23, 2024
@Cr4zyc4k3
Copy link
Collaborator

Fixed by the game devs. Every domain should now redirect to jogo-operator112

@Cr4zyc4k3 Cr4zyc4k3 closed this as not planned Won't fix, can't repro, duplicate, stale May 29, 2024
@Cr4zyc4k3 Cr4zyc4k3 removed the awaiting game update The work on this issue cannot be proceeded as an update of the game itself is required label May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants