SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Plugin Development (https://forum.sa-mp.com/forumdisplay.php?f=18)
-   -   [Plugin] SKY - Slice's fork of kurta999's fork of YSF (https://forum.sa-mp.com/showthread.php?t=563442)

Fungi 24/08/2015 04:27 PM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
well, i have compiled it by myself
but im getting this

Code:

[19:17:11]  Loading plugin: SKY
[19:17:11] Error: Unknown Windows server version (0048c8d0)
[19:17:11]  Loaded.

then server crash when i take a damage
Code:

[19:23:48] [debug] #0 native PlayerTextDrawSetPosition () from SKY.DLL
[19:23:48] [debug] #1 00010518 in ?? (0, 1) from xx.amx
[19:23:48] [debug] #2 0000b9f0 in public OnPlayerTakeDamage (0, 65535, 1084122727, 54, 3) from xx.amx

This happens only in windows, the .so file works fine so far

Ha$H_Sexyboy 30/08/2015 03:32 PM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
Slice,i have a bug players cannot damage each other's cars when someone's in the driver seat an and enemy shoots at them nothing happens cars can only get damaged by fire... thoughts?

Crayder 30/08/2015 04:36 PM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
Quote:

Originally Posted by Ha$H_Sexyboy (Post 3564392)
Slice,i have a bug players cannot damage each other's cars when someone's in the driver seat an and enemy shoots at them nothing happens cars can only get damaged by fire... thoughts?

If you're using the weapon config library then you're in the wrong place.

IDarkness 15/09/2015 12:01 AM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
Can someone upload the plugin .dll for windows please?

Slice 15/09/2015 12:58 PM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
Windows DLL: https://github.com/oscar-broman/SKY/....1/SKY.dll.zip

RogerCosta 15/09/2015 03:42 PM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
Thanks for compile Windows Plugin, Slice.

Kruzz 18/10/2015 09:52 AM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
Where can I find the Linux version? (.so)

Cypress 18/10/2015 10:29 AM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
Quote:

Originally Posted by Kruzz (Post 3597732)
Where can I found the Linux version? (.so)

You can compile it yourself or ask someone to compile it for you. Although I belive if you look thru previews posts you'll find Linux the compiled version.

nickdodd25 18/10/2015 09:46 PM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
Quote:

Originally Posted by Kruzz (Post 3597732)
Where can I found the Linux version? (.so)

Quote:

Originally Posted by Cypress (Post 3597750)
You can compile it yourself or ask someone to compile it for you. Although I belive if you look thru previews posts you'll find Linux the compiled version.

Give this one a try. http://teamshrimp.com/files/sa-mp/plugins/sky/SKY.so Its the newest version.

JaKe Elite 10/11/2015 10:12 AM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
Sorry if i am asking such questions, How can i use this plugin? The WinRar only provides the .inc, but not the .dll or .so.

(Does it require to be compiled??? if so, i don't have the tools to compile this plugin)
This is the first time i am using the plugin so sorry about that.

Richie© 07/01/2016 09:45 PM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
Anyone having problem with OnVehicleSpawn not getting called when using this plugin?

ajwar 08/01/2016 10:15 AM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
Quote:

Originally Posted by Richie© (Post 3638147)
Anyone having problem with OnVehicleSpawn not getting called when using this plugin?

I have also this problem :) . It may be even wep-config include. It's called but vehicleid is 0.

Richie© 08/01/2016 10:56 AM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
Quote:

Originally Posted by ajwar (Post 3638393)
I have also this problem :) . It may be even wep-config include. It's called but vehicleid is 0.

Its not called for me at all, i placed a print on top of the callback. No print when i respawn a vehicle ig.
I noticed this coz inside OnVehicleSpawn it applies mods for the cars. This fails in 2 servers with different scripts after WC ans SKY.

I took a quick look in WC.inc in OVS cb, but i couldnt see anything that could bug it from there, might be wrong..

This happends on debian and when i tested locally on windows.

Slice 08/01/2016 11:28 AM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
That's strange.. Do you use YSF?

Richie© 08/01/2016 12:17 PM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
Quote:

Originally Posted by Slice (Post 3638425)
That's strange.. Do you use YSF?

No, when i used ysf and sky it caused crash, so i removed ysf so i could use this.

Edit:
This was caused by weapon-config.inc and was solved by Slice.
Could you put GetPlayerSurfingPlayerObjectID into this? Its one of the things i miss from YSF and cant use anymore along with SKY.

YouServ 10/01/2016 10:16 AM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
Thanks for share but where is the LINUX VERSION ?

Slice 10/01/2016 02:04 PM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
Quote:

Originally Posted by YouServ (Post 3639523)
Thanks for share but where is the LINUX VERSION ?

Code:

git clone https://github.com/oscar-broman/SKY.git
cd SKY
make


kurta999 18/01/2016 06:28 AM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
Im curious why you use that c method for subhook instead of c++ (like how i use in ysf and how its in zeex example)?

Slice 18/01/2016 09:00 AM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
The c++ method kept crashing when the server gracefully shut down, if I remember correctly.

I think Zeex fixed that problem by now, though.

kurta999 20/01/2016 09:40 PM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
Looks like subhook doesnt like when two plugin hooks the same function. I would like to add support for ysf & sky at same time, so i think i will disable GetPacketId hook in ysf when sky loaded and then both plugin will work. Ysf wont lose too much if i disable that hook, not like sky

Slice 20/01/2016 10:20 PM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
Perhaps they could detect eachother and share the hook somehow?

The best solution will probably be to create and issue and write "@Zeex help us!" He will come up with a really clever solution in 5 minutes, which would takes us 5 hours.

codectile 04/02/2016 04:05 AM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
I am quite new to this field, but still I would like to share my thought on this issue. You could export the hooked function in YSF and use GetProcAddress(in Windows, of course) to use the hooked function in SKY.

kurta999 04/02/2016 11:22 AM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
We should do it in both plugin, then the load order wouldn't matter. I'll try it, this is good idea.

kurta999 06/02/2016 08:13 AM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
This problem has been solved finally: https://github.com/kurta999/YSF/comm...6b4a649a9a3b6b

Slice 06/02/2016 12:24 PM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
Nice

iKarim 12/02/2016 09:08 AM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
Where to get the linux version of this? I tried downloading from github and its for windows. Tried searching for it but no results. Can't use weapon-config without this plugin so can someone compile it to linux and give me link?

supernerd2000 17/02/2016 08:25 PM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
I compiled this plugin for Linux, link here: https://mega.nz/#!7ZwWwTbA!6tJjth4ft...lEutd0Pp1TF4rU

Ha$H_Sexyboy 29/02/2016 10:53 AM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
Code:

[00:30:55] [debug] Server crashed while executing LSGWv4.amx
[00:30:55] [debug] AMX backtrace:
[00:30:55] [debug] #0 00000029 in ?? (... <8 arguments>) at <unknown file>:0
[00:30:55] [debug] #1 00000029 in public OnPlayerWeaponShot () at <unknown file>:0


DRIFT_HUNTER 29/02/2016 12:14 PM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
I see some people have trouble with linux version of plugin.
So here is unofficial version compiled by me on Ubuntu 14.04 LTS (Compiled at 2.Feb.2016)
http://negative-iq.tk/YSF/YSF.so

It will be hosted until i start cleaning up my shit on VPS, and that wont be any time soon...

poxer 03/03/2016 08:22 AM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
Hey Slice, how can I use it if I use a Linux Server?

iKarim 03/03/2016 09:19 AM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
Quote:

Originally Posted by poxer (Post 3666050)
Hey Slice, how can I use it if I use a Linux Server?

Click Me!

SecretBoss 03/03/2016 12:35 PM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
Quote:

Originally Posted by poxer (Post 3666050)
Hey Slice, how can I use it if I use a Linux Server?

Download and just use it, scroll up for linux compiled plugin

shiftlol 10/03/2016 05:30 PM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
[20:24:24] Loading plugin: SKY.so
[20:24:24] [debug] Server crashed due to an unknown error
[20:24:24] [debug] Native backtrace:
[20:24:24] [debug] #0 f74efe8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[20:24:24] [debug] #1 f74e8bcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[20:24:24] [debug] #2 f74e9dbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[20:24:24] [debug] #3 f74ea226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[20:24:24] [debug] #4 f74efadc in ?? () from plugins/crashdetect.so
[20:24:24] [debug] #5 f77d1410 in ?? ()
[20:24:24] [debug] #6 f4fb0761 in subhook_new () from plugins/SKY.so
[20:24:24] [debug] #7 f4fad9ed in _Z15InstallPreHooksv () from plugins/SKY.so
[20:24:24] [debug] #8 f4fb058a in Load () from plugins/SKY.so
[20:24:24] [debug] #9 080d2742 in ?? () from ./samp03svr
[20:24:24] [debug] #10 080d2afa in ?? () from ./samp03svr
[20:24:24] [debug] #11 080aa0d0 in ?? () from ./samp03svr
[20:24:24] [debug] #12 f752ae46 in __libc_start_main () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
[20:24:24] [debug] #13 0804b4e1 in ?? () from ./samp03svr

Slice 10/03/2016 06:57 PM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
I'm going to need some more information..

What other plugins do you have? Which OS?

Dayvison_ 12/10/2016 04:45 AM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
1 Attachment(s)
Someone can compile the latest commit on windows?

if anyone need linux i attached here.

n0minal 11/11/2016 01:01 AM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
It's not working for me on windows, is it running for someone else in 0.3.7 R2-1?

@Edit: Nvm just realized that my YSF from Kurta's wasn't updated to the last version.

As asked by Dayvison_ above, here is the latest plugin commits compiled for windows: https://www.mediafire.com/?oyvrc21h8binvfc


@Edit2: Found a possible bug, I shoot players with shotgun, even using a script to prevent them to take damage they die and I get many weird erros on my console:

Code:

[11/11/16 00:59:36] [connection] incoming connection: 127.0.0.1:49627 id: 0
[11/11/16 00:59:37] [join] n0minal has joined the server (0:127.0.0.1)
[11/11/16 00:59:37] [nick] n0minal nick changed to [ZT]Guest_User[0]
[11/11/16 00:59:37] [debug] Run time error 6: "Invalid instruction"
[11/11/16 00:59:37] [debug]  Unknown opcode 0xc000000 at address 0x000000E5
[11/11/16 00:59:37] [debug] AMX backtrace:
[11/11/16 00:59:37] [debug] #0 000000e5 in ?? (0, 1076426179, 65535, 54, 3, 0) from zombo.amx
[11/11/16 00:59:37] [debug] #1 0000cbe8 in public OnPlayerTakeDamage (0, 65535, 1076426179, 54, 3) from zombo.amx
[11/11/16 00:59:39] [debug] Run time error 6: "Invalid instruction"
[11/11/16 00:59:39] [debug]  Unknown opcode 0xc000000 at address 0x000000E5
[11/11/16 00:59:39] [debug] AMX backtrace:
[11/11/16 00:59:39] [debug] #0 000000e5 in ?? (0, 1076426179, 65535, 54, 3, 0) from zombo.amx
[11/11/16 00:59:39] [debug] #1 0000cbe8 in public OnPlayerTakeDamage (0, 65535, 1076426179, 54, 3) from zombo.amx
[11/11/16 00:59:55] [nick] [ZT]Guest_User[0] nick changed to n0minal
[11/11/16 01:00:04] [debug] Run time error 6: "Invalid instruction"
[11/11/16 01:00:04] [debug]  Unknown opcode 0xc000000 at address 0x000000E5
[11/11/16 01:00:04] [debug] AMX backtrace:
[11/11/16 01:00:04] [debug] #0 000000e5 in public OnPlayerWeaponShot (0, 25, 1, 145, -1106395136, 1050312704, 1059349424) from zombo.amx
[11/11/16 01:00:04] [debug] Run time error 6: "Invalid instruction"
[11/11/16 01:00:04] [debug]  Unknown opcode 0xc000000 at address 0x000000E5
[11/11/16 01:00:04] [debug] AMX backtrace:
[11/11/16 01:00:04] [debug] #0 000000e5 in public OnPlayerGiveDamage (0, 145, 1106090394, 25, 9) from zombo.amx
[11/11/16 01:00:05] [debug] Run time error 6: "Invalid instruction"
[11/11/16 01:00:05] [debug]  Unknown opcode 0xc000000 at address 0x000000E5
[11/11/16 01:00:05] [debug] AMX backtrace:
[11/11/16 01:00:05] [debug] #0 000000e5 in public OnPlayerWeaponShot (0, 25, 1, 145, -1110376448, 1051074560, 1045471936) from zombo.amx
[11/11/16 01:00:05] [debug] Run time error 6: "Invalid instruction"
[11/11/16 01:00:05] [debug]  Unknown opcode 0xc000000 at address 0x000000E5
[11/11/16 01:00:05] [debug] AMX backtrace:
[11/11/16 01:00:05] [debug] #0 000000e5 in public OnPlayerGiveDamage (0, 145, 1109288551, 25, 3) from zombo.amx
[11/11/16 01:00:41] [debug] Run time error 6: "Invalid instruction"
[11/11/16 01:00:41] [debug]  Unknown opcode 0xc000000 at address 0x000000E5
[11/11/16 01:00:41] [debug] AMX backtrace:
[11/11/16 01:00:41] [debug] #0 000000e5 in public OnPlayerWeaponShot (0, 25, 1, 145, 1051103232, 1035632640, 1063043584) from zombo.amx
[11/11/16 01:00:41] [debug] Run time error 6: "Invalid instruction"
[11/11/16 01:00:41] [debug]  Unknown opcode 0xc000000 at address 0x000000E5
[11/11/16 01:00:41] [debug] AMX backtrace:
[11/11/16 01:00:41] [debug] #0 000000e5 in public OnPlayerGiveDamage (0, 145, 1087583028, 25, 9) from zombo.amx
[11/11/16 01:00:42] [debug] Run time error 6: "Invalid instruction"
[11/11/16 01:00:42] [debug]  Unknown opcode 0xc000000 at address 0x000000E5
[11/11/16 01:00:42] [debug] AMX backtrace:
[11/11/16 01:00:42] [debug] #0 000000e5 in public OnPlayerWeaponShot (0, 25, 1, 145, -1110999040, 1050877952, 1061412016) from zombo.amx
[11/11/16 01:00:42] [debug] Run time error 6: "Invalid instruction"
[11/11/16 01:00:42] [debug]  Unknown opcode 0xc000000 at address 0x000000E5
[11/11/16 01:00:42] [debug] AMX backtrace:
[11/11/16 01:00:42] [debug] #0 000000e5 in public OnPlayerGiveDamage (0, 145, 1102630093, 25, 5) from zombo.amx
[11/11/16 01:00:43] [debug] Run time error 6: "Invalid instruction"
[11/11/16 01:00:43] [debug]  Unknown opcode 0xc000000 at address 0x000000E5
[11/11/16 01:00:43] [debug] AMX backtrace:
[11/11/16 01:00:43] [debug] #0 000000e5 in public OnPlayerWeaponShot (0, 25, 1, 145, 1036812288, 1050836992, 1061940704) from zombo.amx
[11/11/16 01:00:43] [debug] Run time error 6: "Invalid instruction"
[11/11/16 01:00:43] [debug]  Unknown opcode 0xc000000 at address 0x000000E5
[11/11/16 01:00:43] [debug] AMX backtrace:
[11/11/16 01:00:43] [debug] #0 000000e5 in public OnPlayerGiveDamage (0, 145, 1100899943, 25, 9) from zombo.amx
[11/11/16 01:00:44] [debug] Run time error 6: "Invalid instruction"
[11/11/16 01:00:44] [debug]  Unknown opcode 0xc000000 at address 0x000000E5
[11/11/16 01:00:44] [debug] AMX backtrace:
[11/11/16 01:00:44] [debug] #0 000000e5 in public OnPlayerWeaponShot (0, 25, 1, 145, 1036828672, 1050894336, 1061940624) from zombo.amx
[11/11/16 01:00:44] [debug] Run time error 6: "Invalid instruction"
[11/11/16 01:00:44] [debug]  Unknown opcode 0xc000000 at address 0x000000E5
[11/11/16 01:00:44] [debug] AMX backtrace:
[11/11/16 01:00:44] [debug] #0 000000e5 in public OnPlayerGiveDamage (0, 145, 1100899943, 25, 9) from zombo.amx
[11/11/16 01:00:45] [debug] Run time error 6: "Invalid instruction"
[11/11/16 01:00:45] [debug]  Unknown opcode 0xc000000 at address 0x000000E5
[11/11/16 01:00:45] [debug] AMX backtrace:
[11/11/16 01:00:45] [debug] #0 000000e5 in public OnPlayerWeaponShot (0, 25, 1, 145, -1124335616, 1051148288, 1060356000) from zombo.amx
[11/11/16 01:00:45] [debug] Run time error 6: "Invalid instruction"
[11/11/16 01:00:45] [debug]  Unknown opcode 0xc000000 at address 0x000000E5
[11/11/16 01:00:45] [debug] AMX backtrace:
[11/11/16 01:00:45] [debug] #0 000000e5 in public OnPlayerGiveDamage (0, 145, 1110153626, 25, 5) from zombo.amx
[11/11/16 01:00:46] [debug] Run time error 6: "Invalid instruction"
[11/11/16 01:00:46] [debug]  Unknown opcode 0xc000000 at address 0x000000E5
[11/11/16 01:00:46] [debug] AMX backtrace:
[11/11/16 01:00:46] [debug] #0 000000e5 in public OnPlayerWeaponShot (0, 25, 1, 145, -1111310336, 1051484160, 1048926496) from zombo.amx
[11/11/16 01:00:46] [debug] Run time error 6: "Invalid instruction"
[11/11/16 01:00:46] [debug]  Unknown opcode 0xc000000 at address 0x000000E5
[11/11/16 01:00:46] [debug] AMX backtrace:
[11/11/16 01:00:46] [debug] #0 000000e5 in public OnPlayerGiveDamage (0, 145, 1110153626, 25, 3) from zombo.amx
[11/11/16 01:00:46] [kill] n0minal killed Zombie[146] Shotgun

PS: I don't have OnPlayerTakeDamage callback on my gamemode, just in weapon-config include, and I'm testing it with FCNPC's.

PT 30/12/2016 08:45 PM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
The latest commit of SKY plugin on GitHub is stable?

Anyone know anything about it?

dhelz7 07/01/2017 12:44 AM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
How to install this?

Manyula 07/01/2017 01:13 AM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
If I set my health to 100.0 HP and fake it to show 50.0 HP, does it show the fake health only to other players or to myself aswell?

Spmn 07/01/2017 10:24 AM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
It affects only how others see your HP, so you'll see 100 and players around you'll see 50.


All times are GMT. The time now is 06:17 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.