Raised This Month: $252 Target: $400
 63% 

[EXTENSION] System2 - Easy to use HTTP(S)/FTP Request API and useful system natives


Post New Thread Reply   
 
Thread Tools Display Modes
dordnung
Veteran Member
Join Date: Apr 2010
Location: Germany
Old 05-29-2018 , 12:29   Re: [EXTENSION] System2 - Easy to use HTTP/FTP Request API and useful system natives
Reply With Quote #91

Update to System2 v3.2


- Added ability to use a proxy for requests (Pull Request by Kyle)

See System2Request.SetProxy and System2Request.SetProxyAuthentication methods for more information

- Updated to the latest OpenSSL and libcurl version
__________________
dordnung is offline
ThatKidWhoGames
Senior Member
Join Date: Jun 2013
Location: IsValidClient()
Old 06-10-2018 , 22:50   Re: [EXTENSION] System2 - Easy to use HTTP(S)/FTP Request API and useful system nativ
Reply With Quote #92

I tried compressing files with a plugin I was coding and it didn't work.

I used the test plugin and got this error:
Code:
L 06/10/2018 - 22:39:11: [SM] Exception reported: FAILURE: 7-ZIP should be available. Expected true, but was false
L 06/10/2018 - 22:39:11: [SM] Blaming: system2_test.smx
L 06/10/2018 - 22:39:11: [SM] Call stack trace:
L 06/10/2018 - 22:39:11: [SM]   [0] ThrowError
L 06/10/2018 - 22:39:11: [SM]   [1] Line 1111, C:\Users\grant\Documents\SourceMod Projects\projects\Any Game\My Plugins\BZ2 Compression\system2_test.sp::assertTrue
L 06/10/2018 - 22:39:11: [SM]   [2] Line 188, C:\Users\grant\Documents\SourceMod Projects\projects\Any Game\My Plugins\BZ2 Compression\system2_test.sp::PerformTests
L 06/10/2018 - 22:39:11: [SM]   [3] Line 123, C:\Users\grant\Documents\SourceMod Projects\projects\Any Game\My Plugins\BZ2 Compression\system2_test.sp::OnTest
I entered the command that is used for the compression itself into my command line:
Code:
"/home/tf2server/serverfiles/tf/addons/sourcemod/data/system2/linux/amd64/7z" a -tbzip2 "/home/tf2server/serverfiles/tf/custom/server/maps/vsh_crashbox_b4.bsp.bz2" "/home/tf2server/serverfiles/tf/custom/server/maps/vsh_crashbox_b4.bsp" -mmt -mx9 2>&1
This is what I got after entering the command:
Code:
/home/tf2server/serverfiles/tf/addons/sourcemod/data/system2/linux/amd64/7z: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /home/tf2server/serverfiles/tf/addons/sourcemod/data/system2/linux/amd64/7z)
I ensured that the 7Zip executable has the permissions 744. Running Debian 8 btw. Any help is appreciated!
__________________


I take custom plugin requests, add me on Steam for details.

Last edited by ThatKidWhoGames; 06-10-2018 at 22:53.
ThatKidWhoGames is offline
dordnung
Veteran Member
Join Date: Apr 2010
Location: Germany
Old 06-11-2018 , 07:33   Re: [EXTENSION] System2 - Easy to use HTTP(S)/FTP Request API and useful system nativ
Reply With Quote #93

Hey,

seems that libstdc++ is not installed on your machine. Can you install packages? If yes, try to install libstdc++ with "sudo apt-get install libstdc++6".

If not (or if it still not works), can you try whether the 32-Bit version works, as this does not require libstdc++.
So entering: ""/home/tf2server/serverfiles/tf/addons/sourcemod/data/system2/linux/i386/7z" a -tbzip2 "/home/tf2server/serverfiles/tf/custom/server/maps/vsh_crashbox_b4.bsp.bz2" "/home/tf2server/serverfiles/tf/custom/server/maps/vsh_crashbox_b4.bsp" -mmt -mx9 2>&1"

P.S.: I've added an example on the main post (at the bottom) on how to check whether the 32-bit executable has to be used.
__________________

Last edited by dordnung; 06-11-2018 at 07:53.
dordnung is offline
Balefire
Junior Member
Join Date: Sep 2010
Old 06-12-2018 , 18:58   Re: [EXTENSION] System2 - Easy to use HTTP(S)/FTP Request API and useful system nativ
Reply With Quote #94

Do you think it is possible to subsitute the curl extension used in this plugin:
https://forums.alliedmods.net/showth...TP+Prefetch%29
with your extension?

Trying to get the plugin to work again ...
Balefire is offline
dordnung
Veteran Member
Join Date: Apr 2010
Location: Germany
Old 06-12-2018 , 20:19   Re: [EXTENSION] System2 - Easy to use HTTP(S)/FTP Request API and useful system nativ
Reply With Quote #95

I've replaced it and sent you a PM
__________________
dordnung is offline
ThatKidWhoGames
Senior Member
Join Date: Jun 2013
Location: IsValidClient()
Old 06-13-2018 , 07:49   Re: [EXTENSION] System2 - Easy to use HTTP(S)/FTP Request API and useful system nativ
Reply With Quote #96

Quote:
Originally Posted by dordnung View Post
Hey,

seems that libstdc++ is not installed on your machine. Can you install packages? If yes, try to install libstdc++ with "sudo apt-get install libstdc++6".

If not (or if it still not works), can you try whether the 32-Bit version works, as this does not require libstdc++.
So entering: ""/home/tf2server/serverfiles/tf/addons/sourcemod/data/system2/linux/i386/7z" a -tbzip2 "/home/tf2server/serverfiles/tf/custom/server/maps/vsh_crashbox_b4.bsp.bz2" "/home/tf2server/serverfiles/tf/custom/server/maps/vsh_crashbox_b4.bsp" -mmt -mx9 2>&1"

P.S.: I've added an example on the main post (at the bottom) on how to check whether the 32-bit executable has to be used.
Hey,

Thank you for your response! I will try this once I can.
__________________


I take custom plugin requests, add me on Steam for details.
ThatKidWhoGames is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:02.


Powered by vBulletin®
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Theme made by Freecode