#Camera moving around in Phasing
1 messages · Page 1 of 1 (latest)
15 seconds · Clipped by Anand · Original video "325000$ RACE EVENT | The Legends Roleplay - GTA RP | Raman Chopra #TLRP" by Raman Chopra
Camera just moves close on it's own during phasing
Wish I know how to fix it 
Are there people in the race that have passengers perhaps?
yeah might be the issue. Will try and see if it happens without passengers.
Appreciate it
No it happens without passenger too.
Ah too bad. In that case I don't know what to do
This has been an Issue that I also tried to fix without success.
Disabling ped collision too, disabling camera collision etc.. nothing works to fix it.
We had to rollback to the classic Ghost mode Native...
I wish someone was able to fix it or find a way to make it work as intended
I might actually have an idea
The issue is probably the amount or racers
I can publish a version with the attempted fix here so one of you can test on the server
If you race in 2, this does not happend.
when there are 2+ racer it starts to bug out
Ping me when is ready
@carmine pier
just replace the client/main.lua with this
probably requires that you're on latest for everything else
I have a modified version of the main.lua, I can replace only from line 192 to line 287 for the ghosting function?
and the cw-racingapp:client:raceCountdown event
Testing Right now with other 2 racers @frigid burrow the problem still persist with only one racer
How can the problem exist with one racer?
I found ou that it works only with 1 single racer but with all the others it bugs out, let me explain better:
If there are 10 racers in and the ghosting is active, each racer will NOT have the bug only with ONE other racer while with all the other the camera will bug out
Ooooh
Does it make sense?
config.debug in config file
while we are in race ?
Yeah just enable it, restart the script and then start a race
And for this player the collision disabling for camera only worked on one of the others?
So basically :
the collissions are disabled between all the cars BUT the camera collision are disabled ONLY with ONE of the other racers.
This happends for everyone, and for each racer is different
So of this list of 3 racers, who's the one the logs comes from, and who did their collision work with?
Racer A works with B (no camera bug)
Racer B works with C (no camera bug)
Racer C works with A (no camera bug)
easier to explain this way
Mine logs. I'm test
and who did their collision work with?
gimme a sec
TEST and SAPU
TEST and BLDL GAMMA
TEST and XGabrio
Logs for this race
Now works with 2 racers but not with Sapu
For example Gamma Has problems with Sapu and Xgabrio but not with me.
While XGabrio has problems with me and Gamma but not with Sapu
Sorry, JK, I have problems also with 2 of them
you want a video ?
No I understand what the problem is
very minor fix
i just removed the DisableCamCollisionForObject
I will test now
one sec
some more changes
should only need to update the related ghosting functions
Tested again with 4 racers, still happends
I juest replaced the file and ensured the resource again
I have no idea why the fuck it's not working lmao
fucking fivem
I wonder if DisableCamCollisionForEntity only works on ONE entity or something stupid like that
Interesting question
There should be another way to do it.
Can I dm you ?
I have somethign to show you
@carmine pier Any temporary fix for this problem?
A temporary fix will be to use the native to set players in race as Ghosts.
Hope we get an official fix!
@frigid burrow can you share the relevant ghosting function code to set player to ghost from Main.lua? As a temporary fix.
Yeah let me just spend a couple of hours writing a temp fix for you 💀
Just hold your horses. I got a rework coming for it.
I've created a pull request which has the fix for this issue 😄
https://github.com/Coffeelot/cw-racingapp/pull/21
Resolved issues with inconsistent or erratic camera movement while in ghosting mode.
@snow latch
Great temp fix. Non racers won't be able to ram racers with that tho ☝️
I got a rework coming maybe tonight or tomorrow
@snow latch @carmine pier
Patch is in for the ghosting rework. Could ya'll try this in scale?
You'll have to grab the source code to test (ei don't download from Releases) as I'm working on some other additions that will go into the release
would be much appreciated 🙏
I will try this afternoon, so just donwload the source from the main github?
Yes. And replace everything. The update touches other things too so all files need to be replaced. The only needed config option you have to check is what's in config.ghosting tho
FYI: Automated races are broken in the patch.
I am in a testing session right now, i will let you know asap.
Also I was thinking for performance wise, since the check is on ALL the players, and the only actual needed collision needed would be those with the POLICE. maybe a check only on the players with the specified job POLICE could be a good thing?
What do you think?
Might legit make it worse. I think having to check jobs is actually slower 😅
I think, as it is right now, it will only check with loaded in players
so if you run OneSync that means only players within 2km from the client
so, for testing, it'd be nice to get info on if it works well with people spread out also
Ok thank you for the clarification
Yeah testing right now
@frigid burrow Ok so it works as intended i've set up distance to 25 and works great. The only problem is that if a player is on foot collisions gets enabled
would make it worse to check if player is in vehicle?
Why wouldn't it de-phase if there's a pedestian?
Should racing players just phase through other players that walk around?
I mean, pedestrians are really unpredictable and you do not have the reaction time to avoid collision if someone is just there walking by. While a Car is more visible and gives you more reaction time
Yeah nah. It's meant for RP servers. If you're racing and crash into a walking player that's a situation you should be facing not phasing (haha get it)
Does it handle passengers btw? Forgot to check that
checking rn
totally agree, is just a QoL for racers IMHO
I'd prefferably avoid adding more checks to this feature as it's already a possible performance hog 😅 If you think it's REALLY needed then this is gonna be a comissioned feature. You can reach out to me in a DM if you want to pay for that.
No problem
Ok if there is a passenger collision are active
pushed an update to fix the passenger collisions
Top it works
So good so far everything works as intended ❤️
Waiting for the official update
Top Work! Thanks so much @frigid burrow ❤️
does it work for you ?
Cause I am testing now in main server and ghosting does not activate at all
it's a bug
In the last 2 days i tried to see if i did something wrong still ghosting loop does not start
what happend