Oberscht
  • Oberscht
  • 53.75% (Neutral)
  • Private Topic Starter
18 years ago
Hi,
I like to watch the AI players fighting each other. So I modified a map, making me putative unattackable: No way up to my plateau, no waypaths, no combat zone. But ingame its different: The AI is attacking me with planes and helicopters. Likewise they try to get their tanks up the mountains and produce a "tank traffic jam" around my plateau.
So is there a way to make a passive AI not attacking the player's base?
Sponsor
Yoshi714
18 years ago
You know you can just surrender at the start and then watch the game from the observer view, its what I do, you may also be able to make "observer" a playable side if you go into the playter template. Unless you are trying to be around to change the tide of battle or something, but I just do this for testing.
Turtling is not a strategy, its a weakness
Oberscht
  • Oberscht
  • 53.75% (Neutral)
  • Private Topic Starter
18 years ago

Unless you are trying to be around to change the tide of battle or something


Thats the point! I want to be unharmed, but I also like to drive around with my Jarmen Kell, shooting some tank crews and infantery and maybe some little attack with some tanks. Guerilla-like, so to speak.
Yoshi714
18 years ago
Well... this is somewhat foreign to me, but have you tried going into he scripts for that map and overriding the teams? making everyone neutral to the player at PlayerStart_# (whichever one you are at). I think ive seen something like that in there, but I have never used it.
Turtling is not a strategy, its a weakness
Me Myself and Pi
18 years ago
Are the AI players on different teams?
Oberscht
  • Oberscht
  • 53.75% (Neutral)
  • Private Topic Starter
18 years ago

Are the AI players on different teams?

Me Myself And Pi wrote:


Yes, they are.
Me Myself and Pi
18 years ago
Well, it is possible to create some scripts that will have the AI consider you as neutral. Then when you move off the cliff have the AI consider you as an enemy. Would you like instructions to do that?
Oberscht
  • Oberscht
  • 53.75% (Neutral)
  • Private Topic Starter
18 years ago

Well, it is possible to create some scripts that will have the AI consider you as neutral. Then when you move off the cliff have the AI consider you as an enemy. Would you like instructions to do that?

Me Myself And Pi wrote:


Yeah, that would be nice. But wouldnt that mean that when I move my units off the cliffs the AI will start to attack my base? Or is it possible to turn just the units to enemies?
Yoshi714
18 years ago
I think what Pi is saying is that the computer would consider anyone in a certain polygon to be neutral, so your base sitting on the clif would be fine just not the units that go down the mountain looking for a "I am God" like adventure.
Turtling is not a strategy, its a weakness
Me Myself and Pi
18 years ago
Yoshi, I don't thinks that possible unless the units are prenamed or are in a team. But since their built by a human player, that just not possible. So create these scripts in your map:

Make Enemies:
*** IF ***
    Player '<Local Player>' has Greater Than  0  within area  area 'Computer Players'
*** THEN ***
   Player '<This Player>' considers Player '<Local Player>' to be Enemy
   Player '<Local Player>' considers Player '<This Player>' to be Enemy
  Enable Script 'Make Neutrals'.

Make Neutrals:
*** IF ***
    Player '<Local Player>' has Equal To  0  within area  area 'Computer Players'
*** THEN ***
   Player '<Local Player>' considers Player '<This Player>' to be Neutral
   Player '<This Player>' considers Player '<Local Player>' to be Neutral
  Enable Script 'Make Enemies'.

has to be used here because a copy of these scripts need to go in each of the computer player's folders. then won't work.

Be sure to create a trigger area that contains the whole area the skirmish players are that doesn't include your base.

So create those scripts & copy them. Move the copies into each of the computer player's folders so that each skirmish player has one copy of these script. Doing this will prevent the skirmish scripts from working in your map. So you'll need to import them. Importing them from the game directory will put the scripts into the wrong folders so download & use these  instead. Be sure to uncheck Auto Verify first though.

When you're finished with that, the computer players should attack your units when you attack the AI & will then ignore you if you don't have any unit in that area.
Yoshi714
18 years ago
Pi why is it everyone else cant import the skirmish scripts straight from the game folder? i tried it on mine and checked the scripts and they were in the correct folders, so i ran the map with them and the AI worked fine... why does mine work and everyone else has to get it elsewhere?


Turtling is not a strategy, its a weakness
Me Myself and Pi
18 years ago
Are you sure they import into the correct folders? Like you might see the scripts with USA in the names while it's in the SkirmishChina folder. If so, then you might've fixed them yourself or downloaded the correct script & place them over the original, or have downloaded a mod that had them fixed. Or maybe you have the skirmish players arranged in the order that the script come in, but I don't think that'll work.
Yoshi714
18 years ago
i play off the decades disk, would that have any effect? anyhow, yea, i checked they are in the right folders. i imported those from the game directory before i ever downloaded any mods.
Turtling is not a strategy, its a weakness
Me Myself and Pi
18 years ago
That might be. But are you using just Generals, or Zero Hour. In Generals, the script do import into the right folders.
Yoshi714
18 years ago
ZH - Always

One downside to the decades disk though for me is that it wont let me run my screen resolution at 1600 x 1200 on my other monitor, it wouldnt stretch it on a 1680 x 1050 screen, only on the regular Gen w/ ZH would it do that. I have legal copies of both the decades and just Gen/ZH. My current screen though runs 19 x 12, so it stretches, so its not a problem so I'm running on the decades disk.
Turtling is not a strategy, its a weakness
krit
  • krit
  • 100% (Exalted)
  • Commander in Chief
18 years ago
Go to [My Documents\Command and Conquer Generals Zero Hour Data] and find Options.INI. Open it and find the line saying "Resolution = #### ####" where #s represents numbers. Change it to the screen resolution you want, of which in this case will be "Resolution = 1680 1050"
UserPostedImage 
Yoshi714
18 years ago
I suppose I can do that Krit, but the control bar scheme (not the buttons or anything interactive, but the actual silver doodadie they have around it) wont be the right size will it? From what I could see in the files it only comes in the sizes listed in the options window. I'll give it a try, but I'll actually try it at the res I run this monitor on and see what it says. I think the play area will look fine, I just dont think the format of everything that surrounds the control bar will look normal.

EDIT - I tried it, 1680 worked fine, although it had a hard time starting up, not sure why, but once in game it was ok. Stuff looked a lil funny, text mainly but maybe the game just didnt know what size font to use at the resolution. 1900 didn't work though. Damn..
Turtling is not a strategy, its a weakness
krit
  • krit
  • 100% (Exalted)
  • Commander in Chief
18 years ago
I'm running on one that I typed in myself (Resolution = 1280 1024) and it's working fine from here...
UserPostedImage 
Yoshi714
18 years ago
Hmmm... im going to assume the game engine just can't handle anything higher than 1600 x 1200 then. I got a Direct x 8.0 error when I tried (said I didnt have it) I have 9 so that is not the issue. Maybe Direct x doesnt like the resolution although it runs other games I have at it. Doesn't matter, I am fine with what I'm using. Thanks for the suggestion though, that does solve the problem of not being to play on my other monitor on the res I want.
Turtling is not a strategy, its a weakness