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

I took a quick peek at the disassembler and updated the offsets.ini file to handle 0.3.7 R4 (at least in theory, I haven't even launched the game because I'm not playing it anymore): https://github.com/dotSILENT/chandli...3fb06bcbe408c5
It should auto-update itself when launching the game.

If anyone want's to update the offsets in the future (since I probably won't really be supporting this more) and has any basic knowledge about disassembly, here's a quick way of finding all the required offsets, because it's pretty much identical in every version:
1. Search for text preloaded or any string from the vehicle debug info 3DText (for example subtype) and go to it's xref
2. You'll see the place which formats the message for vehicle 3DText, scroll up and you'll find 3 offsets in an conditional:

3. Now search for text Stay within and jump to the xref of the second result, here you'll find the FindIDFromGtaPtr function:


That's pretty much it, just get the HEX from samp.dll+0xBABE to identify the version.
As for the OFFSET_VehiclePool_pGtaVehicles, it's pretty much the same (0x4FB4) in every version, you'll find it in FindIDFromGtaPtr or related functions around it.
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: 2 Guest(s)