Forum Discussion

avdiamond's avatar
3 years ago

Enabling LiveAPI crashes apex on launch

Adding the +cl_liveapi_enabled 1 to game launch causes the game to get to the connecting screen, and then freeze up and crash.

It seems to connect to the websocket server I have and then crash once it gets to the end of the loading.

It also happens when no LiveAPI server is provided but not when LiveAPI is disabled.

Is there something I should be sending back to the game or is it crashing for some unknown reason.

The internal documentation that comes with LiveAPI in the game files isnt really helping me either so if theres any other docs I could use I would appreciate them being forwarded.

Some random information that may help:
System: Windows 10, 32GB of RAM

My api is getting a single init payload before the game crashes

Audio on the video is muted since I have music on

https://youtu.be/GtEy2ObNy3k

16 Replies

  • XHelperZ's avatar
    XHelperZ
    Hero+
    3 years ago

    Note that not all servers support LiveAPI, if at all, I'm unsure if private matches themselves will have this enabled for us to use.

  • @XHelperZ would be weird to put it in the patch notes if they were not meant for everyone to use? even private lobbies are available for public now, but at least I cannot get any events from them either.
    old json writing livedata could be enabled by anyone as well, right?
  • XHelperZ's avatar
    XHelperZ
    Hero+
    3 years ago

    @SourOldGeezer 

    Could be, though I'm not so well versed with this system.

    IIRC, the people at Apex Legends Status know a bit more about this API since they were using the 1.0 version before this 2.0 revision got released.

    Might be something to ask them there, though I'm not sure. 

  • @XHelperZ I've been using the 1.0 as well from the json file, but this websockets thing is new for 2.0 as well as the protocol buffers you can optionally use.
    I can receive Init event on my websocket server and unpack the Init message just fine, but I just don't seem to get any other Events anymore. Ping/Pong seems to work so the session is kept alive fine as well...
    I suppose since this thread was about the crash and that seems to have been fixed I should probably create another thread for the Events not being received issue...
  • This is interesting, because prior to the patch I had this problem. Would get a websocket connection at startup screen and init message, and then game freeze and crash. After the patch it seems to work fine for me. Using the default config file.