Vehicle Physics

by sparr

Realistic driving physics. Supports airplanes

2 years ago
1.0 - 1.1
1.86K

b not working with vehicle snap

2 months ago

yea , for some reason it stoped working with vehicle snap ... full story - > https://mods.factorio.com/mod/VehicleSnap/discussion/66f187200484eac3c7c553db

2 months ago

Just to be sure I understand... With both mods loaded, they both appear to work, but when you try to drive at a 45 degree angle then vehicle snap is off by a very small angle?

2 months ago

The problem is orientation (the angle of vehicle), if a mod changes it then snapping goes on pause. There are dozens of words "orientation" in the control.lua in this mod, i thought drifting should only involve the position but maybe i'm wrong :p But the mod can't distinct if orientation change was done by player or script.

Maybe they just are naturally incompatible mods...

Some theoretical workarounds that i can think of:
- Reducing the change to orientation to absolute minimum and then to 0 most of the time. Even 0.001 change is too much for current VS.
- If this mod writes into the VS's variable that tracks what the last ticks orientation was. It will be made to think the change is 0.
- Changing VS to track the left/right turning keys to turn off the snapping, but then it would still be snapping while drifting physics try to happen. It will be a contest of unknown outcome.

2 months ago

I'll take a look at the source for VS and see if a potential solution is apparent

2 months ago

I am not able to reproduce this problem. I have VS and VP loaded. I can drive and leave skid marks by braking on concrete. And my driving heading still snaps to all 16 directions that I would expect.

I read the VS source and it seems to pause snapping for two ticks any time the player's orientation changes from what it remembers. VP doesn't change orientation when you aren't skidding, so it shouldn't interfere with VS when you're just driving in a straight line.

Can you make a video of the problem?

a month ago
(updated a month ago)

https://www.dropbox.com/scl/fi/1it8nyfarbkgz883ka24f/snap-bug.7z?rlkey=acqysy5dc58x9yv5t2zr95k0z&dl=0

it is quite subtle but it is enough to get you off road and stop me from using some of my roads near walls , especially with that creature from py that ram everything
put my save file there too if you wanna check other mods

a month ago

looking at videos i noticed that this also isnt constant , sometimes it start right when i start driving then after while it snaps then again not or it doesnt start for few sec then go off again but once you see both videos there is noticable difference

a month ago

I do see a bit of drift in the video. That's very weird. I'm downloading 111(!) mods to test your save now...

a month ago

My current computer can't handle your mod pack. Can you try disabling some of the bigger mods to see if the problem still exists?

a month ago

try this one , disabled all Py mods still doesnt drive straight - https://www.dropbox.com/scl/fi/utgmz5ah15l9agpcfbfy7/test2.zip?rlkey=bcikxtm0pi8kntavbyahs8wiy&dl=0

a month ago

Thanks. No fuel in that one, but I used the editor to spawn some in. I was able to reproduce the problem. It seems to happen most often when driving northeast, and the car drifts slightly to the left (north). I'll dive in further when I can.

New response