Raised This Month: $ Target: $400
 0% 

When Hamsandwich is ready for Sven Co-op 5.0?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
STekLyAToR
Member
Join Date: May 2016
Old 05-19-2016 , 12:48   When Hamsandwich is ready for Sven Co-op 5.0?
Reply With Quote #1

Hello, where I using RegisterHam with hook 'Ham_TakeDamage' I get server crash. Please, tell me is there an alternative to this event, or when Hamsandwich for Sven Co-op 5.0 is released .
In SC 4.8 Ham work well.

Last edited by STekLyAToR; 05-19-2016 at 12:51. Reason: addition
STekLyAToR is offline
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 05-19-2016 , 14:30   Re: When Hamsandwich is ready for Sven Co-op 5.0?
Reply With Quote #2

HamSandwich does indeed work in SC5+, however the indexes are wrong.

Check out this post.
__________________
gabuch2 is offline
STekLyAToR
Member
Join Date: May 2016
Old 06-20-2016 , 16:26   Re: When Hamsandwich is ready for Sven Co-op 5.0?
Reply With Quote #3

Quote:
Originally Posted by Shattered Heart Lynx View Post
HamSandwich does indeed work in SC5+, however the indexes are wrong.
What I can do personally for my server? I need only one hook.
STekLyAToR is offline
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 06-21-2016 , 09:09   Re: When Hamsandwich is ready for Sven Co-op 5.0?
Reply With Quote #4

Which hook do you need?
__________________
gabuch2 is offline
STekLyAToR
Member
Join Date: May 2016
Old 06-21-2016 , 15:03   Re: When Hamsandwich is ready for Sven Co-op 5.0?
Reply With Quote #5

Quote:
Originally Posted by Shattered Heart Lynx View Post
Which hook do you need?
'Ham_TakeDamage' or 'Ham_SC_GetDamagePoints'
STekLyAToR is offline
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 06-21-2016 , 15:37   Re: When Hamsandwich is ready for Sven Co-op 5.0?
Reply With Quote #6

TakeDamage

>>

PHP Code:
const HamHam_SC_TakeDamage Ham_Classify
GetDamagePoints

>>

PHP Code:
const HamHam_SC_GetDamagePoints_New Ham_SC_OnDestroy
Untested, 1.8.3 or updated HamSandwich only, won't work on Vanilla HamSandwich.

Hook Ham_SC_TakeDamage and Ham_SC_GetDamagePoints_New.
__________________

Last edited by gabuch2; 06-21-2016 at 15:51.
gabuch2 is offline
STekLyAToR
Member
Join Date: May 2016
Old 06-22-2016 , 16:40   Re: When Hamsandwich is ready for Sven Co-op 5.0?
Reply With Quote #7

Quote:
Originally Posted by Shattered Heart Lynx View Post
TakeDamage

>>

PHP Code:
const HamHam_SC_TakeDamage Ham_Classify
GetDamagePoints

>>

PHP Code:
const HamHam_SC_GetDamagePoints_New Ham_SC_OnDestroy
Untested, 1.8.3 or updated HamSandwich only, won't work on Vanilla HamSandwich.
L
Hook Ham_SC_TakeDamage and Ham_SC_GetDamagePoints_New.
Big thanks for you!
STekLyAToR is offline
STekLyAToR
Member
Join Date: May 2016
Old 06-23-2016 , 08:47   Re: When Hamsandwich is ready for Sven Co-op 5.0?
Reply With Quote #8

Quote:
Originally Posted by Shattered Heart Lynx View Post
TakeDamage

>>

PHP Code:
const HamHam_SC_TakeDamage Ham_Classify
GetDamagePoints

>>

PHP Code:
const HamHam_SC_GetDamagePoints_New Ham_SC_OnDestroy
As I understand it, the problem lies in the mismatch of the indices of functions in the file hamdata.ini and present their sequence in the table with these functions. So, in what file can I find this table with the functions to if the developers will make some kind of update involving sequentially functions from a table, I didn't have to write again to the forum with a request to provide indexes for, I need hooks.
P.S: Think we need a table looks something like this, I copied it from the post on your link
P.S.S: Because these tables are different for Linux and Windows, how do I find the necessary file and extract from it a table? (I need table for Windows)
PHP Code:
CBaseEntity::Spawn(void)
CBaseEntity::PostSpawn(void)
CBaseEntity::Precache(void)
CBaseEntity::KeyValue(KeyValueData_s *)
CBaseEntity::GetKeyValue(char  const*,entvartype_s &)
CBaseEntity::Save(CSave &)
CBaseEntity::Restore(CRestore &)
CBaseEntity::ObjectCaps(void)
CBaseEntity::Activate(void)
CBaseEntity::SetObjectCollisionBox(void)
_ZN11CBaseEntity17GetClassificationEi_localalias_71
CBaseEntity
::SetClassification(int)
CBaseEntity::IRelationship(CBaseEntity*) 

Last edited by STekLyAToR; 06-23-2016 at 08:50.
STekLyAToR is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-23-2016 , 10:04   Re: When Hamsandwich is ready for Sven Co-op 5.0?
Reply With Quote #9

https://forums.alliedmods.net/showthread.php?t=118138
You can read here on how to find the virtual functions index. Even if the tutorial is for orpheu, the way of finding the indexes is the same.
__________________
HamletEagle is offline
STekLyAToR
Member
Join Date: May 2016
Old 06-24-2016 , 13:11   Re: When Hamsandwich is ready for Sven Co-op 5.0?
Reply With Quote #10

Never got to pull the indexes from server.dll, I used IDA.
Can give file .idb if anyone can find a table

Last edited by STekLyAToR; 06-24-2016 at 13:15.
STekLyAToR 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:24.


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