Author Topic: AI timeout done!:) now planes dont dissapear!  (Read 10921 times)

0 Members and 1 Guest are viewing this topic.

Offline abranpuko

  • Turbine 2nd Officer
  • ***
  • Posts: 183
AI timeout done!:) now planes dont dissapear!
« on: March 30, 2018, 02:41:14 PM »
Hi. Although I do not control the hexadecimal language, I have finally modified a code with "hexeditor" software from the ai_player.dll file. Following the instructions for the last modified version, it worked. Here I attach the new file, with which it is achieved that the airplanes do not disappear at 5 minutes, but at 17.
On the other hand, I'm still investigating how to modify the code to be able to accelerate the planes a bit more in their taxispeed.
If you use this ai_player.dll, I recommend that you make a backup of the original.
A hug!

Offline Jorgen

  • Senior Captain
  • ******
  • Posts: 807
  • Retired computer backup hardware tech
Re: AI timeout done!:) now planes dont dissapear!
« Reply #1 on: March 30, 2018, 03:08:28 PM »
Which simulator version is this for?

Jorgen

Offline Mr_LoL

  • Turbine 2nd Officer
  • ***
  • Posts: 141
Re: AI timeout done!:) now planes dont dissapear!
« Reply #2 on: March 30, 2018, 03:49:31 PM »
I'm assuming it's for V4 4.2. I'll try it now. Thanks  ::cheers::

Offline abranpuko

  • Turbine 2nd Officer
  • ***
  • Posts: 183
Re: AI timeout done!:) now planes dont dissapear!
« Reply #3 on: March 30, 2018, 04:26:50 PM »
Yes. Sorry, maybe i didnt say its for prepar3dv4.2 (last version)
at least, for me, its working. but please make before a backup of your ai_player.dll
any notice say to me if you want!
thanks.

Offline Jorgen

  • Senior Captain
  • ******
  • Posts: 807
  • Retired computer backup hardware tech
Re: AI timeout done!:) now planes dont dissapear!
« Reply #4 on: March 30, 2018, 04:59:40 PM »
I will try it out tomorrow.

Thanks -

Jorgen

Offline flyboynk

  • Turbine 2nd Officer
  • ***
  • Posts: 109
Re: AI timeout done!:) now planes dont dissapear!
« Reply #5 on: March 30, 2018, 06:33:04 PM »
I have some time ago found how to change the timeout setting but the taxispeed setting does not change in P3D even if you change the ai_player.dll

I found the same pattern to where the taxispeed setting should change but regardless of what value you change from 20 kts up to 35 it does not change within P3D.

I'll upload my worksheet that I have maybe two heads are better than one.

I've been very busy flying (work) so I haven't been working on upgrading my aittp to 4.2 for P3D

Jorge


FSX
TS   3120-3135   00 00 00 00 00 00 24 C0 39 9D 52 A2 46 DF 81 3F 00 00 00 00 00 80 41 40
FSX v10.0.61472.0  (SP2)                          3120-3135      (3135)R      (3136)W
FSX v10.0.61637.0  (Xpack)                 32D8-32EF      (32EE)R      (32EF)W

TS   2EC8-2EDF   00 00 00 00 00 00 2E 40 7B 14 AE 47 E1 7A 2E 40 00 00 00 00 00 00 31 40
FSX v10.0.62615.0  (FSX.20150710-1055)      2FEC8-2EDF      (2EDE)R      (2EDF)W


P3D
TS   52CA0-52CB7   18 2D 44 54 FB 21 F9 3F 83 C8 C9 6D 30 5F 14 40 00 00 00 00 00 00 31 40      
P3D v4.2.21.24048  -             52CA0-52CB7      (52CB5)R   (52CB6)W
P3D v4.1.7.22841   -                     51AA0-51AB7      (51AB6)R   (51AB7)W
P3D v4.0.28.21686  -                    51580-51597      (51596)R   (51597)W
P3D v4.0.23.21468  -             51580-51597      (51596)R   (51597)W


FSX

TO   11A8-11BF   66 66 66 66 66 66 FE 3F 00 00 00 00 00 00 69 40 00 00 00 00 00 C0 72 40
FSX v10.0.61472.0  (SP2)                 11A8-11BF      (11BD)R      (11BE)W
FSX v10.0.61637.0  (Xpack)          11E0-11F7      (11F5)R      (11F6)W

TO   0C88-0C9F   00 00 00 00 00 00 4E 40 00 00 00 00 00 00 69 40 00 00 00 00 00 C0 72 40      Saurav
TO   0C88-0C9F   00 00 00 00 00 00 4E 40 00 00 00 00 00 00 69 40 00 00 00 00 00 C0 8F 40      alex
FSX v10.0.62615.0  (FSX.20150710-1055)      0C88-0C9F      (0C9D)R      (0C9E)W


P3D


TO   53E58-53E6F   00 00 00 A0 99 99 F1 3F 00 00 00 40 33 33 F3 3F 00 00 00 00 00 C0 72 40
P3D v4.2.21.24048  -             53E58-53E6F      (53E6D)R   (53E6E)W

TO   54B08-54B1F   00 00 00 40 33 33 F3 3F E3 71 51 2D 22 52 69 40 00 00 00 00 00 C0 72 40
P3D v4.1.7.22841   -                     54B08-54B1F      (54B1D)R   (54B1E)W
P3D v4.0.28.21686  -             545B0-545C7      (515C5)R   (515C6)W
P3D v4.0.23.21468  -             545B0-545C7      (515C5)R   (515C6)W



Also here are a few tables I use to calculate timeout and taxispeed settings

C0 72 40 Start

Dec      Hex         Timeout

114      72   300   5.00   5:00:00
115      73   315   5.25   5:15:00
116      74   330   5.50   5:30:00
117      75   345   5.75   5:45:00
118      76   360   6.00   6:00:00
119      77   375   6.25   6:15:00
120      78   390   6.50   6:30:00
121      79   405   6.75   6:45:00
122      7A   420   7.00   7:00:00
123      7B   435   7.25   7:15:00
124      7C   450   7.50   7:30:00
125      7D   465   7.75   7:45:00
126      7E   480   8.00   8:00:00
127      7F   495   8.25   8:15:00
128      80   510   8.50   8:30:00
129      81   525   8.75   8:45:00
130      82   540   9.00   9:00:00
131      83   555   9.25   9:15:00
132      84   570   9.50   9:30:00
133      85   585   9.75   9:45:00
134      86   600   10.00   10:00:00
135      87   615   10.25   10:15:00
136      88   630   10.50   10:30:00
137      89   645   10.75   10:45:00
138      8A   660   11.00   11:00:00
139      8B   675   11.25   11:15:00
140      8C   690   11.50   11:30:00
141      8D   705   11.75   11:45:00
142      8E   720   12.00   12:00:00
143      8F   735   12.25   12:15:00
144      90   750   12.50   12:30:00
145      91   765   12.75   12:45:00
146      92   780   13.00   13:00:00
147      93   795   13.25   13:15:00
148      94   810   13.50   13:30:00
149      95   825   13.75   13:45:00
150      96   840   14.00   14:00:00
151      97   855   14.25   14:15:00
152      98   870   14.50   14:30:00
153      99   885   14.75   14:45:00
154      9A   900   15.00   15:00:00
155      9B   915   15.25   15:15:00
156      9C   930   15.50   15:30:00
157      9D   945   15.75   15:45:00
158      9E   960   16.00   16:00:00
159      9F   975   16.25   16:15:00
160      A0   990   16.50   16:30:00


49AI Taxi Speed P3Dv4   (Taxi 20 / Land 20)

Offset 00051AB5
Value  00 31 40 Start



Dec      Hex      Value

00 49      00 31      20
00 50      00 32      21
00 51      00 33      22
00 52      00 34      23
00 53      00 35      24
00 54      00 36      25
00 55      00 37      26
00 56      00 38      27
00 57      00 39      28
00 58      00 3A      29
00 59      00 3B      30
00 60      00 3C      31
00 61      00 3D      32
00 62      00 3E      33
00 63      00 3F      34   
00 64      80 40      35      

00 65      80 41      36
00 66      80 42      37
00 67      80 43      38
00 68      80 44      39
00 69      80 45      40
00 70      80 46      41
00 71      80 47      42
00 72      80 48      43
00 73      80 49      44
00 74      80 4A      45
00 75      80 4B      46
00 76      80 4C      47
00 77      80 4D      48
00 78      80 4E      49
00 79      80 4F      50
00 80      80 50      51

« Last Edit: March 30, 2018, 06:36:58 PM by flyboynk »

Offline flyboynk

  • Turbine 2nd Officer
  • ***
  • Posts: 109
Re: AI timeout done!:) now planes dont dissapear!
« Reply #6 on: March 30, 2018, 06:57:56 PM »
So tried again today, modified the P3D v4.2 offset where it should change the taxispeed.

The default is 20 kts , this indicated by 00 31 40 in the hex code (the 31 in hex is equal to 20).
This is the line it is on (offset) 52CA0-52CB7   
Here I have included hex code leading up to and including the location where taxispeed should change ( the code leading up to the taxispeed setting is the exact same from previous versions in P3D 4.0, 4.1) 
 18 2D 44 54 FB 21 F9 3F 83 C8 C9 6D 30 5F 14 40 00 00 00 00 00 00 31 40

 I changed it to  80 40 40, which changes taxispeed from 20 kts to 35 kts. But still in P3D 4.2 it shows 20 kts..  will keep looking for solution.


Again, problem is not changing timeout setting, that changes perfectly but taxispeed regardless of new speed you change ai_player.dll to, does not change within P3D 4.2 (for the moment)
« Last Edit: March 30, 2018, 07:00:10 PM by flyboynk »

Offline flyboynk

  • Turbine 2nd Officer
  • ***
  • Posts: 109
Re: AI timeout done!:) now planes dont dissapear!
« Reply #7 on: March 30, 2018, 07:14:12 PM »
Here is my version 1.3 of AITTP

I have not released yet it since as of right now only timeout setting is changed in P3D 4.2, regardless of what new taxispeed you change the default of 20kts to, it does not change within 4.2 yet

I have included it here for anyone that wants to change their ai_player.dll values (remember you will only get new timeout, taxispeed not updating within P3D yet).

Working on it, looking over hex code to see if I find something new. My gut feeling is LM have changed something within ai_player.dll code, before in 4.0 and 4.1 you could just change the value and
 it would change in P3D prefectly, as of today 4.2 any changes to speed taxispeed in dll will keep same speed within sim.
« Last Edit: May 30, 2018, 12:43:50 AM by flyboynk »

Offline abranpuko

  • Turbine 2nd Officer
  • ***
  • Posts: 183
Re: AI timeout done!:) now planes dont dissapear!
« Reply #8 on: March 30, 2018, 07:40:47 PM »
Thank you very much for your work. Im sure you wll find the code like indiana jones!:)
anyway, i also did it today, and i discover its difficult to find. I only could change the timeout value also.
Thanks for your new AITP and lets continue in the fight!
(I hope LM help us!)

holds.

Offline p3dflyer64

  • Prop Captain
  • **
  • Posts: 93
Re: AI timeout done!:) now planes dont dissapear!
« Reply #9 on: April 11, 2018, 03:12:49 PM »
Here is my version 1.3 of AITTP

I have not released yet it since as of right now only timeout setting is changed in P3D 4.2, regardless of what new taxispeed you change the default of 20kts to, it does not change within 4.2 yet

I have included it here for anyone that wants to change their ai_player.dll values (remember you will only get new timeout, taxispeed not updating within P3D yet).

Working on it, looking over hex code to see if I find something new. My gut feeling is LM have changed something within ai_player.dll code, before in 4.0 and 4.1 you could just change the value and
 it would change in P3D prefectly, as of today 4.2 any changes to speed taxispeed in dll will keep same speed within sim.

I tried running the utility on 4.1, it showed taxi speed on unchanged dll as 35 and after I set the desired 25 and saved, it slowed down the traffic further from default. Perhaps that might be the reason why mod is not effecting 4.2, or may be its just bug in the UI of the app. Using your attached dll from another thread of 25kts-10min in 4.1 works fine.
« Last Edit: April 12, 2018, 01:52:51 AM by p3dflyer64 »

Offline abranpuko

  • Turbine 2nd Officer
  • ***
  • Posts: 183
Re: AI timeout done!:) now planes dont dissapear!
« Reply #10 on: April 11, 2018, 04:14:52 PM »
Thanks for the info. So we're on the way to finding out! :)
It must be what you say.

Offline flyboynk

  • Turbine 2nd Officer
  • ***
  • Posts: 109
Re: AI timeout done!:) now planes dont dissapear!
« Reply #11 on: April 13, 2018, 11:38:46 AM »


Quote
I tried running the utility on 4.1, it showed taxi speed on unchanged dll as 35 and after I set the desired 25 and saved, it slowed down the traffic further from default. Perhaps that might be the reason why mod is not effecting 4.2, or may be its just bug in the UI of the app. Using your attached dll from another thread of 25kts-10min in 4.1 works fine.

p3dflyer64, the utility works for 4.0 and 4.1 for both taxispeed and timeout settings, just for 4.2 the taxispeed will not update but timeout will.
The reason it works for previous versions is I just have added compatibility for newer versions that come out while still being able to use older P3D versions.
For example AITTP v1.2 worked for P3D 4.0 and 4.1, AITTP v1.3 works for P3D 4.0, 4.1 and 4.2 (just timeout currently for 4.2)

I have to sit down one weekend and check the ai_player.dll code for something else.. scratching head because the same code (not same offset address in all but same hex code for timeout and taxispeed)
in 4.0, 4.1 AND 4.2 should produce the desired results.

But even the hex code leading up to the actual timeout offset address and actual taxispeed address being the same ONLY timeout changes in P3D to reflect change made to ai_player.dll.

I'm starting to think after looking at the 4.2 ai_player.dll code, LM have changed how the code is written (how it is sorted or "placed" within all the code) for future use.. There are thousands of new lines of code.
Is there another "trigger" that either A) combined with the taxispeed hex code offset address and new trigger code it changes taxispeed or B) taxispeed is now using another line of code to get set speed and left old code as placeholder ( example: it does nothing now)

Or could it be they are organizing code to add new features?? We know from the past some code was written, item never implemented into FSX for example but put in for future use..

I'm not giving up, just trying to be patient (thousands lines of hex code to look at) and I'll have to look even deeper to find out where taxispeed gets it variable or variables from in 4.2

Offline flyboynk

  • Turbine 2nd Officer
  • ***
  • Posts: 109
Re: AI timeout done!:) now planes dont dissapear!
« Reply #12 on: May 15, 2018, 05:35:26 AM »
Tonight a fellow simmer, Himanshu Singh published a modified ai_player.dll for P3D v4.2 which changes timeout to 15:00 minutes and 27 kts taxispeed. It's on avsim.

After looking at what variable I could not find to modify (I knew which code to change for timeout and taxispeed but only timeout was changing, taxispeed was not)
The solution has been found by Himanshu.

I changed my own ai_player.dll for P3D v4.2. Using P3D v4.2.21.24048

 I changed the timeout setting to 7:00 minutes and taxispeed to 30 kts. Also changed the variable that apparently now activates taxispeed (you can change code but without other trigger code taxispeed change would not work, now all is good)

I am uploading my own ai_player.dll with changes to 7 minutes timeout setting and 30 kts taxispeed setting.

If anyone wants to try and test themselves, I will be updating AITTP to version 1.3 that will enable changes to P3D 4.2 later this week when I get back home.
« Last Edit: May 30, 2018, 12:44:31 AM by flyboynk »

Offline KampfHase

  • AIG Dispatch
  • Command Captain
  • *****
  • Posts: 2761
    • Jetphotos
Re: AI timeout done!:) now planes dont dissapear!
« Reply #13 on: May 15, 2018, 08:52:53 AM »
How do you fix the problem of aircraft crashing into each other because the brakes are too weak to cope with the higher taxi speed? I get a lot of stacked aircraft at the runway entry taxiways.
My AFCAD reworks in this thread: click!
Airports by me: KCLT | KMIA | EDDM | KBOS | KMSP | KATL | RJBB | LTAI | LTFJ | LSZH | KEWR | RJTT | WSSS | KPDX | KTEB | KLAS | KLGA | KSFO | KDEN | SKBO | EIDW
Next projects: RCTP

Offline p3dflyer64

  • Prop Captain
  • **
  • Posts: 93
Re: AI timeout done!:) now planes dont dissapear!
« Reply #14 on: May 15, 2018, 10:14:33 AM »
How do you fix the problem of aircraft crashing into each other because the brakes are too weak to cope with the higher taxi speed? I get a lot of stacked aircraft at the runway entry taxiways.

Use notepad++ or such to change toe brake scalar to something between 0.18 - 0.3, some AIs have really low set brake scalar like 0.1 which make them skid far before stopping