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.

DarkBASIC Discussion / Help with AI Please

Author
Message
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 11th Dec 2004 23:07
So I'm designing an FPS in DBC, and I need some AI. I just have a soldier on the matrix right now who stands still in a walking animation. I want him to walk around the matrix for now, over in my RPG Snippet thread Andrew Neale had given me code for waypoint based AI and I tried to add that into my game (to find the code go to the RPG Snippet Thread), so I tried to implement the code and my game wouldn't comiple, and I didn't get any reason as to why from code keeper, just an old error about music which I had already fixed. So how could I implement the AI into DBC? Right now I'm focusing on AI that don't hurt you then I'll be adding in some enemies, which thanks to 3D Monster Hunt shouldn't be that hard. Any help would really be apprieciated.

Have a heart and join my message board.
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 12th Dec 2004 02:03
Well... I suppose (In Theory) if you want your enemy to patrol betwwen two points you make 2 boxes/cubes and place thme where you want your man to patrol between. Then Hide them both. Use the POINT OBJECT cmd to make your guy face the now 'invisible' boxes then use move Object to make him move toward it.

Then do something like:

If Object Collision(Enemy,box)>0
XRotate Object Enemy,180
EndIf

Then do the same for when he reaches the other box!

Ill try and get some code up tonite!

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 12th Dec 2004 02:19
Here it is as Promised!

It is just a Cuboid that goes side to side but it could adapted and use in a game to simulate guard patrol routes! If you want you can add in more waypoints (boxes) so your guy has a more interesting and complex patrol route!



DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 12th Dec 2004 02:20
Thanks Saberdude, I'll try the code in awhile.

Have a heart and join my message board.
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 12th Dec 2004 02:50 Edited at: 12th Dec 2004 02:51
No Prob!

If you have any questions just ask em!

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 12th Dec 2004 03:04
Okay, here's a problem I had. Your code worked perfectly but when I tried to implement into my game the soldier moved backwards (I tried rotating him, it didn't make a difference) and when he hit the first checkpoin he wouldn't continue to the next on, he'd just be messed up like he was struggling to move. This is really annoying.

Have a heart and join my message board.
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 12th Dec 2004 03:49
Can I see some of your code?

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 12th Dec 2004 04:37
I'll email you later.

Have a heart and join my message board.
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 12th Dec 2004 14:13
Before I can send you anycode I need a question answered, do you own Darkmatter?

Have a heart and join my message board.
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 12th Dec 2004 18:45
Yes I do!

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 12th Dec 2004 23:40
Ok good, because most of the model in my game are from DarkMatter, and I didn't want to become a pirate.

Have a heart and join my message board.
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 12th Dec 2004 23:43
Right...Ok send me the code so I can look at it

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 12th Dec 2004 23:46 Edited at: 12th Dec 2004 23:53
I will in a few minutes, I just need to remove some stuff you won't have.

Edit: Well this is odd, I got a delivery status failure. Lemme try again.

Have a heart and join my message board.
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 12th Dec 2004 23:53 Edited at: 12th Dec 2004 23:57
OK **Twiddles Thumbs**
Doo,de,dum...la,de,da,daaaaaaaaaaa!
Ahem!
U done yet

P.S The link in your sig doesnt work

P.P.S Im gonna start learning C++ after Xmas!Ic:gameboy

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 12th Dec 2004 23:56
Well I've tried emailing it to you twice but I keep getting a mesage saying that the delivery failed, and I know my link doesn't work because everyhost I've been using has either died or MySQL databases have been randomly deleted, do you have another email I could contact you with?

Have a heart and join my message board.
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 12th Dec 2004 23:58 Edited at: 13th Dec 2004 00:02
Post was Destroyed!

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 13th Dec 2004 00:01
Okay I sent it to your other email.

Have a heart and join my message board.
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 13th Dec 2004 00:02 Edited at: 13th Dec 2004 00:05
Good Ill check it out
Hmmm...It seems to think your attachment is dangerous!
Try sending it again in .txt format
If all else fails just post it here

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 13th Dec 2004 00:07
I'll try sending it as a text file in awhile, but right now I'm really busy because I've got to do something else really important.

Have a heart and join my message board.
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 13th Dec 2004 00:11
Okie Dokie! <-- Hahaha Look at the penguin...Just look at him! Its soooo funny with the fat tummy!! Your not looking! LOOK! LOOK AT HIM HAAAAAAAAAAAAAAAAAAAAAA!

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 13th Dec 2004 00:25
I see the holy penguin lord. And I also sent you an email with a .txt that has the code in it.

Have a heart and join my message board.
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 13th Dec 2004 01:04
Ummm Im guessing you want the soviet walking around..

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 13th Dec 2004 01:27 Edited at: 13th Dec 2004 01:32
Ok its done!

The soviet man now walks across the matrix between two points!

Oh and know ive got the source code if you need any other waypointing AI done just ask!

Oh yeah the Source is being sent by e-mail

Edit: Interesting Combination of characters! Aliens,American SWAT man and a Soviet Soldier! I look forward to a demo so I can see how it all turns out!

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 13th Dec 2004 01:40
Thanks, it's a game that relates around time, and I just got the code. The demo won't be out for awhile, maybe not until another month or so when I start a W.i.P of it. I wanted the Swat by the way, but I can implement the code too, and then I'll post back with any other help I need.

Have a heart and join my message board.
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 13th Dec 2004 01:52
So i guess it works now! No Prob Im happy to help!

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 13th Dec 2004 01:59
Thanks, I might need your help again with AI, but not for a day or two.

Have a heart and join my message board.
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 13th Dec 2004 08:59
im availible too

Song of the whenever i feel like updating it....
Whatever Happened, The Strokes
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 13th Dec 2004 09:03
Thanks, I'll email you if I need help too.

Have a heart and join my message board.
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 14th Dec 2004 09:42
Pretty much I need help with enemy AI now so they fire if they see you, but I don't want to implement this until I can make my shooting look good. Kinda like the shooting looks in TimeSplitters.

Have a heart and join my message board.And now my messageboards work again!Woot!
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 15th Dec 2004 01:27
My AI System im developing does just that! Have you ever played MGS1? Well in that the guards have a cone of vision and if you went into their field of vision they chased you and shot at you! I am working on some functions at the moment!

(I would do a DLL but im still learing C++)

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 15th Dec 2004 03:31
Cool, unfortunalty I haven't played MSG1, but that's perfect, and if there is enough REMs I think I could really work with it, email me the code when you get the chance please. Now to get some nice firing...

Have a heart and join my message board.And now my messageboards work again!Woot!
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 16th Dec 2004 01:21
Yeah its still in development. But its not done yet but once ive done the part you need Ill mail it to ya!

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 16th Dec 2004 03:20
Thanks, I can wait. Did you join my boards or something?

Have a heart and join my message board.And now my messageboards work again!Woot!
Oneka
21
Years of Service
User Offline
Joined: 24th Apr 2004
Location: Hampton,VA
Posted: 16th Dec 2004 07:46
If iam not too late to fix the object facing the backward thing do this


Making better games everday!
Oh yeah and just so you know its Oh-nek-a not One-ka!
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 16th Dec 2004 07:58
Thanks for trying to help Oneka, but I already have dealt with that.

Have a heart and join my message board.And now my messageboards work again!Woot!
Oneka
21
Years of Service
User Offline
Joined: 24th Apr 2004
Location: Hampton,VA
Posted: 16th Dec 2004 08:19
o lol

Making better games everday!
Oh yeah and just so you know its Oh-nek-a not One-ka!
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 17th Dec 2004 18:18 Edited at: 17th Dec 2004 18:26
...Yeah I managed to fix that... See above posts!
Nah I havnt joined your boards cos your site wont work!
Im now developing my game as well as the AI System so please bear (Or is it bare???) with me!

EDIT: Check your mail Ive sent you the early version of the AI Fuction. It may not work but give it a shot!

Schools finished for Xmas now so I can get more done!

This thread is really long!

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 17th Dec 2004 20:05
Thanks.
That's odd that my site doesn't work, because it works for me, and I've got two other members who can get to the site. It turns out that it was ThomasFN or someone who joined.

Have a heart and join my message board.And now my messageboards work again!Woot!
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 17th Dec 2004 21:09
How are the other parts of the game comin along?

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 18th Dec 2004 03:31
Well I'm going to add in weapon changing and weapons you can pick up (it's easy as I've done it before) but I really need to make my firing look realistic (I have another thread, and it seems you know that as you've replied). Also I'm learning Deled so I can make actual levels for the game. Gir is doing a model for me which I can edit the texture to make multiple characters (You'd have to know the story as to why I could do that, but of course just today my MySQL databased died again today. ) And I want to find some free guns that are more futuristic or find some gun making tutorials for wings.

Have a heart and join my message board.And now my messageboards work again!Woot!
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 18th Dec 2004 04:18
DeleD Is really easy to use you know! So did my AI thing work?

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 18th Dec 2004 04:20 Edited at: 18th Dec 2004 04:21
??? Im sure I just posted! Well DeleD is really easy to use you know! Did my Ai thing work?

Edit: Whoops sorry for double post! I didnt know it had gone on to page 2¬

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 18th Dec 2004 05:12
Have to try it later when I have a bit more time. I'll post back with comments.

Have a heart and join my message board.And now my messageboards work again!Woot!
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 18th Dec 2004 06:33
Okay, so I put your function in my code, and I'm wondering how must I modify it so it works? And if it should work the way it is what should be happening? Because my code compiles with your function in it just it isn't any different.

Have a heart and join my message board.And now my messageboards work again!Woot!
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 18th Dec 2004 18:40
Could i see the code with my function in it please?

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 18th Dec 2004 21:37
Ok. Please note that it doesn't have many improvements over the original because I never ended up getting time yesterday and plan to do that in awhile.

Have a heart and join my message board.And now my messageboards work again!Woot!
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 18th Dec 2004 21:42
Uhh what an i supposed to be looking at?

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 18th Dec 2004 21:47
Huh? What do you mean? Don't tell me I removed the function!

Have a heart and join my message board.And now my messageboards work again!Woot!
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 18th Dec 2004 21:58 Edited at: 18th Dec 2004 21:59
No wheres the code??

Edit: Oh i just got your email!

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 18th Dec 2004 22:07
Oh okay. Please tell me if the function isn't in there. I might have removed because it hadn't been doing anything.

Have a heart and join my message board.And now my messageboards work again!Woot!

Login to post a reply

Server time is: 2025-05-30 18:41:49
Your offset time is: 2025-05-30 18:41:49