Raised This Month: $12 Target: $400
 3% 

Hamsandwich Updating


Post New Thread Closed Thread   
 
Thread Tools Display Modes
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 06-23-2011 , 19:36   Re: Hamsandwich Updating
#21

Quote:
Originally Posted by KORD_12.7 View Post
I have used IDA and yours with Arkshine tutorials to find ag offsets.
And one man helped me to find op4 offsets without linux binary (but not shure if they 100% right, need to check ).


Op4 offsets not the same as hldm. I have tested some hl plugins in op4 with "@mirror valve gearbox" and there was crashes.
Ok . I asked because I was curious to know other techniques and for "base" and "pev" me and Arkshine didn't even have one that didn't deal with making c++ code to figure them out brute force style but we figured out today a clean way to get them

Arkshine added the offsets, you can check it here:
https://github.com/joaquimandrade/Hamsandwich-Update

Now, I don't know if he tested them but since there is no linux binary what you can do to put it together yourself is to start from the first function and try to find the first that makes it crash. If you find it try to see if you add +1 it doesn't crash anymore (try this 3 times). If it works as It should increase the next offsets of the list by the same amount you increased that one. If it doesn't maybe they have different headers so pass to the next function and tell us

Example:

Code:
scream 32
dance 33
shut 34
stuff 35
levitate 36
"dance" crashes.
Make it 34.
It works? make shut 35, stuff 36, levitate 37.
It doesn't? make it 35.
It works? make shut 36, stuff 37, levitate 38.
It doesn't? make it 36
It works? make shut 37, stuff 38, levitate 39.
It doesn't? ignore it and check shut.
joaquimandrade is offline
KORD_12.7
Senior Member
Join Date: Aug 2009
Location: Russia, Vladivostok
Old 06-23-2011 , 19:45   Re: Hamsandwich Updating
#22

Ok, I will try to check them with your method
__________________

Vi Veri Veniversum Vivus Vici
Russian Half-Life and Adrenaline Gamer community
KORD_12.7 is offline
Send a message via ICQ to KORD_12.7
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 06-24-2011 , 17:06   Re: Hamsandwich Updating
#23

Hey, cool stuff you guys have here!
I have quite some experience with Git and Github so if you want any help feel free to ask.
I can also test on a Linux server.

Keep on with the nice work
Seta00 is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 06-24-2011 , 18:05   Re: Hamsandwich Updating
#24

Quote:
Originally Posted by Seta00 View Post
Hey, cool stuff you guys have here!
I have quite some experience with Git and Github so if you want any help feel free to ask.
I can also test on a Linux server.

Keep on with the nice work
Thanks

The purpose of this "project" is to make a "final" version of hamsandwich with all functions functional, no bugs, and more mod specific functions. So, everyone is welcome to join us helping in make the documentation better, suggestions, point us to other mods, code, whatever. We shall call it then Hamsandwich Community Edition
joaquimandrade is offline
KORD_12.7
Senior Member
Join Date: Aug 2009
Location: Russia, Vladivostok
Old 06-24-2011 , 22:08   Re: Hamsandwich Updating
#25

I have just checked up these offsets for AG 6.6
Code:
@section ag linux
	pev 0
	base 0x60
	
	spawn 2
	precache 3
	keyvalue 4
	objectcaps 7
	activate 8
	setobjectcollisionbox 9
	classify 10
	deathnotice 11
	traceattack 12
	takedamage 13
	takehealth 14
	killed 15
	bloodcolor 16
	tracebleed 17
	istriggered 18
	mymonsterpointer 19
	mysquadmonsterpointer 20
	gettogglestate 21
	addpoints 22
	addpointstoteam 23
	addplayeritem 24
	removeplayeritem 25
	giveammo 26
	getdelay 27
	ismoving 28
	overridereset 29
	damagedecal 30
	settogglestate 31
	startsneaking 32
	stopsneaking 33
	oncontrols 34
	issneaking 35
	isalive 36
	isbspmodel 37
	reflectgauss 38
	hastarget 39
	isinworld 40
	isplayer 41
	isnetclient 42
	teamid 43
	getnexttarget 44
	think 45
	touch 46
	use 47
	blocked 48
	respawn 50
	updateowner 51
	fbecomeprone 52
	center 53
	eyeposition 54
	earposition 55
	bodytarget 56
	illumination 57
	fvisible 58
	fvecvisible 59
	
	player_jump 129
	player_duck 130
	player_prethink 131
	player_postthink 132
	player_getgunposition 123
	player_shouldfadeondeath 64
	player_impulsecommands 134
	player_updateclientdata  133
	
	item_addtoplayer 61
	item_addduplicate 62
	item_getiteminfo 63
	item_candeploy 64
	item_deploy 65
	item_canholster 66
	item_holster 67
	item_updateiteminfo 68
	item_preframe 69
	item_postframe 70
	item_drop 71
	item_kill 72
	item_attachtoplayer 73
	item_primaryammoindex 74
	item_secondaryammoindex 75
	item_updateclientdata 76
	item_getweaponptr 77
	item_itemslot 78
	
	weapon_extractammo 79
	weapon_extractclipammo 80
	weapon_addweapon 81
	weapon_playemptysound 82
	weapon_resetemptysound 83
	weapon_sendweaponanim 84
	weapon_isusable 85
	weapon_primaryattack 86
	weapon_secondaryattack 87
	weapon_reload 88
	weapon_weaponidle 89
	weapon_retireweapon 90
	weapon_shouldweaponidle 91
	weapon_usedecrement 92
	
@end
@section ag windows
	pev 4
	base 0x0
	
	spawn 0
	precache 1
	keyvalue 2
	objectcaps 5
	activate 6
	setobjectcollisionbox 7
	classify 8
	deathnotice 9
	traceattack 10
	takedamage 11
	takehealth 12
	killed 13
	bloodcolor 14
	tracebleed 15
	istriggered 16
	mymonsterpointer 17
	mysquadmonsterpointer 18
	gettogglestate 19
	addpoints 20
	addpointstoteam 21
	addplayeritem 22
	removeplayeritem 23
	giveammo 24
	getdelay 25
	ismoving 26
	overridereset 27
	damagedecal 28
	settogglestate 29
	startsneaking 30
	stopsneaking 31
	oncontrols 32
	issneaking 33
	isalive 34
	isbspmodel 35
	reflectgauss 36
	hastarget 37
	isinworld 38
	isplayer 39
	isnetclient 40
	teamid 41
	getnexttarget 42
	think 43
	touch 44
	use 45
	blocked 46
	respawn 48
	updateowner 49
	fbecomeprone 50
	center 51
	eyeposition 52
	earposition 53
	bodytarget 54
	illumination 55
	fvisible 56
	fvecvisible 57
	
	player_jump 127
	player_duck 128
	player_prethink 129
	player_postthink 130
	player_getgunposition 121
	player_shouldfadeondeath 62
	player_impulsecommands 132
	player_updateclientdata  131
	
	item_addtoplayer 59
	item_addduplicate 60
	item_getiteminfo 61
	item_candeploy 62
	item_deploy 63
	item_canholster 64
	item_holster 65
	item_updateiteminfo 66
	item_preframe 67
	item_postframe 68
	item_drop 69
	item_kill 70
	item_attachtoplayer 71
	item_primaryammoindex 72
	item_secondaryammoindex 73
	item_updateclientdata 74
	item_getweaponptr 75
	item_itemslot 76
	
	weapon_extractammo 77
	weapon_extractclipammo 78
	weapon_addweapon 79
	weapon_playemptysound 80
	weapon_resetemptysound 81
	weapon_sendweaponanim 82
	weapon_isusable 83
	weapon_primaryattack 84
	weapon_secondaryattack 85
	weapon_reload 86
	weapon_weaponidle 87
	weapon_retireweapon 88
	weapon_shouldweaponidle 89
	weapon_usedecrement 90
	
@end
They are work fine. Op4 offsets next in my row

For now, windows section of ag offsets is incorrect in repository: https://github.com/joaquimandrade/Ha...ig/hamdata.ini
__________________

Vi Veri Veniversum Vivus Vici
Russian Half-Life and Adrenaline Gamer community

Last edited by KORD_12.7; 06-24-2011 at 22:20.
KORD_12.7 is offline
Send a message via ICQ to KORD_12.7
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 06-24-2011 , 22:14   Re: Hamsandwich Updating
#26

Thank you for helping! Arkshine should add them tomorrow. If you want to and are comfortable with git I can give you access to make modifications yourself.

Just a little thing, you are missing a space in "item_postframe70"
joaquimandrade is offline
KORD_12.7
Senior Member
Join Date: Aug 2009
Location: Russia, Vladivostok
Old 06-24-2011 , 22:29   Re: Hamsandwich Updating
#27

Quote:
Thank you for helping! Arkshine should add them tomorrow.
I'm glad to help

Quote:
If you want to and are comfortable with git I can give you access to make modifications yourself.
It is not necessary, because i dont have working experience with SVN

Quote:
Just a little thing, you are missing a space in "item_postframe70"
Oh, my bad, fixed now
__________________

Vi Veri Veniversum Vivus Vici
Russian Half-Life and Adrenaline Gamer community
KORD_12.7 is offline
Send a message via ICQ to KORD_12.7
KORD_12.7
Senior Member
Join Date: Aug 2009
Location: Russia, Vladivostok
Old 06-25-2011 , 03:39   Re: Hamsandwich Updating
#28

Here is correct gearbox offsets (i'm checked it with "dance" crashes )
Need do update git.
Code:
@section gearbox windows
	pev 4
	base 0x0
	
	spawn 0
	precache 1
	keyvalue 2
	objectcaps 5
	activate 6
	setobjectcollisionbox 7
	classify 8
	deathnotice 9
	traceattack 10
	takedamage 11
	takehealth 12
	killed 13
	bloodcolor 14
	tracebleed 15
	istriggered 16
	mymonsterpointer 17
	mysquadmonsterpointer 18
	gettogglestate 19
	addpoints 21
	addpointstoteam 22
	addplayeritem 23
	removeplayeritem 24
	giveammo 25
	getdelay 26
	ismoving 27
	overridereset 28
	damagedecal 29
	settogglestate 30
	startsneaking 31
	stopsneaking 32
	oncontrols 33
	issneaking 34
	isalive 35
	isbspmodel 36
	reflectgauss 37
	hastarget 38
	isinworld 39
	isplayer 40
	isnetclient 41
	teamid 42
	getnexttarget 43
	think 44
	touch 45
	use 46
	blocked 47
	respawn 48
	updateowner 49
	fbecomeprone 50
	center 51
	eyeposition 52
	earposition 53
	bodytarget 54
	illumination 55
	fvisible 56
	fvecvisible 57
	
	player_jump 127
	player_duck 128
	player_prethink 129
	player_postthink 130
	player_getgunposition 121
	player_shouldfadeondeath 62
	player_impulsecommands 132
	player_updateclientdata  131
	
	item_addtoplayer 60
	item_addduplicate 61
	item_getiteminfo 62
	item_candeploy 63
	item_deploy 64
	item_canholster 65
	item_holster 66
	item_updateiteminfo 67
	item_preframe 68
	item_postframe 69
	item_drop 70
	item_kill 71
	item_attachtoplayer 72
	item_primaryammoindex 73
	item_secondaryammoindex 74
	item_updateclientdata 76
	item_getweaponptr 77
	item_itemslot 78
	
	weapon_extractammo 79
	weapon_extractclipammo 80
	weapon_addweapon 81
	weapon_playemptysound 82
	weapon_resetemptysound 83
	weapon_sendweaponanim 84
	weapon_isusable 85
	weapon_primaryattack 86
	weapon_secondaryattack 87
	weapon_reload 88
	weapon_weaponidle 89
	weapon_retireweapon 90
	weapon_shouldweaponidle 91
	weapon_usedecrement 92
@end
EDIT: Little mistake here: https://github.com/joaquimandrade/Ha.../ham_const.inc

672:
Code:
* Execute params:	ExecuteHam(Ham_Item_Drop, this);
-->
Code:
* Execute params:	ExecuteHam(Ham_Item_Kill, this);
__________________

Vi Veri Veniversum Vivus Vici
Russian Half-Life and Adrenaline Gamer community

Last edited by KORD_12.7; 06-25-2011 at 04:31.
KORD_12.7 is offline
Send a message via ICQ to KORD_12.7
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-25-2011 , 05:38   Re: Hamsandwich Updating
#29

Changes are done, KORD_12.7. New offsets have been added after fvecvisible, it would be nice if you could check them too. Thanks.
__________________
Arkshine is offline
KORD_12.7
Senior Member
Join Date: Aug 2009
Location: Russia, Vladivostok
Old 06-25-2011 , 07:49   Re: Hamsandwich Updating
#30

I have checked new offsets after fvecvisible for ag in IDA, it's fine. About op4, i dont know description of these new functions and so i dont know how to organize right "dance" crashes for them, sorry
__________________

Vi Veri Veniversum Vivus Vici
Russian Half-Life and Adrenaline Gamer community
KORD_12.7 is offline
Send a message via ICQ to KORD_12.7
Closed Thread


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 07:32.


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