BVE WorldWide
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Even though the AI train hasn't stop completely, the AI train is open the doors.

Go down

Even though the AI train hasn't stop completely, the AI train is open the doors. Empty Even though the AI train hasn't stop completely, the AI train is open the doors.

Post by Midnight Express Ginga81 Thu Nov 19, 2020 3:04 pm

When we are driving by A.I., the AI train is not stop completely, but AI train is opens the doors.
Please tell me how to the AI train after stops to the station completely, to open the doors.

This Question is by Crosshatch.

http://crosshatch.blog54.fc2.com/
http://http://crosshatch.blog54.fc2.com/http://crosshatch.blog54.fc2.com/http://crosshatch.blog54.fc2.com/http://crosshatch.blTranslate by Midnight Express Ginga81.
Thanks.

Midnight Express Ginga81

Posts : 66
Join date : 2016-09-25

Back to top Go down

Even though the AI train hasn't stop completely, the AI train is open the doors. Empty Re: Even though the AI train hasn't stop completely, the AI train is open the doors.

Post by LXQt Fri Nov 20, 2020 1:44 am

For me it opens the door right after the train has stopped, but never tried opening the door before it's fully stopped. Could this be affected by the deceleration/brakeControlSpeed? (or delay)

LXQt

Posts : 106
Join date : 2019-02-18
Age : 16
Location : Hong Kong

https://kennyhui.pp.ua

Midnight Express Ginga81 likes this post

Back to top Go down

Even though the AI train hasn't stop completely, the AI train is open the doors. Empty Re: Even though the AI train hasn't stop completely, the AI train is open the doors.

Post by Gothpaladinus Sat Nov 21, 2020 4:03 am

As far as I've noticed, AI opens doors at reaching <=0.5 km/h, but not 0.0 km/h. Well it could be really more realistic if this rate got reduced at least to <=0.1 km/h.
Gothpaladinus
Gothpaladinus

Posts : 25
Join date : 2012-05-10
Age : 27
Location : Ăšjpest, Budapest, Hungary

https://gothpaladinus.wixsite.com/gothpaladinusbve

Midnight Express Ginga81 likes this post

Back to top Go down

Even though the AI train hasn't stop completely, the AI train is open the doors. Empty Re: Even though the AI train hasn't stop completely, the AI train is open the doors.

Post by Midnight Express Ginga81 Sun Nov 22, 2020 9:15 am

Mr.CrossHatch says:

My understanding, the answer is it opens at less than 0.5 km/h, but the answer is that it will be more realistic if it is less than 0.1 km / h, but how should I adjust it?
I don't understand the specific method.
Please tell me.

Midnight Express Ginga81

Posts : 66
Join date : 2016-09-25

Back to top Go down

Even though the AI train hasn't stop completely, the AI train is open the doors. Empty Re: Even though the AI train hasn't stop completely, the AI train is open the doors.

Post by LXQt Sun Nov 22, 2020 12:39 pm

Midnight Express Ginga81 wrote:[size=40]Mr.CrossHatch says:[/size]
[size=40]
My understanding, the answer is it opens at less than 0.5 km/h, but the answer is that it will be more realistic if it is less than 0.1 km / h, but how should I adjust it?
I don't understand the specific method.
Please tell me.[/size]
Nah what I think he meant is it would be better if it is adjusted to less than 0.1km/h (By the OpenBVE developer, I don't think it's configurable)

LXQt

Posts : 106
Join date : 2019-02-18
Age : 16
Location : Hong Kong

https://kennyhui.pp.ua

Gothpaladinus and Midnight Express Ginga81 like this post

Back to top Go down

Even though the AI train hasn't stop completely, the AI train is open the doors. Empty Re: Even though the AI train hasn't stop completely, the AI train is open the doors.

Post by Midnight Express Ginga81 Sun Nov 22, 2020 4:32 pm

This is my opinion, a AI driving train cannot adjust that the open door's speed from 0.5km/h to 0.1km/h or under by a user manually, isn't it?
So, I think that if we want to change the AI driving train's door open speed, the OpenBVE program have to add to the something of the parameter.
So, I think that to change this, we have to wish change to Mr.leeser3.

Midnight Express Ginga81

Posts : 66
Join date : 2016-09-25

LXQt likes this post

Back to top Go down

Even though the AI train hasn't stop completely, the AI train is open the doors. Empty Re: Even though the AI train hasn't stop completely, the AI train is open the doors.

Post by leezer3 Sun Nov 22, 2020 5:18 pm

Being exact, the doors seem to trigger when the speed is under 0.25km/h:
https://github.com/leezer3/OpenBVE/blob/master/source/OpenBVE/Game/AI/AI.SimpleHuman.cs#L188

The AI has already triggered the EB to hold the train (couple of lines up)
What would be interesting is to find out why this figure was chosen in the first place.

There are a bunch of hardcoded figures like this in the code, and changing them can play havoc with the physics and simulation systems.
I'm *guessing* here, but I suspect that the boarding sway related physics interactions may move the train a little when they trigger, hence not opening the doors at absolute zero.

leezer3

Posts : 1785
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Gothpaladinus and Midnight Express Ginga81 like this post

Back to top Go down

Even though the AI train hasn't stop completely, the AI train is open the doors. Empty Re: Even though the AI train hasn't stop completely, the AI train is open the doors.

Post by leezer3 Sun Nov 22, 2020 10:07 pm

This build has a small, slightly related improvement, but doesn't change the figure in question:
https://vps.bvecornwall.co.uk/OpenBVE/Builds/OpenBVE-2020-11-22.zip

The AI driver now has a slight random delay from 0s - 5s before it attempts to open the doors on a train fitted with manual doors.

From a little mucking around, the 0.25km/h figure seems to be needed in some cases for stations on steep hills.
If the tran brakes take a little while to take affect, with this set to zero, the train can get in a perpetual rolling back loop.

leezer3

Posts : 1785
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Gothpaladinus and Midnight Express Ginga81 like this post

Back to top Go down

Even though the AI train hasn't stop completely, the AI train is open the doors. Empty Re: Even though the AI train hasn't stop completely, the AI train is open the doors.

Post by Midnight Express Ginga81 Mon Nov 23, 2020 4:20 am

Thank you very much to change.
I introduce to him this post and wait to his answer.

Midnight Express Ginga81

Posts : 66
Join date : 2016-09-25

Back to top Go down

Even though the AI train hasn't stop completely, the AI train is open the doors. Empty Re: Even though the AI train hasn't stop completely, the AI train is open the doors.

Post by Midnight Express Ginga81 Mon Nov 23, 2020 1:18 pm

Mr.CrossHatch said:
Thank you very much.
When I checked my original created route and train, the door started to open after the vehicle was almost stopped.
Players on my original route are often use AI driving because of the narrow stop adjust range when watching the another player's video, but I felt a bit strange of opening the door opened before stopping.
In this build, the door opens after stopping properly, so it behaves like a reality and I am very satisfied.

So, I think that this problem is solved.
Thank you very much too.

Midnight Express Ginga81

Posts : 66
Join date : 2016-09-25

fcancalon and Gothpaladinus like this post

Back to top Go down

Even though the AI train hasn't stop completely, the AI train is open the doors. Empty Re: Even though the AI train hasn't stop completely, the AI train is open the doors.

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum