Raised This Month: $ Target: $400
 0% 

[EXTENSION] Memory Hack


Post New Thread Reply   
 
Thread Tools Display Modes
klausenbusk
AlliedModders Donor
Join Date: Jan 2011
Old 06-19-2011 , 17:11   Re: [EXTENSION] Memory Hack
Reply With Quote #31

Quote:
Originally Posted by psychonic View Post
The maximum number of entities? Unlikely due to hardcoded static array sizes. Same reason that you can only raise player limits so high.
So hex edit?
klausenbusk is offline
psychonic

BAFFLED
Join Date: May 2008
Old 06-19-2011 , 17:16   Re: [EXTENSION] Memory Hack
Reply With Quote #32

Quote:
Originally Posted by klausenbusk View Post
So hex edit?
No.
psychonic is offline
zwaehnn
New Member
Join Date: Oct 2011
Old 11-13-2011 , 07:27   Re: [EXTENSION] Memory Hack
Reply With Quote #33

Hi,

I've tried installing the hack and the test hack.
The Online-Compiler has an error compiling the memoeyhack_demo_css.sp. So I compiled it locally.
After uploading the css_build of the extension and my compiled memoeyhack_demo_css.smx file I tried to load the plugin.
I get this error message:
Code:
[SM] Plugin memoeyhack_demo_css.smx failed to load: Required extension "MemoryHack" file("memoryhack.ext") not running.
P
In the extension list there is an error:
Code:
[10] <FAILED> file "memoryhack.ext.so": tier0_i486.so: cannot open shared object file: No such file or directory
Any ideas how to fix it?
zwaehnn is offline
Afronanny
Veteran Member
Join Date: Aug 2009
Old 11-13-2011 , 08:17   Re: [EXTENSION] Memory Hack
Reply With Quote #34

The extension needs to be recompiled.
ducks
Afronanny is offline
zwaehnn
New Member
Join Date: Oct 2011
Old 11-13-2011 , 12:19   Re: [EXTENSION] Memory Hack
Reply With Quote #35

OK, I got it recompiled. Here's my Makefile (I deleted the L4D part because I don't need it):
Code:
# (C)2004-2008 SourceMod Development Team
# Makefile written by David "BAILOPAN" Anderson

SMSDK = ../..
SRCDS_BASE = ../../../../../
HL2SDK_ORIG = ../../../hl2sdk
HL2SDK_OB = ../../../hl2sdk-ob
HL2SDK_OB_VALVE = ../../../hl2sdk-ob-valve
MMSOURCE17 = ../../../mmsource-1-8-mmsource-1.8.7

#####################################
### EDIT BELOW FOR OTHER PROJECTS ###
#####################################

PROJECT = memoryhack

#Uncomment for Metamod: Source enabled extension
USEMETA = true

OBJECTS = sdk/smsdk_ext.cpp extension.cpp natives.cpp mem_misc.cpp

##############################################
### CONFIGURE ANY OTHER FLAGS/OPTIONS HERE ###
##############################################

C_OPT_FLAGS = -DNDEBUG -O3 -funroll-loops -pipe -fno-strict-aliasing
C_DEBUG_FLAGS = -D_DEBUG -DDEBUG -g -ggdb3
C_GCC4_FLAGS = -fvisibility=hidden
CPP_GCC4_FLAGS = -fvisibility-inlines-hidden
CPP = gcc

override ENGSET = false
ifeq "$(ENGINE)" "original"
    HL2SDK = $(HL2SDK_ORIG)
    HL2PUB = $(HL2SDK)/public
    HL2LIB = $(HL2SDK)/linux_sdk
    CFLAGS += -DSOURCE_ENGINE=1
    METAMOD = $(MMSOURCE17)/core-legacy
    INCLUDE += -I$(HL2SDK)/public/dlls
    SRCDS = $(SRCDS_BASE)
    override ENGSET = true
endif
ifeq "$(ENGINE)" "orangebox"
    HL2SDK = $(HL2SDK_OB)
    HL2PUB = $(HL2SDK)/public
    HL2LIB = $(HL2SDK)/lib/linux
    CFLAGS += -DSOURCE_ENGINE=3
    METAMOD = $(MMSOURCE17)/core
    INCLUDE += -I$(HL2SDK)/public/game/server
    SRCDS = $(SRCDS_BASE)
    override ENGSET = true
endif
ifeq "$(ENGINE)" "orangeboxvalve"
    HL2SDK = $(HL2SDK_OB_VALVE)
    HL2PUB = $(HL2SDK)/public
    HL2LIB = $(HL2SDK)/lib/linux
    CFLAGS += -DSOURCE_ENGINE=4
    METAMOD = $(MMSOURCE17)/core
    INCLUDE += -I$(HL2SDK)/public/game/server
    SRCDS = $(SRCDS_BASE)
    override ENGSET = true
endif

ifeq "$(USEMETA)" "true"
    LINK_HL2 = $(HL2LIB)/tier1_i486.a libtier0.so

    LINK += $(LINK_HL2)

    INCLUDE += -I. -I.. -Isdk -I$(HL2PUB) -I$(HL2PUB)/engine -I$(HL2PUB)/tier0 -I$(HL2PUB)/tier1 \
        -I$(METAMOD) -I$(METAMOD)/sourcehook -I$(SMSDK)/public -I$(SMSDK)/public/extensions \
        -I$(SMSDK)/public/sourcepawn
    CFLAGS += -DSE_EPISODEONE=1 -DSE_DARKMESSIAH=2 -DSE_ORANGEBOX=3 -DSE_ORANGEBOXVALVE=4 -DSE_LEFT4DEAD=5
else
    INCLUDE += -I. -I.. -Isdk -I$(SMSDK)/public -I$(SMSDK)/public/sourcepawn
endif

LINK += -m32 -ldl -lm

CFLAGS += -D_LINUX -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp \
    -D_snprintf=snprintf -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -Wall -Werror -Wno-switch \
    -Wno-unused -mfpmath=sse -msse2 -DSOURCEMOD_BUILD -DHAVE_STDINT_H -m32
CPPFLAGS += -Wno-non-virtual-dtor -fno-exceptions -fno-rtti -fno-threadsafe-statics


################################################
### DO NOT EDIT BELOW HERE FOR MOST PROJECTS ###
################################################

ifeq "$(DEBUG)" "true"
    BIN_DIR = Debug
    CFLAGS += $(C_DEBUG_FLAGS)
else
    BIN_DIR = Release
    CFLAGS += $(C_OPT_FLAGS)
endif

ifeq "$(USEMETA)" "true"
    BIN_DIR := $(BIN_DIR).$(ENGINE)
endif

OS := $(shell uname -s)
ifeq "$(OS)" "Darwin"
    LINK += -dynamiclib
    BINARY = $(PROJECT).ext.dylib
else
    LINK += -static-libgcc -shared
    BINARY = $(PROJECT).ext.so
endif

GCC_VERSION := $(shell $(CPP) -dumpversion >&1 | cut -b1)
ifeq "$(GCC_VERSION)" "4"
    CFLAGS += $(C_GCC4_FLAGS)
    CPPFLAGS += $(CPP_GCC4_FLAGS)
endif

BINARY = $(PROJECT).ext.so

OBJ_LINUX := $(OBJECTS:%.cpp=$(BIN_DIR)/%.o)

$(BIN_DIR)/%.o: %.cpp
    $(CPP) $(INCLUDE) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<

all: check
    mkdir -p $(BIN_DIR)/sdk
    if [ "$(USEMETA)" = "true" ]; then \
        ln -sf $(SRCDS)/bin/libtier0.so libtier0.so; \
    fi
    $(MAKE) -f Makefile extension

check:
    if [ "$(USEMETA)" = "true" ] && [ "$(ENGSET)" = "false" ]; then \
        echo "You must supply ENGINE=left4dead or ENGINE=orangebox or ENGINE=original"; \
        exit 1; \
    fi

extension: check $(OBJ_LINUX)
    $(CPP) $(INCLUDE) $(OBJ_LINUX) $(LINK) -o $(BIN_DIR)/$(BINARY)

debug:
    $(MAKE) -f Makefile all DEBUG=true

default: all

clean: check
    rm -rf $(BIN_DIR)/*.o
    rm -rf $(BIN_DIR)/sdk/*.o
    rm -rf $(BIN_DIR)/$(BINARY)
I can load the extension and the plugin successfully, but the plugin isn't working.
But I guess the Offsets and Signatures definded in gamedata/memoryhack.txt are no longer up-to-date.
And I can't find any of the offsets and signatures.

Any ideas how I can get the plugin working again?


Edit: I just noticed that at least the changing of the game-name is working.
Attached Files
File Type: so memoryhack.ext.so (38.5 KB, 221 views)

Last edited by zwaehnn; 11-15-2011 at 07:03. Reason: uploaded recompiled extension
zwaehnn is offline
jungjunghoo
Senior Member
Join Date: Sep 2009
Old 11-18-2011 , 07:05   Re: [EXTENSION] Memory Hack
Reply With Quote #36

Quote:
Originally Posted by zwaehnn View Post
Hi,

I've tried installing the hack and the test hack.
The Online-Compiler has an error compiling the memoeyhack_demo_css.sp. So I compiled it locally.
After uploading the css_build of the extension and my compiled memoeyhack_demo_css.smx file I tried to load the plugin.
I get this error message:
Code:
[SM] Plugin memoeyhack_demo_css.smx failed to load: Required extension "MemoryHack" file("memoryhack.ext") not running.
P
In the extension list there is an error:
Code:
[10] <FAILED> file "memoryhack.ext.so": tier0_i486.so: cannot open shared object file: No such file or directory
Any ideas how to fix it?
We need help about this. update plz!
jungjunghoo is offline
Reply



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 19:38.


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