Raised This Month: $71 Target: $400
 17% 

Hamsandwich Updating


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-12-2014 , 15:37   Re: Hamsandwich Updating
#271

Thanks, fixed in git3792, but that's not really the place for that. Don't hesitate to PM me directly next time.
__________________
Arkshine is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-02-2014 , 05:10   Re: Hamsandwich Updating
#272

Bot without "player" classname is now supported by Ham in git3805+.

This can't be enabled by default considering existing workaround used by plugins and to avoid unexpected behavior.

A new "specialbot" param has been added to RegisterHam. On false by default.
A stock has been added as well named "RegisterHamPlayer" where you don't need provide "player" classname and specialbot is set to true already. Just to make code more intuitive.
__________________
Arkshine is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Old 05-02-2014 , 05:57   Re: Hamsandwich Updating
#273

Quote:
Originally Posted by Arkshine View Post
Bot without "player" classname is now supported by Ham in git3805+.

This can't be enabled by default considering existing workaround used by plugins and to avoid unexpected behavior.

A new "specialbot" param has been added to RegisterHam. On false by default.
A stock has been added as well named "RegisterHamPlayer" where you don't need provide "player" classname and specialbot is set to true already. Just to make code more intuitive.
Arkshine how to see the full changes log on current dev build? it seems the web page is updated, last time it easy to see changes log.

**Edited**
Typo detected:
Code:
/**
 * Hooks the virtual table for the player class.
 * An example would be: RegisterHam(Ham_TakeDamage, "player_hurt");
 * Look at the Ham enum for parameter lists.
 *
 * @param function        The function to hook.
 * @param callback        The forward to call.
 * @param post            Whether or not to forward this in post.
 * @return                 Returns a handle to the forward.  Use EnableHamForward/DisableHamForward to toggle the forward on or off.
 */
stock HamHook:RegisterHamPlayer(Ham:function, const Callback[], Post=0)
{
    return RegisterHam(function, "player", Callback, Post, .specialbot = true);
}
Error:
Code:
* An example would be: RegisterHam(Ham_TakeDamage, "player_hurt");
Should be:
Code:
* An example would be: RegisterHamPlayer(Ham_TakeDamage, "player_hurt");
__________________
Hi, 7 years ago i run nosteam servers and i support nosteam community. So please ban me. Thank you legitmodders.

Last edited by yokomo; 05-02-2014 at 06:04.
yokomo is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-02-2014 , 06:04   Re: Hamsandwich Updating
#274

Quote:
it seems the web page is updated, last time it easy to see changes log.
Not sure to understand this.

Anyway, there is no changelog like a clean list, you will have to read each commit from there : https://labs.alliedmods.net/am/amxmodx/commits/master
__________________
Arkshine is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Old 05-02-2014 , 06:22   Re: Hamsandwich Updating
#275

Quote:
Originally Posted by Arkshine View Post
Not sure to understand this.

Anyway, there is no changelog like a clean list, you will have to read each commit from there : https://labs.alliedmods.net/am/amxmodx/commits/master
Ok thanks, that is what i mean. Now i can track what has been done on each build.

By the way tested your new "RegisterHamPlayer" it working, but not sure about it stability. Hope it not giving any random crash.
__________________
Hi, 7 years ago i run nosteam servers and i support nosteam community. So please ban me. Thank you legitmodders.
yokomo is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-02-2014 , 06:30   Re: Hamsandwich Updating
#276

Why would it give random crash? Do you have some issue with it? Please elaborate.
__________________
Arkshine is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Old 05-02-2014 , 06:41   Re: Hamsandwich Updating
#277

Quote:
Originally Posted by Arkshine View Post
Why would it give random crash? Do you have some issue with it? Please elaborate.
At this moment no issue yet, i was talked about the modified ham module by someone name Slywes.. what ever his name not remember his version give random crash. I cant figure what cause it, but when i change default ham module server is ok.
__________________
Hi, 7 years ago i run nosteam servers and i support nosteam community. So please ban me. Thank you legitmodders.
yokomo is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-02-2014 , 06:59   Re: Hamsandwich Updating
#278

Oh. Well, if it happens, don't hesitate to tell here and try to keep in memory what you've done.

Oh˛, one thing which could be related to a crash, is he was freeing a string pointer wrongly (like using delete instead of delete[]). It's possible after map change, it could have fucked up things.
__________________

Last edited by Arkshine; 05-02-2014 at 07:00.
Arkshine is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 05-02-2014 , 21:01   Re: Hamsandwich Updating
#279

So this should be closed then?
Any reports should be reported under the amxx issue if I am right...
__________________
Accepting paid work for clans and communities. !Plugins & Models!
Don't hesitate to contact me.
bibu is offline
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 16:26.


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