CodeBrauer / gmod-loadingscreen

a garrys mod loading screen with steam api features, music and a slideshow for TTT and other Gmod Games
MIT License
54 stars 23 forks source link

GMod just shows plain text #20

Closed matematrix closed 7 years ago

matematrix commented 7 years ago

Hello,

I have an issue, where the loading screen itself is working in the browser, but one day it was just showing plain text in GMOD. I assume that the PHP is working, because the player name and the map are shown, but everything is just in plain text.

CodeBrauer commented 7 years ago

Do you have a link?

I can imagine it had some issues loading the css, but on default it should work fine because it also doesn't use CDNs.

matematrix commented 7 years ago

Yes, the link is http://alzlper.com/gmodloading/.

matematrix commented 7 years ago

Just to add: I looked into the server console and it gave me a bunch of errors like this: [HTML] http://alzlper.com/gmodloading/index.php/js/vendor/jquery-1.10.1...:1: Uncaught SyntaxError: Unexpected token < Maybe this is the cause?

CodeBrauer commented 7 years ago

Hmm, don't know your server config - maybe try adding the full URL - in every src attribute:

So instead

<script src="js/vendor/jquery-1.10.1.min.js"></script>

You try:

<script src="//alzlper.com/gmodloading/js/vendor/jquery-1.10.1.min.js"></script>
matematrix commented 7 years ago

For me it looks like the server just has a problem with some Java. Tried your solution, didn't work sadly. What details of the server config do you need, I can provide them!

CodeBrauer commented 7 years ago

Hmm. One more question! Are you sure there is no leading slash on your gmod config?

When I call http://alzlper.com/gmodloading/index.php/ it looks broken like you described in first place

matematrix commented 7 years ago

Yeah, I played around a little bit with and experienced that, too. But I already changed that in the server cfg. But I am gonna try it again, thanks for you help until now :)

matematrix commented 7 years ago

Sorry, it was my own mistake, I had two server configs, and just edited in one. Sorry, but thanks for your help! 👍

Ghostly082 commented 7 years ago

What do you mean "two server configs" I am having the same issue

CodeBrauer commented 7 years ago

@Ghostly082 - If you have 2 gmod-servers with 2 different loading screens you need to create two directories with separate loadingscreen URLs.

In this case I assume @matematrix just edited the wrong server.cfg on his server