View Full Version : [Q] XY Coordinates on Map


Ambreville
Aug 09, 2007, 03:31 PM
Is there a way to get X/Y coordinates to show on the map in worldbuilder by any chance?? Thanks!

JeBuS27
Aug 09, 2007, 03:34 PM
I would also like to know if there's a way to find the coordinates of a plot in the WB. I usually end up getting out of WB to find the coordinate then going back in, which is a pain in the neck after a while.

Zebra 9
Aug 09, 2007, 04:21 PM
I'll see if it's possible. It should be.

JeBuS27
Aug 09, 2007, 04:28 PM
Well, I've not done any UI modding, but I imagine it shouldn't be impossible to display a line of text somewhere that tells where the cursor is pointed.

NNCSavage
Aug 09, 2007, 05:07 PM
I believe if you have WorldBuilder enabled - holding shift and mousing over the plot in question will show the x,y coords.

JeBuS27
Aug 09, 2007, 05:12 PM
That only works when I'm not in WorldBuilder.

Ambreville
Aug 09, 2007, 05:58 PM
It doesn't seem to work in either modes for me... :(

NNCSavage
Aug 09, 2007, 06:50 PM
I guess I should say that by WorldBuilder I meant if I turn the cheats on (CheatCode = chipotle) the shift function works for me.
With cheats enabled and I hit Ctrl-W it doesnt show there.
Ctrl-Q to toggle back out and it's back to working.
I went and tested and if I change the .ini back to "CheatCode = 0" i get nothing when pressing shift.

JeBuS27
Aug 09, 2007, 07:45 PM
WB and console are not the same. ;)

Ambreville
Aug 10, 2007, 04:37 PM
I guess I should say that by WorldBuilder I meant if I turn the cheats on (CheatCode = chipotle) the shift function works for me.
With cheats enabled and I hit Ctrl-W it doesnt show there.
Ctrl-Q to toggle back out and it's back to working.
I went and tested and if I change the .ini back to "CheatCode = 0" i get nothing when pressing shift.

Maybe I'm speaking in a foreign language here, but I tried your approach and saw no coordinates anywhere...

wotan321
Nov 21, 2007, 08:10 PM
Did anyone figure out how this works? I can go back and forth in and out of worldbuilder, and the ONLY time I see plot info down in the lower left is when I am OUTSIDE worldbuilder, when the world is still covered in darkness.... pretty darned useless then! Any way to reveal the whole map? Or get the plot info while in worldbuilder where the world is revealed?

Any help is appreciated.

CharlieM
Dec 30, 2007, 09:36 AM
Did anyone figure out how this works? I can go back and forth in and out of worldbuilder, and the ONLY time I see plot info down in the lower left is when I am OUTSIDE worldbuilder, when the world is still covered in darkness.... pretty darned useless then! Any way to reveal the whole map? Or get the plot info while in worldbuilder where the world is revealed?

Any help is appreciated.

I would LOVE to know the answer to this. Any way to reveal X/Y coordinates in the World Builder?

Dale
Jan 04, 2008, 05:00 AM
Well, the SIMPLEST way is to edit ..\Assets\Python\Screens\CvWorldBuilderScreen.py

Find the function mouseOverPlot and add the following code:


def mouseOverPlot (self, argsList):

##### Dale - WB X-Y Plot Show START
message = "Plot: %s %s" %(CyInterface().getMouseOverPlot().getX(), CyInterface().getMouseOverPlot().getY())
CyInterface().addImmediateMessage(message,"")
##### Dale - WB X-Y Plot Show END


This put the plot x, y in the message area (you may have to move a window to view it correctly).