Menu

#2319 enable-hot only works on scenery load

2020.2
NeedInfo
nobody
Low
2024-01-09
2020-07-28
merspieler
No

The enable-hot animation works, when loaded as scenery.
When the very same model is loaded via the aircraft model xml or via nasal put_model(), enable-hot has no effect.

To test and replicate:
* Modify $FGDATA/Aircraft/ufo/ufo-set.xml to add the include:

<PropertyList include="Aircraft/Generic/Human/Include/walker-include.xml">
  • Download the attached example model
  • Place the model somewhere
  • Toggle walker outside and try to walk up the stairs (fails to walk up)
  • Dump the scenery changes and add it to the .stg file, it belongs to
  • Start flightgear again, toggle walker and walk the stairs again. (succeed walking up)
5 Attachments

Discussion

  • James Turner

    James Turner - 2020-07-29

    When I place the starts via the UFO, they appear mostly buried in the ground, is the origin wrong in the model? Also, adding the include the UFO didn't seem to enable the walker for it, some extra step needed? I don't every use the walker so no sure how to 'toggle it', isn't there supposed to be a menu?

     
  • James Turner

    James Turner - 2020-07-29
    • status: New --> NeedInfo
     
  • merspieler

    merspieler - 2020-07-29

    The include should add the walker menu to the menu bar.
    On the right hand side.
    It has an item called "Toggle Walker outside"

    I know, that the stairs are sunk into the ground. I just used that model for my tests are it was the one, I've initially played with.

     
  • James Turner

    James Turner - 2020-08-04

    With the UFO, when I do 'toggle walker outside', various weird things happen:
    - the syke flashes black
    - the ground scenery disappears
    - I (the walker) drop through the ground to the center of the earth

    I am guessing this is a bigger problem than the one you are reporting here?

     
  • James Turner

    James Turner - 2020-08-04

    The C172 walker seems to work okay (doesn't fall through the earth, or flash the sky black).

     
  • merspieler

    merspieler - 2020-08-05

    The black-flashing sky reminds me of the issue, when you change to walker view without the walker being outside. In this case, there's also some white shape in the middle of the screen and no terrain visible (if I'm not mis).

    I've managed to drop "through" the ground... just cause it hasn't loaded yet in walker view.
    A second later I stood again on the apron.

     
  • merspieler

    merspieler - 2020-08-05

    Since the walker works in the C172, do the following.
    Add the stairs to the scenery as usual.
    Then start with the C172.
    In the nasal console run the following code (adjust the path to where your stairs.xml is)
    to place the stairs about 20m ahead (I know it's sunk into the ground...).

    pos = geo.aircraft_position();
    pos.apply_course_distance(geo.normdeg(getprop("/orientation/heading-deg")), 20);
    geo.put_model("Aircraft/A320-family/Models/Services/Stairs/stairs.xml", pos);
    

    Take the walker, the scenery object is riddgid, the one placed by the code can be walked through.

     
  • James Turner

    James Turner - 2020-08-05

    Does it have to be stairs.xml? What happens if you use any other model? Like one of the generic buildings, but placed via the UFO?

     
  • merspieler

    merspieler - 2020-08-05

    sure, use what ever model you want... just make sure, that the xml has the enable-hot...

     
  • xDraconian

    xDraconian - 2020-08-06
    • labels: --> Enable-hot, Walker
     
  • merspieler

    merspieler - 2020-08-07

    video showing the issue

     
  • merspieler

    merspieler - 2022-01-04

    Status is still on NeedInfo... What info do you need?

     
  • Benedikt Hallinger

    This is also observeable with the ladders of the c182s.
    We once were able to walk them up using the walker, but since version >= 2017.3.1 that feature went away and the walker just moves trough the ladder.

    Sounds like a similar (the same?) problem to me.

    The enable-hot animation works, when loaded as scenery.
    When the very same model is loaded via the aircraft model xml or via nasal put_model(), enable-hot has no effect.

    So probably something around this enable-hot handling changed around that time.

     

Log in to post a comment.