[Plugin] CHandling - Server control of handlings & per-vehicle handlings
#18

I know why it's not working when you put it after SKY.
It's because SKY uses the exact same GetPacketId hook (which I actually took from Whitetiger's sampACv2). But SKY hooks the function directly in Load(), which overwrites the first 5 bytes with a JMP instruction, causing my FindPattern to fail. That's why I don't install hooks until the first AmxLoad call, so other plugins can use FindPattern under Load(), but SKY is not doing that.
I'll have to workarounnd that somehow, probably increasing the FindPattern signature and ignoring the first 5 bytes, if that will be possible.
As for these sampgdk warnings I'll have to test it out.

Update
I made a small commit (here) which addresses the hook-conflict with SKY (and any other plugin that would hook GetPacketID under Load()). It falls back to an alternate, longer pattern prefixed with a JMP instruction so it should find the correct function even if it was hooked already. Tested it on both windows and linux and it seems to work properly.
Haven't made a release as it's just a tiny change and SKY plugin is also kinda outdated. If someone really needs this then you can compile it yourself, or just load the plugin before SKY as it also does the job.
Reply


Messages In This Thread
CHandling - Server control of handling.cfg & per-vehicle handlings - by dotSILENT - 20.01.2019, 21:01
Re: CHandling - Server control of handlings & per-vehicle handlings - by dotSILENT - 20.01.2019, 21:25
Re: CHandling - Server control of handlings & per-vehicle handlings - by HNIC - 20.01.2019, 22:15
Re: CHandling - Server control of handlings & per-vehicle handlings - by Whitetiger - 21.01.2019, 00:41
Re: CHandling - Server control of handlings & per-vehicle handlings - by dotSILENT - 21.01.2019, 01:30
Re: CHandling - Server control of handlings & per-vehicle handlings - by SyS - 21.01.2019, 01:36
Re: CHandling - Server control of handlings & per-vehicle handlings - by RogueDrifter - 21.01.2019, 03:57
Re: CHandling - Server control of handlings & per-vehicle handlings - by Nathan94 - 21.01.2019, 14:00
Re: CHandling - Server control of handlings & per-vehicle handlings - by dotSILENT - 21.01.2019, 14:28
Re: CHandling - Server control of handlings & per-vehicle handlings - by Nathan94 - 21.01.2019, 14:44
Re: CHandling - Server control of handlings & per-vehicle handlings - by dotSILENT - 21.01.2019, 15:40
Re: CHandling - Server control of handlings & per-vehicle handlings - by Nathan94 - 21.01.2019, 17:32
Re: CHandling - Server control of handlings & per-vehicle handlings - by dotSILENT - 21.01.2019, 18:55
Re: CHandling - Server control of handlings & per-vehicle handlings - by Nathan94 - 21.01.2019, 20:36
Re: CHandling - Server control of handlings & per-vehicle handlings - by nickdodd25 - 21.01.2019, 21:05
Re: CHandling - Server control of handlings & per-vehicle handlings - by dotSILENT - 21.01.2019, 21:30
Re: CHandling - Server control of handlings & per-vehicle handlings - by nickdodd25 - 22.01.2019, 01:54
Re: CHandling - Server control of handlings & per-vehicle handlings - by dotSILENT - 22.01.2019, 07:56
Re: CHandling - Server control of handlings & per-vehicle handlings - by Chaprnks - 25.01.2019, 20:26
Re: CHandling - Server control of handlings & per-vehicle handlings - by dotSILENT - 25.01.2019, 20:42
Re: CHandling - Server control of handlings & per-vehicle handlings - by Pottus - 26.01.2019, 17:23
Re: CHandling - Server control of handlings & per-vehicle handlings - by Igorek - 25.02.2019, 13:25
Re: CHandling - Server control of handlings & per-vehicle handlings - by EgorAks - 30.11.2019, 16:31
Re: CHandling - Server control of handlings & per-vehicle handlings - by AlieN_ - 10.12.2019, 00:16
Re: CHandling - Server control of handlings & per-vehicle handlings - by dotSILENT - 18.12.2019, 20:05
Re: CHandling - Server control of handlings & per-vehicle handlings - by sana98 - 21.01.2020, 06:35
Re: CHandling - Server control of handlings & per-vehicle handlings - by Stalo - 23.03.2020, 04:20
Re: CHandling - Server control of handlings & per-vehicle handlings - by workwood98 - 05.04.2020, 11:13
Re: CHandling - Server control of handlings & per-vehicle handlings - by dotSILENT - 06.04.2020, 17:44
Re: CHandling - Server control of handlings & per-vehicle handlings - by Fairuz - 08.04.2020, 15:10
Re: CHandling - Server control of handlings & per-vehicle handlings - by Fairuz - 09.04.2020, 08:20
Re: CHandling - Server control of handlings & per-vehicle handlings - by dotSILENT - 12.04.2020, 22:22
[No subject] - by Fairuz - 14.04.2020, 07:16
Re: CHandling - Server control of handlings & per-vehicle handlings - by dotSILENT - 17.04.2020, 19:02
Re: CHandling - Server control of handlings & per-vehicle handlings - by Yukie - 02.05.2020, 07:09
Re: CHandling - Server control of handlings & per-vehicle handlings - by ZachKnoxx - 03.05.2020, 00:48
Re: CHandling - Server control of handlings & per-vehicle handlings - by nieXpro - 12.05.2020, 11:53
Re: CHandling - Server control of handlings & per-vehicle handlings - by dotSILENT - 12.05.2020, 15:47
Re: CHandling - Server control of handlings & per-vehicle handlings - by nieXpro - 12.05.2020, 20:02
Re: CHandling - Server control of handlings & per-vehicle handlings - by Refik - 12.05.2020, 22:55
Re: CHandling - Server control of handlings & per-vehicle handlings - by Refik - 13.05.2020, 20:33

Forum Jump:


Users browsing this thread: 1 Guest(s)