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

Bot Played Time Faker (v1.2)


Post New Thread Reply   
 
Thread Tools Display Modes
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 12-22-2014 , 09:40   Re: Bot Played Time Faker (v1.1)
Reply With Quote #61

Quote:
Originally Posted by OvidiuS View Post
Installed podbot, installed this module. I added bots in server, and they get random time. If i try to check server info fake time is set, but if i refresh server info, fake time is not updated. Same thing is with hlsw.
Anyway problem is in getSeconds(). I tried changing gettimeofday to time( NULL ) and then it's working.
Still i'm not sure why gettimeofday is not working as it should.
@arkshine

Did you change it? I see the same code before and after the update on that function (now it's at utils.cpp)
baneado is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-22-2014 , 11:01   Re: Bot Played Time Faker (v1.2)
Reply With Quote #62

I've just refacfored the code and fixed a memory leak. I've tested it under windows and linux with bot in CZ, and was working fine. Just checked again under windows, and when I refresh, time is updated.
So I don't know whatever time() or gettimeofday() is more suitable. Maybe time() is enough here.
__________________

Last edited by Arkshine; 12-22-2014 at 11:08.
Arkshine is offline
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 12-22-2014 , 19:13   Re: Bot Played Time Faker (v1.2)
Reply With Quote #63

Quote:
Originally Posted by Arkshine View Post
I've just refacfored the code and fixed a memory leak. I've tested it under windows and linux with bot in CZ, and was working fine. Just checked again under windows, and when I refresh, time is updated.
So I don't know whatever time() or gettimeofday() is more suitable. Maybe time() is enough here.
but the refresh time problem it's on linux, not on windows...

I didn't test the module yet, but the code it's the same, so, it will have the same problem

Last edited by baneado; 12-22-2014 at 19:14.
baneado is offline
Kittie
Junior Member
Join Date: Nov 2014
Old 12-24-2014 , 03:33   Re: Bot Played Time Faker (v1.2)
Reply With Quote #64

Quote:
Originally Posted by Arkshine View Post
I've just refacfored the code and fixed a memory leak. I've tested it under windows and linux with bot in CZ, and was working fine. Just checked again under windows, and when I refresh, time is updated.
So I don't know whatever time() or gettimeofday() is more suitable. Maybe time() is enough here.
many thanks for new version, it's cool! :-)
Kittie is offline
.:cs.stambeto:.
Senior Member
Join Date: Feb 2010
Location: Bulgaria
Old 12-29-2014 , 13:33   Re: Bot Played Time Faker (v1.2)
Reply With Quote #65

I tried it in Windows put the file but does not show the file does not work.
.:cs.stambeto:. is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-29-2014 , 13:38   Re: Bot Played Time Faker (v1.2)
Reply With Quote #66

Without any concrete information, there is not going to help.
__________________
Arkshine is offline
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 01-20-2015 , 13:49   Re: Bot Played Time Faker (v1.2)
Reply With Quote #67

I've just downloaded new version, and i must say it looks interesting.
Detour library is something new for me, and i'm really interested in it.
Arkshine in first version you used chooker, and now you are using detours. Can detours be used to find function address? Like in chooker?

Example of what i mean:
Code:
SV_DropClient_Addr = Hooker->MemorySearch< Func_SV_DropClient>( "SV_DropClient", ( void* )gpGlobals, TRUE );
Hooker->CreateHook( ( void* )SV_DropClient_Addr, ( void* )SV_DropClient_Hook, TRUE ) ? true : false;
Can this be done with detours and is there any benefit using detours instead of chooker?

Last edited by OvidiuS; 01-20-2015 at 14:37.
OvidiuS is offline
Send a message via Skype™ to OvidiuS
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-20-2015 , 14:53   Re: Bot Played Time Faker (v1.2)
Reply With Quote #68

Stolen from SourceMod. It's basically the same, just named and designed a bit differently.

Don't remember exactly Chooker, but I would say:
- OSX is supported
- Can search hidden symbols
- Looks better (thanks to macros!)
- A bit more reliable when it comes to patching
- I find it also easier to work with it.
__________________
Arkshine is offline
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 01-20-2015 , 14:58   Re: Bot Played Time Faker (v1.2)
Reply With Quote #69

Quote:
Originally Posted by Arkshine View Post
Stolen from SourceMod. It's basically the same, just named and designed a bit differently.

Don't remember exactly Chooker, but I would say:
- OSX is supported
- Can search hidden symbols
- Looks better (thanks to macros!)
- A bit more reliable when it comes to patching
- I find it also easier to work with it.
Hm, is there any tutorial how to use it?
OvidiuS is offline
Send a message via Skype™ to OvidiuS
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-20-2015 , 15:04   Re: Bot Played Time Faker (v1.2)
Reply With Quote #70

No. But you don't need really, well read the existing code \o/. Nothing hard really. whatever this module, or AdminFreeLook, or even Cstrike module now (1.8.3-dev). For most of situations you can use the available macros.
__________________
Arkshine 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 00:57.


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