[Plugin] YSF - kurta999's version

Quote:
Originally Posted by Adoniiz
Посмотреть сообщение
Thanks for the lastest update, Kurta!

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

Quote:
Originally Posted by sprtik
Посмотреть сообщение
Get3DTextLabelPos appears to return zeros for indexes other than 0. Other functions, such as Get3DTextLabelVirtualWorld, as well.
I've tested it, and it really bugged. Something wrong here, but structures looks OK. I have no idea wtf going here lol.
Reply

Its possible do OnPlayerWeaponShot work also in lagcomp off, by memory hacking?
Reply

Quote:
Originally Posted by Day_
Посмотреть сообщение
Its possible do OnPlayerWeaponShot work also in lagcomp off, by memory hacking?
The client doesn't send information about bullets fired to the server when lagcomp is off.

You could somewhat simulate it with ColAndreas, however.
Reply

Hi again, once more guys i come with a new discovered thing , using the GetObjectModel(objectid); native not always but some times it crashes the server it self, posting bellow the crashoutpud so you might be able to debug it for future releases Kurta,
And once more still using the plugin now on r15 and still loving it , just fighting the bugs bud, and finding workrounds..

Quote:

SA-MP Server: 0.3.7-R2



Exception At Address: 0x006328C0 Module: (YSF.dll)



Registers:

EAX: 0x0012FD6C EBX: 0x000000C3 ECX: 0x72806F80 EDX: 0x01BD71E0

ESI: 0x677DA78C EDI: 0x00000000 EBP: 0x00000000 ESP: 0x0012FDCC

EFLAGS: 0x00010282



Stack:

+0000: 0x00000000 0x0012FE18 0x000000C3 0x00000000

+0010: 0x00000000 0x017F3B28 0x01852BC0 0x00482A68

+0020: 0x01852BC0 0x0012FE18 0x000000C3 0x002F9C20

+0030: 0x75FEC326 0x3BCE77BB 0x017F18E0 0x017F3B28

+0040: 0x000000C3 0x017F18E0 0x017F3B48 0x00000001

+0050: 0x004912BA 0x00000006 0x75FEC370 0x75FEBE6C

+0060: 0x00000000 0x3BCE77BB 0x0048D4DB 0x00000000

+0070: 0x00001DB1 0x0012FF88 0x7FFD5000 0x00015000

+0080: 0x00010001 0x000001F4 0x00001E61 0x00000078

+0090: 0x000010D4 0x002F9C20 0x656D6167 0x65646F6D

+00A0: 0x00003531 0x004C4020 0x004C401C 0x7FFD5000

+00B0: 0x004AB4A0 0x0012FE70 0x0012FF78 0x0012FF78

+00C0: 0x0049D208 0x004BA2F8 0xFFFFFFFF 0x0049B4A1

+00D0: 0x0049B4B1 0x004AB4A0 0x0012FF78 0x004AB0E1

+00E0: 0xFFFFFFFF 0x0049CCA6 0x00000001 0x002F14F8

+00F0: 0x002F1558 0x00000094 0x00000006 0x00000001

+0100: 0x00001DB1 0x00000002 0x76726553 0x20656369

+0110: 0x6B636150 0x00003120 0x00000000 0x00000000

+0120: 0x00000000 0x00000000 0x00000000 0x00000000

+0130: 0x00000000 0x00000000 0x00000000 0x00000000



--------------------------
SA-MP Server: 0.3.7-R2



Exception At Address: 0x0049DC0C Module: (samp-server.exe)



Registers:

EAX: 0x6F6F2828 EBX: 0x073A3073 ECX: 0x7FFFFFFE EDX: 0x0018EF05

ESI: 0x0018EB68 EDI: 0x0018F32C EBP: 0x0018EBB4 ESP: 0x0018EB28

EFLAGS: 0x00010202



Stack:

+0000: 0x0018F300 0x0018EF00 0x073A3008 0x00630069

+0010: 0x00610043 0x006C006C 0x006E0000 0x00000007

+0020: 0x00000000 0x00630069 0x00000000 0x00000000

+0030: 0x00000000 0x00000000 0x00000000 0x6DCC2D6C

+0040: 0x00000006 0x00000000 0x6F6F2828 0xFFFFFFFF

+0050: 0x00000000 0x0CC4ED0D 0xCC2E4D8E 0x6D0E44AE

+0060: 0x0DA48C2C 0x0584ED8D 0x00612025 0x006C006C

+0070: 0x004B0000 0xE65BE8F9 0x00000104 0x00000800

+0080: 0x00000000 0x0018EBB1 0xEE5D1401 0x6E6E6E8E

+0090: 0x00005061 0x05828202 0x36D535B6 0x8636E616

+00A0: 0x07A2A357 0x02325636 0x4789B3E5 0x74440000

+00B0: 0x00000000 0x74440000 0x72F77DFB 0x74440110

+00C0: 0x00000000 0x0018EBD0 0x00000000 0x0018F2D4

+00D0: 0x74440000 0x7447DBA0 0x74440000 0x0030A260

+00E0: 0x0018EC40 0x77B195BD 0x74440000 0x0000000C

+00F0: 0x7447DC08 0x7447DC48 0x00309998 0x0031C728

+0100: 0x74440000 0x00000007 0x00000000 0x000001E3

+0110: 0x0030A260 0x4789B3A5 0x0018ED48 0x0018ED48

+0120: 0x77B30FE1 0xC0000139 0x07A83A20 0x0030A260

+0130: 0x77B194F4 0x0018ED60 0x00B30FE1 0x0030A260



--------------------------

Also found that sometimes using custom server-rules the by changing the weather it can crash the server also.
Reply

Crashdetect log please?

More info about server-rule - weather crash.
Reply

Quote:
Originally Posted by kurta999
Посмотреть сообщение
Crashdetect log please?
Sorry bud, this print i took without having crashlog.dll loaded, trying to make it happen again to get a print of it.
there we go one of the crashlogs:
Quote:

[05:29:43] [debug] Server crashed due to an unknown error
[05:29:44] [debug] Native backtrace:
[05:29:44] [debug] #0 6779641e in ?? () from plugins\crashdetect.dll
[05:29:44] [debug] #1 677b0a0c in ?? () from plugins\crashdetect.dll
[05:29:44] [debug] #2 677b631a in ?? () from plugins\crashdetect.dll
[05:29:44] [debug] #3 6d4251b9 in ?? () from plugins\streamer.dll
[05:29:44] [debug] #4 006328c0 in ?? () from plugins\YSF.dll

Quote:

More info about server-rule - weather crash.

Right say the weather is set global to 0 and you use /rcon weather id , not always but it crashes the server,
Also if you change the weather a few times in a row within say 10 seconds it has crashed also a few times.
Reply

YSF crashes the SA:MP server when I run the 'exit' command directly into the server's command line.

I'm using YSF R15 on Windows 8.1, SA:MP 0.3.7 R2-1-1, Visual C++ Redistributable 2015 both x86 and x64 installed. Tested on 'bare' gamemode with only YSF as plugin, without any functions added to the script.

Also, SetModeRestartTime() doesn't work...

Код:
--------------------------

SA-MP Server: 0.3.7-R2



Exception At Address: 0x774520B1 Module: (ntdll.dll)



Registers:

EAX: 0x00000001	EBX: 0x0065A350	ECX: 0x00000001	EDX: 0x00000B2C

ESI: 0x0065FCB0	EDI: 0x02030000	EBP: 0x0018FD88	ESP: 0x0018FC88

EFLAGS: 0x00010206



Stack:

+0000: 0x24A96167   0x0065A350   0x02030000   0x0065A358

+0010: 0x84001490   0xFFFFFE16   0x04000004   0x76AF82D0

+0020: 0x12010013   0x0048B338   0x02000002   0x00000008

+0030: 0x02030C08   0x00000008   0x64006F0B   0x24A9601F

+0040: 0x02030000   0x00649CF8   0xF10003F2   0x000003E7

+0050: 0x93001281   0x02039120   0x02030284   0x00000001

+0060: 0xFB0001FA   0xFFFFF171   0x02030000   0x00000000

+0070: 0x000007FF   0x000007FF   0x032B4B68   0x0065A350

+0080: 0x020356A8   0x00000001   0x0000017A   0x01F4EFC8

+0090: 0x00000000   0x00000000   0x026BE470   0x000003F2

+00A0: 0x001FB000   0x032A8870   0x04DEC000   0x032A8868

+00B0: 0x000000FE   0x00000000   0x01030000   0x93001281

+00C0: 0x01002100   0x000000FE   0x00000372   0x00000B2C

+00D0: 0x01F483C7   0x0000007E   0x02035658   0x0065FCB0

+00E0: 0x01000000   0x00000002   0x02039128   0x0018F814

+00F0: 0x0018FE04   0x774A74A0   0x53F483C7   0x00000000

+0100: 0x0018FDD8   0x77451EAA   0x0065A350   0x0065A358

+0110: 0x00000000   0x0065A358   0x04DEC020   0x00EB2A30

+0120: 0x00000026   0x020375D8   0x00000064   0x00000000

+0130: 0x00240830   0x02037D80   0x00240000   0x02039128



--------------------------
Reply

SetModeRestartTime has been fixed today for 0.3.7 R2 . I will try to fix restart bug and release r15-2.
Reply

How TogglePlayerOnPlayerList works? Or TogglePlayerOnPlayerList don't work properly? Please check it!
Reply

Man that currently disabled for stability testing. I'll enable it again for testing purpose.
Reply

Could you please test this version at windows?

Fixed that function what you wanted + gmx crash fixed finally AND 3D text functions fixed too. If everything will be right then there will be R16 soon.

Quote:
Originally Posted by CharlieSanchez
Посмотреть сообщение
Sorry bud, this print i took without having crashlog.dll loaded, trying to make it happen again to get a print of it.
there we go one of the crashlogs:



Right say the weather is set global to 0 and you use /rcon weather id , not always but it crashes the server,
Also if you change the weather a few times in a row within say 10 seconds it has crashed also a few times.
This has not been fixed yet, but I have an idea why it crashes.
Reply

Quote:
Originally Posted by kurta999
Посмотреть сообщение
Could you please test this version at windows?

Fixed that function what you wanted + gmx crash fixed finally AND 3D text functions fixed too. If everything will be right then there will be R16 soon.

This has not been fixed yet, but going to debug it.
So, I've tested the same server setup with your file. SetModeRestartTime(0.5) (or 1.0, 1.5, whatever value I put there) still won't work. Function returns 1 when I execute it, and I'm doing that on the OnGameModeInit callback. SA:MP server doesn't crash anymore on exit, BUT it takes a little while when I type the 'exit' command, like 'threatening' to crash.

I'm currently downloading Visual Studio 2015 in order to help testing your plugin.
Reply

E: SetModeRestartTime fixed, I've used wrong address. 0x004B5C0C is good at 037 r1 svr

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

Quote:
Originally Posted by sprtik
Посмотреть сообщение
Could you please implement SetPlayerStreamBounds to address this issue?
I'll add a function to adjust these limits, but it's very unsafe to set them infinity. Some bugs what you reported before anyway, already fixed. Fix will be in R16, so thanks.

Now i'm testing logprintf & OnRemoteRCONPacket with changed hooking system, hope them will work :$
Reply

Is there any "stand alone" Plugin with the Send Bullet Data Functions??

x_x
Reply

Quote:
Originally Posted by iSanchez
Посмотреть сообщение
Is there any "stand alone" Plugin with the Send Bullet Data Functions??

x_x
Uh, SKY?
Reply

Quote:
Originally Posted by kurta999
Посмотреть сообщение
This has not been fixed yet, but I have an idea why it crashes.
Awesome, im not in a rush bro, the gm is only going public in the summer, and its fully relying on YSF for allot of functions so im more than happy to keep you up to date on the things i discover as i will be using the plugin for a long time !! and thanks for being fast on checking things once more !
Reply

Nice

Quote:
Originally Posted by CharlieSanchez
Посмотреть сообщение
Sorry bud, this print i took without having crashlog.dll loaded, trying to make it happen again to get a print of it.
there we go one of the crashlogs:



Right say the weather is set global to 0 and you use /rcon weather id , not always but it crashes the server,
Also if you change the weather a few times in a row within say 10 seconds it has crashed also a few times.
This shit has been fixed yesterday.
Reply

Awesome ! Looking forward to the next version you release !

Btw: Would be something of interest perhaps you integrate your vehicle streamer with the YSF and make it a all in one bud, might be hard work but i believe that its worth having a go !

To be honest bud this plugin so far is the most innovative that is around , so keep it up ! and more things to come !
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)