CombustibleToast / StratagemHeroOnline

36 stars 23 forks source link

HI :) You shouldn't see this error #33

Open BenHaddley opened 2 months ago

BenHaddley commented 2 months ago

I've encountered an issue while playing the game where an unexpected message "HI :) You shouldn't see this" appears, rendering the game unplayable. Upon further investigation, it seems like there might be an error in the code causing this message to display erroneously. The "old" folder in the Stratagem Hero repository functions seamlessly with the Helldivers 1 version working without encountering the "HI :) You shouldn't see this" error.

image

It's worth noting that the online version works without this issue. https://combustibletoast.github.io

Steps Taken:

Reviewed the HTML and JavaScript code to identify any potential sources of the issue. Verified that the issue persists across different browsers and platforms. Attempted to isolate the specific conditions or actions triggering the error message.

Any assistance or insights into resolving this issue would be greatly appreciated. Thank you for your attention to this matter.

CombustibleToast commented 2 months ago

I assume you are trying to play the game locally?

If that is the case, you need to find some way to host the game locally. If you use VSCode, you can download and use the Live Server extension -- that's what I use.

Baksztag commented 2 months ago

If you use Docker and don't want to rely on IDE you can run a container with http server to serve the files. For example you can add a following docker-compose.yaml in the project's root directory:

version: "3.9"
services:
  apache:
    image: httpd:latest
    container_name: stratagem-hero-http-server
    ports:
      - "8888:80"
    volumes:
      - .:/usr/local/apache2/htdocs

Once you add it just run docker compose up and go to 127.0.0.1:8888 in your browser.

The container has a volume with the source files attached so it will serve recent files as you edit them.