Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline RyanTaylorrz  
#1 Posted : Tuesday, November 4, 2014 10:35:44 PM(UTC)
RyanTaylorrz
Private
Joined: 11/4/2014(UTC)
Posts: 7
United Kingdom

Thanks: 3 times
Forgive my naivety, but I just needed a little help understand a few basic things as-well-as ask a few questions about the world builder to see if my ideas are possible.

The idea for the map/co-op mission is a large city with three spawn points, one in the north-east, one in the centre and one in the south-west. The two corner spawn points are for human players and the central spawn is for a GLA computer player.

How do I assign placed units/structures to be owned by the GLA player in the centre? Changing the items' team to "teamSkirmishGLA" doesn't seem to cut it, the item in-game is just owned by nobody/civilian.

I was hoping to construct a pre-built base with defences for the AI player in world builder; but at the same time, let the AI player build a standard skirmish base and attack the outside players like a normal skirmish map. Also, I would like to know if it's possible to get the AI to maintain these structures and rebuild them when they are destroyed?

If this has been posted and resolved before, I do apologise, but please refer me to the helpful post and not just close this one!

Thanks!
Sponsor
Offline klingondragon  
#2 Posted : Wednesday, November 5, 2014 3:15:40 AM(UTC)
klingondragon
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 4/10/2014(UTC)
Posts: 1,591
United Kingdom
Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex

Thanks: 16 times
Was thanked: 247 time(s) in 217 post(s)
If you make a new player and call it gla transfer and give all the units to that player then make a script that says something like this:
If
True
Then
Transfer everything from player'???' To player'???'

Then change the first to gla transfer and the second to player2
Then when you play skirmish make sure you set your gla player to the third player down as its numbered 0(you) 1(second player) 2(third player) ... In the skirmish player list
You can use this method to make prebuilt bases for all players just make sure people start in the right positions
Offline RyanTaylorrz  
#3 Posted : Wednesday, November 5, 2014 11:13:54 AM(UTC)
RyanTaylorrz
Private
Joined: 11/4/2014(UTC)
Posts: 7
United Kingdom

Thanks: 3 times
Originally Posted by: KlingonDragon Go to Quoted Post
If you make a new player and call it gla transfer and give all the units to that player then make a script that says something like this:
If
True
Then
Transfer everything from player'???' To player'???'

Then change the first to gla transfer and the second to player2
Then when you play skirmish make sure you set your gla player to the third player down as its numbered 0(you) 1(second player) 2(third player) ... In the skirmish player list


I did actually try this before but it did not work, here's a few details maybe you can tell me what I'm doing wrong:

- The first start position is for me, the SECOND one is for the GLA and third for a friend.

- In the script, there is no options for "player0" "player1" etc, just a list of skirmish players. I tried just typing it in but it says no such player exists and doesn't work, obviously.

- Since creating the script the skirmish AI doesn't build anything, I hope this coincides with my error and does not happen even when the transfer works, the skirmish AI still needs to act like skirmish AI

Thanks!
Offline acidbrain  
#4 Posted : Wednesday, November 5, 2014 11:55:33 AM(UTC)
acidbrain
General
Joined: 12/30/2011(UTC)
Posts: 982

Thanks: 95 times
Was thanked: 575 time(s) in 364 post(s)
Check This
Panem et kirkinses
thanks 2 users thanked acidbrain for this useful post.
UTD^Force on 11/5/2014(UTC), RyanTaylorrz on 11/5/2014(UTC)
Offline RyanTaylorrz  
#5 Posted : Wednesday, November 5, 2014 12:12:17 PM(UTC)
RyanTaylorrz
Private
Joined: 11/4/2014(UTC)
Posts: 7
United Kingdom

Thanks: 3 times
Originally Posted by: acidbrain Go to Quoted Post
Check This


Thankyou, that post seems very helpful, however, after closely following the instructions under "4. Scripting - Object Transfer upon Game Start" it still does not work, the objects placed on the map are just left unowned...
Offline klingondragon  
#6 Posted : Wednesday, November 5, 2014 1:03:53 PM(UTC)
klingondragon
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 4/10/2014(UTC)
Posts: 1,591
United Kingdom
Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex

Thanks: 16 times
Was thanked: 247 time(s) in 217 post(s)
it works in this map:
File Attachment(s):
Zipped Folder.zip (7kb) downloaded 234 time(s).
thanks 1 user thanked klingondragon for this useful post.
RyanTaylorrz on 11/5/2014(UTC)
Offline acidbrain  
#7 Posted : Wednesday, November 5, 2014 3:18:29 PM(UTC)
acidbrain
General
Joined: 12/30/2011(UTC)
Posts: 982

Thanks: 95 times
Was thanked: 575 time(s) in 364 post(s)
If i remember correctly you can put all the player0-7 related scripts in the Civilian folder
Panem et kirkinses
Offline klingondragon  
#8 Posted : Wednesday, November 5, 2014 3:30:07 PM(UTC)
klingondragon
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 4/10/2014(UTC)
Posts: 1,591
United Kingdom
Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex

Thanks: 16 times
Was thanked: 247 time(s) in 217 post(s)
I put them into the transfer player's folder (who's faction is civilian)
Offline RyanTaylorrz  
#9 Posted : Wednesday, November 5, 2014 4:29:23 PM(UTC)
RyanTaylorrz
Private
Joined: 11/4/2014(UTC)
Posts: 7
United Kingdom

Thanks: 3 times
Thank-you everyone, as it turns out it is absolutely mandatory that the transfer faction is Civilian in order to work. Case resolved!
Offline RyanTaylorrz  
#10 Posted : Wednesday, November 5, 2014 5:39:19 PM(UTC)
RyanTaylorrz
Private
Joined: 11/4/2014(UTC)
Posts: 7
United Kingdom

Thanks: 3 times
HOWEVER! I have a new issue, is it possible to stop the AI from selling the structures at the start of the game? God knows why they put that feature in.
Offline klingondragon  
#11 Posted : Wednesday, November 5, 2014 5:42:04 PM(UTC)
klingondragon
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 4/10/2014(UTC)
Posts: 1,591
United Kingdom
Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex

Thanks: 16 times
Was thanked: 247 time(s) in 217 post(s)
Ive never encountered this

Try importing the skirmish scripts and editing them a little
Offline RyanTaylorrz  
#12 Posted : Wednesday, November 5, 2014 5:54:15 PM(UTC)
RyanTaylorrz
Private
Joined: 11/4/2014(UTC)
Posts: 7
United Kingdom

Thanks: 3 times
Yeah, it also happened when I fought against AI on your Quick Combat map, I allowed them to enter the centre before me. After having owned everything, they sold all the patriot systems but kept the powers stations and tech-structures. Apparently it's not unheard of for Ai to do this with faction structures they didn't construct besides power stations for some reason.

About importing the skirmish scripts, could you be a little more specific? I found a .BCK file called "SkirmishScripts" in the game's files but because it was not a .scb file it could not be imported to the scripts menu in world builder. Could you run me by step by step please?
Offline klingondragon  
#13 Posted : Wednesday, November 5, 2014 5:59:08 PM(UTC)
klingondragon
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 4/10/2014(UTC)
Posts: 1,591
United Kingdom
Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex

Thanks: 16 times
Was thanked: 247 time(s) in 217 post(s)
There's probably a tutorial on the internet somewhere
From my memory its:
Open scripts
Click import
Find skirmishscripts somewhere in a folder in the data folder
Offline RyanTaylorrz  
#14 Posted : Wednesday, November 5, 2014 6:02:45 PM(UTC)
RyanTaylorrz
Private
Joined: 11/4/2014(UTC)
Posts: 7
United Kingdom

Thanks: 3 times
Yeah that's what I did but skimishscripts is not a ".scp" file and can't be imported/doesn't show up in the data folder.
Offline klingondragon  
#15 Posted : Wednesday, November 5, 2014 6:06:05 PM(UTC)
klingondragon
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 4/10/2014(UTC)
Posts: 1,591
United Kingdom
Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex

Thanks: 16 times
Was thanked: 247 time(s) in 217 post(s)
I'll have a look in the morning
thanks 1 user thanked klingondragon for this useful post.
RyanTaylorrz on 11/5/2014(UTC)
Offline Gameanater  
#16 Posted : Wednesday, November 5, 2014 7:12:35 PM(UTC)
Gameanater
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 5/13/2013(UTC)
Posts: 1,537
United States
Location: Right Behind You

Thanks: 574 times
Was thanked: 166 time(s) in 144 post(s)
If it's SKIRMISH map, then you CANNOT use the "Teams" stuff to transfer groups of units to another faction, even if it is already owned PlyrCivilian! You HAVE to give every individual unit you want to transfer a unique name (for example: tank1, building1, ect) and then create a script to transfer all of the named units to whichever player you want (player0, which is actually Player 1, to player7, which is Player 8, etc). If you try creating a Team in WB and assign the units that that team, then try to transfer with that, it won't do anything.


Originally Posted by: RyanTaylorrz Go to Quoted Post
HOWEVER! I have a new issue, is it possible to stop the AI from selling the structures at the start of the game? God knows why they put that feature in.


With buildings, if you're giving them to an AI, you have more work to do... Because if you transfer an already-placed building to another AI player, the crap AI will automatically sell that no matter what because (I think) it's treating it as if it is a captured enemy building. To get a working transfer of a building like that, if it's not a Tech building (which can't be sold to begin with), you'll have to put a Waypoint where you want the building to be, then spawn a named or unnamed building of whatever it is you want the AI to get.

I know, it's kinda weird but that's how the system works.

I learned this from I^Love^Mixery.

Edited by user Wednesday, November 5, 2014 7:14:07 PM(UTC)  | Reason: Not specified

Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
Offline klingondragon  
#17 Posted : Thursday, November 6, 2014 2:35:28 AM(UTC)
klingondragon
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 4/10/2014(UTC)
Posts: 1,591
United Kingdom
Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex

Thanks: 16 times
Was thanked: 247 time(s) in 217 post(s)
Originally Posted by: Gameanater Go to Quoted Post
If it's SKIRMISH map, then you CANNOT use the "Teams" stuff to transfer groups of units to another faction, even if it is already owned PlyrCivilian! You HAVE to give every individual unit you want to transfer a unique name (for example: tank1, building1, ect) and then create a script to transfer all of the named units to whichever player you want (player0, which is actually Player 1, to player7, which is Player 8, etc). If you try creating a Team in WB and assign the units that that team, then try to transfer with that, it won't do anything.


Originally Posted by: RyanTaylorrz Go to Quoted Post
HOWEVER! I have a new issue, is it possible to stop the AI from selling the structures at the start of the game? God knows why they put that feature in.


With buildings, if you're giving them to an AI, you have more work to do... Because if you transfer an already-placed building to another AI player, the crap AI will automatically sell that no matter what because (I think) it's treating it as if it is a captured enemy building. To get a working transfer of a building like that, if it's not a Tech building (which can't be sold to begin with), you'll have to put a Waypoint where you want the building to be, then spawn a named or unnamed building of whatever it is you want the AI to get.

I know, it's kinda weird but that's how the system works.

I learned this from I^Love^Mixery.


wrong

you dont have to transfer every unit individually
you cant use teams but you can use players

and the skirmish scripts are here see what you can do with them:
C:\Program Files (x86)\EA Games\Command & Conquer Generals Zero Hour\Data\Scripts
Offline Gameanater  
#18 Posted : Thursday, November 6, 2014 9:13:34 AM(UTC)
Gameanater
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 5/13/2013(UTC)
Posts: 1,537
United States
Location: Right Behind You

Thanks: 574 times
Was thanked: 166 time(s) in 144 post(s)
Originally Posted by: klingondragon Go to Quoted Post


wrong

you dont have to transfer every unit individually
you cant use teams but you can use players

and the skirmish scripts are here see what you can do with them:
C:\Program Files (x86)\EA Games\Command & Conquer Generals Zero Hour\Data\Scripts


You can transfer every unit in one script, but they all have to have unique names.
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
Offline klingondragon  
#19 Posted : Thursday, November 6, 2014 9:24:29 AM(UTC)
klingondragon
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 4/10/2014(UTC)
Posts: 1,591
United Kingdom
Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex

Thanks: 16 times
Was thanked: 247 time(s) in 217 post(s)
Originally Posted by: Gameanater Go to Quoted Post
Originally Posted by: klingondragon Go to Quoted Post


You can transfer every unit in one script, but they all have to have unique names.


no they dont if you look at my maps that transfer none of the transfered units have names
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.