Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (ozgur, TipmyPip), 722 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
A7 support for pathfinding by Hendrik Felix Pohl? #415497
01/19/13 16:08
01/19/13 16:08
Joined: Jan 2013
Posts: 30
R
Romin Offline OP
Newbie
Romin  Offline OP
Newbie
R

Joined: Jan 2013
Posts: 30
Hi,

I downloaded the pathfinding by Hendrik Felix Pohl which is in goodies8 zip file from the 3dgs download site. But found it was not compatible with a7 because it included lots of stuff from a8 like str_printf and sys_marker etc.

Can someone help me to make it work with a7 please?

Thanks in advance.

Re: A7 support for pathfinding by Hendrik Felix Pohl? [Re: Romin] #415499
01/19/13 16:19
01/19/13 16:19
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Oops, sys_marker is not supposed to be there, you can delete that line.
However, all instructions are A7 instructions including str_printf and sys_marker. Do you mean to use the script with C-Script instead?


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: A7 support for pathfinding by Hendrik Felix Pohl? [Re: Superku] #415557
01/20/13 13:19
01/20/13 13:19
Joined: Jan 2013
Posts: 30
R
Romin Offline OP
Newbie
Romin  Offline OP
Newbie
R

Joined: Jan 2013
Posts: 30
I am using A7 and it doesn't seems to support str_printf and sys_markers.
Here is the error...


What is workaround please?

Re: A7 support for pathfinding by Hendrik Felix Pohl? [Re: Romin] #415577
01/20/13 16:32
01/20/13 16:32
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Update your A7 version:
http://www.3dgamestudio.com/download.php
(at the bottom of the page)


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: A7 support for pathfinding by Hendrik Felix Pohl? [Re: Superku] #415664
01/22/13 02:26
01/22/13 02:26
Joined: Jan 2013
Posts: 30
R
Romin Offline OP
Newbie
Romin  Offline OP
Newbie
R

Joined: Jan 2013
Posts: 30
Ok i updated my A7 and it works now. But i have a problem and need your help please.

I modified the level and put a warlock model in the corner of the level. so to make the main warlock model to reach it.

here is the modified code...(I made it as simple as possible to understand how your pathfinding works)
Code:
///////////////////////////////
#include <acknex.h>
#include <default.c>
#include "pathfinding.c"
///////////////////////////////

ENTITY* getme;
VECTOR mouse_target,temp,temp2;

void main()
{
	fps_max = 60;
	video_mode = 9;
	ent_path_init();
	level_load("test.WMB");
}

action dummy()
{
	getme=my;
}

action path_test2()
{
	while(1)
	{
		ent_path_get_target(my,getme.x,temp);
		
		if(vec_dist(temp,my.x) > 16)
		{
			//turn to temp;
			//move to temp;
			
			vec_diff(temp2,temp,my.x);
			vec_to_angle(temp,temp2);
			my.pan += ang(temp.x-my.pan)*0.5*time_step;
			result = c_move(me,vector(maxv(10-0.1*abs(ang(temp.x-my.pan)),0)*time_step,0,0),nullvector,IGNORE_PASSABLE | GLIDE);
			my.skill1 += result;
			my.skill1 %= 100;
			ent_animate(me,"run",my.skill1,ANM_CYCLE);
			
		}
		wait(1);
	}
}



It doesn't work. can you correct the code and post it here please?

Re: A7 support for pathfinding by Hendrik Felix Pohl? [Re: Romin] #415665
01/22/13 02:31
01/22/13 02:31
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Quote:
It doesn't work.

Explain.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: A7 support for pathfinding by Hendrik Felix Pohl? [Re: Superku] #415667
01/22/13 03:00
01/22/13 03:00
Joined: Jan 2013
Posts: 30
R
Romin Offline OP
Newbie
Romin  Offline OP
Newbie
R

Joined: Jan 2013
Posts: 30
It says... Crash in path_test2

Can you test this code, make it work and repost it here please.
Thanks in advance.

Re: A7 support for pathfinding by Hendrik Felix Pohl? [Re: Romin] #415671
01/22/13 05:19
01/22/13 05:19
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
Make sure that your pointers are valid first!
Superkus code has been throughly tested and used by others and thus far it did work for all of them. Your code on the other hand is prone to pointer errors due to race conditions wink


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: A7 support for pathfinding by Hendrik Felix Pohl? [Re: WretchedSid] #415673
01/22/13 05:27
01/22/13 05:27
Joined: Jul 2008
Posts: 2,107
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,107
Germany
The code is working like a clockwork ! fact.


Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;
Re: A7 support for pathfinding by Hendrik Felix Pohl? [Re: rayp] #415697
01/22/13 15:45
01/22/13 15:45
Joined: Jan 2013
Posts: 30
R
Romin Offline OP
Newbie
Romin  Offline OP
Newbie
R

Joined: Jan 2013
Posts: 30
It is not working for me. Can someone fix it and post it here please?
I need it urgently.

Page 1 of 2 1 2

Moderated by  aztec, Blink, HeelX 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1