SA-MP Forums Archive
[Plugin] Timerfix plugin - A fix for every ttime related issue - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Plugin Development (https://sampforum.blast.hk/forumdisplay.php?fid=18)
+--- Thread: [Plugin] Timerfix plugin - A fix for every ttime related issue (/showthread.php?tid=435525)

Pages: 1 2 3 4


Re: Timerfix plugin - A fix for every ttime related issue - [D]ry[D]esert - 27.07.2014

Hello there.
i tried to use the plugin but when i run the server i get:
Код:
[14:15:08] [debug] Run time error 19: "File or function is not found"
[14:15:08] [debug]  KillPlayerTimers
[14:15:08] [debug] Run time error 19: "File or function is not found"
[14:15:08] [debug]  KillPlayerTimers
[14:15:08] Script[gamemodes/ModeName.amx]: Run time error 19: "File or function is not found"
I've timerfix.dll in plugin folder, aswell as ive in server.cfg, i also included it in my gamemode.
EDIT: Fixed, it was client problem.


Re: Timerfix plugin - A fix for every ttime related issue - kurta999 - 11.08.2014

The timer bug in linux fixed finally? Somebody tested it?


Re: Timerfix plugin - A fix for every ttime related issue - Hwang - 27.08.2014

Useful and beautiful, congratulations.


Re: Timerfix plugin - A fix for every ttime related issue - Jacapo - 18.09.2014

I have a question.

The functions: SetTimer and SetTimerEx are the same by a_samp or are "Fixed" by this plugin.
Or it just "works" only on: SetTimer_, SetTimerEx_ ? Thanks for reply.


Re: Timerfix plugin - A fix for every ttime related issue - IstuntmanI - 18.09.2014

Quote:
Originally Posted by Jacapo
Посмотреть сообщение
I have a question.

The functions: SetTimer and SetTimerEx are the same by a_samp or are "Fixed" by this plugin.
Or it just "works" only on: SetTimer_, SetTimerEx_ ? Thanks for reply.
They are fixed by the plugin, to use the additional functions you have to also use the include.


Re: Timerfix plugin - A fix for every ttime related issue - xo - 07.02.2015

V1.5 was released some months ago to fix the insane speed of timers which cause all timers to go 100ms or less

Click here to download!


Re: Timerfix plugin - A fix for every ttime related issue - kristo - 07.02.2015

Quote:
Originally Posted by XO
Посмотреть сообщение
V1.5 was released some months ago to fix the insane speed of timers which cause all timers to go 100ms or less

Click here to download!
The issue was re-opened last night, it still keeps happening.

Edit: My bad, it has been deleted again.


Re: Timerfix plugin - A fix for every ttime related issue - xo - 07.02.2015

I can confirm V1.5 is working fine and smoothly good. I've been running it for over 3 months with no problems.


Re: Timerfix plugin - A fix for every ttime related issue - kristo - 07.02.2015

Yeah, our problem was that the server had been up for 24+ days.


Re: Timerfix plugin - A fix for every ttime related issue - xo - 07.02.2015

Quote:
Originally Posted by kvann
View Post
Yeah, our problem was that the server had been up for 24+ days.
Weird though, i had my server online for over 30 days without a restart.. And it was going great are you sure you are running v1.5? Any other plugins you running?


Re: Timerfix plugin - A fix for every ttime related issue - kristo - 07.02.2015

Yes, I'm sure. The problem isn't in the plugin. https://sampwiki.blast.hk/wiki/GetTickCount


Re: Timerfix plugin - A fix for every ttime related issue - boy - 08.02.2015

Working fine for me.


Re: Timerfix plugin - A fix for every ttime related issue - xo - 08.02.2015

pawn Code:
cell AMX_NATIVE_CALL Natives::GetTickCount(AMX *amx, cell *params)
    {
        return (int) (GetMsTime() % MAX_INT);
           //> #define MAX_INT                         2147483647 ( Max int. value )
    }
pawn Code:
unsigned long long GetMsTime()
{
#ifdef WIN32
    LARGE_INTEGER t;
    QueryPerformanceCounter(&t);
    return (t.QuadPart - startTime.QuadPart) / freq;
#else
    struct timespec t;
    clock_gettime(CLOCK_MONOTONIC, &t);
    t.tv_sec -= startTime.tv_sec;
    t.tv_nsec -= startTime.tv_nsec;
    if (t.tv_nsec < 0)
    {
        t.tv_sec -= 1;
        t.tv_nsec += 1000000000;
    }
    return t.tv_sec * 1000 + t.tv_nsec / 1000000;
#endif
}
So far i can see; plugin doesn't use SAMP's GetTickCount anymore. No 'GetTickCount overflow. Correct me if i'm wrong though..


Re: Timerfix plugin - A fix for every ttime related issue - MehranGta - 11.02.2015

Quote:
Originally Posted by Dan..
View Post
Notes
  1. This plugin also adds new natives (player timers, which are automatically killed when the player disconnects; there is a hook in the include file), which require `timerfix` include file.
Without this plugin this is bugged?


Re: Timerfix plugin - A fix for every ttime related issue - Shady - 11.02.2015

Hello, this plugin have some bugs and I will list them later.


Re: Timerfix plugin - A fix for every ttime related issue - Hammerboy - 05.11.2016

Hey guys,

Last week i updated my Windows Server to Version 2016. Unfortunately the SA-MP Server isn't working anymore. Loading of the plugin Timerfix fails. I have no idea what the problem is. .NET Framework 3.5 and 4.6 and all vcredist (x86) are installed from 2005 to 2015. The sad thing ist, that i can't get more Information about the error in the logfile. It only says "Loading plugin: timerfix Failed.". Is there a way to list the dependencies of this dll? Due to the released sourcecode it would also help me if someone can get me a crashcourse in compilling with visual studio, cause I'm getting errors there too.

I've ******d now for serveral hours and i don't get any information about this error which is really sad.


Thank you in advance.

Best regarts
Hammer


Logfile:

Quote:

PAWN-Quellcode
Quellcode bearbeiten
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[20:29:44]
[20:29:44] Server Plugins
[20:29:44] --------------
[20:29:44] Loading plugin: crashdetect
[20:29:44] CrashDetect v4.15.1 is OK.
[20:29:44] Loaded.
[20:29:44] Loading plugin: sql
[20:29:45] >> SQL plugin v2.6 successfully loaded.
[20:29:45] + MySQL support is enabled.
[20:29:45] Loaded.
[20:29:45] Loading plugin: streamer
[20:29:45]

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

[20:29:45] Loaded.
[20:29:45] Loading plugin: SyncHTTP
[20:29:45] SyncHTTP got loaded.
[20:29:45] Loaded.
[20:29:45] Loading plugin: sscanf
[20:29:45]

[20:29:45] ===============================

[20:29:45] sscanf plugin loaded.

[20:29:45] Version: 2.8.1

[20:29:45] © 2012 Alex "******" Cole

[20:29:45] ===============================

[20:29:45] Loaded.
[20:29:45] Loading plugin: socket
[20:29:48] Socket plugin v0.2b loaded.
[20:29:48] Loaded.
[20:29:48] Loading plugin: thread
[20:29:48]

[20:29:48] ______________________________________

[20:29:48] SA:MP Thread plugin v0.1.6 loaded
[20:29:48] ______________________________________

[20:29:48] By: Fro © Copyright <TBG> 2009-2011
[20:29:48] ______________________________________

[20:29:48] Loaded.
[20:29:48] Loading plugin: timerfix
[20:29:48] Failed.
[20:29:48] Loaded 7 plugins.

[20:29:49]
[20:29:49] Filterscripts
[20:29:49] ---------------
[20:29:49] Loading filterscript 'ls_elevator.amx'...
[20:29:51] Loading filterscript 'ls_beachside.amx'...
[20:29:51]

[20:29:51] |---------------------------------------------------
[20:29:51] |--- LS BeachSide Filterscript
[20:29:51] |-- Script v1.03
[20:29:51] |-- 19th April 2015
[20:29:51] |---------------------------------------------------
[20:29:51] |-- LS BeachSide Building Elevator created
[20:29:51] |---------------------------------------------------
[20:29:51] Loaded 2 filterscripts.

[20:29:52] [debug] Run time error 19: "File or function is not found"
[20:29:52] [debug] KillPlayerTimers
[20:29:52] [debug] Run time error 19: "File or function is not found"
[20:29:52] [debug] KillPlayerTimers
[20:29:52] Script[gamemodes/script.amx]: Run time error 19: "File or function is not found"
[20:29:52] Number of vehicle models: 0
[20:29:52] [debug] Run time error 19: "File or function is not found"
[20:29:52] [debug] KillPlayerTimers
[20:29:52] [debug] Run time error 19: "File or function is not found"
[20:29:52] [debug] KillPlayerTimers
[20:29:52] [debug] Run time error 19: "File or function is not found"
[20:29:52] [debug] KillPlayerTimers
[20:29:52] [debug] Run time error 19: "File or function is not found"
[20:29:52] [debug] KillPlayerTimers
[20:29:52] [debug] Run time error 19: "File or function is not found"
[20:29:52] [debug] KillPlayerTimers
[20:29:52] [debug] Run time error 19: "File or function is not found"
[20:29:52] [debug] KillPlayerTimers
[20:29:52] [debug] Run time error 19: "File or function is not found"
[20:29:52] [debug] KillPlayerTimers
[20:29:52] [debug] Run time error 19: "File or function is not found"
[20:29:52] [debug] KillPlayerTimers




Re: Timerfix plugin - A fix for every ttime related issue - vannesenn - 05.11.2016

Use this plugin. It should work
https://sampforum.blast.hk/showthread.php?tid=571505


Re: Timerfix plugin - A fix for every ttime related issue - Hammerboy - 05.11.2016

Worked for me, thanks... But its really strange that "timerfix" stopped working suddenly, anyway xD


Re: Timerfix plugin - A fix for every ttime related issue - f0Re3t - 17.08.2017

https://github.com/udan11/samp-plugi...rfix/issues/16
help please


Re: Timerfix plugin - A fix for every ttime related issue - Spmn - 17.08.2017

Quote:
Originally Posted by f0Re3t
View Post
You asked for help in Russian in an English forum...