Giter Club home page Giter Club logo

cvar-unhide's People

Contributors

bo98 avatar brikir avatar mruy avatar saul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cvar-unhide's Issues

CS:GO crashes

Using command cvarlist_all results in a crash.

Known working game version (as reference):

Protocol version 13844 [1519/1519]
Exe version 1.38.4.4 (csgo)
Exe build: 10:44:18 Sep 30 2022 (8598) (730)

Port on Linux

Hello is possible somehow get this running on linux CSGO server ?
Thank you

Counter-Strike 2 compatibility

Hey there, some days ago Valve's Counter-Strike 2 was launched for most players in an open beta. Is there a compatibility for this game or so, any plan to create it?

Current path: \steamapps\common\Counter-Strike Global Offensive\game\csgo

Create a static linked build

Currently the dependencies on the dll are linked dinamically l which means the computer loading the plugin must have the c/cpp core libraries available on windows.

If we change the build settings to generrate a static dll them all the dependencies will be bundled with it making it easier to install on new systems.

Currently I am trying to run the game on a lightweight windows installation without c/cpp core libraries and would be nice go not need then

More information:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/ab187afb-3af0-44ba-a03c-dde9e5208a1a/static-link-to-vc-runtime?forum=vclanguage

https://docs.microsoft.com/en-us/cpp/build/reference/md-mt-ld-use-run-time-library

Update cvarlist.md

Would it be possible to regenerate this list towards the current client?

Linux/OSX compile instructions

I am trying to use this addon on linux/osx csgo installation and in order to do that I need to compile the library targeting those devices instead of using the DLL files (usable only for Windows installation)

I've tried following the Valve Server Plugins tutorial but got few compilation errors (see below):

Steps to reproduce

1 - Changed hl2sdk/linux_sdk/Makefile.plugin
#
# Sample server plugin for SRC engine
#
# October 2004, [email protected]
#

override NAME = serverplugin

PLUGIN_SRC_DIR = $(SRC_DIR)/..
PUBLIC_SRC_DIR = $(SRC_DIR)/public
TIER0_PUBLIC_SRC_DIR = $(SRC_DIR)/public/tier0
TIER1_PUBLIC_SRC_DIR = $(SRC_DIR)/public/tier1

PLUGIN_OBJ_DIR = $(BUILD_OBJ_DIR)/serverplugin_$(ARCH)
TIER0_OBJ_DIR = $(PLUGIN_OBJ_DIR)/tier0

INCLUDEDIRS = -I$(PUBLIC_SRC_DIR) -I$(TIER0_PUBLIC_SRC_DIR) -I$(TIER1_PUBLIC_SRC_DIR)
LDFLAGS_PLG = -lm -ldl tier0_i486.so vstdlib_i486.so $(LIB_DIR)/mathlib_i486.a $(LIB_DIR)/tier1_i486.a $(LIB_DIR)/tier2_i486.a

DO_CC = $(CPLUS) $(INCLUDEDIRS) -DARCH=$(ARCH)

ifeq "$(DEBUG)" "true"
	DO_CC += $(DBG_DEFINES) $(DBG_CFLAGS)
else
	DO_CC += -DNDEBUG $(CFLAGS)
endif

DO_CC += -o $@ -c $<

#####################################################################

PLUGIN_OBJS = \
	$(PLUGIN_OBJ_DIR)/serverplugin.o

TIER0_OBJS = \
	$(TIER0_OBJ_DIR)/memoverride.o \

all: dirs $(NAME)_$(ARCH).$(SHLIBEXT)

dirs:
	-mkdir -p $(BUILD_OBJ_DIR)
	-mkdir -p $(PLUGIN_OBJ_DIR)
	-mkdir -p $(TIER0_OBJ_DIR)

$(NAME)_$(ARCH).$(SHLIBEXT): $(PLUGIN_OBJS) $(TIER0_OBJS)
	$(CLINK) -o $(BUILD_DIR)/$@ -m32 $(SHLIBLDFLAGS) $(PLUGIN_OBJS) $(TIER0_OBJS) $(PUBLIC_OBJS) $(CPP_LIB) $(LDFLAGS_PLG) $(CPP_LIB)

$(PLUGIN_OBJ_DIR)/%.o: $(PLUGIN_SRC_DIR)/%.cpp
	$(DO_CC)

$(TIER0_OBJ_DIR)/%.o: $(TIER0_PUBLIC_SRC_DIR)/%.cpp
	$(DO_CC)

clean:
	-rm -rf $(PLUGIN_OBJ_DIR)
	-rm -f $(NAME)_$(ARCH).$(SHLIBEXT)
2 - Run make plugin
make plugin
In file included from ../../serverplugin.cpp:20:
../public/tier1/fmtstr.h:53:3: error: second argument to 'va_start' is not the last named parameter [-Werror,-Wvarargs]
                FmtStrVSNPrintf(m_szBuf, SIZE_BUF, &pszFormat);
                ^
../public/tier1/fmtstr.h:30:21: note: expanded from macro 'FmtStrVSNPrintf'
                va_start(arg_ptr, (*(ppszFormat))); \
                                  ^
../public/tier1/fmtstr.h:59:3: error: second argument to 'va_start' is not the last named parameter [-Werror,-Wvarargs]
                FmtStrVSNPrintf(m_szBuf, SIZE_BUF, ppszFormat);
                ^
../public/tier1/fmtstr.h:30:21: note: expanded from macro 'FmtStrVSNPrintf'
                va_start(arg_ptr, (*(ppszFormat))); \
                                  ^
../public/tier1/fmtstr.h:65:3: error: second argument to 'va_start' is not the last named parameter [-Werror,-Wvarargs]
                FmtStrVSNPrintf(m_szBuf, SIZE_BUF, &pszFormat);
                ^
../public/tier1/fmtstr.h:30:21: note: expanded from macro 'FmtStrVSNPrintf'
                va_start(arg_ptr, (*(ppszFormat))); \
                                  ^
../public/tier1/fmtstr.h:72:3: error: second argument to 'va_start' is not the last named parameter [-Werror,-Wvarargs]
                FmtStrVSNPrintf(m_szBuf, SIZE_BUF, ppszFormat);
                ^
../public/tier1/fmtstr.h:30:21: note: expanded from macro 'FmtStrVSNPrintf'
                va_start(arg_ptr, (*(ppszFormat))); \
                                  ^
../public/tier1/fmtstr.h:84:110: error: second argument to 'va_start' is not the last named parameter [-Werror,-Wvarargs]
        void AppendFormat( const char *pchFormat, ... ) { int nLength = Length(); char *pchEnd = m_szBuf + nLength; FmtStrVSNPrintf( pchEnd, SI...
                                                                                                                    ^
../public/tier1/fmtstr.h:30:21: note: expanded from macro 'FmtStrVSNPrintf'
                va_start(arg_ptr, (*(ppszFormat))); \
                                  ^
../../serverplugin.cpp:135:15: error: variable type 'CServerPlugin' is an abstract class
CServerPlugin g_Plugin;
              ^
../public/engine/iserverplugin.h:137:17: note: unimplemented pure virtual method 'BNetworkCryptKeyCheckRequired' in 'CServerPlugin'
        virtual bool                    BNetworkCryptKeyCheckRequired( uint32 unFromIP, uint16 usFromPort, uint32 unAccountIdProvidedByClient,
                                        ^
../public/engine/iserverplugin.h:151:17: note: unimplemented pure virtual method 'BNetworkCryptKeyValidate' in 'CServerPlugin'
        virtual bool                    BNetworkCryptKeyValidate( uint32 unFromIP, uint16 usFromPort, uint32 unAccountIdProvidedByClient,
                                        ^
../../serverplugin.cpp:281:20: error: implicit instantiation of undefined template 'std::basic_string<char, std::char_traits<char>,
      std::allocator<char> >'
static std::string ConvarFlagsString(const ConCommandBase *cmd)
                   ^
/usr/include/c++/4.2.1/bits/stringfwd.h:56:11: note: template is declared here
    class basic_string;
          ^
../../serverplugin.cpp:286:19: error: reference to type 'const value_type' (aka 'const std::basic_string<char, std::char_traits<char>,
      std::allocator<char> >') could not bind to an lvalue of type 'const char [8]'
                flags.push_back("devonly");
                                ^~~~~~~~~
/usr/include/c++/4.2.1/bits/stl_vector.h:600:35: note: passing argument to parameter '__x' here
      push_back(const value_type& __x)
                                  ^
../../serverplugin.cpp:288:19: error: reference to type 'const value_type' (aka 'const std::basic_string<char, std::char_traits<char>,
      std::allocator<char> >') could not bind to an lvalue of type 'const char [3]'
                flags.push_back("sv");
                                ^~~~
/usr/include/c++/4.2.1/bits/stl_vector.h:600:35: note: passing argument to parameter '__x' here
      push_back(const value_type& __x)
                                  ^
../../serverplugin.cpp:290:19: error: reference to type 'const value_type' (aka 'const std::basic_string<char, std::char_traits<char>,
      std::allocator<char> >') could not bind to an lvalue of type 'const char [3]'
                flags.push_back("cl");
                                ^~~~
/usr/include/c++/4.2.1/bits/stl_vector.h:600:35: note: passing argument to parameter '__x' here
      push_back(const value_type& __x)
                                  ^
../../serverplugin.cpp:292:19: error: reference to type 'const value_type' (aka 'const std::basic_string<char, std::char_traits<char>,
      std::allocator<char> >') could not bind to an lvalue of type 'const char [7]'
                flags.push_back("hidden");
                                ^~~~~~~~
/usr/include/c++/4.2.1/bits/stl_vector.h:600:35: note: passing argument to parameter '__x' here
      push_back(const value_type& __x)
                                  ^
../../serverplugin.cpp:294:19: error: reference to type 'const value_type' (aka 'const std::basic_string<char, std::char_traits<char>,
      std::allocator<char> >') could not bind to an lvalue of type 'const char [5]'
                flags.push_back("prot");
                                ^~~~~~
/usr/include/c++/4.2.1/bits/stl_vector.h:600:35: note: passing argument to parameter '__x' here
      push_back(const value_type& __x)
                                  ^
../../serverplugin.cpp:296:19: error: reference to type 'const value_type' (aka 'const std::basic_string<char, std::char_traits<char>,
      std::allocator<char> >') could not bind to an lvalue of type 'const char [3]'
                flags.push_back("sp");
                                ^~~~
/usr/include/c++/4.2.1/bits/stl_vector.h:600:35: note: passing argument to parameter '__x' here
      push_back(const value_type& __x)
                                  ^
../../serverplugin.cpp:298:19: error: reference to type 'const value_type' (aka 'const std::basic_string<char, std::char_traits<char>,
      std::allocator<char> >') could not bind to an lvalue of type 'const char [2]'
                flags.push_back("a");
                                ^~~
/usr/include/c++/4.2.1/bits/stl_vector.h:600:35: note: passing argument to parameter '__x' here
      push_back(const value_type& __x)
                                  ^
../../serverplugin.cpp:300:19: error: reference to type 'const value_type' (aka 'const std::basic_string<char, std::char_traits<char>,
      std::allocator<char> >') could not bind to an lvalue of type 'const char [3]'
                flags.push_back("nf");
                                ^~~~
/usr/include/c++/4.2.1/bits/stl_vector.h:600:35: note: passing argument to parameter '__x' here
      push_back(const value_type& __x)
                                  ^
../../serverplugin.cpp:302:19: error: reference to type 'const value_type' (aka 'const std::basic_string<char, std::char_traits<char>,
      std::allocator<char> >') could not bind to an lvalue of type 'const char [5]'
                flags.push_back("user");
                                ^~~~~~
/usr/include/c++/4.2.1/bits/stl_vector.h:600:35: note: passing argument to parameter '__x' here
      push_back(const value_type& __x)
                                  ^
../../serverplugin.cpp:304:19: error: reference to type 'const value_type' (aka 'const std::basic_string<char, std::char_traits<char>,
      std::allocator<char> >') could not bind to an lvalue of type 'const char [6]'
                flags.push_back("print");
                                ^~~~~~~
/usr/include/c++/4.2.1/bits/stl_vector.h:600:35: note: passing argument to parameter '__x' here
      push_back(const value_type& __x)
                                  ^
../../serverplugin.cpp:306:19: error: reference to type 'const value_type' (aka 'const std::basic_string<char, std::char_traits<char>,
      std::allocator<char> >') could not bind to an lvalue of type 'const char [8]'
                flags.push_back("numeric");
                                ^~~~~~~~~
/usr/include/c++/4.2.1/bits/stl_vector.h:600:35: note: passing argument to parameter '__x' here
      push_back(const value_type& __x)
                                  ^
../../serverplugin.cpp:308:19: error: reference to type 'const value_type' (aka 'const std::basic_string<char, std::char_traits<char>,
      std::allocator<char> >') could not bind to an lvalue of type 'const char [4]'
                flags.push_back("rep");
                                ^~~~~
/usr/include/c++/4.2.1/bits/stl_vector.h:600:35: note: passing argument to parameter '__x' here
      push_back(const value_type& __x)
                                  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[1]: *** [obj/serverplugin_i486/serverplugin.o] Error 1
make: *** [plugin] Error 2

Not working on current CS:GO

Placed the file in addons and launched the game with -insecure. Also tried to load the plugin manually:

] plugin_load cvar-unhide
Unable to load plugin "cvar-unhide"
Unable to load plugin "cvar-unhide"
] plugin_load cvar-unhide.dll
Unable to load plugin "cvar-unhide.dll"
Unable to load plugin "cvar-unhide.dll"
] plugin_load addons/cvar-unhide
Unable to load plugin "addons/cvar-unhide"
Unable to load plugin "addons/cvar-unhide"
] plugin_load addons/cvar-unhide.dll
Unable to load plugin "addons/cvar-unhide.dll"
Unable to load plugin "addons/cvar-unhide.dll"

Portal 2 crashes after 2022-01-31 update

Since the latest Portal 2 update, running cvar_unhide_all, cvarlist_all, or find_all now instantly crash. cvar_set and force_dispatch still work fine, including on hidden/devonly cvars.

Don't force -insecure on dedicated server

Hey, I never had issues because my localhost testing server runs in insecure but now that I wanted to use this on a secure server I am running into the insecure-safeguard. I understand having this for clients but servers are allowed to use addons, so I am requesting either the addon to automatically detect if it is running as a client/server or maybe have an additional command line option to bypass the insecure check.

Cannot download from releases

There is an XML error about signatures being mismatched if you attempt to download any binaries from the Releases section

Question: Can this be made for Portal 2?

Hello I only recently discovered this and was wondering if there could be a version made that works for Portal 2?

EDIT: I read a reddit post that this did work for Portal 2 but the game has since been updated recently.

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.