[Plugin] Timer Fix
#41

is better than fixes2?
Reply
#42

Now plugin works fine with y_timers (YSI).
Reply
#43

awesome
Reply
#44

Plugin updated to version 1.03

- Fix a issue with gamemode/fs unloading.
- Add a compatibility with sampctl.

The latest version is always available on the releases page.
Reply
#45

Does "GetTimerInterval" return the time left or just (like it sounds) the interval the timer started with or has been set to with "SetTimerInterval"?

I would like to have a GetTimerRemainingTime still.
Reply
#46

Updated.

Added a GetTimerRemainingTime native.
Reply
#47

Quote:
Originally Posted by KashCherry
Посмотреть сообщение
Now plugin works fine with y_timers (YSI).
PHP код:
warning 213tag mismatchexpected tag none ("_"), but found "Timer" 
I think you forgot to take into account of y_timers tags, since they're not done like normal timers.
Reply
#48

Quote:
Originally Posted by CantBeJohn
Посмотреть сообщение
PHP код:
warning 213tag mismatchexpected tag none ("_"), but found "Timer" 
I think you forgot to take into account of y_timers tags, since they're not done like normal timers.
It's not my problem, i guess.
Reply
#49

Quote:
Originally Posted by KashCherry
Посмотреть сообщение
It's not my problem, i guess.
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.
Reply
#50

Quote:
Originally Posted by CantBeJohn
Посмотреть сообщение
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?
Reply
#51

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

PHP код:
IsValidTimer(_:ExampleTimer
Reply
#52

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.
Reply
#53

Quote:
Originally Posted by GangstaSunny.
Посмотреть сообщение
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.
Reply
#54

Quote:
Originally Posted by KashCherry
Посмотреть сообщение
Hi. Thanks for your report, wait some time, please, I need to do tests.
Any update on this? This plugin is interesting indeed.
Reply
#55

Plugin updated to version 1.04. Download.
Reply
#56

[plugin.timerfix] error: cannot execute callback with name "Malloc_SolidifyTimer"
[plugin.timerfix] error: cannot execute callback with name "Malloc_SolidifyTimer"
Reply
#57

Quote:
Originally Posted by DeLTi
Посмотреть сообщение
[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
Reply
#58

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:
Код:
SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©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]    © 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
Reply
#59

Quote:
Originally Posted by Y_Less
Посмотреть сообщение
I confirmed another bug in timers the other day, and looking at your code, yours has the same. If you spawn 2^32 timers the ID wraps around and returns 0 as a valid ID. Fixing it is easy - just check if the ID is 0, and increment it again if so.
Yes, you're right, but I use signed int, so 2^31. However, it's not easy to create such a number of timers, of course if you don't do it on purpose. Unfortunately, increasing ID will not help. If the first timer with ID 1 isn't killed, then we will get a collision. I can change type for this variable, but then the functions like SetTimer will return ID < 0.
Reply
#60

Quote:
Originally Posted by StRaphael
Посмотреть сообщение
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:
Код:
SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©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]    © 2012 Alex "Y_Less" 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
Can you give me this fs?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)