Jump to content

[Show]J Bot Path Finder


Recommended Posts

Posted
15 hours ago, CodyJ(L) said:

This is a script that allows NPCs to find their own roads and paths without any predefined locations, all that is required is proper material mapped road Cols, and you're set.

Currently, it's in really early stages, thus it's prone to wrecks, but even since this video I've vastly improved it.

 

Video of it in action (Excuse the low quality, I have a crappy computer)

 

By using multiple rays it's able to guide itself around tracks at a reasonable speed unlike previous attempts by other people this one is based off material type meaning as long as grass, rock, or something else other than a road surrounds the track it can find its way without walls.

In the future, it could allow dynamic NPC races with little to no setup.

 

u56P55H.jpg

Nice one actually, i've tried it myself and yeah this method is good for racing NPC's but making them actually use the GTA Paths are something i didn't quite understand yet due the fact my knowledge about this is pretty low.But how determine which side it should go, based on distance of of the element the line hit or?

Posted (edited)

Working on a new one that's stupidly advanced, basically maps out the environment around it

Though this one's just a concept design, I'm not sure how it'll hold up around canyon walls and what not, because it triggers a control to steer the other way if it cannot find anything, meaning a huge mess.

UDJMXr3.png

tSQmbeC.png

Edited by CodyJ(L)
Posted

This is awesome, how does it fare with bots tho? Would be cool if you could make the NPCs go to locations whilst finding paths towards them.

Posted

Not near my best works, there's still so much work I'd have to do to it for it to come close.

Also, no I didn't base it off of that, to best honest I was watching @Sam@ke's older bot video and thought I'd have a go at my own

Spoiler

 

 

 

  • Like 1
  • MTA Team
Posted

This is pretty damn cool, great job so far. I'll be keeping a close eye on this.

Posted (edited)

Reason why the distance bots wreak, is due to the process line of sites not being able to properly process LOD objects due to them lacking collisions.

Edited by CodyJ(L)
Posted

Next update will include the bots being able to choose which direction they go at 3+ ways, so if they get to a 4 way or something they can choose either to go straight, left, or right. Also going to make it so it memorizes its route and sends info to other bots to ensure they don't end up colliding.

Posted

Another main thing I'll be adding is the bots will be able to learn from their mistakes, adjusting their turn degrees based on if they successfully managed said multiplier multiple times or not.

  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...