			World Creation
--------------------------------------------------------
The the old days of empire setting up a world was a real pain.
Today alot of time and effort has been made to simplify the process.

In /h/misc.h you will find 3 very important variables.

MAXNOC = max number of countries
WORLD_X
WORLD_Y

first of all determine how many people you want to allow in your game.

A) Concider the load on your machine if you have all your players on at once.
   Running a 50 player game over a slip connection is not very smart,
   unless its a very good slip line.  Even then delays or short pauses in
   command output will be noticable and can be very annoying for players.
   You need to concider the worst possible cases.
   What if 50 players all decide to do something at once.
   10 power new, 10 attacks, 10 cen *, ect...
   Even tho machines are very fast these days only ONE person has the 
   CPU at a time.  Unless your on some funny parallel machine.
   When one person is running 49 other tasks are idel.

B) Does you machine have enough connection to it to support alot of players.
   This might seem funny but outside connections use up communication
   resources.  If local people are unable to login to the machine because
   of a bunch of empire players you can bet your local sys admin will
   be unhappy.

   Picking this number is important because the game will create that
number of telegram and mailbox files in the data directory.  So 
determine how many people you will allow... add 5 to that.
the extra 5 slots you can use as extra Deity logins, visitor countries, ect.

   Now choose a world size.  This is always hard to pick.  Its nice to stay
with number that are in a power of 2.  64x64, 64x32, 128x64, 96x32 but
any combination can be used as long as its an even number.  The world size
should be reasonable for your players.  If you have 10 players a 128x128 
world would be very big for them, unless your theme is "very big oceans".
This is something that you will need to play around with. 

    Now lets make a quick world:
1.  Make /data directory (if you haven't done it already)
2.  Move into /bin directory (this should be full of files now)
 a) "files"         to create the needed game files or cleanup an old game.
 b) "fairland"      just typing it in with no arguements will display
		    a list of options for fairland.
 c) "fairland 10 20"
		    This will generate a world with 10 start islands,
	            each island will have 20 sectors on it.
		    Fairland will place about 5 smaller islands at random.
   Thats it, honest.

---------------------------------------------
Descriptions of some common Utility programs.
---------------------------------------------

files.c -  This program is used to initialize all the game files in the
/data directory.  It creates empty telegram boxes, wire boxes, sector,
ship, plane, nation, ect... all the game related files.
This can also be used to wipe out an old game.
In the process of doing this is will name the deity country to POGO
and give it the password of  peter... or Peter.. I don't remember 
which it is now.  If you want you can customize this file.
In /util/files.c simply search for the code that writes in these
values and change them to your playing name and password of your choice.

fairland.c - Fairland was written by Ken Stevens.  Its a nice program
the creates equal sized islands and distributes the resources fairly
on each island.  Just type in fairland and it will give you the
list of arguements it needs or look at the .c file in /util directory.
Fairland will create start island, small islands, place resources, and
generate a script file for placing countries on the map.
Its really a nice tool and you can make a world in about a minute.

If you want tho there are a few other land generation and ore generation
programs.  (land, land_new, land_old)
They will all generate land sectors but thats it.  If you use one of these
programs you will also need to run a
(ore, new_ore, newore, ect..) to place resources.
All these programs work differently, try them out a use the one
you like the best.

Another nice utility is the 'perfect' program.
It will set all the resources in the world to 100's or a perfect world.
Some blitz games run like this.

There are a few others you can look at.  Try them out and see what they do.
Just don't do it on a active game.  Some do some interesting things.

-------------------------------

 Ok, lets assume that you have run 'files' and 'fairland'
start your game up... move into the /bin directory
"emp_tm"
"emp_login"
or 
"emp_server"  for the new server.

if your running multiple games off of one machine it is helpful
to give them a name.
"emp_tm NightOwl"
"emp_login NightOwl"
or
"emp_server NightOwl"

then do a  'ps -x'
and hopefully you will see empire running.
If it did not startup take a look at the "trouble_shooting" file real quick.

Once the program is running login as the deity.
Set your host/port for your client first. :)
emp_client POGO peter   (or whatever you set in the files.c program)

If your 'auth' file has been set correctly you should get a

         -=O=-
 
[0:512] >

on your screen...if your 'auth' was not setup correctly you will be notified.
Fix it and try again.
If you get other types of error messages... 'socket connect failed'
or something else then either you  emp_tm or emp_login process failed.
See the troubleshooting file
Assuming you get in tho you can now setup countries.

If you used fairland simply type in
"exec newcap_script"
and watch the correct number of countries be added to the game and then
given a capital.  Your done with this part of the project.
Your world has been created, land generated, resources allocated,
all countries have been added.  Move on to Phase 4, Running a game.

If you didn't use fairland I'm sure you wish you did at this point. :)
Its not that bad, you just need to do a little more work.

The two commands used to setup a new country are
add and newcap

add <number> <name> <password> <status> <options>
  number = the actual country number slot
  name   = country name
  password = password
  status = visitor, new, active, god, delete
           visitor = add in a visitor country
           new     = add a new country to the game
           active  = ?? never used it myself
           god     = setup a Deity country, other then #0
           delete  = erase a country from the game, note this is forever!
  options = check, wipe, ignore
            check  = report on any items that exist by that country.
            wipe   = useful when removing a country, the game will wipe
                     all sectors, ships, units, planes by the country
                     from the game.
            ignore = ignore any existing units the exist by that country.
Example
add 1 Rad_Zone cool n i      ( new player)
add 2 Mirkwook death n i	 "
add 3 The_Scum coder n i	 "
add 4 visitor visitor v i    ( to add a visitor country)
add 5 Backup watchdog v i    ( checking country, see saveass shell script)
add 6 Waffen numberone g i   ( to add another Deity country )
add 2 2 2 d w                ( to remove country #2 and wipe all his objects)

newcap <country> [x,y]
  newcap can do two things.  If you give it a sector like  0,0 
it will attempt to setup 0,0 and 2,0 as start sectors for a country.
If you don't supply the x,y the game will pick a random spot for you
and ask you if you want to place a capital in that location.

newcap 1 22,8
newcap 2 -8,12 
ect..

Note.. adding a capital give the country TWO starting sectors.
x,y and x+2,y
so newcap 1 22,8 makes sectors
22,8 and 30,8 into sanctuaries for country #1.

  ----000000
  4321012345
-2. - - - - .
-1 . . - X .  
 0. . . - - .

putting a capital at 3,-1 would be bad cause 5,-1 is a sea sector.
I'm not sure if the game will let you do it, it might so if you want to
keep the number of sectors fair at the start don't put capitals in bad places.

------------------------------------------------
World creation is simple enough.
You might make a few worlds look at them and decide the world is to
big or too small.  If to change the WORLD_X AND WORLD_Y numbers,
recompile the WHOLE game, run files, run fairland... and try again.
Be picky... its your game and you gotta live with it.

------------------------------------------------

Other notes on world design:
Many times you will make a world.. maybe print out a bigmap of the world
and want to make small changes to it.
This is not uncommon.
A few things to remember if you plan on doing this.

As the Deity you can designate ANY sector in the game into anything 
you want, except a bridge.  When you start turning wilderness into sea
and sea into wilderness take a look at the resources below it.
Example... sea sectors will only have oil and fertility in them.
They "should" never have dust, mineral, or uranium. 
So when you start flipping sectors look at the resources and add or
subtract from them as you see fit.

Be very very very careful with global changes.

des 2:0,0 -
 can you see how bad this would be if you only wanted sectors
 0,0 and 2,0 to be wilderness 
 A minor typo can do some major damage at the Deity level.

-----------------------------

That should be enough on getting things setup.
Now move to Phase 4, running the game.

