Yoshi714
  • Yoshi714
  • 100% (Exalted)
  • Major Topic Starter
18 years ago
Hello, I am new here, and have a question about map making...

I've been making maps for a while now and have good understanding of the tools up until you get to scripting and build lists. I have fooled with it a little but not very successfully, and would like to know how to do one thing. I want my computer AI guys to rebuild thier command center when it is destroyed. Simple enough I would think, but I can't get it to work in scripting it always makes the computer have no intellegencs once im in the game even though skirmish players are still added. I'll add the file to this post, that should help you see my map atleast. Thank you in advance!

Josh
Turtling is not a strategy, its a weakness
Sponsor
Me Myself and Pi
18 years ago
Well, if you're able to destroy its command center, shouldn't you be able to destroy the rest of his base? I guess you could use Black Lotus...

http://cncmaps.net/index.php?showtopic=648&hl=skirmish 
Take note note that after you import them it will take about 30 seconds to load script menu, because there's so many! But it really only takes a few seconds to import them. Be sure to uncheck Auto Verify before importing.
Yoshi714
  • Yoshi714
  • 100% (Exalted)
  • Major Topic Starter
18 years ago
No I can defeat skirmish players easily enough, I'm trying to make maps here, but to make an added difficulty I want the computer player to rebuild his command center if I destroy it since its too easy to hunt down bull dozers after its gone nad slowly pick off his base. I just cant get the script to make the computer rebuild it. do you have any ideas?
Turtling is not a strategy, its a weakness
Yoshi714
  • Yoshi714
  • 100% (Exalted)
  • Major Topic Starter
18 years ago
I downloaded the scripts from that page, there is a lot of interesting pieces to the AI in the game apparently, I'm somewhat new to this but I'm good with computers and logical types of statements so I'm catching on. Still doesn't solve my problem, but you opened up a new world of options for me by showing me that link!
Turtling is not a strategy, its a weakness
Blbpaws
  • Blbpaws
  • 100% (Exalted)
  • Administrator
18 years ago
Yes, you'll need to import the scripts, as he said, then write one of your own that will force the AI to build a command center. I don't remember exactly, but it's something along the lines of IF Player HAS LESS THAN OR EQUAL TO 1 Unit or Structure of Type Command Center, THEN have Player construct Unit or Structure of Type Command Center. I'm just guessing, but it's something along those lines. Look around in the script menus.

Also note that the AI is very finicky. I'm not sure if we ever got it to rebuild a Command Center for All Stars. AI scripting takes a lot of practice and can be extremely frustrating.
UserPostedImage
Yoshi714
  • Yoshi714
  • 100% (Exalted)
  • Major Topic Starter
18 years ago
Hmmm ill give that a try, so far i tried doing the whole if unit of type command center is destroyed than build.... but nothing happens. do i have to have all those other scripts already imported? i mean i brought them in on one map, but isnt all that incorporated into just adding skirmish teams?? i mean if you play a map that doesnt have all those added in the computer still builds and expands as normal based on teh perimeters and such
Turtling is not a strategy, its a weakness
Yoshi714
  • Yoshi714
  • 100% (Exalted)
  • Major Topic Starter
18 years ago
OK, so using the scrip you guys showed me, I found one of the scripts that has the player build a stinger sight at a supply depot containing so much cash, well I just changed it to command center, and that is a HUGE step towards what I am trying to do... Unfortunately it still limits the number of command centers the computer will build as they are destroyed so ultimately the destruction of one should prompt the construction of another, but I'm still trying to figure that out, any more ideas are greatly appreciated! one more thing, it wont let me upload my map to this, it says im not logged in, but i am, any thoughts??
Turtling is not a strategy, its a weakness
Me Myself and Pi
18 years ago
Make sure your map is in a ZIP folder before uploading.

You could try something in AIData.ini file. For all the buildings there's a part where it says "Rebuilds = 0". Maybe raising the number might do it. Let me know if you don't know how to create Map.ini (To modify just a map.) or how to modify the whole game with it.
Yoshi714
  • Yoshi714
  • 100% (Exalted)
  • Major Topic Starter
18 years ago
Could you teach me how to edit that .ini file? i downloaded the BIG program so that I could edit one of the official maps (twilight flame to fix its lagging), so I already have that.

I managed to get the computer to rebuild thier commmand center if it is destroyed, the only problem is that they have to rebuild it near a supply zone, and if there is no space, due to stinger sites, tunnel network and supply depots than they dont do it bercause that command center is so large. I have also gotten them to just build a second right off the start which is next to the supply's too but at the start there is plenty of room. I would really like to do what you are saying with editing that file so its already built into rebuild it... Ultimately I want to make the computer better, because its gotten too easy for me and my friends to defeat them, and defeating each other just makes us edgy... I also noticed how much free money the computer gets during the game, either to make up for bugs or as an increase in their difficulty and I plan to adjust some of those as well.
Turtling is not a strategy, its a weakness
Me Myself and Pi
18 years ago
http://www.cncgeneralsworld.com/advancedaimod/ 

If you still want to edit that INI file, I need to know weather you want to modify it in just one map or the whole game.
Yoshi714
  • Yoshi714
  • 100% (Exalted)
  • Major Topic Starter
18 years ago
Well actually, I dl'd the AI beta .95 thing, installed it and played 1v1 agasint a super weapon on a 6plyr map, i wanted to see how much better the computer had become at expanding and what not. I took out his main base fairly early to wait for the rebuild and he did in fact rebuild it so I was happy about that. Also, i found that ini file that i think is called default/AIdata?? and the one that the mod placed in the new INI folder called the same thing (except that one not being BIG makes it easier) and i looked for differences. I noticed that next to the line for "rebuilds" the mod had placed a 1 there instead of the 0 in the other file, now, what i havent been able to figure out is rather that one means rebuild it once or if 1 = yes and 0 = no. I also took one of those build lists at teh bottom of the mod AIdata file and went into world builder and placed the building with the coordinates that were in the file. my reason for this was so that I could add buildings while making sure that they didnt over lap each others location, I added a nuc and put it at a funny angle so id know for sure if they built it. the nuc was same faction and everything, but did not build in the game i loaded up after. Not only that, but the china tank sirmish player didnt even put his buildings in the same arrangement as I had taken from that file??

At this point i guess im wondering what else has to be done besides etiting that build list to get the computer to build a new building, and what other files were altered when I installed that mod? ive learned a lot just exploring and changing things and testing it out, but id really like to know this system well enough to make this computer damn near unbeatable because that super weapon gen was still a lil too easy....
Turtling is not a strategy, its a weakness
Yoshi714
  • Yoshi714
  • 100% (Exalted)
  • Major Topic Starter
18 years ago
sorry, i didnt answer your question, most of what id like to do id like to be applicable to any map official or non official that i play, so the whole game. to do it map by map do i have to import the scripts file and change it on that map??
Turtling is not a strategy, its a weakness
fleetatks
18 years ago
In code language; 0=no, 1=yes, and -1=infinate. A lot of codes for all kinds of software and games use this method.
Email me if you ever need help (edited signature November 6th, 2014)