xNWP / HLAELiveLink

Allows for the control of the camera in Source Games supported by Half-Life Advanced Effects mirv_pgl function via Cinema 4D.
MIT License
6 stars 0 forks source link

LiveLink stops when Ctrl+Z pressed #6

Open FlowingSPDG opened 5 years ago

FlowingSPDG commented 5 years ago

LiveLink stops when Pressing Ctrl+Z for Undo action on C4D,and sometimes C4D crashes by it. Actually looks like UI is still working,but it can't send C4D's bugreport file and screenshot(zip)

It needs to restart C4D to fix it.

xNWP commented 5 years ago

Hi Flowing, unfortunately most of these bugs are caused by memory errors in the underlying library that HLAELiveLink uses. The only true fix would be to completely re-write a websocket library (which I have considered). But the rate at which crashes happen seem to be small (at least in my tests). If there is enough demand however I will look into re-writing the websocket backend. In the meantime if you do find any more situations that immediately cause a crash feel free to leave them as a comment on this issue, this will help me further diagnose the underlying problem.

FlowingSPDG commented 5 years ago

thanks <3 cheers! also C4D => HLAE cam sync stoppes when C4D has keyframe on camera positions. I'm not sure it's websocket related bug or not tho.

xNWP commented 5 years ago

Are there keyframes on each frame or is just a few across the timeline? And does it stop only on the keyframes or just outright stop working completely?

FlowingSPDG commented 5 years ago

I'm using that your "HLAE CamIO 2 C4D",So it has keyframes on every frames. it stoppes completely when C4D cam has keyframes.

xNWP commented 5 years ago

Hmmm interesting, I will definitely have to look into that then. Thanks for the info!