OpenXcom Forum
OpenXcom => Suggestions => Topic started by: MKSheppard on August 29, 2013, 07:22:08 am
-
Was wondering if it would be possible to toggle drawing the country polygon areas on the geoglobe; along with another debug that shows the current coordinates of the mouse cursor on the geoglobe.
This would make adding new countries to any "extended" XCOM a lot easier and require less trial and error.
-
I thought the Geoscape debug mode already did that.
-
I thought the Geoscape debug mode already did that.
There's a debug mode?
edit:
You enable it by opening options.cfg and making this string be:
debug: true
then on geoscape you hit CTRL-D several times to cycle through modes.
There are three modes.
NONE: Doesn't display debug areas.
REGIONS: Shows regions -- the areas used for scoring performance, e.g. "North Atlantic".
COUNTRIES: Shows the countries -- their areas used for scoring performance.
(see attachments)
EDIT II -- doesn't appear to be any way that returns the LON and LAT of where the cursor is hovering over.
-
EDIT: no; this won't work.
-
I'll look into adding a coordinate debug, but you'd be better off using a real map viewer to get geographic coordinates out of, since they should match the coordinates OpenXcom uses.
-
Real world coordinates from Google Earth don't quite line up with the coordinates for XCOM's globe; I tried that.
Currently, there's no substitute for a lot of trial and error to find the LATLONG coords for the nation boxes.
-
Oh right, that's because X-COM uses a east-only longitude, so for example a value of 90ºW would become 360-90=270ºE. Latitude might also be reversed (north is negative and south is positive). This is what happens when you optimize coordinates for speed. :P
In any case now when you click on the globe in debug mode it'll show you the coordinates.
-
Thanks so much, SupSuper; it works great now for adding new nations!