HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Commander the AI MOD

09-06-2002, 05:01 AM#1
DKSlayer
Hello Everyone,
I worked on the AI Tons when it was Beta. After the REtail came out I have not heard anymore about AI. I was playing some games with the comp even a team game. IT SUCKED. I got attacked by the other team of two comps, yet my team mate just kept doing his own thing. Bugged me so much I thought I would get back on the AI wagon.
I have not seen anything regarding AI, nor do I know exactly where to post this so it's going here. I am thinking about making it to where you can Sorta order your Computer team mates around using the Chat Box. You could type different messages like. "Blue, I need Help Lots" and just change it to be little or son on to get more or less tropps sent to help you. Also make it to where it can give donations if you ask. I am thinking of a couple of other things to use. I have been thinking of maybe using a Box like the Leaderboard box, that will take a lot more Time. But that is about it. I should get on it soon. If you have any idea's or would like to help please post.
I hope not to get pulled away. My friend just got me AOE 2 So I will use my will power. Thanks.

-----------------------------------------------------------------------------
Killing those annoying DeathKnights one at a Time.
DK No More 342-KILL
09-06-2002, 08:32 AM#2
wacko
Well, the AI code for this game is actually pretty simple even though it looks mad insane. I would say what you are asking to do is possible, but it would take a total re-write of the AI code or at least a part where you would have to add those commands and then of course you could use that along with triggers to make it all work.
09-06-2002, 03:13 PM#3
DKSlayer
Yea, the AI may look totally insane but it is not that bad. I remember when we ,over at war3pub, were so happy when I was able to get it too build a farm. That was a lot of fun. Of course in the beta the common.ai had some less commands. Did you ever get an AI file and play against the computer with beta?

But anyways. I have found the Chat related commmands that I will need to use some under commmon.j I am trying to deciede if I want to put the commands I need in the main .ai file or under each individual race. I am thinking I could also make it dialog driven like the above Sticky:Topic. But for now I'll do it using the Chat Box.
09-06-2002, 05:58 PM#4
DKSlayer
I have been looking at what I need to get this done. It will be taking a lot of scripting and some Idea's one what everyone would like for it to be able to use.

My Idea is basicly allowing a Computer AI to run by itself but you have the access to be it's commander. You can ask it for donations of moneym wood. You can get it to scout, To assist you if you are being attacked. You can have it Help you attack a base. and many other tasks that you guys may come up with. Think of the Awsome 2vs2 or team games. They would Rock.

I would then like to develop a program to allow you to change the wording for the commands. For example here might be a Command you might use, "Comp attack Blue in 15." You could change certain words to make it like this. "Slave Blast Blue in 15." This would come after we got that commands working without many problems.

I would like to get a team together for this. 2 Good Scripters, one guy to Help with Ideas, Documentation, and an Installer. I already take one of the scripting slots so that leaves only two more slots open.

Scripter - DKSlayer
Scripter - Open
Other Guy - Open.

If you would like to help. PM me. Catch me on MSN @ [email protected]. Post here. Or email me at [email protected] .

Any one who has ideas or comments please also post. Thanx
09-06-2002, 09:49 PM#5
wacko
well, i understand a lot of the AI, so i will offer what help i can.
09-06-2002, 10:28 PM#6
DKSlayer
That rocks. I would like to get it to where we can get it to at least acknowledga Something we type in either today or tommorrow. Depends on how much work I have.
Could you please post if you use ICQ, Yahoo, or MSN? I would like to get chatting on this soon. Probably about 9 - 10 pm MST tonight. See ya then or sooner.
09-07-2002, 03:15 AM#7
DKSlayer
Bummer he left he was real good. I try and snag one of those guys. I would like one more guy one this.

I was also thinking for if we enabled such a feature. The problem would be RPG maps where a computer player is own your team, that could cause some problems with the Map. I am thinkin of adding a Script that Checks to see if the Map has a certain Variable for example They would add a variable, Chatcommand and set it to false. That would siable the Commands. But if it's set to True or has no such variable then it goes ahead with the Commands.

Continuing to work out the Idea's but am relaxing until later tonight not too mention I have a big party I am going to tomorrow. But I can't to get it crankin.
09-07-2002, 08:03 AM#8
wacko
my icq is 83585319
09-07-2002, 11:41 AM#9
the_vampire
Are you making AI again? Sounds good. The command option is something I tested in the beta and it worked. The current AI scripts seems a little different but it should be possible.
One big AI mistake is how much it depends on heroes. It might have lost its city hall and still it uses its last gold on a hero. It should be more cooperative in multi and be better at rebuilding when low on resources. Also the random AI scripts would help I think. So it might sometimes attack in the beginning intead of just creep hunting, and maybe make 3 heroes now and then.
Maybe I can help but currently I am moving in an apartment and I might be offline for a period of time. Hopefully not long.
Try making simple AI commands. It could pick up all commands starting with player(player number/name/??) and then the command like attack now, or defend your base/mybase.
If this works well then we might also find out how to make commands telling the comp to assist hero 1,2 or 3. That would be very usefull.
You made very good scripts back in the beta DK, I hope it will prove usefull in retail since AI is not as good as it could be.
09-09-2002, 06:35 PM#10
DKSlayer
Hey everyone, getting some stuff done finally. I had hopped to use an external AI file and have it excuted when the computer ran. In doing that I had modded the Blizzard.j and also had to mod the one in the .mpq . When I had figured that Out then that it wouldn't work for some reason, I talked with some guys on IRC. StonedStupid, Skull, and Golden(Something Can't remember last PArt) but they suggested using a trigger in the map to run the .ai file that didn't work either.

I then tried to resotre the Blizzard.j that wasn't modded. And My MPQ was giving me crap so that whole day was spent Finally getting it to work again. Finally restored it. I then decieded to integrate into the Map.

Then my World editor Was giving me crap no matter what I did whenever I would save a map it would say Expected a NAme yada yada. GRRRR I was getting ticked. Even when I would open a Retail map(Blizzard) and just save it same thing. When you start yelling at your computer you know you sre starting to get mad. I looked on the forums so said reinstall. Di that same thing. I started to yell some more with my hands on the sides of my monitor. Then some guy suggested I Delete all worldeditor related Regisrty entries. Did that Reinstalled and Finally it worked.

After all that Crap the map I was creating to bundle with the commands. Had been Brutally Deleted. AHHHHH. SO I decieded I would make all the command stuff work. Then work on the Muliplayer Custom map. Bundle them, RElease it then work on the Program to custumize the Commands.

I am finally getting results. I can get it to say back stuff when I send Chat messages to it. I am Now working on making it figure out if the Chat message was directed to the Computer. If so then figure out who said it and too which Computer. After that I will then get it to start working on actual commands. I am finally starting to get somewhere. Well I'll report back after I get some more done. I ahve been keeping a journal of hte Proceedings, I might release it in the zip with the Map. We'll see. Later
09-09-2002, 07:37 PM#11
Guest
I think the commander idea is awesome :) I've thought about it before, and I've often wished for this type of feature in many games.
09-13-2002, 09:38 AM#12
DKSlayer
OK I thought I would give a progress report. I am pretty far and mighty happy.

I have completed the Parser so that I can take the Chat commands put the words into Variables and compare them to get what I wanted done. It can do any ammount of words so my previous plans might change some.

I have also Completed my Color to Player ID Converter. It works I think I need to do one commmand to test it but an theroy it works. And I have had it validated without any errors. so no probs there. I will need to add some more code in certain spots because of bugs I can already forsee.

But after that I am into Developing the commands, some may go quick and other slower. I would really like everyone to post their Idea's on what they want this to do. I have had many cool Idea's brought to my attention. So please post them here. Thanks guys and I'll keep you updated. Might even have screenies of it working soon.
09-13-2002, 01:39 PM#13
Guest
i guess scripting a new ai could be easier then trigger every command for the comp that you can use...hope it will be good.:)
09-13-2002, 10:22 PM#14
weaaddar
I haven't really touched ai but i'm a guru jass scripter...why not but I dislike your anti Death Knight ways we infested terrans gotta stick together you know...
09-16-2002, 03:49 AM#15
DKSlayer
Sorry Weaaddar,
In war2 I really disliked the DeathKnights(Awsome in all) But they would attack and run, it Bothered me so much I always killed them and the Temple of the Damned first. Hence the name, anyways.

I am looking for a mapper right now that might like to work on a map for the Commander. It would be a melee map. At least 4 people I am thinking 6 to 8 would be better to my liking. You will be giving Credit All the way for your map. This gives someone the chance to get their map skills under the light. If you are interested please post here, and also an example of your work. Thank You.

I am going to try working this out soon. I could make a map for the commander, but it would take longer, and I'll have the Unreal Demo soon and then I might not have much time for work.