OpenXcom Forum

OpenXcom => Suggestions => Topic started by: MKSheppard on August 29, 2013, 07:22:08 am

Title: Additional Geoscape Debug Features
Post 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.
Title: Re: Additional Geoscape Debug Features
Post by: SupSuper on August 29, 2013, 07:47:01 pm
I thought the Geoscape debug mode already did that.
Title: Re: Additional Geoscape Debug Features
Post by: MKSheppard on August 29, 2013, 08:31:42 pm
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.
Title: Re: Additional Geoscape Debug Features
Post by: MKSheppard on August 29, 2013, 09:10:43 pm
EDIT: no; this won't work.
Title: Re: Additional Geoscape Debug Features
Post by: SupSuper on August 30, 2013, 02:28:15 am
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.
Title: Re: Additional Geoscape Debug Features
Post by: MKSheppard on August 30, 2013, 03:30:15 am
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.
Title: Re: Additional Geoscape Debug Features
Post by: SupSuper on September 23, 2013, 04:45:43 am
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.
Title: Re: Additional Geoscape Debug Features
Post by: MKSheppard on September 25, 2013, 01:42:48 am
Thanks so much, SupSuper; it works great now for adding new nations!