Vehicle -_- RTS Control


Autodrive vehicles via remote handset: tight group movement, escort mode, patrols, and map queues. Similar to and compatible with AAI Programmable Vehicles and Spidertron Patrols, but with far more intuitive, hassle-free controls.

Utilities
14 hours ago
2.0 - 2.1
567
Transportation Combat

b ✓ Vehicle Separation Not Working

5 days ago

Smooth vehicle separation does not appear to work whatsoever. Using the AAI Chaingunners, they are constantly running into and breaking each other. Additionally, vehicles frequently run right into buildings, especially power poles.

5 days ago

Caravan formation is also inconsistent regardless of distance. Sometimes it works, sometimes it doesn't.

4 days ago

Thanks for the bug report

Smooth vehicle separation actually works as intended - it is designed to help vehicles unstuck and separate once their hitboxes collide. Vehicles bumping into each other is still expected behavior for now, even though it is unpleasant. I am already working on preventing this altogether, though it will take a lot of time.

Regarding power poles - yes, I have started noticing this too. It is a bug, and I will fix it in the near future.

4 days ago

Caravan formation is also inconsistent regardless of distance. Sometimes it works, sometimes it doesn't.

Could you please clarify what you mean?

4 days ago

If that's "working as intended" then I would remove that feature from the front page entirely.

"Vehicles keep their distance, avoid clumping into a mess, and smoothly navigate past each other without twitching, jittering, or abrupt teleports."

Literally none of these things are true. Vehicles do not keep there distance, do not avoid clumping, do not smoothly navigate past each other, and they even basically "teleport" as seen in the video.

Even what you're describing here doesn't happen, they get stuck in each other until one of them breaks. See this video:

https://www.youtube.com/watch?v=Apc7gZ8xNk4

Caravan formation is also inconsistent regardless of distance. Sometimes it works, sometimes it doesn't.

Could you please clarify what you mean?

Sorry, I meant to say the long-range convoys. They only work some of the time even at long distances.

4 days ago

Your point about the description is fair. In my defense, the part about avoiding clumping and smoothly navigating past each other without jittering is true for the most part (the mod has a lot of path recalculation and avoidance mechanics under the hood), even if it is not 100% reliable yet. I will adjust the description if it feels misleading. I am also already working on smarter mechanics like slot swapping and slowing down near other vehicles, though it is quite challenging when trying to maintain high driving speeds and good performance at the same time.

As for vehicles "basically teleporting" - without those small sideways nudges, vehicles lock into each other in a death grip, so I allow minor separation pushes just so they can break free. Honestly, if you saw how this worked in the original Autodrive mod, my version would feel like a godsend in comparison.

I watched the video, and yes, that is how it currently behaves. Truthfully, I expected players to use repair robots to compensate for that collision damage for now. Again, this is something I will fix soon too.

Regarding convoys - it looks like a bug in the path distance calculation. Thank you for bringing it to my attention! Have fun playing and thanks again for the report - I am always open to criticism.

4 days ago

Understood, I don't mind bugs affecting the reliability, its a mod and a new one at that. Apologies if I come off as standoffish, my issue was more with the claimed avoidance feature being pretty blatantly untrue, as it was one of the two main reasons I installed the mod. Looking at the code, it was never designed to work as the feature had originally described (the function called to separate vehicles was even literally called "teleport()").

So I decided to go ahead and add my own implementation with proper avoidance. I couldn't find a repo to make a PR to, so I posted it as a separate mod, feel free to integrate it into this version if you'd like!

https://mods.factorio.com/mod/vehicle-_-rts-control-separation-fixed

https://github.com/KSamsoe/vehicle-_-rts-control-separation-fixed

There is a relatively minor performance cost, around 40% more per vehicle. However, this cost scales linearly instead of quadratically, so it shouldn't be noticeable until you're moving multiple dozens of vehicles together at once, which was practically impossible in the original anyways. I believe the extra performance cost is more than worth it.

And thanks for taking a look at the convoys! It's not a big deal for me, but it was something I noticed.

4 days ago

This looks interesting, I'll look into it in the next few days.

4 days ago

Actually, I am leaning toward leaving the paths themselves untouched, turning waypoints into a sort of traffic lights instead, and implementing braking or slowing down in the vehicle navigator ahead of waypoints that another vehicle has just passed through or is still near - it will work similarly to cruise control.

4 days ago

Whatever suits you, I'll be using my own version.

4 days ago

As for GitHub - I'm a bit too lazy to set up a separate repository for this project right now, since I am developing it very actively and it would be hard to keep everything synced with a remote repo. Locally, I have 6 separate Git branches for this project. Maybe in the future, once development is mostly finished, I'll create a remote repository on GitHub =)

4 days ago

Sounds good, if you ever make a public repo (and I see your comment) I'll link it in mine if it's still relevant.

4 days ago
(updated 4 days ago)

https://mods.factorio.com/mod/vehicle-_-rts-control-separation-fixed

It works wonderfully! Even though it wasn't clear from the screenshots, I didn't notice any difference in performance at all, so this is really great work. I will take your changes and publish them. Thank you for this!

4 days ago

Your idea of predicting path intersections seems better than the "traffic light" system I was thinking about.

4 days ago

You're welcome! Once it's in this version and working, I'll mark mine as deprecated and integrated into the original.

4 days ago

👍

4 days ago

I think I also found the source of the convoy bug while I was looking, if you haven't already. When getting the average position for the vehicles, the Y values were added but never divided, so whether or not a convoy would form depended entirely on how many vehicles there are and where they're located in the world, not just the distance to the destination.

3 days ago

Thanks, I'll fix this in the upcoming versions. Right now I'm a bit busy merging your changes in. Seeing your enthusiasm, I'm thinking about setting up a GitHub repo =)

3 days ago

I have already integrated your changes. I also set up a dedicated GitHub repository for this project, and you can already check out version 2.1.64 there: https://github.com/P1umbata/factorio-vehicle-_-rts-control

I will release the update here on the Mod Portal after thorough testing. Feel free to open any future PRs against the develop branch.

3 days ago

2.1.64 released

2 days ago

Nice! I've marked mine as deprecated.

2 days ago

thanks

New response