Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / IanM's A* Library for DBC

Author
Message
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 14th Jun 2004 02:19 Edited at: 14th Jun 2004 05:43
I just finished it, going to test it out now so I'm not sure if it will work yet.



[edit] Revised Code in codebox, I have to go and there are a few errors, will fix when i get back [/edit]

[double edit] I DID IT!!! its all fixed up, now to use it! [/edit]
MikeS
Retired Moderator
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 14th Jun 2004 05:49
Nice one Mattman. Now you just need to cook up an example with tons of obstacles everywhere.



A book? I hate book. Book is stupid.
(Formerly known as Yellow)
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 14th Jun 2004 06:23
I'm working on making an example with the "Tutorial 6 - Huge Dungeons" for DBP on this website.

Back to work,
Matt
PantheR RIP
21
Years of Service
User Offline
Joined: 7th Jul 2003
Location:
Posted: 14th Jun 2004 12:39
Nice thingie... I wonder if anyone could make nice path finder for a 3D world. Cause i think it is good to process colissions too and not only a simple pathmaking. I'm still courious about how to realize such algorythm...
aks74u
20
Years of Service
User Offline
Joined: 2nd Jun 2004
Location: arizona
Posted: 5th Jul 2004 17:42
Hey i was just wondering if you could explain this to me. Is it a program or what and how could i use it my programs?

mulletman47@aol.com
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 8th Jul 2004 12:50
It is a list of functions you can use in your program. These functions are used to find paths, even around obstacles!! The code is pretty straightforward with comments, take a look at the function names and comments, and if you dont get it talk to me or IanM

"Could you do something where you don't need a video card cause i don't have one" - Program Expert
Astar
20
Years of Service
User Offline
Joined: 8th Jul 2004
Location:
Posted: 8th Jul 2004 20:47
Why I cannot run it in dbc?

Runtime error at line 156
Program ran into a function declaration


`****************
Public Functions
`****************

Function CreateSearchMap(X#,Y#) -----------error
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 8th Jul 2004 22:27
Thats because they are FUNCTIONS! functions are user made commands, you have to call them, like

make object plain 1,200,200
rotate object x 1,90
CreateSearchMap(200,200)

It becomes a command

"Could you do something where you don't need a video card cause i don't have one" - Program Expert
Astar
20
Years of Service
User Offline
Joined: 8th Jul 2004
Location:
Posted: 9th Jul 2004 19:09
This is very helpful!
But can you give some example to show how it works. Maybe that is more direct.

For example, make a object A to find object B in a random terrain include obstacles,and calculate the path cost
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 9th Jul 2004 23:31
IanM and I are trying to work on examples, and I am using it in an FPS I'm working on, so I'll get on up ASAP

"Could you do something where you don't need a video card cause i don't have one" - Program Expert
aks74u
20
Years of Service
User Offline
Joined: 2nd Jun 2004
Location: arizona
Posted: 14th Jul 2004 07:45
wow this sounds cool i'm messing around with them trying to make them work hehe. good job

Over And Out.
Astar
20
Years of Service
User Offline
Joined: 8th Jul 2004
Location:
Posted: 14th Jul 2004 11:36 Edited at: 14th Jul 2004 11:48
Mattman,
I put the game here.
How can I use these function to make the monster find the green bulletbox using pathfinding?
Have to make some obstacle(walls?) first?

Thanks for your help!

Powersoft
21
Years of Service
User Offline
Joined: 1st Aug 2003
Location: United Kingdom
Posted: 30th Jul 2004 17:37
wheres the DBpro version?


Create or Play? You choose!
genius
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: Utah, USA
Posted: 31st Jul 2004 03:06
in codebase... search for A*

Why do they have BRAIL on Drive-Up ATM Machines?
Astar
20
Years of Service
User Offline
Joined: 8th Jul 2004
Location:
Posted: 1st Aug 2004 10:02
I still didnot get it running in my game...

Who can give some demo code in DBc to demonstrate how the A* works?
The function things are not straightforward for new comes

Other words, who can use these functions to run the A* pathfinding?

just need a executable code!

Many thanks!
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 1st Aug 2004 11:15
Very sorry, I sent you an email explaining my delay.

Good luck with your project Astar

"Could you do something where you don't need a video card cause i don't have one" - Program Expert
Cheater Cheater, Pumpkin FATTIE!!!
Astar
20
Years of Service
User Offline
Joined: 8th Jul 2004
Location:
Posted: 1st Aug 2004 23:08
Matt,
Thank you so much!

I will try to understand it first!
I am looking forward for your final version^^

Best wishes!

Login to post a reply

Server time is: 2024-11-23 20:12:47
Your offset time is: 2024-11-23 20:12:47