Raised This Month: $51 Target: $400
 12% 

Who can convert this to pawn ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 05-19-2012 , 03:24   Who can convert this to pawn ?
Reply With Quote #1

I got a code but in C#. and i want to convert it to Pawn but i don't know C#
This is A* pathfinding algorithm

Download code from C#: http://dl.dropbox.com/u/13064809/Sha...r3DUpdated.zip

Last edited by dias; 05-20-2012 at 04:43.
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 05-19-2012 , 13:13   Re: Who can convert this to pawn ?
Reply With Quote #2

A* code heavily depends on the environment you want it to work on. If you just "convert it" to Pawn you'll end up with very inefficient code due to lots of conversion between data representations. I suggest you to learn about the algorithm itself, and then implement it directly in Pawn, preferably from scratch. It's a great learning experience and it's not that hard. AMXX tries are a good solution for the problem of how to maintain the open list.

Good luck!
Seta00 is offline
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 05-19-2012 , 18:57   Re: Who can convert this to pawn ?
Reply With Quote #3

can you do it ?. I have alg but i don't understand much because they are in 2D. My friend - no one help me about this

Last edited by dias; 05-19-2012 at 18:57.
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
Boyka Abi
BANNED
Join Date: May 2012
Old 05-19-2012 , 19:09   Re: Who can convert this to pawn ?
Reply With Quote #4

Cant you just explain what the plugin does, so we can rewrite it?
Boyka Abi is offline
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 05-19-2012 , 21:44   Re: Who can convert this to pawn ?
Reply With Quote #5

That code is A* Auto Pathfinding. I am going to make a npc, can learn map and move by itself no need waypoint.
A* alg can do it

Last edited by dias; 05-19-2012 at 21:45.
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
BB.O.
Member
Join Date: Feb 2011
Old 06-24-2012 , 08:18   Re: Who can convert this to pawn ?
Reply With Quote #6

Waypoint is a data structure, you cannot use A* algorithm only,

So you need to use A* pathfinding and you need to use waypoint too..

Or you can use navigation meshes like CZBots..

But it is not a efficient way to use A* in Pawn,

Because the open/closed list, binary heap, etc..

Last edited by BB.O.; 06-24-2012 at 08:20.
BB.O. is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:44.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode