-
Notifications
You must be signed in to change notification settings - Fork 176
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
JSON won't load, for some reason. #31
Comments
If I can see past your first redaction correctly, it looks like you added http:// to the URL. Don't do that. I had the same issue with loading a match from a URL with my PUG system. Hope this helps, and if that's not the issue then God help you. |
@dechristopher |
In that case, check you root directory for the json file that the plugin downloads. The way get5 works is it takes the JSON from the URL and downloads it locally to the server's root directory. I don't recall what it names it but it shouldn't be that difficult to find. If the JSON file is filled with HTML and other bullshit, then it's an issue with actually grabbing the JSON file from the URL. The only other thing I can think of is making sure your JSON is formatted properly. Mind pasting it here? |
@dechristopher |
In that case I've got no idea. I've done plenty of additions to the plugin as well but none have broken JSON formatting. I hate to say it, but you've probably messed something up in the code somewhere. I'd run a diff on your code and the latest dev build to try to see where you could've gone wrong. I hope to god you've kept track of your changes in version control somewhere. If not then I can't really help you without looking at your codebase myself. Also, just FYI, in the maplist, you have de_nuke written as de_Nuke. You should make sure CS map names are all lowercase. |
@dechristopher |
If Sean's builds aren't working for you, then it's either something with the DNS on the box your CS server is on or it's just user error altogether. I can't really go any deeper without looking at the system myself. Again, check the root directory for the JSON file the server downloads. It's contents can help diagnose the issue more. |
@dechristopher |
Can you give exact build numbers / commits that work and don't work? Additionally, can you post the output of The behavior of the config fetching changes slightly based on whether system2 or steamworks is being used. If both are available, it defaults to using system2. |
sm exts list:
The commit ID we were using to edit is: |
I was able to successfully run |
If the build is working on Sean's JSON, it may be a problem with the server you're downloading from. |
@splewis Thanks! |
Make sure you can visit the URL in your browser, and additionally chmod the directory recursively as 755. |
Hey Sean.
I have this weird problem - the JSON file won't load from an url, but if I load it from the game directory, it will load perfectly.
It didn't do it before until my developer added some features to match my needs (we are working on an automated pug system, like FACEIT / PopFlash, but only local for our country.), but he didn't add / touch anything JSON-related things (I'm not a developer in your / his level, but I think it should break if we didn't touch it.)
What he did basically:
He didn't touch any JSON features.
Here are some examples:
Steps to reproduce
The text was updated successfully, but these errors were encountered: