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
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 18th Dec 2004 22:09 Edited at: 18th Dec 2004 22:12
Yeah you did! Do you want it in the AI GOSUB? And I keep getting an Object Does not exist error!

EDIT : I fixed the error! Youd changed Soviet Idle to soviet move!
EDIT : Now I get Object already exists error!

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:11
Oh, oops. Yeah I guess you could put it into the AI gosub.
I completly forgot taht when you first looked at my code that he was idle.

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 22:12
OBJECT ALREADY EXISTS AT LINE 270! Any ideas what that is?

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:16
No... Hmm that is odd.
I have no clue. I'll check it out later.

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 22:18 Edited at: 18th Dec 2004 22:22
I fixed that error but now I cant move!
Hmmm It seems that the function is the problem...
Ill see if I can do the AI another way

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:28
Oh okay, thanks Saberdude. That is odd, I hate it when errors like that happen.

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 22:39
AHHH! Its nearly done but one of the Bounding boxes wont show up!

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:43
Great! Once you fix that problem, do you think you'll be able to email it to me soon?

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 22:44
Hmmmm Yes Ill email it to you soon but first im going to do a standalone test. If I get that working then I should be able to fix the problem in 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: 18th Dec 2004 22:47
Ok, thanks! I think I'll wait until you send me the code and then add in muzzl flash and recoil and vibration.

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 23:01
Ok right it works now BUT! the man will only chase you if you stay in his view
That is a test. Do you want the cde now or do you want me to try and get the guy to chase you even if you are not in his Field of View?

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 23:12
Send me the code. I only want them to attack if your in there FOV for the moment.

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 23:39 Edited at: 18th Dec 2004 23:42
Man this is really annoying! I need a bounding box around the player but its just not HAPPENING! I cant see it anywhere! Check your e-mail Ive sent you the code all you need to do is create a box around the player.

EDIT: I probably wont be able to do any more tonite. But Ill carry on tommorow. Please post if you get it working!

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 23:48
Thanks. This is going to be hard though, I'm not sure how I can get a bounding box to work if my games an FPS. I could do it for 3rd person but not 1st person.

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 23:49 Edited at: 18th Dec 2004 23:50
Ive had another idea that doesnt involve bounding boxes but Ill have to test it first. So give me some time...

For the bounding box just try positioning it at the camera position

Oh yeah how long have you been using DB and do you have any other finished games I can try 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: 19th Dec 2004 00:07
I've been using DB for a week before my join date. Of course there was a 100 days were I was using DBP rather than DBC. I don't have any other finished games.

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: 19th Dec 2004 21:18
OK Just curious...Im still working on this new theory but its nearly ready!

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 19th Dec 2004 21:39
Ok, I can wait.

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: 21st Dec 2004 03:41
LOOOONG SILENCE! Ok I have been working on this new AI. It works by working out positions around the enemy object but I am having trouble doing it. I have a bad feeling that I may need to use arrays for it. But I dont know how to use arrays! The example in my DBC manual is something to do with lottery numbers! Not very helpful! I need a better example of arrays. Could you help 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: 21st Dec 2004 04:13
Have you checked out Binary Moon? I've only used arrays in DBP but it also had involved types which isn't supported in DBC.

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: 21st Dec 2004 04:16
Hmm I forgot about that! Here is the code so far if you want to mess around with 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: 21st Dec 2004 04:41
In that small piece of code I would be correct in saying that it should say "I SEE YOU!!" even if I move our of range? Because that's how it was for me.

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: 21st Dec 2004 05:16
Its not finished and no its not meant to see I See you! If your not in their range!

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 21st Dec 2004 05:20
I didn't think it was finished. But it said I See you! all the time... From the code I don't think it should maybe just some odd error, lemme check again.

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: 21st Dec 2004 05:22 Edited at: 21st Dec 2004 05:26
I know I cant seem to work out whats wrong! Everything seems allright...

I was reading an article about how the AI in Halo works...very interesting! It has 'Tags' On all the objects so that the AI knows whether it can use the object as cover or if It can jump on top of it etc. It also has a 'Posting' System where 1 AI guy Eg. a Grunt finds another guy Eg Elite and posts him a meesage Eg We are both looking for the same guy, lets team up and ambush him! The elite then posts back to the grunt and either says Yes OK and helps the little guy or says No and carrys on with what he was doing! I thought it was pretty interesting and I thought you might want to find a way of implmenting it into your game?

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 21st Dec 2004 05:23
Same here...
It's just some wierd bug I guess...

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: 23rd Dec 2004 04:23
So how is the code progressing? Do you think you could send me the W.i.p? So I could tinker around with it and whatnot.

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: 23rd Dec 2004 04:28
I can do patrolling easily! Its just this darn FoV Im having trouble with!!!! I havnt really donr much more on it lately so it isnt much different from the one youve got. Sorry for the long time it is taking

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 23rd Dec 2004 05:37
It's okay. I'm working on getting the muzzle flash to look good. I've got a very good muzzle flash from Las6 at Limefly.

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: 24th Dec 2004 04:21
SUCCESS!! I've finally done it!!!! CHECK YOUR E-MAIL NOW!!!!!!!!!!!!!

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 24th Dec 2004 06:33
I did. Thanks.

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: 30th Dec 2004 07:06
I tried the code, it worked this time!
I'm going to try and implement the FOV into my FPS. Once I have I'll post back.

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: 31st Dec 2004 01:39 Edited at: 31st Dec 2004 04:22
Okie

Edit: Do you think you could send me a version of your game with all the media? I saw some screens of it in Badnames free models thread and it looks good so I want to try it 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: 31st Dec 2004 06:29
Well I haven't worked on it recently and it isn't working at the moment because of that god damn muzzle flash. I can't get it to look good at ALL! And I can't get my shooting to look good either.However I have a really good muzzle flare pic from Limefly... Once I fix that and add in some objectives then sure I'll send you one... But that won't be for a week or 2.

Have a heart and join my message board.And now my messageboards work again!Woot!
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 1st Jan 2005 01:36 Edited at: 16th Jan 2005 02:40
Any one help me,

If any one has ever played james bond 007 night fire then i am try to make the level where you creep round the building and shoot people witha dart gun.

any way i have a 3d place for this to all happen and i am usng some of the weapons from darkmater , i have writen the code to walk round it with a gun and aimer. But that it is not enough. Because there are no people,you can,t change weapon.

thanks if any one replys


alex
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 1st Jan 2005 01:36 Edited at: 16th Jan 2005 02:34
i edited the old messge as it was the same as the one above
DeHonCha
20
Years of Service
User Offline
Joined: 2nd Dec 2004
Location: A world of my own...
Posted: 6th Jan 2005 00:25
i'll ready, willing and able (no skool for another 2 months) to help you !hi! - just post a good description of what you need (exactly as possible) and i'll see what i can do - though i've never played 007 i'm willing to try

i'll be waiting: *stares at comp screen for new message*

For when they said I couldn't, I did...
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 8th Jan 2005 21:57 Edited at: 8th Jan 2005 22:16
Please dont double post! And why did you post that here? I think ive seen another post by you that is pretty much the same thing!

How do I make my sig pic a link to my website?
And how do I load my own Avatar?

Come and see my new website at

Thanks to Animeblood for the Logo!
DeHonCha
20
Years of Service
User Offline
Joined: 2nd Dec 2004
Location: A world of my own...
Posted: 10th Jan 2005 01:29
um... saberdude - r u talking to me or the guy/gal above (!hi!)?

For when they said I couldn't, I did...
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 10th Jan 2005 02:00
I was talking to !hi!


Thanks to Animeblood for the Logo!
DeHonCha
20
Years of Service
User Offline
Joined: 2nd Dec 2004
Location: A world of my own...
Posted: 11th Jan 2005 07:14 Edited at: 11th Jan 2005 07:16
oh - right

where is !hi! btw?

For when they said I couldn't, I did...
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 11th Jan 2005 07:18
That's a good question. Anyways I'm going to try and finally put in the AI code you put in, haven't gotten around to it cuz of the shooting which is going good now, then I'll try and see if I can implement that for multiple enemies but keep the code as small as possible for shorter compile times and quicker FPS, then I'll try and add attacking enemies. Along with making the Swat Guy help the player.

Have a heart and join my message board.And now my messageboards work again!Woot!
DeHonCha
20
Years of Service
User Offline
Joined: 2nd Dec 2004
Location: A world of my own...
Posted: 11th Jan 2005 07:18
and one more thing tell me what you think of this man and this face (i painted - the man is a 3d model)

For when they said I couldn't, I did...

Attachments

Login to view attachments
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 11th Jan 2005 07:19
Isn't that the same one you posted on the shooting thread? If so you know my comments.

Have a heart and join my message board.And now my messageboards work again!Woot!
DeHonCha
20
Years of Service
User Offline
Joined: 2nd Dec 2004
Location: A world of my own...
Posted: 11th Jan 2005 07:20
here's the man - he's incomplete and horiible looking now (hope not ] but he'll be complete soon - comments plz?

For when they said I couldn't, I did...

Attachments

Login to view attachments
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 11th Jan 2005 07:27
Once again... You already have my comments, and it's a bit off topic...

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: 12th Jan 2005 04:36
OK I think I may have found a flaw with my AI! It just means that he can see you if hes looking the other way. I will fix this since I will need it for my game too.


Thanks to Animeblood for the Logo!
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 12th Jan 2005 04:48
OKay, also check out your message boards.

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: 13th Jan 2005 01:30
Why...Oh right yeah I see now..


Thanks to Animeblood for the Logo!
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 13th Jan 2005 02:28
I dont want to say this but... I feel I am beaten. I just can't get it to work. NOOOOOO!!!!!!!!!!!!!! I need to find another way and FAST. IM SO SORRY!


Thanks to Animeblood for the Logo!

Login to post a reply

Server time is: 2025-05-30 18:43:42
Your offset time is: 2025-05-30 18:43:42