Jump to content
SSForum.net is back!

Recommended Posts

Posted

Anyone good with AI stuff?

ive been writing a fake player platform with an AI interface, but im not that great with it

 

for instance, i used A* pathfinding, but its horrible in open spaces, and i have no idea how to factor in the ship size

ive made them bounce off walls, but still cant factor in ship size

 

heres a picture of it failing in open space, starting at highest green mark and ending at lowest green mark:

screenshot94.png

SSC Distension Owner
SSCU Trench Wars Developer


3:JabJabJab> sometimes i feel like when im in this mood im like a productive form of Cheese
Dr Brain> Pretty much everything you said was wrong. Except where you called me a lazy jerk with no time. That was true.
3:KrynetiX> do you ever open your web browser and type ?go google
5:Ceiu> Wow. My colon decided that was a good time to evacuate itself.

Posted

i sort of already am using them

each cell has a cost to traverse dependent on the distance from the objective

 

my problem is that the detection propagates out radially from the bot

id like some sort of raycasting whatever somehow

SSC Distension Owner
SSCU Trench Wars Developer


3:JabJabJab> sometimes i feel like when im in this mood im like a productive form of Cheese
Dr Brain> Pretty much everything you said was wrong. Except where you called me a lazy jerk with no time. That was true.
3:KrynetiX> do you ever open your web browser and type ?go google
5:Ceiu> Wow. My colon decided that was a good time to evacuate itself.

Posted

so it currently searches outward in the order which they appear

but what if i made it search outward in terms of cost as well?

gonna try it

 

 

heres a better screenshot of the current system

screenshot95.png

SSC Distension Owner
SSCU Trench Wars Developer


3:JabJabJab> sometimes i feel like when im in this mood im like a productive form of Cheese
Dr Brain> Pretty much everything you said was wrong. Except where you called me a lazy jerk with no time. That was true.
3:KrynetiX> do you ever open your web browser and type ?go google
5:Ceiu> Wow. My colon decided that was a good time to evacuate itself.

Posted

Cheese, as you know I am not much of a programmer, but I was just thinking...

 

Is there a way you could use regions?

 

What I mean is, around a section of tiles, create regions.. For example, create a horizontal wall region, a vertical wall region, and a corner wall region. And perhaps get more involved with stating the shortest path around object or wall, depending on what region they were in compared to where the target player is.

Posted

that would be trivially easy to do

 

 

 

anyways, i figured out that i was calculating travel penalties incorrectly

i think i fixed it, and heres a picture as proof

screenshot96.png

SSC Distension Owner
SSCU Trench Wars Developer


3:JabJabJab> sometimes i feel like when im in this mood im like a productive form of Cheese
Dr Brain> Pretty much everything you said was wrong. Except where you called me a lazy jerk with no time. That was true.
3:KrynetiX> do you ever open your web browser and type ?go google
5:Ceiu> Wow. My colon decided that was a good time to evacuate itself.

  • 2 months later...
Posted (edited)
A* works for path finding however i'm very curious how you instruct the bot to follow your path factoring in the ships inertia... Potential wells work but aren't path finding. I've tried to find a solution to this problem a couple years ago and the math was too difficult. Edited by Marioman
a.k.a Weasal (dsb)

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
×
×
  • Create New...