SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 25/09/2018, 01:05 PM   #61
KashCherry
Big Clucker
 
KashCherry's Avatar
 
Join Date: Feb 2018
Location: Estonia
Posts: 57
Reputation: 30
Default Re: Timer Fix

Quote:
Originally Posted by CantBeJohn View Post
Actually, it is. Creating timers (y_timers) works fine with your plugin, however your plugin's functions (IsValidTimer, SetTimerInterval, etc. . .) don't work when interacting with y_timers. I should have been clearer in the other post, my bad.
I don't understand what are you talking about? Is there an error or something else? Any example?
KashCherry is offline   Reply With Quote
Old 25/09/2018, 01:35 PM   #62
CantBeJohn
Big Clucker
 
CantBeJohn's Avatar
 
Join Date: Oct 2016
Posts: 106
Reputation: 15
Default Re: Timer Fix

Quote:
Originally Posted by KashCherry View Post
I don't understand what are you talking about? Is there an error or something else? Any example?
PHP Code:
new Timer:ExampleTimer;

ExampleTimer repeat Func(playerid); // This is how y_timers are created. Timers run fine with your plugin.

if(IsValidTimer(ExampleTimer)) // This (along with every other function your plugin offers doesn't work and gives the output: "warning 213: tag mismatch: expected tag none ("_"), but found "Timer"".

. . .

stop ExampleTimer// As it is right now, using your plugin stops this from working (aka, killing y_timers). 
In simple terms, I can't kill timers nor use any (of your plugin's) functions on them. Have you tried using y_timers and your plugin?
CantBeJohn is offline   Reply With Quote
Old 25/09/2018, 06:27 PM   #63
KashCherry
Big Clucker
 
KashCherry's Avatar
 
Join Date: Feb 2018
Location: Estonia
Posts: 57
Reputation: 30
Default Re: Timer Fix

Yes, it's not my problem, and i cannot fix it (plus it's just a warning). Solution:

PHP Code:
IsValidTimer(_:ExampleTimer
KashCherry is offline   Reply With Quote
Old 27/09/2018, 08:35 AM   #64
GangstaSunny.
Huge Clucker
 
GangstaSunny.'s Avatar
 
Join Date: Apr 2010
Location: Hamburg - Germany
Posts: 248
Reputation: 34
Default Re: Timer Fix

Hey,
i don't know what i meet this problem, but if the server is running for like a day (24 hours and more) there are several timers stop working.

Especially 2 timers.
I have a timer to update drug plant status. The timer will crash without any reasons, the same goes for gang zones.

Both timers are started at OnGameModeInit. Drugtimer = every 60000ms and Gangzonestimer = every 3600000ms.

There is no message in server log.
Both timers work great if server is starting.
GangstaSunny. is offline   Reply With Quote
Old 28/09/2018, 01:19 PM   #65
KashCherry
Big Clucker
 
KashCherry's Avatar
 
Join Date: Feb 2018
Location: Estonia
Posts: 57
Reputation: 30
Default Re: Timer Fix

Quote:
Originally Posted by GangstaSunny. View Post
Hey,
i don't know what i meet this problem, but if the server is running for like a day (24 hours and more) there are several timers stop working.

Especially 2 timers.
I have a timer to update drug plant status. The timer will crash without any reasons, the same goes for gang zones.

Both timers are started at OnGameModeInit. Drugtimer = every 60000ms and Gangzonestimer = every 3600000ms.

There is no message in server log.
Both timers work great if server is starting.
Hi. Thanks for your report, wait some time, please, I need to do tests.
KashCherry is offline   Reply With Quote
Old 07/10/2018, 07:18 AM   #66
Infin1ty
Banned
 
Join Date: Feb 2018
Posts: 118
Reputation: 52
Default Re: Timer Fix

Quote:
Originally Posted by KashCherry View Post
Hi. Thanks for your report, wait some time, please, I need to do tests.
Any update on this? This plugin is interesting indeed.
Infin1ty is offline   Reply With Quote
Old 07/10/2018, 08:23 AM   #67
KashCherry
Big Clucker
 
KashCherry's Avatar
 
Join Date: Feb 2018
Location: Estonia
Posts: 57
Reputation: 30
Default Re: Timer Fix

Plugin updated to version 1.04. Download.

Last edited by KashCherry; 11/10/2018 at 08:37 AM.
KashCherry is offline   Reply With Quote
Old 20/10/2018, 10:29 PM   #68
DeLTi
Little Clucker
 
Join Date: Nov 2016
Posts: 19
Reputation: 0
Default Re: Timer Fix

[plugin.timerfix] error: cannot execute callback with name "Malloc_SolidifyTimer"
[plugin.timerfix] error: cannot execute callback with name "Malloc_SolidifyTimer"
DeLTi is offline   Reply With Quote
Old 21/10/2018, 10:59 AM   #69
KashCherry
Big Clucker
 
KashCherry's Avatar
 
Join Date: Feb 2018
Location: Estonia
Posts: 57
Reputation: 30
Default Re: Timer Fix

Quote:
Originally Posted by DeLTi View Post
[plugin.timerfix] error: cannot execute callback with name "Malloc_SolidifyTimer"
[plugin.timerfix] error: cannot execute callback with name "Malloc_SolidifyTimer"
https://github.com/KashCherry/Timer-Fix-plugin/issues/5
KashCherry is offline   Reply With Quote
Old 03/11/2018, 01:37 PM   #70
StRaphael
Big Clucker
 
Join Date: Nov 2016
Posts: 119
Reputation: 0
Default Re: Timer Fix

When I put this plugin on my server the timers are freezing. I put the include in the script + the plugin.
When I run the gamemode with crashdetect I got this:
Code:
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team

[15:34:02] 
[15:34:02] Server Plugins
[15:34:02] --------------
[15:34:02]  Loading plugin: crashdetect.so
[15:34:02]   CrashDetect v4.15.1 is OK.
[15:34:02]   Loaded.
[15:34:02]  Loading plugin: timerfix.so
[15:34:02]   Timer Fix plugin v1.05 by KashCherry loaded.
[15:34:02]   Loaded.
[15:34:02]  Loading plugin: mysql_static.so
[15:34:02]  >> plugin.mysql: R34 successfully loaded.
[15:34:02]   Loaded.
[15:34:02]  Loading plugin: Whirlpool.so
[15:34:02]  
[15:34:02]  ==================
[15:34:02]  
[15:34:02]   Whirlpool loaded
[15:34:02]  
[15:34:02]  ==================
[15:34:02]  
[15:34:02]   Loaded.
[15:34:02]  Loading plugin: sscanf.so
[15:34:02] 

[15:34:02]  ===============================

[15:34:02]       sscanf plugin loaded.     

[15:34:02]          Version:  2.8.1        

[15:34:02]    (c) 2012 Alex "******" Cole  

[15:34:02]  ===============================

[15:34:02]   Loaded.
[15:34:02]  Loading plugin: streamer.so
[15:34:02] 

*** Streamer Plugin v2.9.3 by Incognito loaded ***

[15:34:02]   Loaded.
[15:34:02]  Loading plugin: pawncmd.so
[15:34:02] Pawn.CMD plugin v3.2.0 by urShadow has been loaded
[15:34:02]   Loaded.
[15:34:02]  Loaded 7 plugins.

[15:34:02] 
[15:34:02] Filterscripts
[15:34:02] ---------------
[15:34:02]   Loading filterscript 'GYM.amx'...
[15:34:02] [debug] Server crashed due to an unknown error
[15:34:02] [debug] Native backtrace:
[15:34:02] [debug] #0 f73e5e8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[15:34:02] [debug] #1 f73debcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[15:34:02] [debug] #2 f73dfdbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[15:34:02] [debug] #3 f73e0226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[15:34:02] [debug] #4 f73e5adc in ?? () from plugins/crashdetect.so
[15:34:02] [debug] #5 f7749410 in ?? ()
[15:34:02] [debug] #6 f7749430 in ?? ()
[15:34:02] [debug] #7 f7439137 in gsignal () from /lib/libc.so.6
[15:34:02] [debug] #8 f743a973 in abort () from /lib/libc.so.6
[15:34:02] [debug] #9 f747ae15 in ?? () from /lib/libc.so.6
[15:34:02] [debug] #10 f74838ad in ?? () from /lib/libc.so.6
[15:34:02] [debug] #11 f767baef in _ZdlPv () from /lib/libstdc++.so.6
[15:34:02] [debug] #12 f72de6e9 in _ZN4Hook5ApplyEP6tagAMX () from plugins/timerfix.so
[15:34:02] [debug] #13 f72df80f in AmxLoad () from plugins/timerfix.so
[15:34:02] [debug] #14 080d1c89 in ?? () from ./samp03svr
[15:34:02] [debug] #15 080a1261 in ?? () from ./samp03svr
[15:34:02] [debug] #16 080ab601 in ?? () from ./samp03svr
[15:34:02] [debug] #17 080aba0b in ?? () from ./samp03svr
[15:34:02] [debug] #18 080aa0fd in ?? () from ./samp03svr
[15:34:02] [debug] #19 f74241b3 in __libc_start_main () from /lib/libc.so.6
[15:34:02] [debug] #20 0804b4e1 in ?? () from ./samp03svr
any solution?
UPDATE:
After I removed all filterscripts from my server the plugin is working, but after I added the necessary fs to the server again, the timers are working slow, like 5 seconds are gone and then 2 seconds to go -1 on the timer.
This is really strange becouse I have tried with some fs who don't use timers.
Video:
yt.com/watch?v=wCnbSGuT2ow
ALSO I have a question: I heard that some timer fixes plugins(not this one) are going crazy after ~20 days. I need to know if someone tested this timer plugin and got no problem with timers going "crazy".
Thanks

Last edited by StRaphael; 03/11/2018 at 04:05 PM.
StRaphael is offline   Reply With Quote
Reply

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Timer ID stored in a variable gets wiped when timer hits ? NeXoR Scripting Help 2 25/03/2017 07:22 PM
Performance Question , Per Player Timer vs Timer that loops through all players BiosMarcel Scripting Help 14 12/12/2016 09:50 AM
If /foodsearch doesn't find item, set wait timer (TIMER HELP) Josh_Main Scripting Help 7 14/09/2016 04:13 PM
Which is better Per Player Timer or Global timer? (issue with timer) Dokins Scripting Help 4 07/06/2016 09:50 AM
Slice's Timer Fix include --> timer public function isn't getting called Riwerry Scripting Help 0 02/01/2016 03:50 PM


All times are GMT. The time now is 05:13 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.