Posted by: Drummin - Wednesday, January 23, 2008 8:21:28 AM
Hello,
During letterbox mode I want to keep AI from building.
I've used "Idle all units for all players" but that doesn't keep them from building. What do you suggest?
Thanks,
Drummin
[img]http://www.cncgeneralsworld.com/public/files/drummin/Badlands.jpg[/img]
Posted by: fleetatks - Wednesday, January 23, 2008 10:51:09 AM
"Set computer player unable to build buildings/units" and then when your done use "Set computer player able to build buildings/units." I think it's found in skirmish or player->build.
Edit: To stop players from using things use User-> Disable keyboard and mouse input.
Posted by: Drummin - Wednesday, January 23, 2008 3:41:27 PM
[quote]Set computer player unable to build buildings/units" and then when your done use "Set computer player able to build buildings/units." I think it's found in skirmish or player->build. [/quote]
...Copy/Edit for every AI faction.
Got it. Hoping for a more general "non-build" but I can copy and edit.
Thanks Fleetatks
Posted by: Drummin - Thursday, January 31, 2008 2:33:15 PM
Well Fleetatks,
I tried this and it didn't work.
I even tried if True...
*** IF ***
True.
*** THEN ***
Player 'SkirmishAmerica' is unable to build buildings.
Player 'SkirmishAmericaAirForceGeneral' is unable to build buildings.
Player 'SkirmishAmericaLaserGeneral' is unable to build buildings.
Player 'SkirmishAmericaSuperWeaponGeneral' is unable to build buildings.
Player 'SkirmishChina' is unable to build buildings.
Player 'SkirmishChinaInfantryGeneral' is unable to build buildings.
Player 'SkirmishChinaNukeGeneral' is unable to build buildings.
Player 'SkirmishChinaTankGeneral' is unable to build buildings.
Player 'SkirmishGLA' is unable to build buildings.
Player 'SkirmishGLADemolitionGeneral' is unable to build buildings.
Player 'SkirmishGLAStealthGeneral' is unable to build buildings.
Player 'SkirmishGLAToxinGeneral' is unable to build buildings.
Player 'SkirmishAmerica' is unable to build units.
Player 'SkirmishAmericaAirForceGeneral' is unable to build units.
Player 'SkirmishAmericaLaserGeneral' is unable to build units.
Player 'SkirmishAmericaSuperWeaponGeneral' is unable to build units.
Player 'SkirmishChina' is unable to build units.
Player 'SkirmishChinaInfantryGeneral' is unable to build units.
Player 'SkirmishChinaNukeGeneral' is unable to build units.
Player 'SkirmishChinaTankGeneral' is unable to build units.
Player 'SkirmishGLA' is unable to build units.
Player 'SkirmishGLADemolitionGeneral' is unable to build units.
Player 'SkirmishGLAStealthGeneral' is unable to build units.
Player 'SkirmishGLAToxinGeneral' is unable to build units.
DID you have a more general "Computer player" mode in mind? OR another idea?
Intro movie is a minute long or more and AI player should not be using this time to build.
ANY ideas?
Posted by: Me Myself and Pi - Friday, February 1, 2008 3:20:57 AM
Scripts that are intended for the AI & put in the PlyrCivilian folder don't work. There needs to be a script for each AI player in their folders. So create a script like you did, except just have unable to build units & put any more scripts in each of the folder that allow the AI to build units again. Then just copy that script so that you have one in each of the Skirmish Player's folders. But this will disable the rest of the skirmish player script from activating in your map. Because of this, you'll need to import them into your map. The skirmish scripts are located in your game directory, but they don't import right for some reason. You can download them from Cncmaps's forums & they will come in right. http://cncmaps.net/index.php?showtopic=648
Posted by: Drummin - Friday, February 1, 2008 8:55:45 AM
Well Me Myself and PI,
I'm not sure what went wrong.
I've spent hundreds of hours on my intro movie and now after importing the skirmish scripts, things are all messed up. Seems there are many civilian files that came with your download as well. And what about those garrision scripts with named units? Those seem to be custom scripts and not part of normal faction scripts????
To top it off, AI still built through the movie.
Not sure how to restore what I had. Things are sure messed up now.
Posted by: Drummin - Friday, February 1, 2008 10:32:23 AM
Hey Me Myself and PI,
Sorry for the panic post... A few Ctrl-z's and I was back to pre-import mode. I'll have to look at those AI scripts on a new map. Seems like an interesting place for moding AI behavior.
Posted by: Me Myself and Pi - Saturday, February 2, 2008 6:47:16 AM
Well I just tried importing those scripts into a map & they came in fine. Did you use the scripts from cncmaps.net? Or did you import the scripts from the game directory? Importing the scripts from that download should make them look like this picture:
[img]http://www.cncgeneralsworld.com/public/files/Me Myself and Pi/New Picture.jpg[/img]
[size=2] 56.32 KB[/size]
Be sure to uncheck "Auto Verify" before importing the scripts. Verifying all those scripts takes a long time! Also, be sure you're done with all your other scripting because it takes about 30 seconds to load up the script menu with all those skirmish scripts each time.
Posted by: Drummin - Saturday, February 2, 2008 11:53:43 AM
Ya....
I downloaded from cncmaps.net via the link above.
And yes, I do know to uncheck the "Auto Verify" when adding scripts. I'm not sure why those scripts changed the function of the scripting I had already done.
I have a copy of your scripts in a new directory and will look at them when I have the time.
I scripted a work-around for the issue I was having by making basic buildings ie. powerplants, barracks and bulldozers/workers unbuildable during opening movie. Seems to do what a needed it to do.
Thanks for your help.
Posted by: Drummin - Saturday, February 2, 2008 11:57:28 AM
By the way,
The scripts loaded into the map just fine though I'd still like to know about those missing named units.
The problem was the interferience with the scripts I had made.
Posted by: Me Myself and Pi - Sunday, February 3, 2008 5:58:51 AM
If you want, in any custom maps, you can name buildings certain names. Then the AI will garrison those buildings. If look around in official maps in the World Builder, you'll see that some of the buildings have those names. If you want to look more into this, check out this topic I posted over at Cncmaps's forums. http://cncmaps.net/index.php?showtopic=1749
Sorry about that picture in my last reply, I uploaded the wrong one I was using in another topic, lol. I've changed it to the correct one.