How to restrict # of players in map?

Emper0r

Chieftain
Joined
Jan 9, 2006
Messages
35
Hey guys I'm a complete noob to World Builder, I have a few questions and if you could help me out I'd greatly appreciate it!

1. How do I restrict the # of players on a map? For example, if I designed a map to have four players, how could I prevent the game from adding more than 4?

2. How do I add Barbarian units that would attack all players?

3. How can I make it so you can choose what civ you are when you're playing the scenario?

4. How can I make it so you can specify what kind of victories can be achieved when playing the scenario?

Thanks a lot guys!
 
Someone plz help I need help badly!
 
I can help, but the only way I know to accomplish this involves opening the WB map in XML. Can you do that?
 
Isnt XML the language? So do you mean open it in wordpad and then edit the XML? If that's the case yes I know how, if not could you point me in the right direction? :) thanks man
 
Huh... XML can be opened in wordpad? How bout that! I dl'd a program especially to do it!

Anyway, before I lay out how I did it, let me ask one more question: Are you creating custom civs? That complicates the process a bit more.
 
Gordon Farrell said:
Huh... XML can be opened in wordpad? How bout that! I dl'd a program especially to do it!

Anyway, before I lay out how I did it, let me ask one more question: Are you creating custom civs? That complicates the process a bit more.

Can you link me to the program you dled?

Here's exactly what I'm trying to do for my scenario:

- Allow the user to choose what civ they want to be before starting the game
- Allow the user to choose the types of victory before starting the game
- Most importantly... I've designed the map as a 4 player map, there's 4 areas specifically designed for the bases and I've placed units there. I only want 4 players allowed on the map... for some reason as of now anytime I play on the scenario there's always 6-7 players instead of 4!

Thanks for your help!
 
Maybe I can help a little... (btw I use notepad to edit my XML lol)

Auto Limiting Civs is kinda hard because the game will Auto Fill in empty spaces for the map depending on the size listed in the WBS file... I can't remember them all but i do know the values. LARGE maps are 9 player maps (sorry i don't know them all off the top of my head, I am not at home by my guides). If you change this rating it will restrict the number of players to the civs that you specify at the top of the WBS file (as there are no free slots to fill up)

So setting it to dual with 4 civs specified (Dual looks for 3 civs) should make it spawn all 4 and no random (as not spaces open) while choosing Large (9 civs) would spawn 5 random to fill the gap. I think...

Fore more info there is a WBS walkthrough writen by DALE in the tutorial forum.

I will be more helpful when I get homei n about 2-3hrs if you still need help :P

EDIT: the reason i say it SHOULD work is because I use this on maps i make to get the game to automatically spawn more AIs then the game normally would (like 18 civs on a small map). The map i am currently playing on is a tiny island map that spawns 9 civs because I changed the single line WORLDSIZE_ to Large instead of tiny :P
 
Hey I figured it out, I opened the file with notepad and I set all but the player and 3 CPU civs to 0 and none for the properties. Thanks again for your help, and since you seem to be such a helpful person, perhaps you could help me with these questions:

1. How would I add a custom civ to my map? Is it really just a matter of putting the civ files in the correct folder then including it in the XML?

2. Is there a way to specify what tribal villages give?

3. I still havn't figured out how to allow the user to choose any civ they want when the map is constricted to four players, any ideas?

Thanks a lot!
 
here try this... setting them to NONE won't have much effect as thats what I use to get random civs... here is my map...

Code:
BeginGame
	Era=ERA_ANCIENT
	Speed=GAMESPEED_NORMAL
	Calendar=CALENDAR_DEFAULT
	Option=GAMEOPTION_NO_CITY_FLIPPING
	Option=GAMEOPTION_NO_BARBARIANS
	Option=GAMEOPTION_AGGRESSIVE_AI
	Victory=VICTORY_CONQUEST
	GameTurn=0
	TargetScore=0
	StartYear=-4000
	Description=
	ModPath=
EndGame
BeginTeam
	ContactWithTeam=0
EndTeam
BeginTeam
	ContactWithTeam=1
EndTeam
BeginTeam
	ContactWithTeam=2
EndTeam
BeginTeam
	ContactWithTeam=3
EndTeam
BeginTeam
	ContactWithTeam=4
EndTeam
BeginTeam
	ContactWithTeam=5
EndTeam
BeginTeam
	ContactWithTeam=6
EndTeam
BeginTeam
	ContactWithTeam=7
EndTeam
BeginTeam
	ContactWithTeam=8
EndTeam
BeginTeam
	ContactWithTeam=9
EndTeam
BeginTeam
	ContactWithTeam=10
EndTeam
BeginTeam
	ContactWithTeam=11
EndTeam
BeginTeam
	ContactWithTeam=12
EndTeam
BeginTeam
	ContactWithTeam=13
EndTeam
BeginTeam
	ContactWithTeam=14
EndTeam
BeginTeam
	ContactWithTeam=15
EndTeam
BeginTeam
	ContactWithTeam=16
EndTeam
BeginTeam
	ContactWithTeam=17
EndTeam
BeginPlayer
	Team=0
	LeaderType=NONE
	CivType=NONE
	Color=NONE
	ArtStyle=NONE
	Handicap=HANDICAP_NOBLE
	StartingX=41, StartingY=24
EndPlayer
BeginPlayer
	Team=1
	LeaderType=NONE
	CivType=NONE
	Color=NONE
	ArtStyle=NONE
	Handicap=HANDICAP_NOBLE
EndPlayer
BeginPlayer
	Team=2
	LeaderType=NONE
	CivType=NONE
	Color=NONE
	ArtStyle=NONE
	Handicap=HANDICAP_NOBLE
EndPlayer
BeginPlayer
	Team=3
	LeaderType=NONE
	CivType=NONE
	Color=NONE
	ArtStyle=NONE
	Handicap=HANDICAP_NOBLE
EndPlayer
BeginPlayer
	Team=4
	LeaderType=NONE
	CivType=NONE
	Color=NONE
	ArtStyle=NONE
	Handicap=HANDICAP_NOBLE
EndPlayer
BeginPlayer
	Team=5
	LeaderType=NONE
	CivType=NONE
	Color=NONE
	ArtStyle=NONE
	Handicap=HANDICAP_NOBLE
EndPlayer
BeginPlayer
	Team=6
	LeaderType=NONE
	CivType=NONE
	Color=NONE
	ArtStyle=NONE
	Handicap=HANDICAP_NOBLE
EndPlayer
BeginPlayer
	Team=7
	LeaderType=NONE
	CivType=NONE
	Color=NONE
	ArtStyle=NONE
	Handicap=HANDICAP_NOBLE
EndPlayer
BeginPlayer
	Team=8
	LeaderType=NONE
	CivType=NONE
	Color=NONE
	ArtStyle=NONE
	Handicap=HANDICAP_NOBLE
EndPlayer
BeginPlayer
	Team=9
	LeaderType=NONE
	CivType=NONE
	Color=NONE
	ArtStyle=NONE
	Handicap=HANDICAP_NOBLE
EndPlayer
BeginPlayer
	Team=10
	LeaderType=NONE
	CivType=NONE
	Color=NONE
	ArtStyle=NONE
	Handicap=HANDICAP_NOBLE
EndPlayer
BeginPlayer
	Team=11
	LeaderType=NONE
	CivType=NONE
	Color=NONE
	ArtStyle=NONE
	Handicap=HANDICAP_NOBLE
EndPlayer
BeginPlayer
	Team=12
	LeaderType=NONE
	CivType=NONE
	Color=NONE
	ArtStyle=NONE
	Handicap=HANDICAP_NOBLE
EndPlayer
BeginPlayer
	Team=13
	LeaderType=NONE
	CivType=NONE
	Color=NONE
	ArtStyle=NONE
	Handicap=HANDICAP_NOBLE
EndPlayer
BeginPlayer
	Team=14
	LeaderType=NONE
	CivType=NONE
	Color=NONE
	ArtStyle=NONE
	Handicap=HANDICAP_NOBLE
EndPlayer
BeginPlayer
	Team=15
	LeaderType=NONE
	CivType=NONE
	Color=NONE
	ArtStyle=NONE
	Handicap=HANDICAP_NOBLE
EndPlayer
BeginPlayer
	Team=16
	LeaderType=NONE
	CivType=NONE
	Color=NONE
	ArtStyle=NONE
	Handicap=HANDICAP_NOBLE
EndPlayer
BeginPlayer
	Team=17
	LeaderType=NONE
	CivType=NONE
	Color=NONE
	ArtStyle=NONE
	Handicap=HANDICAP_NOBLE
EndPlayer
BeginMap
	grid width=84
	grid height=52
	top latitude=90
	bottom latitude=-90
	wrap X=1
	wrap Y=0
	world size=WORLDSIZE_LARGE
	climate=CLIMATE_TROPICAL
	sealevel=SEALEVEL_MEDIUM
	num plots written=4368
	num signs written=0
EndMap

This ia a 9 player map. there are 9 start locations specified (in the plots themselves so its random), the player gets to choose his Civ/Leader and the 8 AIs are generated Randomly... it generates 8 because the WORLDSIZE_LARGE is in there dispite this being a small or standerd map originally.
 
Here's another way to get what you want, Emperor...

1. Create a map in Custom Maps with only four players, all others have their AI set on "Closed." (Choose the other conditions you want at this time, too.)

2. Start the map. Go into WB. Save the map in WB.

3. Exit the game and find the map you just saved in WorldBuilder saves.

4. Open the saved map in XML. About ten or fifteen lines down from the top you'll see a line for describing a Mod path. Fill this in so it reads Mod=Mods/Name of Your Map. Now save it.

5. Now take the map and drop it into the Civ4/Public Maps folder.

6. Restart the game. Go to "Play a Scenario." Your new map should be listed among those available. Select it. Start it.

7. If you've done everything right so far, the game will tell you it has to reboot to load the mod. Do so.

8. You'll see the start up menu for the Custom Map you created, giving the player the option of choosing any of the four civilizations you included when you made it.

9.Choose one. Start the map. Go into WB. Now you can edit to your heart's content.

10. CRITICAL POINT: From this time on, whenever you load this map up, it has to be loaded up as a mod. If you load it as a regular scenario, the computer will add add'l players. That means after you do your work in the WB and save it, you have to reopen the map file in XML, add a Mod directory, save it, and move it to Public Maps.

Hope this helps! I'll check back to see if you get stuck anywhere.
 
Hey thanks a lot for the help guys!

I have one final question then I'll leave ya alone ;)

I currently only know how to make CPU players, if I wanted to make a multi-player map, what would I have to change in the XML/worldbuilder to make the other civs playable for other players? Thanks!
 
Back
Top Bottom