Closed thewickerman22 closed 3 years ago
Check the utility-knife-dmg branch. That has the new requests implemented but please note there are currently issues with POST data not being sent.
Just because it's deprecated right now doesn't mean you can't use it. I would much rather switch over when everything is 100% stable :)
Thanks!
thanks for the reply
i have tried compling with the branch u said but i m getting compilation errors. i will give another try
The only warning I was getting was teh sHHTPTags was unused? In which case, I removed those. what other errors are you getting?
ok the plugin is compiled thanks
G5WS.smx (G5WS - Get5 Web Stats): Native "HTTPRequest.HTTPRequest" was not found getting this error
Did you include the natives and source from rest in pawn when compiling? That just means you're missing the library/source from it when trying to compile. Please ensure your sourcemod installation has the source for Rest in Pawn
For more info you can see how GitHub actions compiles this here https://github.com/PhlexPlexico/get5-webapi/blob/utility-knife-dmg/.github/workflows/make_release.yml
i m compiling in windows. i have included the latest sm source as well as RIP. do i need anythin extra for compiling. as per the workflow i have done everything still getting the error when plugin is uploaded to the server :(
Did you include Ripext on your Windows server in addons/sourcemod/extensions
or whichever directory it should be in?
yes i did
did for 64-bit also
sm extensions list
in your game server. Does rest in pawn appear?
yea
1.1.1? You need 1.3. httprequest was just implemented in 1.3, not 1.1.1.
ok my bad sorry
No worries! But please note that there are currently potential issues surrounding this plugin/RiP and windows servers. If you run into updates not being sent across, this may be the case.
ok
it is possible to use steamworks instead of RIP for G5 api. yesterday i checked the code of splwis. he had used steamworks for creating HTTP requests handle
The reason I chose ripext over Steamworks was because I am able to send an octet stream over HTTP, which allows demo uploads once a match finishes. If you want to use the old plugin, the API should be compatible with the old plugin as well, since I tried to keep it backwards compatible. But you will lose functionality such as demo uploads, veto picks, and side picks.
Also, since the issue was resolved, I'm going to close this for now since it's getting off topic. You can feel free to keep track in the issue linked above for when this other change may be fixed.
Thanks!
Deprecated HTTPClient methodmap Introduced HTTPRequest methodmap pls update if possible