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.

Work in Progress / A.I. Script

Author
Message
Mattman
20
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 6th Dec 2003 01:39 Edited at: 6th Dec 2003 01:42
Hello,

I am back YET AGAIN with a project. This one, a A.I. script, atm code named "shangAI" I plan to either realise it as freeware or VERY CHEAP shareware (somewhere around $5-10 folks)

I would like a few (1-3) beta testers. E-mail me for details (I can send out the .dba tonight) NOTE!!!!: This project is being coded in DBClassic, and maybe a tester could help me transfer code over to pro, that would be very helpful

I have actually gotten soemthing done BEFORE posting this time, and atm have two functions working decently.

I would like some feedback on what YOU want in an A.I. script. This will be mainly be for FPS's, Racing games, and maybe even RPG's.

Thanks for any Feedback,
Mattman

I am mischeivious
RoooooOoooooKoooooKoooooRoooooOoooooKoooooKooooo!
Mattman
20
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 7th Dec 2003 02:31
So if I were to make this a public realise noone would want it?*sigh* Oh well then, I'll just keep it for my projects...

I am mischeivious
RoooooOoooooKoooooKoooooRoooooOoooooKoooooKooooo!
Mattman
20
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 7th Dec 2003 03:22 Edited at: 7th Dec 2003 03:23
You get the file TheAbomb12?

I am mischeivious
RoooooOoooooKoooooKoooooRoooooOoooooKoooooKooooo!
TheAbomb12
20
Years of Service
User Offline
Joined: 14th Aug 2003
Location: Amist the blue skies...
Posted: 7th Dec 2003 08:54
yeah

Amist the Blue Skies...
David T
Retired Moderator
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 7th Dec 2003 15:30
lol Can we see demo

"Help! My keyboard is stuckkkkkkkkkkkkkkkkkkkkkkkkkkkkk"

Mercenaries in Space demo @ http://www.davidtattersall.me.uk
Rob K
Retired Moderator
21
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 7th Dec 2003 19:13
Hi Dave - I couldn't find your email address but the ZIP for your Alienware entry demo/test appears to be corrupt.


BLUE GUI Plugin: http://blue.robert-knight.net / BLUE IDE [href]http://blueide.sf.net/ - Replacement editor for DBPro[/href]
Mattman
20
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 7th Dec 2003 19:55
David --- E-mail me and I will send it to you

I am mischeivious
RoooooOoooooKoooooKoooooRoooooOoooooKoooooKooooo!
Mattman
20
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 7th Dec 2003 19:56
Rob --> What's with hi-jacking my thread?

I am mischeivious
RoooooOoooooKoooooKoooooRoooooOoooooKoooooKooooo!
Rob K
Retired Moderator
21
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 7th Dec 2003 20:07
Sorry, I just couldn't find Dave's email. Everyone else can ignore it.

So, are there any demos of your AI system? (that you can release publically)


BLUE GUI Plugin: http://blue.robert-knight.net / BLUE IDE [href]http://blueide.sf.net/ - Replacement editor for DBPro[/href]
Mattman
20
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 7th Dec 2003 20:13 Edited at: 7th Dec 2003 20:13
I'll make an .exe of it today and upload it (check back later)

I am mischeivious
RoooooOoooooKoooooKoooooRoooooOoooooKoooooKooooo!
Mattman
20
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 7th Dec 2003 20:30
[href]nwstudios.dbpcommunity.com/ai.zip[/href]

Go ahead and d/l it now

I am mischeivious
RoooooOoooooKoooooKoooooRoooooOoooooKoooooKooooo!
Alkaline
20
Years of Service
User Offline
Joined: 4th Dec 2003
Location: Seattle, Washington
Posted: 7th Dec 2003 21:46
so is it freeware?

~Might be new but ill be on the top...Just watch~
MikeS
Retired Moderator
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 7th Dec 2003 21:51
Didn't work for me. I tried unzipping it, and I got a 1kb icon that just made my printer keep printing.(I hope that's not what it was intended on doing.)



A book? I hate book. Book is stupid.
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 7th Dec 2003 22:06
same, apart from printer didn't go nuts, i just got an error message.


GO TO THE ETERNAL DESTINY FORUMS!!! http://forums.eternaldestinyonline.com
Do it now!!!
Mattman
20
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 7th Dec 2003 22:08 Edited at: 7th Dec 2003 22:08
lol, sorry about that, I'll try to see what went wrong. What was the error Red Eye?

Adikt: The exe demo is, but as of now, the price for the code is still undecided.

I am mischeivious
RoooooOoooooKoooooKoooooRoooooOoooooKoooooKooooo!
Mattman
20
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 7th Dec 2003 22:21
I can't get it to upload the file

Quote: "You did not provide any files or archives to upload."


But I did, and I tested and the new .zip file works when you unzip it, I tested on two computers too

I am mischeivious
RoooooOoooooKoooooKoooooRoooooOoooooKoooooKooooo!
Mattman
20
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 7th Dec 2003 22:27 Edited at: 7th Dec 2003 22:28
Might be a bit slow now I can e-mail it to you if you want it (and are a 56k'er that can't wait for freewebs's sloooooooooow servers )

I am mischeivious
RoooooOoooooKoooooKoooooRoooooOoooooKoooooKooooo!
MikeS
Retired Moderator
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 7th Dec 2003 22:32 Edited at: 7th Dec 2003 23:13
Printer's still F***** up, and I'm mad about it. I hope this A.I script really revolutionizes db.

[edit] Got it fixed finally. No worries though, at least if this happens again I'll know how to fix it.

Now, any chance for some screens before I download again? I'm interested, but don't want to take any chances.



A book? I hate book. Book is stupid.
Mattman
20
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 7th Dec 2003 23:01
dude, I am SO SORRY! I don't know why! Try un-plugging it, but I don't have any probs here with it as a un-zipped exe

I am mischeivious
RoooooOoooooKoooooKoooooRoooooOoooooKoooooKooooo!
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 7th Dec 2003 23:14
dude, i think you've got a virus or something, it doesn't look like any db .exe i've ever seen
http://redeye.dbpcommunity.com/grrr.JPG theres a screen shot of the error i get. previously i just clicked close, but after clicking ignore an dgetting a few more messages up my printer went loony aswell. which sucks alot, i recommend you take down the link!


GO TO THE ETERNAL DESTINY FORUMS!!! http://forums.eternaldestinyonline.com
Do it now!!!
Mattman
20
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 7th Dec 2003 23:19
I don't know what is wrong. This IS NOT good. I am sorry for all that this went wrong for. I will try to fix this asap.

I am mischeivious
RoooooOoooooKoooooKoooooRoooooOoooooKoooooKooooo!
Mattman
20
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 7th Dec 2003 23:25
Yes, screeny's will be posted asap. I sent you two the .dba.

Run it, and it should work. If you want me to explain it, e-mail me.

I am mischeivious
RoooooOoooooKoooooKoooooRoooooOoooooKoooooKooooo!
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 7th Dec 2003 23:34
ok cool
btw, i shutdown, unplugged all the cables and now the printer is ok again, so no lasting damage it appears


GO TO THE ETERNAL DESTINY FORUMS!!! http://forums.eternaldestinyonline.com
Do it now!!!
MikeS
Retired Moderator
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 7th Dec 2003 23:35 Edited at: 7th Dec 2003 23:36
Just found out my adobe photoshop got uninstalled also. Dunno what happened. Luckily, I create restore points nearly everyday, so I'm still good.

Mattman, I'd check out your cpu, it might be infected.

[edit] Figured out what happened to my adobe.



A book? I hate book. Book is stupid.
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 7th Dec 2003 23:37
norton anti virus is doing its thing for me right now, hasn't found anything yet, but its only been going for a minute


GO TO THE ETERNAL DESTINY FORUMS!!! http://forums.eternaldestinyonline.com
Do it now!!!
Mattman
20
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 7th Dec 2003 23:40 Edited at: 7th Dec 2003 23:44
I think it's my floppy...

I have db installed on my pc upstairs. I have to zip the exe, then put on a floppy. I then bring it downstairs, to my dad's pc. I then upload it. Taking 3-10 mins.

Floppy or my winzip dislikes my db exe's. This is not my first issue with them and winzip

demo is just 1 box chasing the other

I am mischeivious
RoooooOoooooKoooooKoooooRoooooOoooooKoooooKooooo!
TheAbomb12
20
Years of Service
User Offline
Joined: 14th Aug 2003
Location: Amist the blue skies...
Posted: 8th Dec 2003 01:33
they are in love

Amist the Blue Skies...
Mattman
20
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 8th Dec 2003 02:30
lol

I am mischeivious
RoooooOoooooKoooooKoooooRoooooOoooooKoooooKooooo!
John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 8th Dec 2003 05:29
Havent downloaded yet...not till problems get sorted GO CUBES GO!!


Dont forget to Join the Forums!
Mattman
20
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 8th Dec 2003 05:33
TheAbomb is now working on thsi project, gonna 50-50 between us

HE got it working even better, I will let you all know when we get the upload correct

I am mischeivious
RoooooOoooooKoooooKoooooRoooooOoooooKoooooKooooo!
Arkheii
20
Years of Service
User Offline
Joined: 15th Jun 2003
Location: QC, Philippines
Posted: 8th Dec 2003 07:21
Errr, a box chasing another box isn't too much to look at. I was expecting at least a little pathfinding and obstacle avoidance. Of course, I can't judge that from a single frame Good luck though.
Mattman
20
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 8th Dec 2003 23:22
Well, there we go! Feedback! I will now get started on a object avoidance function!

I am mischeivious
RoooooOoooooKoooooKoooooRoooooOoooooKoooooKooooo!
greenlig
20
Years of Service
User Offline
Joined: 30th Aug 2003
Location: Melbourne
Posted: 9th Dec 2003 07:07
okay...so what exactly does this ai script do at the moment? anything special?

regards
Greenlig

I got best and fairest for soccer WHOOHOOO!
Chris K
20
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 17th Dec 2003 13:31
Good AI is aware of its surrounds.
This doesn't have any surroundings.

Van B
Moderator
21
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 17th Dec 2003 16:12
Erm, objects chasing other objects is not AI, if the first box became suspicious of the other box and ran away, that would be AI.

I reckon pathfinding is where you should start, get it so the system can navigate mazes then look into other AI stuff. In reality though, AI is not that difficult - mostly just trig, so I'm not sure if you'll make much money.


Van-B


Next time he runs past, GRAB HIM!
Pricey
21
Years of Service
User Offline
Joined: 22nd Feb 2003
Location:
Posted: 17th Dec 2003 18:35
it's too easy to make things chase each other



x#,y# and z# are the player's position and object 1 is the enemy

Syntax Terror Studios - syntaxterror.topcities.com
David T
Retired Moderator
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 17th Dec 2003 18:45
@RobK - sorry for not responding - I haven't been on for ages

Im d/ling it for myself now. I'll email you about it.

Well I'm glad you couldn't find my address - it means my absolute privacy regime is work

Mattman: info@davidtattersall.me.uk (before you say it, its not my personal address!)

"Nowadays more and more of our imports are coming from abroad" - George Bush

Mercenaries in Space demo @ http://www.davidtattersall.me.uk
Chris K
20
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 17th Dec 2003 20:51
Quote: "objects chasing other objects is not AI"


Yeah..... that'd be stupid in a game... *hides Alienware Entry*

Penfold
20
Years of Service
User Offline
Joined: 3rd Dec 2003
Location: RED postbox houses of parliment
Posted: 18th Dec 2003 19:32
Actually a box chasing another is AI.

AI is a reesponce from one object/dynamic that responds to an outside stimulae in this case the box(1) is resoponding to box(2)

If box(2) changes its relative position to box(1) then it will change its target destination

This is truely simple AI.

This is the same in Real life terms as a dog chasing its own tail just because it can.

ie. Have target - follow target.

Ok so its not a mouse.
Chris K
20
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 18th Dec 2003 20:56
So any IF statement is AI?
When a bomb hits a wall and explodes, that is AI?

Penfold
20
Years of Service
User Offline
Joined: 3rd Dec 2003
Location: RED postbox houses of parliment
Posted: 18th Dec 2003 22:00
No an if statement is not AI

AI is when one object changes course size whatever variable it may be based on something in its surroundings.

The If statement is part of AI. the choice that comes from the AI depends on the input to the statement

eg. someone asks you if you want an apple to eat you can respond in 3 or more ways YES NO or OTHER

this could be put into AI terms of something like

If APPLE = YES then EAT APPLE
If APPLE = NO then DON'T EAT APPLE
If APPLE <> YES or NO then DO SOMETHING ELSE

In answer to the second part when a bomb hits the wall and explodes its not AI because there is no choice in it..No Intelligence.. No choice for the bomb to make about if it explodes or not. If the bomb was perhaps linked to only explode if the wall were made of Jello (I dunno a strange millitary use.. ) then the bomb would check to see if it were made of Jello before it exploded. Thus making it an intelligent bomb. This would mean it would have artificial intelligence.

This make sense? I hope so I can explain more if you want?

Sorry for being so technical.

Ok so its not a mouse.
zircher
21
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 18th Dec 2003 22:35
You can apologize for being technical when you get into fuzzy logic, genetic algorithms, and rules based expert systems.
--
TAZ
Mattman
20
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 18th Dec 2003 23:20
Well, the function is somewhat AI. What it does, is take a calculation, see if the objects are withen a range (one of the flags in the function) and if so, THEN it chases the other box.

I am mischeivious
RoooooOoooooKoooooKoooooRoooooOoooooKoooooKooooo!
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 18th Dec 2003 23:51
AI defines a situation that has fuzzy boudries. We don't think that a duck is intelligent, yet we get exited by a computer simulation of a flight of birds. Each of us can set a different boundry for AI minimum case. If/Then certaily seemed intelligent when I first played a text adventure, but now it seems feeble. But the brain is very simple too, and it isn't far away from simple basic commands. All you need to make true intelligence is a couple of basic language statements, but a really fast computer, with a large memory. Our eyes, and ears perform most of our useful tasks, that's where the programming gets complicated.

Pincho.
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 19th Dec 2003 00:00
He he Penfold you are almost right...It's Yes/No Maybe, and the maybe has a stored strength. OTHER doesn't work so well because it suggests doing something else, but MAYBE has the extra meaning in the English language of doing nothing at all except to store the memory, and the strength of your emotion.

Pincho.
Chris K
20
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 19th Dec 2003 14:37
@ Penfold

OK.
But surely there is no choice in this cube following the other.
If it were a box being dragged by a car would that be AI?
After all, it is the same code.

I was jus wondering because I think the term AI is rather vague in games. It can pretty much mean "movement of enemies"

M00NSHiNE
20
Years of Service
User Offline
Joined: 4th Aug 2003
Location: England, UK
Posted: 20th Dec 2003 17:49
Movement of enemies, their reaction to certain situations (like a blocked path, their mate has just been capped in the head, what does he do?) How does he get from here to there, whats the best way to do >this<, which ball should I pot? How much backspin should i put on the ball? Which way is the wind blowing? If I take this route will I get there faster? Stand and shoot or take cover and flush them out with a grenade? Overtake now? Overtake on a corner?

All these are what AI is about. Its not as simple as just moving an enemy. Thats why its one of the most difficult concepts in game programming, which can spell the end if its not pulled off right.

ZEDWARE website coming soon... //END TRANSMISSION//
Penfold
20
Years of Service
User Offline
Joined: 3rd Dec 2003
Location: RED postbox houses of parliment
Posted: 21st Dec 2003 17:50
@ Pincho > Ducks are intelligent.. They can find food , Breed and evade prey thus they have intelligence

And the reason I used OTHER rather than maybe is because other than etaing or not eating the APPLE you could throw it give it away cut it or various other things. The MAYBE would be a RND statement in front of the IF statements to decide if it would do 1 or more different things in the responce to having an apple. So I was right in using the OTHER as an option. (As I didn't want to list loads of courses of action)

@ Chris Knott > A vehicle dragging a trailer would not be AI as the trailer is joined (parented) to the vehicle and so has no option to do anything but follow it. the second box in the post would change direction because the first box had changed direction not because there was something joining them together.

any program you build has a small amount of AI it must have other wise it would become a rolling demo. Any IF statements you put into a program will change the course of a program based on user or other program code input. This is intelligence a responce based on something else.

@ Moonshine > this box chasing the other box is AI for games. And it is that simple as box 2 chases box 1. for egsample replace box 1 with a military plane and replace box 2 with a missile object. as simple as that you've created an AI guided missile.

Other uses in AI for the box chase could be an assasin stalking its prey with the addition of a line of code the box could stop at a set distance from the other as though it were waiting for a clear shot. Another line of code could resume the chase if the second box moved out of firing range for the assasins bow.

There are probably loads of other uses for the basic box chase AI code.

Making the code to do the revers would result in haveing code for an enemy unit running away in terror trying to get as far away as possible from your character. Or perhaps a magnetically sheilded door could drive away bullets. Who knows.?

You just need a bit of imagination to see that the AI may be simple but combined with other simple AI could create an advanced AI character or smart bomb or again who knows?

I'm a bit tired at the moment been to see LOTR3 and my but is numb so I hope this makes sense.

Ok so its not a mouse.
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 21st Dec 2003 18:04 Edited at: 21st Dec 2003 18:05
@Penfold.....You are not meant to read that a duck has no intelligence. You are meant to read that people don't look at a duck, and say "Look at that intelligent creature!" But they will look at a flight of birds on a computer ,and be amazed to find out that the program is just a few lines of code.

Also... It has already been established that the brain works from Yes/No and Maybe. It's not totally my opinion, it is how Neural networks are made. OTHER, follows maybe, not replaces it. OTHER would be the start of the loop all over again. It isn't required.

Pincho.
Penfold
20
Years of Service
User Offline
Joined: 3rd Dec 2003
Location: RED postbox houses of parliment
Posted: 21st Dec 2003 22:18
@ Pincho > Actually a brain works more like a logic gate system

The brain actually works on YES, NO, WHAT IF not MAYBE.

Thge brain runs various scenario's through to see which it thinks is the most logical based on past experience.

And this is what is classed as FUZZY AI or FUZZY LOGIC and as yet I have not seen one snippet of code in DB that would fit into this style of AI. DB users as far as I can see use pure gated logic to perform AI. The YES NO AND OR NEITHER style of AI.

I am trying to piece together a piece of AI that is almost fuzzy in type.

The basis of my AI is a self learning module that will learn the style of gameplay for each opponent as the game plays on.

For example if the player likes to hide and sniper more the AI will learn this and when the program checks to see what the enemy does next it will do it based on the players previous movement. In this case the AI will tell the enemy to throw a grenade or duck out of the way until the player comes out in the open.

Its in its infancy at the moment and can only record aproximate values for the players position and distance that it fires from.

Not much use you may say but if the program thinks your unlikely to fire a shot until your in a specific place or distance the enemy will stay in the open more firing back until they decide to run for cover. If the player decides to change tactics and try and fire from a greater distance then the AI would make the enemy run earlier. and on the flip side if the player stopped shooting till the last minute then the AI would perhaps change to make the enemy stay out in the open even longer before trying to dodge.

Ok so its not a mouse.

Login to post a reply

Server time is: 2024-04-20 00:27:11
Your offset time is: 2024-04-20 00:27:11