micropolisJS icon indicating copy to clipboard operation
micropolisJS copied to clipboard

Self hosting doesn't work

Open RintaDev5792 opened this issue 1 year ago • 3 comments

When I host this on my web server, it just says loading and the game does not play

RintaDev5792 avatar Jun 02 '23 13:06 RintaDev5792

Hm, I notice that self hosting index.html is missing the line:

<script type="text/javascript" src="src/micropolis.js?033fad982eaf9f97631d" defer></script>

but adding that is insufficient to fix the problem.

jrincayc avatar Dec 03 '23 23:12 jrincayc

Hm, I notice that self hosting index.html is missing the line:

<script type="text/javascript" src="src/micropolis.js?033fad982eaf9f97631d" defer></script>

but adding that is insufficient to fix the problem.

You have to put everything in your hosted directory into a subdirectory named micropolisJS and add <script type="text/javascript" src="src/micropolis.js?033fad982eaf9f97631d" defer></script> to the index.html after <script defer="" src="thirdparty/jquery/jquery-2.1.1.min.js"></script> at the bottom of the page. That's what worked for me.

Dhak0s avatar Mar 07 '24 11:03 Dhak0s