[Plugin] YSF - kurta999's version

Quote:
Originally Posted by kurta999
Посмотреть сообщение
When you get this crash? I have absolutely no idea.



Added attached_playerid parameter to GetObjectAttachedData, and fixed GetObjectAttachedOffsets. It will be in final R15. (I wasn't a bug, it was just an issue)
Not sure how it occurs, as it gives me no data.
Reply

Okay there is a pretty bad problem. Its a 200 player slot server. 112 players are connected. Server queries 100/200 on the SAMP browser only.
If you refresh the server over and over again, you can realize that the 112/200 are getting previewed for a split second and then 100/200 re-appears.
https://i.gyazo.com/42bc5687443630e3...137070a671.png



Edit:
Random debugs after packet drop, weird debugs.
Код:
[19:29:12] [warning] dropping a split packet from client
[19:29:12] [debug] Run time error 4: "Array index out of bounds"
[19:29:12] [debug] AMX backtrace:
Код:
[17:19:04] [warning] dropping a split packet from client
[17:19:04] [debug] Run time error 4: "Array index out of bounds"
[17:19:04] [debug] AMX backtrace:
Код:
[21:19:16] [warning] dropping a split packet from client
[21:19:16] [debug] Run time error 4: "Array index out of bounds"
[21:19:16] [debug] AMX backtrace:
Код:
[10:34:10] [warning] dropping a split packet from client
[10:34:10] [debug] Run time error 5: "Invalid memory access"
[10:34:10] [debug] AMX backtrace:
Код:
[13:46:58] [warning] dropping a split packet from client
[13:46:58] [debug] Run time error 4: "Array index out of bounds"
[13:46:58] [debug] AMX backtrace:
Код:
[15:48:20] [warning] dropping a split packet from client
[15:48:20] [warning] dropping a split packet from client
[15:48:20] [warning] dropping a split packet from client
[15:48:20] [warning] dropping a split packet from client
[15:48:20] [debug] Run time error 5: "Invalid memory access"
[15:48:20] [debug] AMX backtrace:
Код:
[10:34:27] [connection] incoming connection: 212.-.125.-:1494 id: 15
[10:34:28] Boobeise typed: /r k send me
[10:34:29] [debug] Server crashed while executing xXXx.amx
[10:34:29] [debug] AMX backtrace:
Weird:
Код:
[19:14:27] [debug] AMX backtrace:
[19:14:27] [debug] #0 00195330 in ?? (... <5661715 arguments>) at D:\xXXx.pwn:37001
[19:14:27] [debug] #1 0000f7e4 in public OnPlayerCommandText () at D:\pawno\include\YSI\y_hooks/impl.inc:929
[19:14:27] [debug] Native backtrace:
[19:14:27] [debug] #0 f746de8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[19:14:27] [debug] #1 f7466bcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[19:14:27] [debug] #2 f7467dbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[19:14:27] [debug] #3 f7468226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[19:14:27] [debug] #4 f746dadc in ?? () from plugins/crashdetect.so
[19:14:27] [debug] #5 f779c410 in ?? ()
Also,
for some reason, OnPlayerUpdate sometimes gets called with this id after a packet drop:

Код:
[16:40:32] [warning] dropping a split packet from client
[16:40:32] [debug] Run time error 4: "Array index out of bounds"
[16:40:32] [debug] AMX backtrace:
[16:40:32] [debug] #0 00195770 in ?? (... <1 argument>) at D:\xXx.pwn:37037
[16:40:32] [debug] #1 00011f7c in public OnPlayerUpdate (playerid=22631232) at D:\XxX\pawno\include\YSI\y_hooks/impl.inc:2038
Edit: Please work on fixing this.
Код:
[16:52:08] [warning] dropping a split packet from client
[16:52:09] [debug] Run time error 7: "Stack underflow"
[16:52:09] [debug]  Stack pointer (STK) is 0x1599060, stack top (STP) is 0x159905C
[16:52:09] [debug] AMX backtrace:
[16:52:09] [debug] Run time error 7: "Stack underflow"
[16:52:09] [debug]  Stack pointer (STK) is 0x1599060, stack top (STP) is 0x159905C
[16:52:09] [debug] AMX backtrace:
[16:52:09] [debug] Run time error 7: "Stack underflow"
[16:52:09] [debug]  Stack pointer (STK) is 0x1599060, stack top (STP) is 0x159905C
[16:52:09] [debug] AMX backtrace:
[16:52:09] [debug] Run time error 7: "Stack underflow"
[16:52:09] [debug]  Stack pointer (STK) is 0x1599060, stack top (STP) is 0x159905C
[16:52:09] [debug] AMX backtrace:
[16:52:10] [debug] Run time error 7: "Stack underflow"
[16:52:10] [debug]  Stack pointer (STK) is 0x1599060, stack top (STP) is 0x159905C
[16:52:10] [debug] AMX backtrace:
[16:52:10] [debug] Run time error 7: "Stack underflow"
[16:52:10] [debug]  Stack pointer (STK) is 0x1599060, stack top (STP) is 0x159905C
[16:52:10] [debug] AMX backtrace:
[16:52:10] [debug] Run time error 7: "Stack underflow"
[16:52:10] [debug]  Stack pointer (STK) is 0x1599060, stack top (STP) is 0x159905C
[16:52:10] [debug] AMX backtrace:
[16:52:11] [debug] Run time error 7: "Stack underflow"
[16:52:11] [debug]  Stack pointer (STK) is 0x1599060, stack top (STP) is 0x159905C
[16:52:11] [debug] AMX backtrace:
[16:52:11] [debug] Run time error 7: "Stack underflow"
[16:52:11] [debug]  Stack pointer (STK) is 0x1599060, stack top (STP) is 0x159905C
[16:52:11] [debug] AMX backtrace:
[16:52:11] [debug] Run time error 7: "Stack underflow"
[16:52:11] [debug]  Stack pointer (STK) is 0x1599060, stack top (STP) is 0x159905C
[16:52:11] [debug] AMX backtrace:
[16:52:12] [debug] Run time error 7: "Stack underflow"
[16:52:12] [debug]  Stack pointer (STK) is 0x1599060, stack top (STP) is 0x159905C
[16:52:12] [debug] AMX backtrace:
[16:52:12] [debug] Run time error 7: "Stack underflow"
[16:52:12] [debug]  Stack pointer (STK) is 0x1599060, stack top (STP) is 0x159905C
[16:52:12] [debug] AMX backtrace:
[16:52:12] [debug] Run time error 7: "Stack underflow"
[16:52:12] [debug]  Stack pointer (STK) is 0x1599060, stack top (STP) is 0x159905C
[16:52:12] [debug] AMX backtrace:
[16:52:13] [debug] Run time error 7: "Stack underflow"
[16:52:13] [debug]  Stack pointer (STK) is 0x1599060, stack top (STP) is 0x159905C
[16:52:13] [debug] AMX backtrace:
[16:52:13] [debug] Run time error 7: "Stack underflow"
[16:52:13] [debug]  Stack pointer (STK) is 0x1599060, stack top (STP) is 0x159905C
[16:52:13] [debug] AMX backtrace:
[16:52:14] [debug] Run time error 7: "Stack underflow"
[16:52:14] [debug]  Stack pointer (STK) is 0x1599060, stack top (STP) is 0x159905C
[16:52:14] [debug] AMX backtrace:
[16:52:14] [debug] Run time error 7: "Stack underflow"
[16:52:14] [debug]  Stack pointer (STK) is 0x1599060, stack top (STP) is 0x159905C
[16:52:14] [debug] AMX backtrace:
[16:52:14] [debug] Run time error 7: "Stack underflow"
[16:52:14] [debug]  Stack pointer (STK) is 0x1599060, stack top (STP) is 0x159905C
[16:52:14] [debug] AMX backtrace:
[16:52:15] [debug] Run time error 7: "Stack underflow"
[16:52:15] [debug]  Stack pointer (STK) is 0x1599060, stack top (STP) is 0x159905C
[16:52:15] [debug] AMX backtrace:
[16:52:15] [debug] Run time error 7: "Stack underflow"
[16:52:15] [debug]  Stack pointer (STK) is 0x1599060, stack top (STP) is 0x159905C
[16:52:15] [debug] AMX backtrace:
[16:52:16] [debug] Run time error 7: "Stack underflow"
[16:52:16] [debug]  Stack pointer (STK) is 0x1599060, stack top (STP) is 0x159905C
[16:52:16] [debug] AMX backtrace:
[16:52:16] [debug] Run time error 7: "Stack underflow"
[16:52:16] [debug]  Stack pointer (STK) is 0x1599060, stack top (STP) is 0x159905C
[16:52:16] [debug] AMX backtrace:
[16:52:16] [debug] Run time error 7: "Stack underflow"
[16:52:16] [debug]  Stack pointer (STK) is 0x1599060, stack top (STP) is 0x159905C
[16:52:16] [debug] AMX backtrace:
[16:52:17] [connection] incoming connection: -:18528 id: 65
[16:52:17] [debug] Run time error 7: "Stack underflow"
[16:52:17] [debug]  Stack pointer (STK) is 0x1599060, stack top (STP) is 0x159905C
[16:52:17] [debug] AMX backtrace:
[16:52:17] [join] Danik_Kolosov has joined the server (65:-)
[16:52:17] [debug] Server crashed while executing xXXx.amx
[16:52:17] [debug] AMX backtrace:
[16:52:17] [debug] Native backtrace:
[16:52:17] [debug] #0 f747fe8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[16:52:17] [debug] #1 f7478bcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[16:52:17] [debug] #2 f7479dbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[16:52:17] [debug] #3 f747a226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[16:52:17] [debug] #4 f747fadc in ?? () from plugins/crashdetect.so
[16:52:17] [debug] #5 f77ae410 in ?? ()
[16:52:17] [debug] #6 f7062e0a in _ZN9CCallback18FillCallbackParamsERSt5stackIN5boost7variantIiISsEEESt5dequeIS3_SaIS3_EEEPKcP6tagAMXPii () from plugins/mysql_static.so
[16:52:17] [debug] #7 f7084ce9 in _ZN6Native12mysql_tqueryEP6tagAMXPi () from plugins/mysql_static.so
[16:52:17] [debug] #8 080950e4 in ?? () from samp03svr
[16:52:17] [debug] #9 f747b94b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[16:52:17] [debug] #10 f747e8f8 in ?? () from plugins/crashdetect.so
[16:52:17] [debug] #11 f7482916 in amx_Exec () from plugins/crashdetect.so
[16:52:17] [debug] #12 f747abe6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[16:52:17] [debug] #13 f747e659 in ?? () from plugins/crashdetect.so
[16:52:17] [debug] #14 f73cc25c in ?? () from plugins/streamer.so
[16:52:17] [debug] #15 f626f620 in ?? () from plugins/YSF.so
Sorry for this, but im just reporting what i see to make it better.
Reply

Can I have an example usage for..

Код:
native SendRPC(playerid, RPC, {Float,_}:...); // playerid == -1 -> broadcast
native SendData(playerid, {Float,_}:...); // playerid == -1 -> broadcast
Reply

Код:
#define RPC_Widescreen	(0x6F | 111)
CMD:rpc(playerid, params[])
{
	new bool:toggle=!!strval(params);
	SendRPC(playerid, RPC_Widescreen, BS_CHAR, toggle);
	return 1;
}
That is for RPC, for data i think its the same only without RPC parameter (that from glance at the source).
Im not sure but i think that data (actually both functions) can accept arrays. Like:
Код:
new data[] = {
	BS_BOOL,
	BS_CHAR,
	BS_FLOAT
};

new info[] = {
	0,//false
	'B',//Character B
	2.5//Float
};

SendData(playerid, data, info);
But again, im not sure and i didnt test it.

EDIT: Or it may be SendData(playerid, data1, info1, data2, info2); => I think its actually these way, judging by the source (im not very good so again i may make big mistake :P)

And by the way, if you provide -1 for playerid it will send that packet to all players (Both RPC and Data functions)
Reply

Removed.
Reply

Quote:
Originally Posted by Professional06
Посмотреть сообщение
Same problem, please help!
What are your max slots?
Reply

Removed.
Reply

Hi, this times I wonder is there any usage of rpm/gear data in SAMP. Getting those values will be pretty useful for me. RPM is at car + 0x280 and gear is at car + 0x284. Can you take a look at it if you have some time?

And ofcourse, thanks for everything you've done until now. This plugin has changed many things.
Reply

car + 0x280

This is from GTA SA memory address AFAIK. car pointer + 0x280. But you can't get this address from samp server, it's possible to get only at client side.
Reply

Is there any way to get the vehicles angular velocity?
Reply

It's not synced, I tried to get that already. Maybe you could calculate it from velocity and angle, maybe not. I'm not home in math operations.
Reply

Quote:
Originally Posted by kurta999
Посмотреть сообщение
car + 0x280

This is from GTA SA memory address AFAIK. car pointer + 0x280. But you can't get this address from samp server, it's possible to get only at client side.
Yeah I know they're GTA SA address. I was wondering are they used in sync data. As far as I understand they don't getting used. Thanks.
Reply

Quote:

C:\Users\Windows\Desktop\samp\filterscripts\YSF_ex amples.pwn(51) : error 017: undefined symbol "GetActiveTimers"
C:\Users\Windows\Desktop\samp\filterscripts\YSF_ex amples.pwn(241) : warning 213: tag mismatch
C:\Users\Windows\Desktop\samp\filterscripts\YSF_ex amples.pwn(334) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Error:

Quote:

SendClientMessagef(playerid, -1, "number of timers = %d", GetActiveTimers());

how can I fix this error?
Reply

Main post:

Updates

R14-3
- Renamed GetActiveTimers to GetRunningTimers (old version is still aviable)


That error shows to you that the called function does not exist.
Reply

Quote:
Originally Posted by Wakayama
Посмотреть сообщение
Error:



how can I fix this error?
Just re-download, you may have an outdated version.
Reply

Regarding the player amount on the SAMP browser. The server queries it normally at 130+ players but between 100 - 130 it freezes on 100...
Reply

If i take the plugin and remove everything expect gangzones and pickups, will i need to update any addresses if the sa-mp server updates?
Reply

I have a problem. Crash at the exit from the server.
Код:
[21:45:43] [part] Grimshine has left the server (0:1)
[21:45:43] [debug] Server crashed due to an unknown error
[21:45:43] [debug] Native backtrace:
[21:45:43] [debug] #0 014b9448 in ?? () from plugins\YSF.dll
plugins crashdetect.dll regex.dll streamer.dll sscanf.dll MapAndreas.dll mysql.dll YSF.dll audio.dll

Server Version: 0.3.7 SVR R2-1-1 win32

Plugin Version:
AudioPlugin v0.5.2
Crashdetect 4.15.1
MapAndreas 1.2.1
MySQL 2008-2010, G-sTyLeZzZ
RegEx 0.2.1
SScanf 2.8.2
Streamer Plugin 2.7.8
YSF kurta999 version R14-3
Reply

Would it be possible to allow turning vehicle lights on during the day even without ManualVehicleEngineAndLights?
Reply

Kurta, can you start addressing the 'dropping packet' related crashes please?
Its so annoying, it doesn't print any debug errors with crashdetect but only
[18:14:01] [warning] dropping a split packet from client
[18:14:01] [debug] Server crashed due to an unknown error

Thanks.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)