Raised This Month: $ Target: $400
 0% 

[ANY] SteamWorks


Post New Thread Reply   
 
Thread Tools Display Modes
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 11-23-2020 , 10:49   Re: [ANY] SteamWorks
Reply With Quote #811

Quote:
Originally Posted by paulo_crash View Post
Would anyone know if the Windows version still works correctly?

I use this extension together with the CSGO SWGM Plugin, Linux version works all right. The Windows version runs and everything, but the plugin does not work.

Would anyone else have this problem, or would it be something in the plugin itself?

The plugin itself runs when the server starts for the first time, but changes the map to stop working.

I've checked error logs and nothing. Both the plugin and the SteamWorks extension still work, without errors, however the plugin does not do its job, it would block commands and check if the player is in the Steam Group.
Oops, anyone having this problem with Windows version? Is it due to the lack of this without the latest compiled version?
__________________
paulo_crash is offline
kadet.89
Veteran Member
Join Date: Nov 2012
Old 01-01-2021 , 16:12   Re: [ANY] SteamWorks
Reply With Quote #812

I'm trying to build this extension and get 3 such errors:
PHP Code:
/home/d/alliedmodders/SteamWorks/Extension/swgchooks.cpp:28:1errordelete called on non-final '__SourceHook_FHCls_ISteamGameCoordinatorSendMessage0::CMyDelegateImpl' that has virtual functions but non-virtual destructor [-Werror,-Wdelete-non-virtual-dtor]
SH_DECL_HOOK3(ISteamGameCoordinatorSendMessageSH_NOATTRIB0EGCResultsuint32, const void *, uint32);
^
/
home/d/alliedmodders/mmsource-1.10/core/sourcehook/sourcehook.h:1696:3noteexpanded from macro 'SH_DECL_HOOK3'
                
MAKE_DELEG(rettype, (param1 p1param2 p2param3 p3), (p1p2p3)); \
                ^
/
home/d/alliedmodders/mmsource-1.10/core/sourcehook/sourcehook.h:1047:23noteexpanded from macro 'MAKE_DELEG'
                
void DeleteThis() { delete this; } \ 
PHP Code:
/home/d/alliedmodders/sourcemod/public/amtl/amtl/am-string.h:110:28errorno member named 'make_unique' in namespace 'std'
        
auto buffer std::make_unique<char[]>(1); 
PHP Code:
/home/d/alliedmodders/SteamWorks/Extension/extension.cpp:74:2errordelete called on non-final 'SteamWorksHTTP' that has virtual functions but non-virtual destructor [-Werror,-Wdelete-non-virtual-dtor]
        
delete this->pSWHTTP
I'm using the latest SDK and clang 3.8. What could be the reason?
Also I had to add these pathes (ambuild couldn't find some headers):
Quote:
os.path.join(self.sm_root, 'sourcepawn', 'include'),
os.path.join(self.sm_root, 'public', 'amtl'),
os.path.join(self.sm_root, 'public', 'amtl', 'amtl'),
It seams to me that I'm building it the wrong way, is there an instruction?

Here are my steps:
1) I downloaded SDK, mm , sm this way https://wiki.alliedmods.net/Building_sourcemod
2) Placed SteamWorks alongside with sourcemod
3) Downloaded steamworks SDK from this link https://partner.steamgames.com/downl...mworks_sdk.zip
4) Extracted the arhive and renamed sdk to steamworks_sdk
5)
Quote:
cd SteamWorks
mkdir build
cd build
python ../configure.py
ambuild
UPD:
after switching to gcc 5.5 I get this error:
PHP Code:
/home/d/alliedmodders/SteamWorks/Extension/sdk/smsdk_ext.cpp:475:33errorexpected initializer before '_GLIBCXX_USE_NOEXCEPT'
 
void operator delete(void *ptr_GLIBCXX_USE_NOEXCEPT 

Last edited by kadet.89; 01-01-2021 at 20:36.
kadet.89 is offline
Send a message via Skype™ to kadet.89
NomisCZ
AlliedModders Donor
Join Date: Mar 2014
Location: Czech_Republic
Old 01-06-2021 , 16:09   Re: [ANY] SteamWorks
Reply With Quote #813

Check out updated AMBuildScript (https://github.com/hexa-core-eu/Stea.../AMBuildScript) and set environment variables CC and CXX to clang.

Try to add '-Wno-delete-non-virtual-dtor' to cxx.cxxflags

HTML Code:
CC=clang CXX=clang python ../configure.py <params ...>

Download compiled extension for Linux/Win/macOS: https://github.com/hexa-core-eu/SteamWorks/releases (SteamWorks 1.49, SM >= 1.10)
Or fork, edit what you want and build on Github (https://github.com/hexa-core-eu/Stea...flows/main.yml).


Quote:
Originally Posted by kadet.89 View Post
I'm trying to build this extension and get 3 such errors:
PHP Code:
/home/d/alliedmodders/SteamWorks/Extension/swgchooks.cpp:28:1errordelete called on non-final '__SourceHook_FHCls_ISteamGameCoordinatorSendMessage0::CMyDelegateImpl' that has virtual functions but non-virtual destructor [-Werror,-Wdelete-non-virtual-dtor]
SH_DECL_HOOK3(ISteamGameCoordinatorSendMessageSH_NOATTRIB0EGCResultsuint32, const void *, uint32);
^
/
home/d/alliedmodders/mmsource-1.10/core/sourcehook/sourcehook.h:1696:3noteexpanded from macro 'SH_DECL_HOOK3'
                
MAKE_DELEG(rettype, (param1 p1param2 p2param3 p3), (p1p2p3)); \
                ^
/
home/d/alliedmodders/mmsource-1.10/core/sourcehook/sourcehook.h:1047:23noteexpanded from macro 'MAKE_DELEG'
                
void DeleteThis() { delete this; } \ 
PHP Code:
/home/d/alliedmodders/sourcemod/public/amtl/amtl/am-string.h:110:28errorno member named 'make_unique' in namespace 'std'
        
auto buffer std::make_unique<char[]>(1); 
PHP Code:
/home/d/alliedmodders/SteamWorks/Extension/extension.cpp:74:2errordelete called on non-final 'SteamWorksHTTP' that has virtual functions but non-virtual destructor [-Werror,-Wdelete-non-virtual-dtor]
        
delete this->pSWHTTP
I'm using the latest SDK and clang 3.8. What could be the reason?
Also I had to add these pathes (ambuild couldn't find some headers):

It seams to me that I'm building it the wrong way, is there an instruction?

Here are my steps:
1) I downloaded SDK, mm , sm this way https://wiki.alliedmods.net/Building_sourcemod
2) Placed SteamWorks alongside with sourcemod
3) Downloaded steamworks SDK from this link https://partner.steamgames.com/downl...mworks_sdk.zip
4) Extracted the arhive and renamed sdk to steamworks_sdk
5)


UPD:
after switching to gcc 5.5 I get this error:
PHP Code:
/home/d/alliedmodders/SteamWorks/Extension/sdk/smsdk_ext.cpp:475:33errorexpected initializer before '_GLIBCXX_USE_NOEXCEPT'
 
void operator delete(void *ptr_GLIBCXX_USE_NOEXCEPT 
__________________

Last edited by NomisCZ; 01-06-2021 at 16:18.
NomisCZ is offline
kadet.89
Veteran Member
Join Date: Nov 2012
Old 01-24-2021 , 15:36   Re: [ANY] SteamWorks
Reply With Quote #814

I have a steam account with know login/password/steamid e.c.t. is there a way to get the account ISteamUser* interfase inside this extension?
I looked into the SDK specification and found this page: https://partner.steamgames.com/doc/api/ISteamClient
yet it's still not clear how user credetations should be specified to get the right ISteamUser*
All it needs to get the interface is HSteamPipe, which can be obtained with CreateSteamPipe() function. But the function doesn't have any arguments, and it's not clear what steam account the result ISteamUser* interface is for.

Last edited by kadet.89; 01-24-2021 at 15:40.
kadet.89 is offline
Send a message via Skype™ to kadet.89
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 02-01-2021 , 17:07   Re: [ANY] SteamWorks
Reply With Quote #815

SteamWorks will be compiled here again: http://users.alliedmods.net/~kyles/builds/SteamWorks/

Or is it now just his own GitHub? Any solution for getting the latest SteamWorks for Windows version?
__________________
paulo_crash 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 11:55.


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