SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 07/02/2015, 02:20 PM   #71
kristo
Banned
 
Join Date: Jun 2012
Location: Estonia
Posts: 352
Reputation: 179
Default Re: Timerfix plugin - A fix for every ttime related issue

Quote:
Originally Posted by XO View Post
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.
kristo is offline   Reply With Quote
Old 07/02/2015, 03:20 PM   #72
xo
Big Clucker
 
xo's Avatar
 
Join Date: Dec 2013
Location: I don't know.
Posts: 173
Reputation: 78
Default Re: Timerfix plugin - A fix for every ttime related issue

I can confirm V1.5 is working fine and smoothly good. I've been running it for over 3 months with no problems.
xo is offline   Reply With Quote
Old 07/02/2015, 03:27 PM   #73
kristo
Banned
 
Join Date: Jun 2012
Location: Estonia
Posts: 352
Reputation: 179
Default Re: Timerfix plugin - A fix for every ttime related issue

Yeah, our problem was that the server had been up for 24+ days.
kristo is offline   Reply With Quote
Old 07/02/2015, 03:37 PM   #74
xo
Big Clucker
 
xo's Avatar
 
Join Date: Dec 2013
Location: I don't know.
Posts: 173
Reputation: 78
Default Re: Timerfix plugin - A fix for every ttime related issue

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?
xo is offline   Reply With Quote
Old 07/02/2015, 05:49 PM   #75
kristo
Banned
 
Join Date: Jun 2012
Location: Estonia
Posts: 352
Reputation: 179
Default Re: Timerfix plugin - A fix for every ttime related issue

Yes, I'm sure. The problem isn't in the plugin. http://wiki.sa-mp.com/wiki/GetTickCount
kristo is offline   Reply With Quote
Old 08/02/2015, 06:46 AM   #76
boy
Big Clucker
 
Join Date: Aug 2014
Posts: 50
Reputation: 34
Default Re: Timerfix plugin - A fix for every ttime related issue

Working fine for me.
boy is offline   Reply With Quote
Old 08/02/2015, 04:52 PM   #77
xo
Big Clucker
 
xo's Avatar
 
Join Date: Dec 2013
Location: I don't know.
Posts: 173
Reputation: 78
Default Re: Timerfix plugin - A fix for every ttime related issue

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..
xo is offline   Reply With Quote
Old 11/02/2015, 06:41 AM   #78
MehranGta
Big Clucker
 
Join Date: Jul 2012
Location: CA - IR
Posts: 192
Reputation: -7
Default Re: Timerfix plugin - A fix for every ttime related issue

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?
MehranGta is offline   Reply With Quote
Old 11/02/2015, 06:48 AM   #79
Shady
Huge Clucker
 
Shady's Avatar
 
Join Date: Aug 2014
Location: Egypt
Posts: 203
Reputation: 30
Default Re: Timerfix plugin - A fix for every ttime related issue

Hello, this plugin have some bugs and I will list them later.
__________________
Management & Developer @ Golden Gate Bay Roleplay.

Former developer @ IV.Digital, Prospect:RP, Core:RP, SARP, OS:RP, SC:RP, NG:RP, OG:RP, CNRSF, and SWF.
Shady is offline   Reply With Quote
Old 05/11/2016, 11:28 AM   #80
Hammerboy
Little Clucker
 
Join Date: Oct 2009
Posts: 6
Reputation: 0
Default Re: Timerfix plugin - A fix for every ttime related issue

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, (C)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] (c) 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 (c) 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
Hammerboy 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
Idea to avoid all this rep related issue matty1415 General 38 25/04/2013 04:03 AM
Streamer Plugin Issue [rG]Cold Scripting Help 2 20/12/2012 05:23 PM
[PROBLEM] Probably related to audio plugin blackwave Help Archive 3 30/12/2010 07:05 PM
Win7 Related Issue Johny_James Everything and Nothing 13 11/12/2010 02:41 PM
Server error...Plugin compilation related. XPlatform Plugin Development 1 15/11/2009 12:28 PM


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


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