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.

Dark Physics & Dark A.I. & Dark Dynamix / [AI] Set Entity Attack Distance Not Really Working

Author
Message
Hunter H111
16
Years of Service
User Offline
Joined: 29th Jun 2007
Location: United States
Posted: 13th Jul 2010 02:01
So here's the issue: I'm making a game and I'm using Ai Set Entity Attack Distance. Everything is working fine with it until The player dies and the game restarts. Then, Ai Set Entity Attack Distance isn't working and the enemies try to walk on top of the player. I cant seem to figure out what the problem is. I'm using Ai Reset. Help would be appreciated.
Hunter H111
16
Years of Service
User Offline
Joined: 29th Jun 2007
Location: United States
Posted: 15th Jul 2010 06:18
So I'm guessing nobody has an Idea?
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 15th Jul 2010 15:05
I don't use AI much but have you tried the debug mode when running to see what is changed when you reset.

Dark Physics makes any hot drink go cold.
Hunter H111
16
Years of Service
User Offline
Joined: 29th Jun 2007
Location: United States
Posted: 26th Jul 2010 06:04
Ok, I got an example code here to show a basic idea of what is happening. So the deal is: the first time before any restart, the enemies have a further following distance. When it's restarted, that following distance is shoter by about half as much.

HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 26th Jul 2010 18:54
can't see that error I get a distance of 30 when I start game and the same when it re-started.

I did think it might need an ai upated after ai reset give it try.

Dark Physics makes any hot drink go cold.
Hunter H111
16
Years of Service
User Offline
Joined: 29th Jun 2007
Location: United States
Posted: 26th Jul 2010 21:51
@HowDo- I tried the ai update and it didn't work. In order to fully understand my problem, you have to move the player object away from the enemies until they start to follow. Their following distance is what decreases, not where they start out.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 26th Jul 2010 22:21
this show what the problem is now to find its value. switched on path debug.




Dark Physics makes any hot drink go cold.
Hunter H111
16
Years of Service
User Offline
Joined: 29th Jun 2007
Location: United States
Posted: 26th Jul 2010 22:45
The debug path shows what the problem is but it doesn't help solve it. I don't know if it's just me, but the first time through, the following distance is about 200. After that, it's about 100.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 26th Jul 2010 22:58 Edited at: 26th Jul 2010 22:59
I found the little - now just got to find away of changing it.
if you use
AI Set Console Output On 2
and
AI Set Console Output off in reset you will that the

raduis 5.000000 : min distance 200.0000

but after reset its

raduis 5.00000 : min distance 100.00000

see pibture before left after right.



Dark Physics makes any hot drink go cold.

Attachments

Login to view attachments
Hunter H111
16
Years of Service
User Offline
Joined: 29th Jun 2007
Location: United States
Posted: 26th Jul 2010 23:14
Hmm thats interesting. I didn't know about the console output comands.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 26th Jul 2010 23:28
A lot of command are well hidden, I made my own index for the help files would you like a copy?

Dark Physics makes any hot drink go cold.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 26th Jul 2010 23:34
found it, move your set radius 5, to before make object sphere.

Dark Physics makes any hot drink go cold.
Hunter H111
16
Years of Service
User Offline
Joined: 29th Jun 2007
Location: United States
Posted: 26th Jul 2010 23:39
@HowDo- Thank's so much! I would like a copy of your index for help files.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 26th Jul 2010 23:49
hope you know how to change your main help files.
unpack the zip files into addoncommands folder.

Add this line in main.htm



Dark Physics makes any hot drink go cold.

Attachments

Login to view attachments
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 27th Jul 2010 00:01
plus if I did not put this one in the zip, put this file help folder, add this file AI index.htm to the help folder.

Dark Physics makes any hot drink go cold.

Attachments

Login to view attachments
Hunter H111
16
Years of Service
User Offline
Joined: 29th Jun 2007
Location: United States
Posted: 27th Jul 2010 00:20
This may seem noobish but, how do I add that code to the main.htm?
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 27th Jul 2010 00:35
find main.htm , open it with notepad, to do that right click and select edit , add the line then save it.

Dark Physics makes any hot drink go cold.
Hunter H111
16
Years of Service
User Offline
Joined: 29th Jun 2007
Location: United States
Posted: 27th Jul 2010 00:43
I get an error when I try to save it. It says something about "Cannot create ... file. Make sure that the path and file name are correct."
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 27th Jul 2010 01:04 Edited at: 27th Jul 2010 01:05
ok try this, rename your main.htm, oldmain.htm this so you can get it back if goes wrong.

Then paste this one in its place. then make a copy of it and rename newmain.htm, this will let you put it back each time you update DBpro.

edit
you will then have three file named like so:
main.htm
oldmain.htm
newmain.htm

Dark Physics makes any hot drink go cold.

Attachments

Login to view attachments
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 27th Jul 2010 01:16 Edited at: 27th Jul 2010 01:17
will look a bit like this,


the highlighted ones are what you should have when done.

Dark Physics makes any hot drink go cold.

Attachments

Login to view attachments
Hunter H111
16
Years of Service
User Offline
Joined: 29th Jun 2007
Location: United States
Posted: 27th Jul 2010 07:05
Thank you so much for everything HowDo.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 27th Jul 2010 12:37 Edited at: 27th Jul 2010 12:38
I take it the AI help files are now working, Well done.

Dark Physics makes any hot drink go cold.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 27th Jul 2010 16:34
think I forgot one this for the keywords makes them turn blue and links to the help pages.

Dark Physics makes any hot drink go cold.

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-04-24 03:56:22
Your offset time is: 2024-04-24 03:56:22