Posted by: kanTANKerous - Tuesday, September 18, 2007 6:37:30 PM
I've built a map to learn; so far the trains are goin round, the cars in town are chasing each other around, and I've got a river. All these things and a few scripts are working fine. I've done exactly as the various tute's say to get your AI fired up. Well the GLA is all dressed up but she won't dance(won't build, won't fight).
I've gotten bored and just keep adding "eye candy" probably [b]too much[/b], but WTH it's fun....ok so what's the st00pid mistake we all make in the beginning?[img]http://www.cncgeneralsworld.com/forums/images/speech/icon_speech_duh.gif[/img]
p.s. I will have to learn how 2 zip a file if needed.
Posted by: Me Myself and Pi - Tuesday, September 18, 2007 8:32:13 PM
It sounds like you have an extra GLA AI player in the player list. Go to the player list I see if you have a "PlyrGLA" player there. (This player gets created when you want to place an object in the GLA army if you haven't yet added the skirmish players.) If you see a "PlyrGLA" player along with a "SkirmishGLA" player, then delete the "PlyrGLA" player. It should work fine if that's the problem.
If this doesn't help, then upload your map in a ZIP folder (To create a ZIP folder in window explorer, right click in the window to open up a shortcut menu, move you mouse over "New>", & click on "Compressed (zipped) Folder". Now go click & drag you map folder over the ZIP folder, a copy of your map will be placed in the ZIP folder.) so I can look at it.
Posted by: fleetatks - Wednesday, September 19, 2007 1:45:35 PM
Sometimes If you move scripts inside of plyrciviln to neutral folder they will somehow make the AI work. But Moving scripts that show messages or do anything like that to the player(s) won't work unless inside of it.
Posted by: kanTANKerous - Thursday, September 20, 2007 10:30:09 PM
Hey MM&P, Thanx for the quick reply, I admire you, fleetatk and, krit for mentoring us aspiring armchair generals along the way you do, if I missed anybody[sad] sorry I"m new around here. Anyway call me hard headed but before I give up and upload my map for your assistance I've decided to make a dirt simple map without all the lights and whistles and try to get it to work. Fleetatk added his 2 cents worth on the subject and his point is very good, I have already noticed that my scripts in both "GLA" and "CIV". work while scripts in "localPlayer" do not. By the way - there were no "extra players" but thanx 4 da heads up on that detail. Sorry... wont be so long winded in the future. Hasta la vista suckas, thanx again [quote=Me Myself And Pi]
It sounds like you have an extra GLA AI player in the player list. Go to the player list I see if you have a "PlyrGLA" player there. (This player gets created when you want to place an object in the GLA army if you haven't yet added the skirmish players.) If you see a "PlyrGLA" player along with a "SkirmishGLA" player, then delete the "PlyrGLA" player. It should work fine if that's the problem.
If this doesn't help, then upload your map in a ZIP folder (To create a ZIP folder in window explorer, right click in the window to open up a shortcut menu, move you mouse over "New>", & click on "Compressed (zipped) Folder". Now go click & drag you map folder over the ZIP folder, a copy of your map will be placed in the ZIP folder.) so I can look at it. [/quote]
Posted by: Me Myself and Pi - Friday, September 21, 2007 4:16:46 AM
Well I was implying that this is a skirmish map. Is it a single player map? It sounds like you were going to upload the map, [quote]Anyway call me hard headed but before I give up and upload my map for your assistance I've decided to make a dirt simple map without all the lights and whistles and try to get it to work. [/quote] but I don't see it uploaded.
Posted by: kanTANKerous - Sunday, September 23, 2007 2:44:14 PM
It is a skirmish map, and I have figured out that it's the scripts that are hosing the AI. I'm mostly trying to spawn GLA teams but I just can't figure the rules out. Now the scripts are spawning teams but the GLA still Wont Fight. Here is my little test map. If someone could insert at least one working "spawn script" to each player I would be greatfull.][i]Originally posted by Me Myself And Pi[/i]
Well I was implying that this is a skirmish map. Is it a single player map? It sounds like you were going to upload the map, [quote]Anyway call me hard headed but before I give up and upload my map for your assistance I've decided to make a dirt simple map without all the lights and whistles and try to get it to work. [/quote] but I don't see it uploaded.
[/quote]
[b]Download Attachment:[/b] [url=http://www.cncgeneralsworld.com/public/files/kantankerous/Mission test 1.zip][img]http://www.cncgeneralsworld.com/forums/images/icon_paperclip.gif[/img] Mission test 1.zip[/url]
42.38 KB
Posted by: Me Myself and Pi - Monday, September 24, 2007 8:11:35 AM
Okay, I know what the problem is now. You put scripts in the SkrimishGLA folder. When you do that, the skirmish scripts for a skirmish player wont work. You've turned this map into an AOD map. But what you can do is import the skirmish scripts into your map, then they'll work. You can find them in the game directory in the "Data\Script" folder but the scripts don't import into the right folders. I've already fixed them so you can just download them from me. But you'll have to add the rest of the skirmish players for that. Also, if you do this, it will take about 45 seconds to load up the scripts because their's so much. Also, when you import them, uncheck "Audo Verify" You don't need to have each of the hundreds of scripts verified as you import them. It takes a long time!
I'd reccamend you make a copy of your map before you import the scripts. That way if they bother you loading up the scripts, you can open a up the copy & work on your scripts there.
[b]Download Attachment:[/b] [url=http://www.cncgeneralsworld.com/public/files/Me Myself And Pi/Skirmish Scripts.zip][img]http://www.cncgeneralsworld.com/forums/images/icon_paperclip.gif[/img] Skirmish Scripts.zip[/url]
229.85 KB
Posted by: kanTANKerous - Saturday, September 29, 2007 1:34:22 AM
Thanx MMP, Got it all goin on now![+1] Except for a Civ. plane I put in there following a waypoint path, it's going along the path alright...on the GROUND.
[quote=Fleetatks]
Sometimes If you move scripts inside of plyrciviln to neutral folder they will somehow make the AI work. But Moving scripts that show messages or do anything like that to the player(s) won't work unless inside of it. [/quote]
Thanx Fleetatks, I'm starting to figure this out...if the "end result" for a script effects the GLA it [i]usually[/i] works in the GLA folder and so forth, and one that wont seem to work anywhere often works in Civ. or neutral. Hey this has gone from painful to fun in a very short time.[smirk]
[EDIT: Double Post Splice -- CommieDog]
Posted by: Me Myself and Pi - Saturday, September 29, 2007 9:22:26 AM
Some of the civilian planes are meant to stay on the ground, so they look like their parked at an air port or some thing. To get a plane to fly all you have to do is switch it's locomoter. That's what EA did in the first USA mission with that crop duster that flies around nere your base. The INI code below is from that:
[quote]Object AircraftCropDuster
Locomotor = SET_NORMAL DroneLocomotor
End [/quote]
If you want a different plane to fly, then just replace the "AircraftCropDuster" with the name of the plane in the world builder. For example, "AircraftCessna", so the INI code should look like this:
[quote]Object AircraftCessna
Locomotor = SET_NORMAL DroneLocomotor
End [/quote]
This can also work with any other vehicles. Why don't you try changing the name to "ChinaTankOverlord" & see what happens!
Posted by: fleetatks - Saturday, September 29, 2007 12:46:46 PM
[quote=Me Myself And Pi]
This can also work with any other vehicles. Why don't you try changing the name to "ChinaTankOverlord" & see what happens! [/quote]
lol[grin]
I've done something similar to that and gave troop crawlers amphibious locomoters (since in real life some can go over water as well.)