Svenskunganka / OpenLoad

Garry's Mod Loading URL Framework
MIT License
14 stars 9 forks source link

It's just "Loading" data, and no steamId is coming up #4

Closed Xdeposh closed 10 years ago

Xdeposh commented 10 years ago

I've been trying to figure this out now for about 6 hours but it still wont work. I have allow_fopen_url. When I connect to my server I get this error in my Gmod console "[HTML]

PHP Error Message

Fatal error: Uncaught exception 'Exception' with message 'Could not create socket: ' in /home/a4418322/public_html/openload/src/lib/SourceQuery/Socket.class.php:51 Stack trace:

0 /home/a4418322/public_html/openload/src/lib/SourceQuery/SourceQuery.class.php(139): SourceQuerySocket->Open('88.89.146.211', 27005, 3, 1)

1 /home/a4418322/public_html/openload/src/core/ajax.php(29): SourceQuery->Connect('88.89.146.211', 27005)

2 {main}

thrown in /home/a4418322/public_html/openload/src/lib/SourceQuery/Socket.class.php on line 51

[HTML] Uncaught SyntaxError: Unexpected token <" And one more thing, in the src/config/config file, the servers there are supposed to be my public IP to the gmod server right?

Svenskunganka commented 10 years ago

You are using 000webhost.com, as far as I know you cannot make TCP connections from that host. You should purchase a hosting package or go with a better free host like x10hosting.com.

Either way the error says that OpenLoad cannot open a connection to your server (88.89.146.211:27005) so make sure your server is running and that's the correct IP. I just tried pinging your server and it seems to be down.

Xdeposh commented 10 years ago

Thank you so much :D I created a new hosting website at AlterVista and got it to work, but I got only one more problem now. It wont fetch the IP and I got this strange error "{"steamid":"STEAM_0:0:48273381","players":1,"playername":"","avatar":"","mapimage":"https:\/\/raw.githubusercontent.com\/Svenskunganka\/OpenLoad\/master\/templates\/strapquery\/img\/unknown_map.jpg","ip":"88.89.146.211:27015"} " By the way, thanks for fast response and I love your loadingurl design! :D Keep up the good work!

Svenskunganka commented 10 years ago

You have to bind your Steam API Key to your new website, as it's still bound to your previous website at 000webhost.com.

Xdeposh commented 10 years ago

But I have put my steam api In the config. Do I have to make a new one? ?

Svenskunganka commented 10 years ago

Yeah, as the steam api is bound to the domain you're using it on.

Xdeposh commented 10 years ago

Thanks :). How did you learn all this? You're a genius!

Xdeposh commented 10 years ago

Hmmmm, I did change the Steam API access code but I still get the error. This is the loading URL " gmodloadingurl.altervista.org/Openload/index.php?template=soil&sid=1 "

2014-10-08 12:26 GMT+02:00 Tom notifications@github.com:

Yeah, as the steam api is bound to the domain you're using it on.

— Reply to this email directly or view it on GitHub https://github.com/Svenskunganka/OpenLoad/issues/4#issuecomment-58338277 .

Svenskunganka commented 10 years ago

Not sure what error you are getting, but it works perfectly fine for me. This is the JSON response I'm getting when using my CommunityID:

{
  "steamid":"STEAM_0:0:14114233",
  "players":1,
  "playername":"Svenskunganka",
  "avatar":"http:\/\/media.steampowered.com\/steamcommunity\/public\/images\/avatars\/e8\/e82256b15b9b6bec77ba3e45afc599085ffd6ba8_full.jpg",
  "mapimage":"https:\/\/raw.githubusercontent.com\/Svenskunganka\/OpenLoad\/master\/templates\/strapquery\/img\/unknown_map.jpg",
  "ip":"88.89.146.211:27015"
} 

Everything seems to work perfectly fine according to the response.

Xdeposh commented 10 years ago

hmmm :D Thanks for the response, It might not work for me because I'm connecting to my server via that IP :D Thanks for the help and I'll now set this as closed, so you don't have to be annoyed with more of my dumb questions and issues :D Thanks for the help! You're the best!

2014-10-08 22:25 GMT+02:00 Tom notifications@github.com:

Not sure what error you are getting, but it works perfectly fine for me. This is the JSON response I'm getting when using my CommunityID:

{ "steamid":"STEAM_0:0:14114233", "players":1, "playername":"Svenskunganka", "avatar":"http:\/\/media.steampowered.com\/steamcommunity\/public\/images\/avatars\/e8\/e82256b15b9b6bec77ba3e45afc599085ffd6ba8_full.jpg", "mapimage":"https:\/\/raw.githubusercontent.com\/Svenskunganka\/OpenLoad\/master\/templates\/strapquery\/img\/unknown_map.jpg", "ip":"88.89.146.211:27015" }

Everything seems to work perfectly fine according to the response.

— Reply to this email directly or view it on GitHub https://github.com/Svenskunganka/OpenLoad/issues/4#issuecomment-58421409 .