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

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 , 14: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 , 04: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
Location: Malaysia
Old 05-02-2014 , 04: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");
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019

Last edited by yokomo; 05-02-2014 at 05:04.
yokomo is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-02-2014 , 05: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
Location: Malaysia
Old 05-02-2014 , 05: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.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-02-2014 , 05: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
Location: Malaysia
Old 05-02-2014 , 05: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.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-02-2014 , 05: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 06:00.
Arkshine is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 05-02-2014 , 20:01   Re: Hamsandwich Updating
#279

So this should be closed then?
Any reports should be reported under the amxx issue if I am right...
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
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 20:05.


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