#Camera moving around in Phasing

1 messages · Page 1 of 1 (latest)

snow latch
#

Camera Moves too close during phasing with a lot of racer. Can't see anything ahead cause of the camera automatically getting close when phasing.

#

Camera just moves close on it's own during phasing

frigid burrow
#

Wish I know how to fix it shrug

frigid burrow
#

Are there people in the race that have passengers perhaps?

snow latch
frigid burrow
#

Appreciate it

snow latch
frigid burrow
#

Ah too bad. In that case I don't know what to do

carmine pier
#

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

frigid burrow
#

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

carmine pier
#

If you race in 2, this does not happend.
when there are 2+ racer it starts to bug out

frigid burrow
#

just replace the client/main.lua with this

#

probably requires that you're on latest for everything else

carmine pier
frigid burrow
#

and the cw-racingapp:client:raceCountdown event

carmine pier
#

Testing Right now with other 2 racers @frigid burrow the problem still persist with only one racer

frigid burrow
#

How can the problem exist with one racer?

carmine pier
#

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

frigid burrow
#

Ooooh

carmine pier
#

Does it make sense?

frigid burrow
#

Yeah

#

Can you run it with debug on?

#

And send me some logs

carmine pier
#

How do i do it ?

#

let me check

frigid burrow
#

config.debug in config file

carmine pier
#

while we are in race ?

frigid burrow
#

Yeah just enable it, restart the script and then start a race

carmine pier
frigid burrow
#

And for this player the collision disabling for camera only worked on one of the others?

carmine pier
#

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

frigid burrow
#

So of this list of 3 racers, who's the one the logs comes from, and who did their collision work with?

carmine pier
#

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

frigid burrow
#

and who did their collision work with?

carmine pier
#

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

carmine pier
#

you want a video ?

frigid burrow
#

No I understand what the problem is

#

very minor fix

#

i just removed the DisableCamCollisionForObject

carmine pier
#

I will test now

frigid burrow
#

one sec

#

some more changes

#

should only need to update the related ghosting functions

carmine pier
#

Tested again with 4 racers, still happends

#

I juest replaced the file and ensured the resource again

frigid burrow
#

What do the logs say now

#

I added a new debug log

carmine pier
#

if can help you more

frigid burrow
#

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

carmine pier
#

There should be another way to do it.

#

Can I dm you ?

#

I have somethign to show you

frigid burrow
#

Sure

#

If it's another issue then I don't care right now haha

snow latch
#

@carmine pier Any temporary fix for this problem?

carmine pier
snow latch
snow latch
#

@frigid burrow can you share the relevant ghosting function code to set player to ghost from Main.lua? As a temporary fix.

frigid burrow
#

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.

undone geyser
#

@snow latch

frigid burrow
#

Great temp fix. Non racers won't be able to ram racers with that tho ☝️

I got a rework coming maybe tonight or tomorrow

frigid burrow
#

@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 🙏

carmine pier
#

I will try this afternoon, so just donwload the source from the main github?

frigid burrow
#

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

frigid burrow
#

FYI: Automated races are broken in the patch.

carmine pier
frigid burrow
#

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

carmine pier
#

Ok thank you for the clarification

carmine pier
#

@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?

frigid burrow
#

Why wouldn't it de-phase if there's a pedestian?

#

Should racing players just phase through other players that walk around?

carmine pier
frigid burrow
#

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

carmine pier
carmine pier
frigid burrow
#

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.

carmine pier
#

Ok if there is a passenger collision are active

frigid burrow
#

pushed an update to fix the passenger collisions

carmine pier
#

Top it works

#

So good so far everything works as intended ❤️

#

Waiting for the official update

snow latch
#

Top Work! Thanks so much @frigid burrow ❤️

carmine pier
#

Cause I am testing now in main server and ghosting does not activate at all

frigid burrow
#

it's a bug

carmine pier
#

what happend

frigid burrow
#

It was a bug

#

had the fix chillin but forgot to push it up

#

making a release now