Code Monkey home page Code Monkey logo

Comments (14)

dechristopher avatar dechristopher commented on June 27, 2024

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.

from get5.

RazSofer avatar RazSofer commented on June 27, 2024

@dechristopher
Already done, same thing.

from get5.

dechristopher avatar dechristopher commented on June 27, 2024

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?

from get5.

RazSofer avatar RazSofer commented on June 27, 2024

@dechristopher
It worked before with the same JSON file, only after we updated the plugin & added some features it started to happen.
Anyway:
http://pastebin.com/raw/4gm0Y20i

from get5.

dechristopher avatar dechristopher commented on June 27, 2024

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.

from get5.

RazSofer avatar RazSofer commented on June 27, 2024

@dechristopher
It doesn't matter, it's not working with or without lowercase (and it worked with lowercase characters before)
I also updated the plugin this moment to the latest version and it won't work as well.

from get5.

dechristopher avatar dechristopher commented on June 27, 2024

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.

from get5.

RazSofer avatar RazSofer commented on June 27, 2024

@dechristopher
An earlier build is working, that's what's weird..

from get5.

splewis avatar splewis commented on June 27, 2024

Can you give exact build numbers / commits that work and don't work? Additionally, can you post the output of sm exts list?

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.

from get5.

RazSofer avatar RazSofer commented on June 27, 2024

@splewis

sm exts list:

[01] Automatic Updater (1.8.0.5912): Updates SourceMod gamedata files
[02] Webternet (1.8.0.5912): Extension for interacting with URLs
[03] CS Tools (1.8.0.5912): CS extended functionality
[04] BinTools (1.8.0.5912): Low-level C/C++ Calling API
[05] SDK Tools (1.8.0.5912): Source SDK Tools
[06] SteamWorks Extension (1.2.1): Exposes SteamWorks functions to Developers
[07] SMJansson (2.6.0/1): JSON parser/writer
[08] System2 (2.32): System Commands and Information

The commit ID we were using to edit is:
b43869d
The latest commit to work:
2be5326

from get5.

splewis avatar splewis commented on June 27, 2024

I was able to successfully run get_loadmatch_url dl.splewis.net/test.json from b43869d.

from get5.

dechristopher avatar dechristopher commented on June 27, 2024

If the build is working on Sean's JSON, it may be a problem with the server you're downloading from.

from get5.

RazSofer avatar RazSofer commented on June 27, 2024

@splewis
Successfully loaded, I guess it's a problem with the directory.
@dechristopher
The game servers and the website are on the same box, I guess the problem is coming from a lack of access to the JSON files. Hope that what I'm planning to do gonna fix it.

Thanks!

from get5.

dechristopher avatar dechristopher commented on June 27, 2024

Make sure you can visit the URL in your browser, and additionally chmod the directory recursively as 755.

from get5.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.