friesofdoom / FriesBSCam

Beat saber camera for Liv made by fries
17 stars 0 forks source link

Menu camera to regular camera transition doesn't trigger until pausing the game #18

Open TheBlackParrot opened 3 years ago

TheBlackParrot commented 3 years ago

Hi there! I really like the plugin so far, but I'm having an odd issue where the menu camera sticks around until I pause the game. I have one MenuCamera and one Camera. HTTPStatus is working fine as my overlay also uses that mod and appears/disappears as expected. https://www.twitch.tv/videos/1078332242/?t=1h31m10s

sepffuzzball commented 3 years ago

Hmmm, I feel like we did have a bug where if there was only one or two cameras that it wouldn't act as expected. I thought we fixed it but I wonder if we (probably me) broke it again.

If you add multiple cameras does it switch as expected? If you need some additional camera angles to add, here's what I'm using currently:

https://pastebin.com/D7Jke7Zp

TheBlackParrot commented 3 years ago

I duplicated my in-game camera with no luck, but it worked after adding the min/maxTime variables to both copies.

GlobalBias='10.0'
MenuCamera={
    Name='MenuCamera'
    Type='LookAt'
    PositionBinding='playerWaist'
    PositionOffset={x='-0.8', y='0.5', z='1.7'} 
    LookAt={x='1.0', y='-0.25', z='-2.0'} 
    TransitionTime='2.0'
}
Camera={
    Name='Game'
    Type='LookAt'
    PositionBinding='playerWaist'
    PositionOffset={x='2.0', y='0.4', z='-3.0'} 
    LookAt={x='-2.0', y='0.0', z='5.0'} 
    TransitionTime='2.0'
    MinTime='8.0'
    MaxTime='16.0' 
}
Camera={
    Name='Game2'
    Type='LookAt'
    PositionBinding='playerWaist'
    PositionOffset={x='2.0', y='0.4', z='-3.0'} 
    LookAt={x='-2.0', y='0.0', z='5.0'} 
    TransitionTime='2.0'
    MinTime='8.0'
    MaxTime='16.0' 
}
friesofdoom commented 2 years ago

I think you only need one camera now, I could be wrong, It probably died because of the missing min/max time. There could probably be some better error checking around that code. Thanks for reporting the issue!