Staredit Network

Staredit Network -> UMS Assistance -> [SOLVED] Need help with AI
Report, edit, etc...Posted by psionicbattousai on 2007-01-29 at 20:09:03
I've got a question. I've got a map i'm working on where after you rescue a certain hero unit, he flies over to the area you start at, and begins building a base and stuff. My problem is, no matter what triggers I use, the computer just builds a Nexus, lots of probes, and an extractor, which it never uses. I can't figure out why it's doing this. Any ideas?
Report, edit, etc...Posted by xmrxsiegecopx on 2007-01-29 at 20:24:14
Use one of the harder AI scripts, such as Protoss Insane. It also has to have the ability to build most things and the minerals/gas to build them. the computer also should not run multiple AI scripts.
Report, edit, etc...Posted by psionicbattousai on 2007-01-29 at 20:29:53
QUOTE(xmrxsiegecopx @ Jan 29 2007, 08:24 PM)
Use one of the harder AI scripts, such as Protoss Insane. It also has to have the ability to build most things and the minerals/gas to build them. the computer also should not run multiple AI scripts.
[right][snapback]620457[/snapback][/right]


Does this include the Harass script?
Report, edit, etc...Posted by xmrxsiegecopx on 2007-01-29 at 20:41:44
The higher level AIs already harass enemy players, so that AI script is not necessary at all.
Report, edit, etc...Posted by psionicbattousai on 2007-01-29 at 21:23:42
Sigh. It still won't work. He just mines, and mines, and mines...
Any ideas about what else could be wrong?
Report, edit, etc...Posted by xmrxsiegecopx on 2007-01-29 at 21:44:29
Is the race of the computer the same as its AI script?

Did you run the AI script at its mining area location?

Does the computer have any enemies to attack?

Does it have the tech tree and resources to build what it wants to build?

Are any triggers messing with it to the point where it acts differently/irregularly?
Report, edit, etc...Posted by psionicbattousai on 2007-01-29 at 21:47:41
QUOTE(xmrxsiegecopx @ Jan 29 2007, 09:44 PM)
Is the race of the computer the same as its AI script?

Did you run the AI script at its mining area location?

Does the computer have any enemies to attack?

does it have the tech tree and resources to build what it wants to build?

Are any triggers messing with it to the point where ti acts differently?

[right][snapback]620518[/snapback][/right]


The race is correct, both are protoss.

I ran the script at the mining location.

There are 4 enemies all over the map. ( It can and will attack computer enemies, right?)

It has resources, and can build anything.

What kind of triggers could mess with it? I don't think anything is, but I'm not sure.
Report, edit, etc...Posted by xmrxsiegecopx on 2007-01-29 at 21:49:59
Post your triggers or map.
Report, edit, etc...Posted by psionicbattousai on 2007-01-29 at 21:56:19
QUOTE(xmrxsiegecopx @ Jan 29 2007, 09:49 PM)
Post your triggers or map.
[right][snapback]620522[/snapback][/right]


nm, dumb question

Also, another problem. I'm using SCMDraft 2.0, and my mission briefing always disappear as soon as I close the window. Any clue why?

Edit: I know it's a mess, it's still in the early stages. Bring 12 units to Gantrithor, he flies down by your base, builds, and helps you kill the enemies.
Report, edit, etc...Posted by Falkoner on 2007-01-29 at 22:48:07
Well, it seems you STILL haven't gotten rid of the harass AI, try getting rid of it and see if that works.
Report, edit, etc...Posted by psionicbattousai on 2007-01-29 at 22:50:49
QUOTE(Falkoner @ Jan 29 2007, 10:48 PM)
Well, it seems you STILL haven't gotten rid of the harass AI, try getting rid of it and see if that works.
[right][snapback]620552[/snapback][/right]


...I got rid of harass AI...
Report, edit, etc...Posted by PCFredZ on 2007-01-29 at 22:56:17
Isn't Protoss Campaign Insane designed like all Campaign level AIs? They're supposed to start off with a ton of resources, build a town slowly, and harass over time.

Try the Custom Level AI but take a grain of salt. AIs for Starcraft are just about as stable as the patch versions for the game.
Report, edit, etc...Posted by psionicbattousai on 2007-01-29 at 23:00:03
He starts off with 2000 ore and gas...

Plus, i've watched for a while, he doesn't like to do anything. He doesn't even harvest vespene, or build pylons. sigh. With or without the fast build cheat. (which is nice for testing stuff).

EDIT: I'm guessing something is wrong, because I've tried the custom level one, and a few others. Nothing seems to work.
Report, edit, etc...Posted by xmrxsiegecopx on 2007-01-29 at 23:07:19
I did some testing, and apparently the computer won't do much because it doesn't think it needs pylons since it has them in the middle of the map, and therefore it mines resources mindlessly until its excess pylons die.

Basically, it was trying to build a gateway but it can't because of the unwalkable terrain barriers and won't build pylons for the above reasons.


QUOTE
Also, another problem. I'm using SCMDraft 2.0, and my mission briefing always disappear as soon as I close the window. Any clue why?


Update your current version of SCMD.
Report, edit, etc...Posted by psionicbattousai on 2007-01-29 at 23:11:36
So...maybe a trigger so the enemy attacks the middle of the map like crazy as soon as the player sends 12 units to Gantrithor?
Report, edit, etc...Posted by xmrxsiegecopx on 2007-01-29 at 23:13:18
Or remove the cannons and pylons/give them to another player.
Report, edit, etc...Posted by psionicbattousai on 2007-01-30 at 00:16:36
QUOTE(xmrxsiegecopx @ Jan 29 2007, 11:07 PM)
I did some testing, and apparently the computer won't do much because it doesn't think it needs pylons since it has them in the middle of the map, and therefore it mines resources mindlessly until its excess pylons die.

Basically, it was trying to build a gateway but it can't because of the unwalkable terrain barriers and won't build pylons for the above reasons.

Update your current version of SCMD.
[right][snapback]620559[/snapback][/right]


How exactly did you know that that was what's going on?
Report, edit, etc...Posted by xmrxsiegecopx on 2007-01-30 at 00:26:58
All I did a lot of testing and applied logic to the situation (Debugging is one of my favorite parts of map making too tongue.gif).

So has your problem been resolved?
Report, edit, etc...Posted by psionicbattousai on 2007-01-30 at 00:34:50
QUOTE(xmrxsiegecopx @ Jan 30 2007, 12:26 AM)
All I did a lot of testing and applied logic to the situation (Debugging is one of my favorite parts of map making too tongue.gif).

So has your problem been resolved?

[right][snapback]620578[/snapback][/right]


Yes. Thank you for all of your help. If you don't mind me asking, what steps did you take to discover what he was trying to do? I'm curious to learn this kind of stuff.
Report, edit, etc...Posted by xmrxsiegecopx on 2007-01-30 at 00:44:19
After downloading the map, I first checked the triggers for any flaws, such as a wrong player or wrong AI, then went on to find any in the unit settings to see if the computer can afford and build anything. I also checked the locations and the enemies if each player.

After finding nothing wrong so far, I decided to play-test the map to see why the computer wasn't working with its AI script. after the computer starts to build, it doesn't do much but mine.

My first assumption is that it needed to have its nexus created rather than built. Next, I tried it running the Ai script at the start at the map, still to no avail.

Then I started to think that maybe that it WAS trying to build higher in the tech tree, and that came up with my theory: the computer only builds pylons when it needs to. Basically, having pre-placed pylons fools the computer into thinking it doesn't need to build more pylons until later, and proceeded to attempt to build a gateway, but couldn't because of the terrain barrier. I tested it, and it basically ended in the discovery of the situation's problem.

>Solved.
Next Page (1)