		*** TODO list for xemp & tcemp	***

This list has no ordening, some are urgent, others ain't. I've added 
some comment to some topics. Whenever you've fixed / implemented something,
notify the others, so no work will be done twice.

Remark:	I want to keep (make) xemp working for both KSU and non-KSU games,
	not by a compiler directive, but by the global "ksu_version"
	variable.

[1]  Blank sectors

	Under some condition, XEMP suddenly decides to display a huge number
	of unknown sectors (should be blank) as wilderness. Note that the data
	as supplied by both bmap (empire) and make_map (xemp multi-realm
	command) does not contain the spurious wilderness - only the
	screen display does.

	[I do not know where to look for this bug. I can not reproduce it.
	 Anyone knows the origin of this bug? Normally we edit our datafiles
	 to get rid of them]

[2] '-r' option

	-r is broken again. Clearly some things displayed aren't affected by the
	-r switch, so are appearing still as black-on-white.

	[I do not intend to fix this. I will probably delete this option, 
	 anyone against it?]

[3] deity

	Using xemp from deity: Initialization says "sonar # ?des#.", which is
	incorrect.

	[What should be the correct command? Are players notified that the
	 deity sonared (or do they think it was the player who did so)?
	 Otherwise we should leave this one out.]

[4] parser
	Highlight happy_state == loyal gives backwards result. 

	[Michiel, who was working on the parser has finished his study and is
	 working right now. Too bad, because he was working on a new grammar
	 including variables & functions. He has promised to continue as soon
	 as possible.]

[5] X error routine

	Error of (see below) causing coredump. Probably a problem with X not
	xemp.
	X Error of failed request: BadAlloc (insuff. resources for operation)

	[I will fix this one next week. Karl send me a patch, but I think
	 there is a nicer way to do it.]

[6] weather stations

	"lookout" chokes when someone has designated a "!". Either fix by
	teaching xemp that "!" is a retirement home, or make it recover
	gracefully from the parse error.

	[We should probably update commands/design.c, and change weather
	 station into its new name (retirement home?). Could someone try
	 this out?]

[7] Country info
	Doing a "country information" on a country which has dissolved, causes
	xemp to take a segment violation.

	["country information" should be rewritten. Output should be in a
	 pager, clicking on an ally, should give that country info, etc.]

[8] Lookout & Coastwatch

	Boats which move out of range are not deleted from the xemp display.
	Radar should notice that a sector that had been marked with a boat no
	longer has it and not show the boat any more.

	[I am still thinking about this bug]

[10] Long range

	When flying a very long range plane (spy plane 2), where the flight path
	extends past the end of the line (more than 80 characters?), the last
	several characters are lost. Not sure if problem is xemp or emp_player,
	may require xemp to break up flight path into multiple clumps.

	[This is a emp_player error, but should be fixed of course.]

[11] Change owner

	change_owner (right button on enemy-owned sector) doesn't quite work
	if the current owner is "Own Unkn" (it stores the data but still
	displays the sector as unknown.)

	[I didn't wrote this code and have never used it. But the bug
	 shouldn't be too hard to find.]

[12] Sea sectors

	When a bridge has disappeared (bombed, bridge-head redesignated), xemp
	still shows the information (%eff, civs, ect) from the last spy report.


[13] Launch

	Launching two missiles from a GM at once (wing launch) causes a segment
	violation.

[14] Again

	Command "a" (repeat) after a paradrop with multiple planes, doesn't
	work. It gets the wrong seperator between the plane numbers.

	[I never trust "a" (again) when attacking. Too bad xemp is soo sloow
	 when attacking, should remove some spurious redumps, or enable an
	 attack mode, where xemp doesn't redump sectors.]

[15] Planes

	When a plane flies a mission from an airfield other than the one
	selected with the mouse (for example, two adjacent airfields, and
	you click "drop" on one of the airfields, but the planes you select
	are actually from the other airfield), the wrong airfield gets charged
	for the cost.

[16] Census
	Perhaps some lines to guide the eye in the commodities display.I keep
	clicking on the wrong field when setting thresholds.

[17] .xemprc
	Xemp no longer defaults to ship census mode. Implement a way to do this
	in .xemprc.

[18] Select realm

	Implement some way to gracefully dump out the entire map. Using the
	mouse is painful when dealing with large regions.

	Also selecting realms in tcemp should be made to recognize 0-9.

[19] Tcemp pagers

	Perhaps someone could add jumping through the pager (eg, 
	pressing the 'm' jumps to move (could be implemented in the xemp
	version also, should use WarpCursor here).

[20] Documentation

	The subjects says  all there is to say.

[21] Read map utility

	> Een vreeeeeselijk handige utility zou het inlezen van andermans map
	> zijn.

	Translation: A veerrrrreeeeyyyyy useful utility would be reading in
		     someone elses map.

[22] Xemp editor

	Someone send me a patch sometime ago which I lost. It allowed you
	to use "xedit" instead of the xemp editor. Maybe someone could
	re-write this, and add some stuff to add the signature (tcemp already
	does this) and Subject, Date lines. The mail utility should scan
	for a Subject line and display this as message.

[23] Ferry utility

	The ferry list census mode should be rewritten
	(some dirty hacking I did some time ago).

[24] Programs

	All code is currently being written by "huisjes@cs.vu.nl", so
	any suggestions about this should go to him also. I do not know
	if the current code allows programs to be run already, but he is
	thinking about implementing functions & variables into the
	programming language.

[25] Tcemp info commands

	Some commands should be rewritten or deleted from the Tcemp version,
	as most terminals only have 80 columns. (example: show plane B&C).

[26] WaitForPrompt

	There should be a new command, WaitForCommandPrompt, which does
	the same as WaitForPrompt, but any questions that will come up
	before the real command prompt, should be asked in the message
	window.

[27] RedoFire

	Using the again after fire, sometimes results in shooting at your
	own sector. I do not know if that's a mistake from the user, or
	if it is xemp's fault, but there should be some kind of protection.

[28] Trade

	Perhaps someone could implement the trade command.

[29] BestFlyPath

	Should avoid enemies sectors if possible?

[30] Analyse [utility]

	Run on a realm (default the world) and calculate usage & production:

	Item        	Usage	Production

	Food		15623	400000
	Lcm		500 	300
	etc

[31] Mail
	SaveTillPrompt should show "You have .. new telegrams. waiting" in
	the message window.
