NefMoto

Technical => Reverse Engineering => Topic started by: madboost on January 30, 2021, 09:01:12 AM



Title: Rolling antilag script
Post by: madboost on January 30, 2021, 09:01:12 AM
My second contribution to this forum  ;)
I have manipulated the launch.php script to create a rolling antilag function.
Default activation parameters:
While full throttle, slightly press the brake whenever you desire to activate the rolling antilag feature.
Maximum duration of igntition cut is set to 2500ms by default.
Engine RPM must be above 2000rpm for activation.
Preaquisites:
NWPMBBR set to FF
VWPMBBR set to FF
WPMXBR set to FFFF

Enjoy for personal use!
Don't use this script to make money for your business...
The user of this script is responsible for any engine failure caused by it.
Have fun!

Uploaded on github. https://github.com/madboost/me7-Rolling-Antilag


Title: Re: Rolling antilag script
Post by: chacarita on January 31, 2021, 10:20:38 PM
Currently travelling, can't wait to try it and provide some feedback. Thanks for sharing!


Title: Re: Rolling antilag script
Post by: madboost on February 07, 2021, 03:59:50 AM
Here is also the fixed rpm version.
I believe this will create better boost, since it is actually a rolling launch control function. ;)
Same preaquisites.
It holds boost at 3500rpm by default.

If you want to use both rolling antilag code & als nls function you simply have to:

A) run the launch.php script on the original flash.

B) run the rollingV2.php script on the original flash with proper offset for both parameters & function. We don't want both stored on the same address!

C) Merge both functions & parameters on a final file, while replacing the jump back to UB(on als nls function) with a call (DA) to new function (rolling antilag).

Let me know if you need an example.

Any feedback if this actually works or not is welcome :)


Title: Re: Rolling antilag script
Post by: tg2000 on February 17, 2021, 03:15:31 PM
hello, are there any offsets to this script?


Title: Re: Rolling antilag script
Post by: madboost on February 17, 2021, 03:40:54 PM
Offsets are automatic.
If you are already patched for als nls, you can use offsets, and then link both functions


Title: Re: Rolling antilag script
Post by: madboost on February 17, 2021, 03:41:30 PM
https://github.com/madboost/me7-Rolling-Antilag


Title: Re: Rolling antilag script
Post by: nyet on February 17, 2021, 05:22:52 PM
A few questions

1) does it disable KR?
2) does it disable misfire recognition?

Also as a suggestion, it should patch out RSA checks if possible.


Title: Re: Rolling antilag script
Post by: Dejw0089 on February 20, 2021, 11:32:10 PM
First question is did you test this on your car?
2nd thing is script found free space at 18C0 and call function to this adress DA 8A C0 18 but put function in adress 1910 co call function is make to free space not real function.


Title: Re: Rolling antilag script
Post by: bamofo on February 24, 2021, 08:32:23 AM
First question is did you test this on your car?
2nd thing is script found free space at 18C0 and call function to this adress DA 8A C0 18 but put function in adress 1910 co call function is make to free space not real function.

You need to throw your rom in IDA, Disassemble it correctly and find where you can put it. place the code there "updated" and then do the hook by hand. If you cant, you should ask someone for help or your going to have a bad time.


Title: Re: Rolling antilag script
Post by: VagDoc on February 26, 2021, 02:25:30 AM
I ran this script on an 032lq bin and had good results, worked as it should. Thanks.


Title: Re: Rolling antilag script
Post by: stuydub on February 27, 2021, 11:19:23 AM


If you want to use both rolling antilag code & als nls function you simply have to:




As requested


Title: Re: Rolling antilag script
Post by: madboost on February 27, 2021, 12:01:20 PM
I will not reply to password protected file uploads.
If i share something i will share it for everyone.
I will make an example of ALS NLS + Rolling combined in one single file.


Title: Re: Rolling antilag script
Post by: madboost on February 27, 2021, 12:30:21 PM
Example of ALS NLS + Rolling antilag combined.
Not checksum corrected.


Title: Re: Rolling antilag script
Post by: stuydub on February 27, 2021, 12:56:50 PM
I will not reply to password protected file uploads.
If i share something i will share it for everyone.
I will make an example of ALS NLS + Rolling combined in one single file.




Title: Re: Rolling antilag script
Post by: xXxCryxXx on March 29, 2021, 04:43:31 AM
Dont work... PHP says

Fatal error: Array and string offset access syntax with curly braces is no longer supported in C:...Launchcontrol\rolling-launch.php on line 262

after replacing all Curly Braces to " () "

comes this " Fatal error: Can't use function return value in write context in C:....\Launchcontrol\rollingv2.php on line 555 "

newest PHP installed

Can you help me?



Title: Re: Rolling antilag script
Post by: stuydub on March 29, 2021, 05:05:31 AM
Dont work... PHP says

Fatal error: Array and string offset access syntax with curly braces is no longer supported in C:...Launchcontrol\rolling-launch.php on line 262

after replacing all Curly Braces to " () "

comes this " Fatal error: Can't use function return value in write context in C:....\Launchcontrol\rollingv2.php on line 555 "

newest PHP installed

Can you help me?



still works fine what version of PHP u using ??


Title: Re: Rolling antilag script
Post by: xXxCryxXx on March 29, 2021, 05:10:59 AM
still works fine what version of PHP u using ??

8.0.3.0 its written on php version, picture in attechment :)


Title: Re: Rolling antilag script
Post by: stuydub on March 29, 2021, 05:41:42 AM
Go back to 7.3.27


Title: Re: Rolling antilag script
Post by: xXxCryxXx on March 29, 2021, 05:52:05 AM
Go back to 7.3.27
Ok thanks i will try it :)!


Title: Re: Rolling antilag script
Post by: xXxCryxXx on March 29, 2021, 06:53:47 AM
Go back to 7.3.27
Thanks mate ! It works! :) some issue with newest version of php. The Version 7.3.27 works without a issue. Awsome


Title: Re: Rolling antilag script
Post by: madboost on April 01, 2021, 01:06:53 PM
3rd revision of my rolling antilag code patcher is uploaded.
Fixed on V3:
a) Code lenth. NLS part of setzi's code is removed, no reason to keep it for Rolling antilag.
b) Removed vfil_w condition check, since it is not necessary for rolling antilag.
c) Added Wped condition check. Activation above a cetrain pedal threshold. (Above 90% by default)


Title: Re: Rolling antilag script
Post by: NRD121 on April 11, 2021, 12:12:04 PM
Does every binary require the change to  'WPMXBR' (Maximal zulässiger Pedalwert bei betätigter Bremse (vor Erkennung wped = 0) Maximum permissible pedal value with the brake applied (before detection of wped = 0)

I have already done VWPMBBR and NWPMBBR which seems to allow left foot braking/throttle opening even with brakes applied. I ask because i'm struggling to find that map in my binary, possibly as my car runs a later ABS system to most MK4 chassis. Will check and report back anyway lol


Title: Re: Rolling antilag script
Post by: stuydub on April 11, 2021, 03:24:46 PM
Does every binary require the change to  'WPMXBR' (Maximal zulässiger Pedalwert bei betätigter Bremse (vor Erkennung wped = 0) Maximum permissible pedal value with the brake applied (before detection of wped = 0)

I have already done VWPMBBR and NWPMBBR which seems to allow left foot braking/throttle opening even with brakes applied. I ask because i'm struggling to find that map in my binary, possibly as my car runs a later ABS system to most MK4 chassis. Will check and report back anyway lol

0x14424 if u HJ HN HS


Title: Re: Rolling antilag script
Post by: stuydub on April 11, 2021, 03:28:33 PM
3rd revision of my rolling antilag code patcher is uploaded.
Fixed on V3:
a) Code lenth. NLS part of setzi's code is removed, no reason to keep it for Rolling antilag.
b) Removed vfil_w condition check, since it is not necessary for rolling antilag.
c) Added Wped condition check. Activation above a cetrain pedal threshold. (Above 90% by default)

WILL NOT WORK WITH NEWER PHP USE V7.3.27


Title: Re: Rolling antilag script
Post by: stuydub on April 17, 2021, 04:39:40 AM
3rd revision of my rolling antilag code patcher is uploaded.
Fixed on V3:
a) Code lenth. NLS part of setzi's code is removed, no reason to keep it for Rolling antilag.
b) Removed vfil_w condition check, since it is not necessary for rolling antilag.
c) Added Wped condition check. Activation above a cetrain pedal threshold. (Above 90% by default)

Tried and Tested.. Good work again


Title: Re: Rolling antilag script
Post by: kubawd on April 28, 2021, 03:41:32 PM
I added this rolling antilag to my 2.7 file, which already had LC and antilag. It works, but i dont think this is the right way: at 3500rpm it pops a bit, frequently, builds up to 0.5bar. I think its not much more than with regular brake boosting. Over 3500rpm, if i go flat on throttle and press brake, it builds no boost, but just stops pulling. When i release the brake with throttle still 100%, it spits a big bang and accelerates. You can see it here: https://www.youtube.com/watch?v=0DWgVal_cdM
3500rpm: https://www.youtube.com/watch?v=lp5O0Q2IzyU
I will try increasing rpm's to 4000, maybe its because of bigger, K04 RS6 turbos.
Any suggestions are welcome  :)

Do you guys have any videos of this rolling antilag in action?


Title: Re: Rolling antilag script
Post by: madboost on May 15, 2021, 01:51:36 PM
I added this rolling antilag to my 2.7 file, which already had LC and antilag. It works, but i dont think this is the right way: at 3500rpm it pops a bit, frequently, builds up to 0.5bar. I think its not much more than with regular brake boosting. Over 3500rpm, if i go flat on throttle and press brake, it builds no boost, but just stops pulling. When i release the brake with throttle still 100%, it spits a big bang and accelerates. You can see it here: https://www.youtube.com/watch?v=0DWgVal_cdM
3500rpm: https://www.youtube.com/watch?v=lp5O0Q2IzyU
I will try increasing rpm's to 4000, maybe its because of bigger, K04 RS6 turbos.
Any suggestions are welcome  :)

Do you guys have any videos of this rolling antilag in action?

It will only hold boost at the defined rpm. It will not lock at any rpm.
A proper rolling antilag is using ign timing retardation to build boost, not ign cut.
But i disagree with you only in the part when you say left foot brake is better. It is not really, since with this patch you don;t have to really press any brake in order to build any boost. Brake is just used for the signaling of the function.

Perhaps using the cruise control switch would be better for activation would be better. So you can have both left foot brake & rolling antilag if you desire.


Title: Re: Rolling antilag script
Post by: kubawd on May 15, 2021, 04:49:24 PM
I didn't say that left foot braking is better. I meant that boost is not building. It was more of a question about whether it's something wrong, or that's the way it's supposed to work. I didn't do much testing since then. I will come back with the feedback :) btw. Do you have any videos of your rolling antilag? You can also check out videos which I linked and tell me if there's everything right.

//edit
I tested a bit and if im on point with rpm(I set it for 4k) it actually builds boost. I have another question, should it pop like in this video? Sometimes it starts popping while building boost i.e. on 0.5 bar and doesnt go further. It may be something in my tune interfering with rolling antilag.
https://www.youtube.com/watch?v=jEmJH2T5Trc


Title: Re: Rolling antilag script
Post by: drews3 on August 04, 2021, 12:56:10 AM
 Thanks a lot bro
 :o

i have an s4 i will try it asap the mechanic finishes the job and i will give feedback ! thanks a lot

Best regardes


Title: Re: Rolling antilag script
Post by: mikeb1223 on August 11, 2021, 08:27:27 AM
Great Job works Perfect, I'm using Version 3.. I see variables @8bit thered be 4 @16bit thered be what are they I have the addresses already put in my tunerpro as Scalars if you could help with that I'd appreciate ot


Title: Re: Rolling antilag script
Post by: nyet on October 24, 2021, 10:06:23 AM
Locking thread. If you have something *technical* to add to this thread, PM me and i will unlock it.

Otherwise, all other LC questions go here:

http://nefariousmotorsports.com/forum/index.php?topic=12559.0title=

Please read the first few posts before asking anything.