[Plugin] YSF - kurta999's version

Quote:
Originally Posted by kurta999
Посмотреть сообщение
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.)
That'd be easy, in fact if you look at the GitHub readme the generator is there. It's nothing complicated so I'll just go ahead and do it... BRB
Reply

Oh, I didn't saw it.. Now I got it.

Anyway there was a problem with external rcon at windows, this problem already fixed. I will release R15 soon. (This problem present since 0.3.7 version because something changed in RakServer and I din't noticed it)
Reply

Quote:
Originally Posted by kurta999
Посмотреть сообщение
Oh, I didn't saw it.. Now I got it.
You could've also just used a regular expression.
Replace: "[0-9]{6}\K"
With: "f"
Result: Appends an 'f' to every 6 digit number.

https://www.dropbox.com/s/sjzdwf1e53...zes-f.inc?dl=0
Reply

Thanks!

R15 beta, who had problems with YSF before, please test this version.

- Added natives to toggle nightvision fix (YSF_EnableNightVisionFix, YSF_IsNightVisionFixEnabled)
- GetVehicleColor should return correct colors before ChangeVehicleColor has been used
- Internal changes to source code, especially for casts
- Project has been updated to Visual Studio 2015
- Model sizes has been updated to more precise version, thanks to Crayder
- Fixed remote rcon crash at windows

https://github.com/kurta999/YSF/releases/tag/R15

In windows, you need to install Visual C++ Redistributable 2015 x86 - also XP should be supported.
Reply

I must say , this is one of the best plugins out here
Reply

Thanks, really needed the function to toggle the goggle fix !

*edit*
Found a little spelling mistake in the include. Replace:
Код:
native SetPlayerPosForPlayer(playerid, posplayerid, Float:fX, Float:fY, Floaf:fZ, bool:forcesync = true);
with:
Код:
native SetPlayerPosForPlayer(playerid, posplayerid, Float:fX, Float:fY, Float:fZ, bool:forcesync = true);
*edit* #2
I've also noticed that SetPlayerPosForPlayer only works in a cetrain radius from the spawnpoint of the player whose position will be changed. If he exceeds that radius then his position bugs out till resetting it.
Reply

Quote:
Originally Posted by FSAOskar
Посмотреть сообщение
Thanks, really needed the function to toggle the goggle fix !

*edit*
Found a little spelling mistake in the include. Replace:
Код:
native SetPlayerPosForPlayer(playerid, posplayerid, Float:fX, Float:fY, Floaf:fZ, bool:forcesync = true);
with:
Код:
native SetPlayerPosForPlayer(playerid, posplayerid, Float:fX, Float:fY, Float:fZ, bool:forcesync = true);
WTF
Reply

Quote:
Originally Posted by kurta999
Посмотреть сообщение
WTF
"Floaf:fZ"

with

"Float:fZ"
Reply

thanks for R15
Reply

Maybe there are also some interesting problem with move animation, but that doesn't affect anything just looks a bit shit Eg. if player moving while crouching (+aiming?), then player not walking, just sliding on ground. Anybody noticed it?
Reply

Код:
[debug] Run time error 19: "File or function is not found"
[debug]  SendInvalidPlayerSync
Tested on Windows.
Also it still says "R14-3" (having R15).
Reply

Since the project got updated to Visual Studio 2015, download vcredist 2015 to get this working - https://www.microsoft.com/en-us/down....aspx?id=48145

@kurta999 - You might want to update the 2013 vcredist link to latest one.
Reply

Quote:
Originally Posted by sprtik
Посмотреть сообщение
Код:
[debug] Run time error 19: "File or function is not found"
[debug]  SendInvalidPlayerSync
Tested on Windows.
Also it still says "R14-3" (having R15).
Fixed, thanks.

Quote:
Originally Posted by Lordzy
Посмотреть сообщение
Since the project got updated to Visual Studio 2015, download vcredist 2015 to get this working - https://www.microsoft.com/en-us/down....aspx?id=48145

@kurta999 - You might want to update the 2013 vcredist link to latest one.
Thanks.
Reply

This plugin causes a server crash when "varlist" command is executed in console. I'm using the latest version of YSF and the OS used is Windows 8.

EDIT : I ran this on SA-MP's 0.3.7-R2 server package. The only thing I added was YSF plugin, no additional scripts were there. I've also tried using CrashDetect Plugin but it didn't provide any logs regarding the crash issue.
Reply

Going to check it.
Reply

OnPlayerDeath doesn't get called for some reason when the player is killed by a hunter's minigun.
Edit: Seasparrow too.
Edit 2: death reasons: 19, 20.
Edit 3: Another bug. Shoot at someone > they get in a vehicle > blow it with RPG > OnPlayerDeath doesn't get called
Edit 4:

Код:
[18:32:07] Kicking 95.x.x.82 because they didn't logon to the game.
[18:32:07] [debug] Server crashed due to an unknown error
[18:32:07] [debug] Native backtrace:
[18:32:07] [debug] #0 f73dee8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[18:32:07] [debug] #1 f73d7bcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[18:32:07] [debug] #2 f73d8dbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[18:32:07] [debug] #3 f73d9226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[18:32:07] [debug] #4 f73deadc in ?? () from plugins/crashdetect.so
[18:32:07] [debug] #5 f770d410 in ?? ()
[18:32:07] [debug] #6 f753eff4 in ?? () from /lib/i386-linux-gnu/libc.so.6
[18:32:07] [debug] #7 f73cdc30 in _ZN12AMXCallStack3PopEv () from plugins/crashdetect.so
[18:32:07] [debug] #8 f73d9c51 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[18:32:07] [debug] #9 f73dd659 in ?? () from plugins/crashdetect.so
[18:32:07] [debug] #10 f732b25c in ?? () from plugins/streamer.so
[18:32:07] [debug] #11 f617c620 in ?? () from plugins/YSF.so
Using R15 Beta.
Reply

GetObjectAttachedOffset returns zeros if the object is attached to a player. Could you please also allow for returning playerid from GetObjectAttachedData? Also server apparently crashes when DestroyPlayerObject is called on invalid id.
Reply

Quote:
Originally Posted by sprtik
Посмотреть сообщение
GetObjectAttachedOffset returns zeros if the object is attached to a player. Could you please also allow for returning playerid from GetObjectAttachedData? Also server apparently crashes when DestroyPlayerObject is called on invalid id.
DestroyPlayerObject shouldn't crash at all, but I added more sanity check to it.
Reply

Quote:
Originally Posted by Ralfie
Посмотреть сообщение
OnPlayerDeath doesn't get called for some reason when the player is killed by a hunter's minigun.
Edit: Seasparrow too.
Edit 2: death reasons: 19, 20.
Edit 3: Another bug. Shoot at someone > they get in a vehicle > blow it with RPG > OnPlayerDeath doesn't get called
Edit 4:

Код:
[18:32:07] Kicking 95.x.x.82 because they didn't logon to the game.
[18:32:07] [debug] Server crashed due to an unknown error
[18:32:07] [debug] Native backtrace:
[18:32:07] [debug] #0 f73dee8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[18:32:07] [debug] #1 f73d7bcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[18:32:07] [debug] #2 f73d8dbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[18:32:07] [debug] #3 f73d9226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[18:32:07] [debug] #4 f73deadc in ?? () from plugins/crashdetect.so
[18:32:07] [debug] #5 f770d410 in ?? ()
[18:32:07] [debug] #6 f753eff4 in ?? () from /lib/i386-linux-gnu/libc.so.6
[18:32:07] [debug] #7 f73cdc30 in _ZN12AMXCallStack3PopEv () from plugins/crashdetect.so
[18:32:07] [debug] #8 f73d9c51 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[18:32:07] [debug] #9 f73dd659 in ?? () from plugins/crashdetect.so
[18:32:07] [debug] #10 f732b25c in ?? () from plugins/streamer.so
[18:32:07] [debug] #11 f617c620 in ?? () from plugins/YSF.so
Using R15 Beta.
I've the same:

[14:10:02] [debug] Server crashed due to an unknown error
[14:10:02] [debug] Native backtrace:
[14:10:02] [debug] #0 f7477e8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[14:10:02] [debug] #1 f7470bcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[14:10:02] [debug] #2 f7471dbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[14:10:02] [debug] #3 f7472226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[14:10:02] [debug] #4 f7477adc in ?? () from plugins/crashdetect.so
[14:10:02] [debug] #5 f77cc410 in ?? ()
[14:10:02] [debug] #6 0809568c in ?? () from ./samp03svr
[14:10:02] [debug] #7 080957cd in ?? () from ./samp03svr
[14:10:02] [debug] #8 f73d55b4 in ?? () from plugins/streamer.so
[14:10:02] [debug] #9 f4391733 in ?? () from plugins/YSF.so

CrashDetect v4.15.1
Streamer Plugin v2.7.8
YSF - kurta999 version R14-3
Reply

When you get this crash? I have absolutely no idea.

Quote:
Originally Posted by sprtik
Посмотреть сообщение
GetObjectAttachedOffset returns zeros if the object is attached to a player. Could you please also allow for returning playerid from GetObjectAttachedData? Also server apparently crashes when DestroyPlayerObject is called on invalid id.
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)

E:
OnPlayerDeath doesn't get called for some reason when the player is killed by a hunter's minigun.
Edit: Seasparrow too.
Edit 2: death reasons: 19, 20.
Edit 3: Another bug. Shoot at someone > they get in a vehicle > blow it with RPG > OnPlayerDeath doesn't get called

These should be fixed, at least the first two.
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)