SA-MP Forums Archive
[Plugin] YSF - kurta999's version - 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] YSF - kurta999's version (/showthread.php?tid=513499)



Re: YSF - kurta999's version - xhunterx - 26.07.2015

Quote:
Originally Posted by kurta999
Посмотреть сообщение
That's not a bug. You shouldn't never add vehicles with -1, because then client will set car color for every player, with vehicle defined colors from calcols.dat.

You need to define your random colors serverside to fix this or just use random(255) as color serverside.
See here for example: https://sampforum.blast.hk/showthread.php?tid=235398
I am not talking about only -1. I have this VCar[playerid] = CreateVehicle(model, x, y, z, a, col1, col2, -1);
Where col1 and col2 are normal colors. (i think it was 32 and 1), then GetVehicleColor on the newly created car returnd -1, -1
It works fine with ChangeVehicleColor, but CreateVehicle is not logged for me?

The same for AddStatic vehicle, eaven thoug I have a color set at all of them.
AddStaticVehicle(576, 2356.4177, -1160.6126, 27.1266, 272.9424, 68, 96);

Also, Paintjob is returning number one lower than the actual paintjob, I had tu use:
paintjob = GetVehiclePaintjob(vehicleid)+1;


Re: YSF - kurta999's version - kurta999 - 26.07.2015

OK, going to check it soon. Thanks.


Re: YSF - kurta999's version - kurta999 - 02.08.2015

Vehicle color bug should be fixed, please check this version. (just replace YSF.dll)


Re: YSF - kurta999's version - Snipa - 02.08.2015

Is there still the bug where the player model stays for a few seconds after death?


Re: YSF - kurta999's version - kurta999 - 02.08.2015

AFAIK, that's has been fixed long time ago.


Re: YSF - kurta999's version - nadhir - 02.08.2015

Great Job This Will Help A lot Of Player! Thanks +1


Re: YSF - kurta999's version - Locky_ - 05.08.2015

Linux CentOS 7 (64 bit)....

Код:
SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[21:21:42] password = ""  (string)
[21:21:42]
[21:21:42] Server Plugins
[21:21:42] --------------
[21:21:42]  Loading plugin: mysql.so
[21:21:42]  >> plugin.mysql: R39-3 successfully loaded.
[21:21:42]   Loaded.
[21:21:42]  Loading plugin: crashdetect.so
[21:21:42]   CrashDetect v4.13.1 is OK.
[21:21:42]   Loaded.
[21:21:42]  Loading plugin: sscanf.so
[21:21:42]

[21:21:42]  ===============================

[21:21:42]       sscanf plugin loaded.

[21:21:42]          Version:  2.8.1

[21:21:42]    © 2012 Alex "Y_Less" Cole

[21:21:42]  ===============================

[21:21:42]   Loaded.
[21:21:42]  Loading plugin: socket.so
[21:21:42]  Socket plugin v0.2b loaded.
[21:21:42]   Loaded.
[21:21:42]  Loading plugin: YSF.so
[21:21:42] logprintf = 0x080A91D0

[21:21:42] [debug] Server crashed due to an unknown error
[21:21:42] [debug] Native backtrace:
[21:21:42] [debug] #0 f62b309b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[21:21:42] [debug] #1 f62ae2d2 in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[21:21:42] [debug] #2 f62aeebc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[21:21:42] [debug] #3 f62af366 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[21:21:42] [debug] #4 f62b2cec in ?? () from plugins/crashdetect.so
[21:21:42] [debug] #5 f77d8410 in ?? ()
[21:21:42] [debug] #6 f5cf0036 in subhook_install () from plugins/YSF.so
[21:21:42] [debug] #7 f5cca3e6 in _Z15InstallPreHooksv () from plugins/YSF.so
[21:21:42] [debug] #8 f5cdb46c in Load () from plugins/YSF.so
[21:21:42] [debug] #9 080d2742 in ?? () from ./samp03svr
[21:21:42] [debug] #10 080d2afa in ?? () from ./samp03svr
[21:21:42] [debug] #11 080aa0d0 in ?? () from ./samp03svr
[21:21:42] [debug] #12 f74c1933 in __libc_start_main () from /lib/libc.so.6
[21:21:42] [debug] #13 0804b4e1 in ?? () from ./samp03svr



AW: YSF - kurta999's version - FSAOskar - 10.08.2015

I'm atm trying to create a function to toggle the night/thermal vision on and off with some help of NPCs and HidePlayerForPlayer stuff but for it to work I would need the goggle bug back.
Could you maybe add a function like:
Код:
 native ToggleGoggleBugForPlayer(playerid, bool: state);
?


Re: YSF - kurta999's version - kurta999 - 10.08.2015

Maybe.

NicK_: No idea, I've never tried anything on CentOS.


Re: YSF - kurta999's version - Salik - 11.08.2015

Windows XP SP-3 critical error with plug-n (sorry for my bad english)
PHP код:
SA-MP Dedicated Server
----------------------
v0.3.7, (C)2005-2015 SA-MP Team
[00:44:32
[
00:44:32Server Plugins
[00:44:32] --------------
[
00:44:32]  Loading pluginstreamer.dll
[00:44:32
*** 
Streamer Plugin v2.7 by Incognito loaded ***
[
00:44:32]   Loaded.
[
00:44:32]  Loading pluginWhirlpool.dll
[00:44:32]  
[
00:44:32]  ==================
[
00:44:32]  
[
00:44:32]   Whirlpool loaded
[00:44:32]  
[
00:44:32]  ==================
[
00:44:32]  
[
00:44:32]   Loaded.
[
00:44:32]  Loading pluginYSF.dll
[00:44:35]   Failed.
[
00:44:35]  Loaded 2 plugins.
    
K32GetModuleInformation could not be found in the dynamic library KERNEL32.dll



Re: YSF - kurta999's version - kurta999 - 11.08.2015

Please test this version with VC++ Redist 2015 installed on XP.
Compiled with Visual Studio 2015 (toolset 14_xp)

https://www.microsoft.com/en-us/down....aspx?id=48145


Re: YSF - kurta999's version - Salik - 12.08.2015

Test you'r plug-n(new) with VC++ Redist 2015
but error not removed
PHP код:
GetTickCout64 could not be found in the dynamic library KERNEL32.dll



Re: YSF - kurta999's version - Crayder - 12.08.2015

Quote:
Originally Posted by Salik
Посмотреть сообщение
Test you'r plug-n(new) with VC++ Redist 2015
but error not removed
PHP код:
GetTickCout64 could not be found in the dynamic library KERNEL32.dll
Nigga, you can't compile with vs2015 and expect it to work with WinXP...

Yes even with the toolsets, I've always encountered those "could not be found in" errors.


Re: YSF - kurta999's version - Salik - 12.08.2015

there are some solutions?


Re: YSF - kurta999's version - IllidanS4 - 17.08.2015

Hi, Kurta, I am having a problem with YSF and RCON. On Linux (CentOS), when I try to send an RCON command, it connects to the server, but doesn't execute it or return anything to the client. On Windows, the server simply freezes. This happens even without any custom scripts. I am sure RCON is toggled on, because it works without the plugin.
Crashdetect output:
Код:
Number of vehicle models: 0
RCON admin connected to server.
[debug] Server crashed due to an unknown error
[debug] Native backtrace:
[debug] #0 01f3df00 in ?? ()
[debug] #1 7731fa29 in ?? () from C:\Windows\SysWOW64\ntdll.dll
[debug] #2 7731fe9e in ?? () from C:\Windows\SysWOW64\ntdll.dll
[debug] #3 773200a3 in ?? () from C:\Windows\SysWOW64\ntdll.dll
[debug] #4 75671ace in ?? () from C:\Windows\syswow64\KERNELBASE.dll
[debug] #5 75671a43 in ?? () from C:\Windows\syswow64\KERNELBASE.dll
[debug] #6 75671ace in ?? () from C:\Windows\syswow64\KERNELBASE.dll
[debug] #7 756973ae in ?? () from C:\Windows\syswow64\KERNELBASE.dll
[debug] #8 75671d09 in ?? () from C:\Windows\syswow64\KERNELBASE.dll
[debug] #9 74ce3322 in ?? () from C:\Windows\syswow64\kernel32.dll
[debug] #10 773292e0 in ?? () from C:\Windows\SysWOW64\ntdll.dll
[debug] #11 77329a8d in ?? () from C:\Windows\SysWOW64\ntdll.dll
[debug] #12 77329a6a in ?? () from C:\Windows\SysWOW64\ntdll.dll
[debug] #13 77329acc in ?? () from C:\Windows\SysWOW64\ntdll.dll
[debug] #14 77329a7a in ?? () from C:\Windows\SysWOW64\ntdll.dll
[debug] #15 77329a6a in ?? () from C:\Windows\SysWOW64\ntdll.dll
[debug] #16 773297f1 in ?? () from C:\Windows\SysWOW64\ntdll.dll
[debug] #17 77329813 in ?? () from C:\Windows\SysWOW64\ntdll.dll
[debug] #18 03dafd24 in ?? ()
Thanks!


Re: YSF - kurta999's version - Stanford - 21.08.2015

I will be thankful if you post an example for SendData function!


Re: YSF - kurta999's version - Crayder - 21.08.2015

Perhaps the Model Sizes Plus should be implemented. I was going to make a pull request but I can't find the data in the source to update.


Re: YSF - kurta999's version - kurta999 - 21.08.2015

Quote:
Originally Posted by sprtik
Посмотреть сообщение
Hi, Kurta, I am having a problem with YSF and RCON. On Linux (CentOS), when I try to send an RCON command, it connects to the server, but doesn't execute it or return anything to the client. On Windows, the server simply freezes. This happens even without any custom scripts. I am sure RCON is toggled on, because it works without the plugin.
Crashdetect output:
Код:
Number of vehicle models: 0
RCON admin connected to server.
[debug] Server crashed due to an unknown error
[debug] Native backtrace:
[debug] #0 01f3df00 in ?? ()
[debug] #1 7731fa29 in ?? () from C:\Windows\SysWOW64\ntdll.dll
[debug] #2 7731fe9e in ?? () from C:\Windows\SysWOW64\ntdll.dll
[debug] #3 773200a3 in ?? () from C:\Windows\SysWOW64\ntdll.dll
[debug] #4 75671ace in ?? () from C:\Windows\syswow64\KERNELBASE.dll
[debug] #5 75671a43 in ?? () from C:\Windows\syswow64\KERNELBASE.dll
[debug] #6 75671ace in ?? () from C:\Windows\syswow64\KERNELBASE.dll
[debug] #7 756973ae in ?? () from C:\Windows\syswow64\KERNELBASE.dll
[debug] #8 75671d09 in ?? () from C:\Windows\syswow64\KERNELBASE.dll
[debug] #9 74ce3322 in ?? () from C:\Windows\syswow64\kernel32.dll
[debug] #10 773292e0 in ?? () from C:\Windows\SysWOW64\ntdll.dll
[debug] #11 77329a8d in ?? () from C:\Windows\SysWOW64\ntdll.dll
[debug] #12 77329a6a in ?? () from C:\Windows\SysWOW64\ntdll.dll
[debug] #13 77329acc in ?? () from C:\Windows\SysWOW64\ntdll.dll
[debug] #14 77329a7a in ?? () from C:\Windows\SysWOW64\ntdll.dll
[debug] #15 77329a6a in ?? () from C:\Windows\SysWOW64\ntdll.dll
[debug] #16 773297f1 in ?? () from C:\Windows\SysWOW64\ntdll.dll
[debug] #17 77329813 in ?? () from C:\Windows\SysWOW64\ntdll.dll
[debug] #18 03dafd24 in ?? ()
Thanks!
Going to check it, thanks.

Quote:
Originally Posted by Crayder
Посмотреть сообщение
Perhaps the Model Sizes Plus should be implemented. I was going to make a pull request but I can't find the data in the source to update.
Don't do it I'll implement them by myself or going to remove totally and force people to use ColAndreas.


Re: YSF - kurta999's version - Crayder - 21.08.2015

Quote:
Originally Posted by kurta999
Посмотреть сообщение
Don't do it I'll implement them by myself or going to remove totally and force people to use ColAndreas.
You shouldn't remove them, I use YSF modelsize functions and I'm sure other people do too. Some people still refuse to use ColAndreas too, so it wouldn't be absolutely positive to send them that way when they can use the MSP as an alternative.


Re: YSF - kurta999's version - kurta999 - 24.08.2015

I've upgraded it to your new include, anyway can I be a dick? :P

I think you still have the generator for this new model sizes. You could create MODELS_gColRadius, MODELS_gColOffset with 'f' after every float? Like: 5.104225f, 5.732428f, 5.732428f. (I would like to store these two arrays as float, not as double. Double is 8bytes, float is 4 and fucking C compliler warn me if I try to store something as fload and I don't use the 'f' after number.)