weixin_39534002 2020-11-22 01:22
浏览 0

Virtual spectator doesn't initialise

So I definitely tested this during the overhaul development (I remember testing JIP specifically), but it seems to no longer work.

Description: Playing as the virtual ace spectator unit (ace_spectator_virtual) should load the player into ace spectator upon joining the game. Placing one down in eden and previewing the mission (on latest master with development CBA), this doesn't occur.

I hate coding finicky things like this around mission init, but in theory the code should wait until the player exists then execute the setSpectator function if they are a virtual spectator unit. In hindsight, I don't remember why I used CBA's extended initPost event handler to do this.

The setSpectator function waits until the main display exists before creating the spectator UI.

I've had no luck tracking down why this isn't working, so have set this issue to help-wanted if anyone else would like to investigate 👍

该提问来源于开源项目:acemod/ACE3

  • 写回答

7条回答 默认 最新

  • weixin_39534002 2020-11-22 01:22
    关注

    To be more succinct:

    The real issue here is that the public setSpectator function doesn't work when used too early. The delay until MAIN_DISPLAY exists in that function was intended to handle such a use case, but doesn't work.

    评论

报告相同问题?