Main Menu

Merge multiple BGLs into a single one.

Started by RayP, May 13, 2019, 11:39:28 AM

Previous topic - Next topic

RayP

AIG is a brilliant addition to P3D. I have now dumped UT Live which I only bought six months ago.

Back when I had FSX I used MyTraffic Pro. The problem was aircraft would be spawned at gates hours before they were due to depart and this had the result of blocking lots of gates so I had nowhere to park after landing.

To get around that problem I installed a freeware program called RemoveAiSleepers. This has a simple interface where the user enters a distance for Ai to be removed and a time limit beyond which Ai aircraft would be removed. So if you enter 75mins and aircraft with a departure time greater than that would be removed. That had two benefits. 1) More gates and 2) fps increased as there were fewer Ai.

Now to my suggestion.The problem with that program with AIG is it takes a very long time to read through all the BGLs. If those could be merged into a single one that would mean RAiT would run far more effectively.

And chance that BGLs could be merged please? Would that help loading times too? I have noticed P3D does take quite a while to load now.
Cheers,
Ray (Cheshire, England)

johanfrc

I won't change the loading time for FS. It will still be the same time, because it has to read through a lot of data in one file compared to the same amount of data, but in many files.

So no benefit regarding loading time.

No idea about the program you are talking about. I have never heard about it, so I can't say if it will be better for that program or not.
Regards

Johan Clausen

Kaiii3


RayP

Quote from: Kaiii3 on May 13, 2019, 12:22:14 PM
BGL merge is already added in 0.9

Excellent, thanks. Could you describe the actions to merge them?
Cheers,
Ray (Cheshire, England)

RayP

Quote from: johanfrc on May 13, 2019, 11:53:10 AM
I won't change the loading time for FS. It will still be the same time, because it has to read through a lot of data in one file compared to the same amount of data, but in many files.

So no benefit regarding loading time.

No idea about the program you are talking about. I have never heard about it, so I can't say if it will be better for that program or not.

The author is Lorby. One of his freeware programs. You may be using one of his others - Addon Organiser. Even if loading times aren't reduced RAiT will run more efficiently. Why have aircraft sitting at gates for hours?
Cheers,
Ray (Cheshire, England)

RayP

Having looked at the various options in AIG v0.9.0.3 I am not sure what to choose to merge the many BGLs into a single one.

Can someone help please?
Cheers,
Ray (Cheshire, England)

Kaiii3

Menu -> Flightplan -> Merge

But I just checked the code and found a line that can cause some problems. If you want to use it in the current Version (.3) please make a backup of the BGLs before merging them. The next Version .4 will be a safer to use.

Dave YVRATC

 Of course, it's all up to you Ray what you want to do with your sim, but there's are a couple things to know. Merging bgl's won't decrease load times in any way, the increase in load time is from the sheer number of AI aircraft that you now have. Second, the reason why you had so many dormant aircraft in MyTraffic was only because of the very poor flightplans which weren't optimized in any way. The AIG schedules will not do this, the aircraft will only sit at the gates for as long as they would in the real world.
If you wanted to use a program to remove traffic to help boost frames etc, there was a good one available that you would set your departure and arrival airports as well as your desired target frame rate and it would then remove AI from airports other than from where you are operating in and out of. The problem is I just don't remember the name of it, but I'm sure someone here would know it.

RayP

@Kaiii3, thanks, I'll wait for an update when you're more confident in the code.

Dave, it's just something I want to try and compare with what I have now. I'm testing koala's Ai Companion and can see aircraft listed at SFO that don't depart for a few hours. RemoveAiSleepers would get rid of those freeing up some gates.

I'm not worried about performance. I have a i7-8086K at 4.7Ghz, 32Mb RAM, 1080Ti running at 4K and even with a couple of hundred Ai fps is in the 30s at most complex airports.

But RAiS doesn't seem to work very well with multiple BGLs which is why I wanted to merge them.
Cheers,
Ray (Cheshire, England)

Dave YVRATC

#9
 I just tried it out and RemoveAiSleepers worked fine on my end with approx 1100 traffic files stored in multiple folders. My other point here is that you are looking to remove aircraft that are supposed to be there. It's not like MyTraffic or UTL where you have a highly unrealistic number of aircraft sitting dormant. The traffic that would actually get tossed by this program would be the freighters, GA and military, the ones that are supposed to sit for longer periods which are imo some of best parts about having a good AI setup.

RayP

Okay, understood. I found it quite slow to remove them. Strange. I'll reconsider if I will do it, thanks.
Cheers,
Ray (Cheshire, England)

RayP

Quote from: Kaiii3 on May 14, 2019, 02:22:10 PM
Menu -> Flightplan -> Merge

But I just checked the code and found a line that can cause some problems. If you want to use it in the current Version (.3) please make a backup of the BGLs before merging them. The next Version .4 will be a safer to use.

Kaiii3, I just tried that out of curiosity and it presented me with another window with another Merge button. I pressed it and within a couple of seconds that window closed and AIG disappeared off the screen. Checking Event Viewer it crashed citing KERNELBASE.dll. So I shall leave well alone until a later version.
Cheers,
Ray (Cheshire, England)

Kaiii3

Yes would be better. Can you post the Windows Log

Dimon

What is the point of merging traffic files after all? I still remember this function was available in FS2004 when Thomas Molitor released his brilliant AITM, but I have never understand its practical purpose.
FS AI Enthusiast since 2002

I7-9900k@5.0 Stable OC,  RTX2080Ti, 32GB RAM W10Pro
P3D V5.2HF1

Kaiii3

Quote from: Dimon on May 15, 2019, 01:54:37 PM
What is the point of merging traffic files after all? I still remember this function was available in FS2004 when Thomas Molitor released his brilliant AITM, but I have never understand its practical purpose.

I am using it to merge the FPs containing only a single BJJ to a big BBJ pack in my sim, to reduce the filesize