[Plugin] Timerfix plugin - A fix for every ttime related issue
#41

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

The timer bug in linux fixed finally? Somebody tested it?
Reply
#43

Useful and beautiful, congratulations.
Reply
#44

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

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

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!
Reply
#47

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

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

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

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?
Reply
#51

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

Working fine for me.
Reply
#53

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

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?
Reply
#55

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

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

Reply
#57

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

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

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

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


Forum Jump:


Users browsing this thread: 2 Guest(s)