Re: Timer Fix -
StRaphael - 04.11.2018
Quote:
Originally Posted by KashCherry
Can you give me this fs?
|
For sure:
https://pastebin.com/SQDWfc6S (this fs I used in my video)
And another fs(that I didn't used in the video)
https://pastebin.com/9pSXpkQ0
Re: Timer Fix -
KashCherry - 07.11.2018
Plugin updated to version 1.06
- Fixed (big) delays.
- Added warning message about a large number of timers.
Download from
Releases page.
Re: Timer Fix -
StRaphael - 07.11.2018
Quote:
Originally Posted by KashCherry
Plugin updated to version 1.06
- Fixed (big) delays.
- Added warning message about a large number of timers.
Download from Releases page.
|
Hello, since I updated this plugin with the latest version I get this errors in server_log, so my server won't open:
[21:24:55] Loading plugin: timerfix.so
[21:24:55] Failed (plugins/timerfix.so: undefined symbol: pAMXFunctions)
Re: Timer Fix -
KashCherry - 07.11.2018
Quote:
Originally Posted by StRaphael
Hello, since I updated this plugin with the latest version I get this errors in server_log, so my server won't open:
[21:24:55] Loading plugin: timerfix.so
[21:24:55] Failed (plugins/timerfix.so: undefined symbol: pAMXFunctions)
|
oh, yes, I'm sorry.
Reload please.
Re: Timer Fix -
StRaphael - 07.11.2018
Still the timers not working well with filterscripts. I mean the timers remains behind. I have tried to count with a crono, and when I add fs, the timers aren't really very accurate(-1 second by 20 seconds...or something...I think I checked 2 or 3 times).
I'm not really sure if I was really very accurate, but still I think this plugin it's not working very good with filterscripts.
Re: Timer Fix -
KashCherry - 08.11.2018
Quote:
Originally Posted by StRaphael
Still the timers not working well with filterscripts. I mean the timers remains behind. I have tried to count with a crono, and when I add fs, the timers aren't really very accurate(-1 second by 20 seconds...or something...I think I checked 2 or 3 times).
I'm not really sure if I was really very accurate, but still I think this plugin it's not working very good with filterscripts.
|
You could use
this test.
And during testing, the really big delays were not visible (except ProcessTick delay).
Make sure the problem is valid.
Re: Timer Fix -
StRaphael - 08.11.2018
Quote:
Originally Posted by KashCherry
You could use this test.
And during testing, the really big delays were not visible (except ProcessTick delay).
Make sure the problem is valid.
|
I made 2 videos that proves my problem, one with filtrescripts and one without any fs.
Links:
yt.com/watch?v=It7Kx-hsKME (with fs(and yes, the fs is using timers))
yt.com/watch?v=Xo-kl0PkPZY (without any fs)
Re: Timer Fix -
KashCherry - 08.11.2018
Quote:
Originally Posted by StRaphael
I made 2 videos that proves my problem, one with filtrescripts and one without any fs.
Links:
yt.com/watch?v=It7Kx-hsKME (with fs(and yes, the fs is using timers))
yt.com/watch?v=Xo-kl0PkPZY (without any fs)
|
Ok, thank you for the information. I'll try to figure out what the problem is.
Re: Timer Fix -
HommeDieu - 28.01.2019
Quote:
Originally Posted by KashCherry
Updated.
Added a GetTimerRemainingTime native.
|
Update
timerfix.inc, please
Re: Timer Fix -
gurmani11 - 17.09.2019
Moreover, this plugin stops working and a global timer stops ticking. However, if we run other plugins after one is dead, they work
Re: Timer Fix -
KashCherry - 13.01.2020
Plugin updated to version
1.1.1
Fixed:
- Fixed the problem when timers just stopped.
- Fixed the problem when the callback was called after the timer was deleted.
Added:
- Now you can pause the timer and continue it in the future.
Example:
PHP Code:
#include <timerfix>
new timer[MAX_PLAYERS];
forward WhileNotInVehicle(playerid);
public WhileNotInVehicle(playerid)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
timer[playerid] = SetTimerEx("WhileNotInVehicle", 1000, true, "i", playerid);
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
PauseTimer(timer[playerid]);
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
ContinueTimer(timer[playerid]);
}
- You can add additional callbacks for one timer.
Example:
PHP Code:
#include <timerfix>
forward CallbackOne(number);
public CallbackOne(number)
{
printf("[CallbackOne] Number is %d", number);
}
forward CallbackTwo(number);
public CallbackTwo(number)
{
printf("[CallbackTwo] Number is %d", number);
}
public OnGameModeInit()
{
new timer = SetTimerEx("CallbackOne", 1000, false, "i", 727);
// The same arguments will be passed for both callbacks.
AddTimerHandler(timer, "CallbackTwo");
}
- Also added the custom timers with count of executions and delay before the timer starts.
Example:
PHP Code:
#include <timerfix>
new timer;
forward CallbackOne(number);
public CallbackOne(number)
{
printf("[CallbackOne] Number is %d", number);
}
forward CallbackTwo(number);
public CallbackTwo(number)
{
printf("[CallbackTwo] Number is %d", number);
KillTimer(timer);
}
public OnGameModeInit()
{
// Set the count to -1 for infinite timer
timer = SetCustomTimerEx("CallbackOne", 1000, 500, 5, "i", 800);
// The same arguments will be passed for both callbacks.
AddTimerHandler(timer, "CallbackTwo");
}
Report about any bugs
here please.
Re: Timer Fix -
KashCherry - 14.01.2020
Release updated with
this issue fix. Download the latest release again please.
Report about any bugs
here please.
Re: Timer Fix -
TokicMajstor - 17.01.2020
Very nice job, this could be useful
Re: Timer Fix -
UserName12 - 06.02.2020
Quote:
Originally Posted by KashCherry
- Fixed the problem when timers just stopped.
|
Well it is not fixed.
My server was running ~16h40mins and then global timer stopped
Re: Timer Fix -
WestCoast1337 - 05.03.2020
Quote:
Originally Posted by UserName12
Well it is not fixed.
My server was running ~16h40mins and then global timer stopped
|
The problem is relevant
Re: Timer Fix -
RudeWorld - 01.05.2020
error while processing timer: cannot execute public 'Malloc_SolidifyTimer'
how do i fix this?
Re: Timer Fix -
DmitriyShift - 25.05.2020
if we put a timer
exemple:
PHP Code:
SetTimer("PlayerUpDate",1000, 1);
the timer stops a few minutes later.
Re: Timer Fix -
Unrea1 - 26.05.2020
What is this?
[timerfix.plugin] n_SetTimerEx: bad parameter count (count is 4, should be greater than 5)