[Plugin] YSF - kurta999's version

I've located the issue with the unknown crashes:

It's caused within this function:

#3 0xf4b0f733 in _sampgdk_amxhooks_FindPublic () from plugins/YSF.so
Reply

Why does it keep printing this:
Quote:

[sampgdk:warning] Index mismatch for OnPlayerPauseStateChange (-10094 != -10032)
[sampgdk:warning] Index mismatch for OnDialogPerformed (-10040 != -10002)
[sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10101 != -10039)

??
Reply

Quote:
Originally Posted by Richie©
Посмотреть сообщение
Why does it keep printing this:

??
Because you use another plugin which use older version of sampgdk.

Quote:
Originally Posted by Ralfie
Посмотреть сообщение
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.
That fucking crash caused by logprintf hook, I'm going to finally remove it from linux since it's unstable.

Quote:
Originally Posted by Ralfie
Посмотреть сообщение
Regarding the player amount on the SAMP browser. The server queries it normally at 130+ players but between 100 - 130 it freezes on 100...
I'll release a new beta soon.
Reply

Hey Kurta just wondering if you updated the model sizes to use the improved version taken from ColAndreas ?
Reply

Quote:
Originally Posted by Pottus
Посмотреть сообщение
Hey Kurta just wondering if you updated the model sizes to use the improved version taken from ColAndreas ?
I'm pretty sure he has already, we discussed it's format before.

EDIT: Yup, right here:
Quote:
Originally Posted by kurta999
Посмотреть сообщение
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

Looks good I missed that.
Reply

GetObjectMaterialText doesn't seem to return the text correctly, although font family is returned correctly.
Reply

Could you please implement SetPlayerStreamBounds to address this issue?
Reply

Maybe in future.
--------
Here is latest R15, without
logprintf aka OnServerMessage hook
OnRemoteRCONPacket hook
and SetMaxPlayers fix

These were removed because for some server owners weren't stable. Who use or not use YSF because had these problems, please retest latest version.

http://www.solidfiles.com/d/09f7cd611b/
Reply



I do have installed C++ Redist. 2015

EDIT: Forget it, its my fault. Dont know what is going on but i tried reinstalling Redist. C++ 2015 and it fails to install now... But at least it means its my PC's fault not plugin.
Reply

I have totaly no idea. Never saw this shit..

Just ****** for error and maybe you'll found the solution.

Quote:
Originally Posted by sprtik
Посмотреть сообщение
GetObjectMaterialText doesn't seem to return the text correctly, although font family is returned correctly.
Going to check it.
Reply

Quote:
Originally Posted by kurta999
Посмотреть сообщение
I have totaly no idea. Never saw this shit..

Just ****** for error and maybe you'll found the solution.



Going to check it.
Already ******d, and nothing fixed it. At the end just downloaded code from github and compiled with VS2012...Cant compile release version for some reason but debug will work just fine for development purposes...
Reply

Thanks for the latest update, but could you please add a way to allow OnRemoteRCONPacket hook, because my server security depends on it? Also GetPlayerAttachedObject seems to return the material colors in RGBA and not ARGB like SetPlayerAttachedObject. Thanks!
Reply

great work, thanks!

Could someone explain me how to use the function SendBulletData properly?
I just cant get it working.

I have to call it once, for one shot?
So if i want to fire longer i have to set a loop?

What are the parameters for, only the playerid that has been set as hitid in the function will take damage?

Please help, i cant figure it out
Reply

Thanks for the lastest update, Kurta!

You can do AttachCameraToAttachedObject? would be useful to create systems like first person. Thanks
Reply

Get3DTextLabelPos appears to return zeros for indexes other than 0. Other functions, such as Get3DTextLabelVirtualWorld, as well.
Reply

Nice... Going to check it soon.
Reply

Seems im getting some problems with latest release
PHP код:
\pawno\include\YSI\..\YSI_Data\y_foreach/impl.inc(1289) : warning 219local variable "slot" shadows a variable at a preceding level
\pawno\include\YSI\..\YSI_Data\..\YSI_Coding\..\YSI_Core\..\YSI_Data\y_bit.inc(258) : warning 219local variable "slot" shadows a variable at a preceding level
\pawno\include\YSI\..\YSI_Visual\..\YSI_Data\y_playerarray.inc(116) : warning 219local variable "slot" shadows a variable at a preceding level
\pawno\include\YSI\..\YSI_Visual\y_commands/impl.inc(886) : warning 219local variable "slot" shadows a variable at a preceding level
\pawno\include\YSI\..\YSI_Visual\y_commands/impl.inc(1010) : warning 219local variable "slot" shadows a variable at a preceding level
\pawno\include\YSI\..\YSI_Visual\y_commands/impl.inc(1097) : warning 219local variable "slot" shadows a variable at a preceding level
\pawno\include\YSI\..\YSI_Visual\y_commands/impl.inc(1658) : warning 219local variable "slot" shadows a variable at a preceding level
\pawno\include\serversided.inc(647) : warning 219local variable "slot" shadows a variable at a preceding level
\pawno\include\serversided.inc(681) : warning 219local variable "slot" shadows a variable at a preceding level
\pawno\include\serversided.inc(721) : warning 219local variable "slot" shadows a variable at a preceding level
\pawno\include\serversided.inc(1123) : warning 219local variable "slot" shadows a variable at a preceding level
\pawno\include\serversided.inc(1960) : warning 219local variable "slot" shadows a variable at a preceding level
\pawno\include\serversided.inc(2346) : warning 219local variable "slot" shadows a variable at a preceding level 
Happends only when I include YSF
Reply

Quote:
Originally Posted by TwinkiDaBoss
Посмотреть сообщение
Seems im getting some problems with latest release
PHP код:
\pawno\include\YSI\..\YSI_Data\y_foreach/impl.inc(1289) : warning 219local variable "slot" shadows a variable at a preceding level
\pawno\include\YSI\..\YSI_Data\..\YSI_Coding\..\YSI_Core\..\YSI_Data\y_bit.inc(258) : warning 219local variable "slot" shadows a variable at a preceding level
\pawno\include\YSI\..\YSI_Visual\..\YSI_Data\y_playerarray.inc(116) : warning 219local variable "slot" shadows a variable at a preceding level
\pawno\include\YSI\..\YSI_Visual\y_commands/impl.inc(886) : warning 219local variable "slot" shadows a variable at a preceding level
\pawno\include\YSI\..\YSI_Visual\y_commands/impl.inc(1010) : warning 219local variable "slot" shadows a variable at a preceding level
\pawno\include\YSI\..\YSI_Visual\y_commands/impl.inc(1097) : warning 219local variable "slot" shadows a variable at a preceding level
\pawno\include\YSI\..\YSI_Visual\y_commands/impl.inc(1658) : warning 219local variable "slot" shadows a variable at a preceding level
\pawno\include\serversided.inc(647) : warning 219local variable "slot" shadows a variable at a preceding level
\pawno\include\serversided.inc(681) : warning 219local variable "slot" shadows a variable at a preceding level
\pawno\include\serversided.inc(721) : warning 219local variable "slot" shadows a variable at a preceding level
\pawno\include\serversided.inc(1123) : warning 219local variable "slot" shadows a variable at a preceding level
\pawno\include\serversided.inc(1960) : warning 219local variable "slot" shadows a variable at a preceding level
\pawno\include\serversided.inc(2346) : warning 219local variable "slot" shadows a variable at a preceding level 
Happends only when I include YSF
You use global "slot" variable. Rename it to something more meaningful (globalSlot? playerTeamSlot?), because this name may be used in different includes. It's not the plugin's error.
Reply

Quote:
Originally Posted by prineside
Посмотреть сообщение
You use global "slot" variable. Rename it to something more meaningful (globalSlot? playerTeamSlot?), because this name may be used in different includes. It's not the plugin's error.
The warnings are coming from Y_commands & server sided include when I include the YSF. Without the YSF there are no problems at all, and no I dont have variable "slot" defined at the top.

Also I checked both Ycommands & <serversided> none of them have slot declared at the top or anything, or atleast I couldnt find
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)