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.

FPSC Classic Scripts / Ally and Enemy AI Upgrade

Author
Message
DarkFrost
15
Years of Service
User Offline
Joined: 3rd May 2009
Location: ON, Canada
Posted: 10th Jun 2009 03:20 Edited at: 10th Jun 2009 03:25
K well its well done, yet there are some bugs:
-characters randomly spin around sometimes
-since "X" turns on sinc you should prolly change the cover left command to something else
-enemy sometimes slides to me and ally
-enemy will attack you without even looking at you
-enemy moves inhuman
-ally sometimes jumps and accelerates into the air, with backdoor controls not doing a thing
-ally sometimes doesn't notice the enemy
-ally sometimes follows you looking the wrong way

Unless im doing something wrong this is everything i noticed. If you havnt noticed any of these you should try your stuff out again, or revise the script.

[img][/img]
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 10th Jun 2009 04:34
my hands are a bit tied in finding a job right now, but I will see what I can do.


Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 10th Jun 2009 08:12
Quote: "-enemy sometimes slides to me and ally
-enemy will attack you without even looking at you"


also..
-enemy sees me only from way to close distance
-allies seem to be skiing when they follow me


~Level my Dragon~[/url]
Best Wishes..
Gun_Guy
17
Years of Service
User Offline
Joined: 11th Nov 2007
Location: UK
Posted: 19th Jun 2009 00:31
What scipts go in the Start, Main and Distroy ?
and what do they do ?
Fatalis
15
Years of Service
User Offline
Joined: 7th May 2009
Location: Behind You
Posted: 19th Jun 2009 02:08
Too bad I don't get scripts at all (not good with them). Looks amazing, though. I think I am going to try it.


=Acid=
15
Years of Service
User Offline
Joined: 10th Feb 2009
Location: Australia
Posted: 19th Jun 2009 02:14
This is incredible, you need to show Lee and Rick this so they can implement it permanently into fpsc.

There is a few things that could be tweaked. I think that you shouldn't have to press a button to change cover positions as an option. The character was also jittering a little. It would be great if you made a custom animation where the character would duck every so often behind the object then fire back instead of the crouch animation. Something like as if he were perched against the wall.

It's quite good, and as a 3D artist not only creating the content I also study the games AI and animations. I think that with a few better walking, running and attacking animations they would look a lot smarter.

Great script and good stuff for sure.

3D Game Artist
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 19th Jun 2009 04:44
Quote: "This is incredible, you need to show Lee and Rick this so they can implement it permanently into fpsc."


I never thought of doing that and until I can get them tuned to be the best that they can be I will just leave as is. This project after all has been in progress for over a year.

Quote: "I think that you shouldn't have to press a button to change cover positions as an option"


that is way there are four different scripts. one to satisfy each of the groups

Here is a few things I need like pics or videos to check and see what might be the problem:

-allies seem to be skiing when they follow me
-ally sometimes follows you looking the wrong way
-ally sometimes jumps and accelerates into the air, with backdoor controls not doing a thing


DarkFrost
15
Years of Service
User Offline
Joined: 3rd May 2009
Location: ON, Canada
Posted: 19th Jun 2009 05:19
Well do you honestly need a screenshot of an entity not looking at the player and moving...

[img][/img]

Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 19th Jun 2009 05:33
I test my scripts under different circumstances then you guys and there for don't notice any problems. The screenshots are just as good as videos at least for me.


DarkFrost
15
Years of Service
User Offline
Joined: 3rd May 2009
Location: ON, Canada
Posted: 19th Jun 2009 05:54
Yeah i see where your coming from. Mabye test it in various scenerios yourself try to exploit the bugs than kill em.

[img][/img]

Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 19th Jun 2009 05:58
I have, but I end up with similar results to that of my original tests.


DarkFrost
15
Years of Service
User Offline
Joined: 3rd May 2009
Location: ON, Canada
Posted: 19th Jun 2009 06:29
mmm so what is it we are doing differently than you? Have you tried using it with a simple floor (no room) cover and an enemy? Thats what i did and noticed all the problems

[img][/img]

Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 19th Jun 2009 06:57
tried that no problems on my part...

-enemy moves inhuman
-allies seem to be skiing when they follow me
-ally sometimes follows you looking the wrong way
-ally sometimes jumps and accelerates into the air, with backdoor controls not doing a thing

Let me go over each of these on what I see:

"enemy moves inhuman"
I could use some elaboration on this one

"allies seem to be skiing when they follow me"
Follows me normally

"ally sometimes follows you looking the wrong way"
Follows me normally

"ally sometimes jumps and accelerates into the air, with backdoor controls not doing a thing"
Hasn't happen to me

While thinking it over just for a little bit... what entity are you using for the ally to sprint over to?


DarkFrost
15
Years of Service
User Offline
Joined: 3rd May 2009
Location: ON, Canada
Posted: 19th Jun 2009 07:18
entity? what do you mean cover? Well its a wooden crate from model pack 3

[img][/img]

Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 19th Jun 2009 16:21
here is how I set up my areas for battles.

The lifts are used to direct the characters to cover. Top character is the enemy. The bottom character is the ally.

let me rephrase the question. How is your area set up?


Attachments

Login to view attachments
DarkFrost
15
Years of Service
User Offline
Joined: 3rd May 2009
Location: ON, Canada
Posted: 19th Jun 2009 17:04
ohhhh you need to use lifts in the level?

[img][/img]

Databug
16
Years of Service
User Offline
Joined: 27th Oct 2008
Location: Elsewhere
Posted: 19th Jun 2009 19:29
Hmm, I'm getting lots of problems. I just made a completely bare room and added an ally and an enemy. The ally follows me fine but when the ally engages the enemy he runs off to the nearest corner and proceeds to shoot it. The enemy, however, runs up to my face and starts dancing in circles. The ally is on the left, enemy on the right in the pic.

Attachments

Login to view attachments
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 19th Jun 2009 21:02
Quote: "ohhhh you need to use lifts in the level?"


well any flat object similar to the lift or teleport pads will work just as fine. If you look in the toutorials folder that was in the download and look through duotutorial 2.

Quote: "Hmm, I'm getting lots of problems. I just made a completely bare room and added an ally and an enemy. The ally follows me fine but when the ally engages the enemy he runs off to the nearest corner and proceeds to shoot it. The enemy, however, runs up to my face and starts dancing in circles. The ally is on the left, enemy on the right in the pic."


1. make sure the enemy is named "AI" not "AI (unarmed)" or somthing similar.

2. for a bare room use shootXnocover.fpi and allyshootXnocover.fpi


Databug
16
Years of Service
User Offline
Joined: 27th Oct 2008
Location: Elsewhere
Posted: 19th Jun 2009 21:16 Edited at: 19th Jun 2009 21:20
Ah ok, it worked a lot better now, the enemy now shoots at me, still occasionally dancing and pointing in the wrong direction, but a new problem arose. My ally is suicidal . When he spots an enemy he will shoot in the wrong direction then eventually die. I think he is getting hit by his own bullets because there are no bullet holes in the wall.

edit: aha. Turns out if the enemy has the same name as the ally, the ally will think he is an enemy too, so he kills himself. Just cant have the same name. Well it works fine now, no problems. Nice job there.

DarkFrost
15
Years of Service
User Offline
Joined: 3rd May 2009
Location: ON, Canada
Posted: 19th Jun 2009 23:46 Edited at: 19th Jun 2009 23:46
Ahaha nice exploit there databug Suicidal allies....the war must bet too hard on em

[img][/img]

Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 30th Jun 2009 19:45 Edited at: 30th Jun 2009 20:08
I have notice something buggy with Filefront so i issued a alternative download link

I also will be around these forums less often now. If you want to contact me you can
1. send me a e-mail
2. Post a topic on my forums
3. If you have a playstation 3 you can add me as a friend and we could speak in Playstation Home. My user name is "Gamer_X01"


Bugsy
16
Years of Service
User Offline
Joined: 24th Nov 2008
Location: another place in time
Posted: 30th Jun 2009 23:04
can it have more than 1 ally?
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 30th Jun 2009 23:05
You should be able to have more then one ally, but too many allies usually lead to non-functioning allies.


Scripting
15
Years of Service
User Offline
Joined: 2nd Jul 2009
Location:
Posted: 2nd Jul 2009 21:42
Gamer X i need your help. i downloaded your script and tryed to use it on a character but it did nothing and it crashed the game. Help me please

Firefox
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 3rd Jul 2009 02:14
1. is the folder setup like this - scriptbank\AI Upgrade\(ally,enemy,other)

2. are you placing the scripts in correctly.
Example:

Ally
allymainX - main; allyshootX/allyshootcloseX - shoot

Enemy
paceX - main, shootX/shootcloseX - shoot, leavecorpseX/fadecorpseX - destroy

3. Scripts run on V 1.09 FPSC

4. If the problem persists then post a detailed description of what you did so that I can check and see the problem.


Scripting
15
Years of Service
User Offline
Joined: 2nd Jul 2009
Location:
Posted: 3rd Jul 2009 03:18
ok i need to know if it will work with v1.15

Firefox
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 3rd Jul 2009 04:55
V 1.09 and up, meaning yes


Scripting
15
Years of Service
User Offline
Joined: 2nd Jul 2009
Location:
Posted: 3rd Jul 2009 15:42
I deleted and resaved the file on my desktop then moved it to the scriptsbank of FPSC. then i clean the program and started it up. i put and enemy and an allie and change the scripts for both. then i load the game and the characters just slide across the floor or just turn in place.

Firefox
DocSpoc
15
Years of Service
User Offline
Joined: 25th Jun 2009
Location:
Posted: 3rd Jul 2009 19:02
I have a problem. I set the enemy AI to shootx.fpi, but they just all ran into a wall and stayed there.

Bloodshot eyes since 1995.
Can't build game? http://forum.thegamecreators.com/?m=forum_view&t=143035&b=24
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 3rd Jul 2009 19:30
shootX is for the cover system and shootXnocover is for no cover system.

If you want the cover system, you have to have two flat entities such as the lift or teleport pads and name one "lefta" and the other "righta".

For allies you need to name them "left" and "right"

PLEASE Everyone there is a tutorial on the cover system in the download. it is located int the tutorial folder under the name duotutorial2. If you do not want the cover system then use the shootXnocover or shootcloseXnocover.

ON A FURTHER NOTE: I will be releasing an AI set for enemy that will resemble that of METAL GEAR SOLID. This means that the extra added bonus of stealth can be added into your games.


DocSpoc
15
Years of Service
User Offline
Joined: 25th Jun 2009
Location:
Posted: 4th Jul 2009 19:52
I did what you said, and it still didn't work.. so I just used the non cover system, which is just the enemies go from left to right and firing once in a while.. something they didn't even fire. They just stood there.

Is there something else I'm ment to do, rather than replace the main script with yours?

Bloodshot eyes since 1995.
Can't build game? http://forum.thegamecreators.com/?m=forum_view&t=143035&b=24
CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 5th Jul 2009 13:12
Quote: "Turns out if the enemy has the same name as the ally, the ally will think he is an enemy too, so he kills himself."


Lol, that's awesome!

The video looks really cool, does the ally work without commands, i.e., it just follows the player and shoots enemies, because that would be more convenient...

If we're all God's Children, then what's so special about Jesus?
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 5th Jul 2009 15:45
@DocSpoc, is the ally named ally and the enemy named AI or AIB?

@CoffeeGrunt, I developed these allies to work without commands with the exception of the waypoint system. the allies will follow player, shoot enemies, and continue to follow player without a single button pressed. But in case something horribly goes wrong with the ally in a way such as shooting walls. I left a few command inputs as backdoor controls.

All this information should be in the readme text file that came with the download.


DocSpoc
15
Years of Service
User Offline
Joined: 25th Jun 2009
Location:
Posted: 6th Jul 2009 17:28
The enemy is not named AI or AIB, I never knew I had to do so.

I'm not using any allies, just seeing if the enemy AI is good first. ;o

Bloodshot eyes since 1995.
Can't build game? http://forum.thegamecreators.com/?m=forum_view&t=143035&b=24
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 6th Jul 2009 17:33
They only need to be named that if you are using allies.


science5252
15
Years of Service
User Offline
Joined: 1st Jul 2009
Location:
Posted: 6th Jul 2009 17:45
I've tried useing your AI scripts, but all the enemy and ally do is stand still. I've read your readme file but i can't figure out what im doing wrong.
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 22nd Jul 2009 05:53 Edited at: 22nd Jul 2009 05:58
I am giving you guys an update of what is going to happen (hopefully).

I have a new Idea in making an even more effective targeting system for the ally. When I manage to complete it I will post the update. Going along with the update will be the sneak script that I mentioned somewhere else.

@DocSpoc, I realize that there are some problems with the scripts malfunctioning. I have been helping someone through e-mail in trying to help him and came across this. The most I can say is that I hope that the new installment of the scripts will work when finished.

Question for Everyone: is anyone having trouble with using this set of scripts with a MOD.


The Fps Creator rocks!
16
Years of Service
User Offline
Joined: 24th Oct 2008
Location: Sneaking down your chimney.
Posted: 24th Jul 2009 16:37 Edited at: 24th Jul 2009 16:40
I have a problem, I DO NOT have a mod and the Ally just reloads when he sees the enemy but after that, he just stands still and the gun will play the sound and give off smoke and fire. And the enemy just crouches around him just giving off smoke and fire.

I want a new computer!
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 24th Jul 2009 17:38
Try using this set up;

ALLY
name: ally
main: allymainX.fpi
shoot: allyshootXnocover.fpi

enemy
name: AI or AIB
main: paceX.fpi
destroy: AI Upgrade/other/leavecorpse.fpi
shoot: shootXnocover.fpi


The Fps Creator rocks!
16
Years of Service
User Offline
Joined: 24th Oct 2008
Location: Sneaking down your chimney.
Posted: 24th Jul 2009 21:43 Edited at: 24th Jul 2009 22:01
I'll try that.

Edit: The same but the Ally kills the enemy.
Click the SS.
Oh and he has the Colt 45.

I want a new computer!

Attachments

Login to view attachments
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 3rd Aug 2009 23:08 Edited at: 9th Aug 2009 06:21
For all of those that have trouble with setting up my Ally and enemy scripts. Check the first post for the sample set-up.

Noam Rodrik
15
Years of Service
User Offline
Joined: 4th Aug 2009
Location:
Posted: 6th Aug 2009 22:42
this doesnt work! there is a bug saying 0:0!

NoamRodrikXX22
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 7th Aug 2009 17:24 Edited at: 9th Aug 2009 06:20
1. what version of FPSC are you running

2. It is not met for FPSC X10

3. It is meant to work with V1.9 and up (not 100% that it will work with mods, but no complaints from mod users so far)

Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 24th Aug 2009 00:54
I am releasing the stealth scripts I made for beachard5. I just waited this long so that he could have a fighting chance in the Contest.

Install - copy the Files folder into the FPSC folder.

Terms of Use - free for private or commercial use. If used credit is not necessary but will be greatly appreciated. DO NOT CLAIM AS YOUR OWN.

Attachments

Login to view attachments
Crazy Acorn
15
Years of Service
User Offline
Joined: 16th Mar 2009
Location: Stalking people...
Posted: 29th Aug 2009 06:02
I have a problem with the script. Every time they wont shoot each other until i get close to them. And when im to far the enemy wont shoot. I have to walk in front of him to make him active. How do i fix this. Also they wont follow when they kill the enemy. They just keep shooting the body.

(\__/)
(O.o )
(> < ) This is Bunny. Copy Bunny into your signature to help him on his way to world domination!
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 29th Aug 2009 06:59 Edited at: 29th Aug 2009 07:00
I am no longer going to mess with it until I feel like it. So either leave it or edit it to your liking, after all I do have a life and I don't have enough time to mess with these things.

I do request this thread to be locked.

"Games should not equal greed, but they should equal joy to those that play them, education for those that don't know they are learning, and hope to those who live stressful lives"
Isaac
15
Years of Service
User Offline
Joined: 14th Jun 2009
Location:
Posted: 11th Sep 2009 23:48
Very nice, but it won't work!
Noone shoots eachother or me!
I'll attach my made characters

...
Bugsy
16
Years of Service
User Offline
Joined: 24th Nov 2008
Location: another place in time
Posted: 12th Sep 2009 06:51
ok update FPSC to v1.09

and use the exact set up gamer X has on the front page
DestroyerHive
15
Years of Service
User Offline
Joined: 8th Mar 2009
Location: Ravenholm - pwning headcrabs
Posted: 13th Sep 2009 22:55
Works great! Thanks Gamer X!!!

If every millisecond in your life was 10 problems in the world, you'd be immortal
The Fps Creator rocks!
16
Years of Service
User Offline
Joined: 24th Oct 2008
Location: Sneaking down your chimney.
Posted: 9th Nov 2009 22:01
The ally doesn't detect if the enemy is dead. He keeps on shooting nothing.

Lalala

Login to post a reply

Server time is: 2024-11-25 01:45:09
Your offset time is: 2024-11-25 01:45:09