Author Topic: Globe Editor  (Read 211 times)

Offline bohemond

  • Sergeant
  • **
  • Posts: 25
    • View Profile
Globe Editor
« on: November 21, 2021, 05:11:06 pm »
A tool to edit the Globe rules.

Initial release supports:
  • Polygons
  • Textures
  • Areas
  • MissionZones
  • Loading background image

So far the polygon editing is just barebones, you can create triangles and that's pretty much it.
I have included some simple tools like splitting a triangle and Delaunay optimization to make the process a little less painful, but it's still not great.
I have found that creating the inside with big triangles and then making a triangle strip on the coastline works best. You can then split the inside into smaller triangles and optimize.
Also be aware that editing around the prime meridian is sometimes a little funny.

Controls not documented anywhere in the program:
Arrows, Mouse middle button: Scroll around
Numpad +, Numpad - : Zoom

As far as saving and loading the globe file, I strongly recommend creating a file just for the globe data.
This version also doesn't really deal with Borders, Cities and Countries so you have to patch those into the final file yourself. All in all:


I'm welcoming any suggestions for new features and improvements and also the inevitable bug reports.

The program is in in the ol' windows forms


I'm releasing this under Creative Commons Zero.

Offline Buscher

  • Captain
  • ***
  • Posts: 85
    • View Profile
Re: Globe Editor
« Reply #1 on: November 21, 2021, 07:54:02 pm »
It runs in Wine (wine-6.20 (Staging)) but I keep getting an empty view in the main window. No idea if I am doing something wrong or if it's a Linux issue.
My approach was to load the globe.rul in Openxcom/standard/xcom1.
It does save fine as I got a new file out of it. But maybe you want to save it similar to the vanilla globe.rul. Creating new vertexes and importing background works too. So not sure if it might be an import thing. Loading from a rul file I have created with this tool works fine.
Also it would be nice to save project data (chosen background, etc.)

Code: [Select]
    - [351.25, -41.625, 353.875, -41.625, 352.375, -37]
Globe editor
Code: [Select]
    - - 351.25
      - -41.625
      - 353.875
      - -41.625
      - 352.375
      - -37
« Last Edit: November 21, 2021, 07:58:33 pm by Buscher »

Offline bohemond

  • Sergeant
  • **
  • Posts: 25
    • View Profile
Re: Globe Editor
« Reply #2 on: November 21, 2021, 08:49:27 pm »
The standard globe.rul uses
which is not supported. Only the polygons in yaml work at the moment. I didn't want to get into loading the binary world data, although I could just steal it from OpenXCom source, I guess...

The polylines/borders are not supported either.

I've already thought about storing some metadata to keep the source yaml file more intact upon saving.

Not sure about the project file as there is really not much to save. Just the background for now, but I might do it if there more features are requested.

Offline efrenespartano

  • Commander
  • *****
  • Posts: 678
  • I know a lot about the law and other lawyerings.
    • View Profile
    • Email
Re: Globe Editor
« Reply #3 on: November 22, 2021, 12:03:07 am »

Bohemond be praised!

Thank you so much for this! I've been waiting to see this released. I'm still messing around, but finally i can make my alien world with improved accuracy having a background! Got a few suggestions, hope they are doable:

Im a laptop user, i don't have + nor - tabs, could be possible to have zoom by scrolling with the mouse middle button ? It's also a bit more intuitive.

Also, having the option to change the color of the texture polygons and the number would be great, to have more than the starting 12.

I look forward to see further development of your new tool! Specially the countries, borders and cities.
« Last Edit: November 26, 2021, 07:43:37 pm by efrenespartano »

Offline bohemond

  • Sergeant
  • **
  • Posts: 25
    • View Profile
Re: Globe Editor
« Reply #4 on: November 23, 2021, 05:46:55 pm »
Ah, I did not think of the textures, so it seems Buscher's idea of saving a project will come sooner than I anticipated.

I keep forgetting about the mouse wheel as well as I don't use it at all. I will add that.

Offline Finnik

  • Colonel
  • ****
  • Posts: 254
    • View Profile
Re: Globe Editor
« Reply #5 on: November 27, 2021, 10:25:19 pm »
Sorry, I disappeared for a while due to IRL problems. First, your tool is great and I am going to prefer it among everything we have so far.
If you don't mind, I will post some suggestions here, that could be some improvement to the product:
1/ floating point data for x y w h corrections of background instead of integer for precise adjustment
2/ option to display grid. Your meridian and equator lines are very useful for background adjustment, but grid would allow even more precise control
3/ indexes for textures in toolbox
4/ option to show indexes of texture on map directly for people who define colors poorly.
5/ option to define texture colors. Some textures are identical in color. For me personally, it is hard to recognize all that green colors and stop putting northern forests or swamps in jungles  :-\
6/ I have exception on using areas tool, probably something is bad with my data
7/ Custom textures. For instance, I have 15 textures, but I can see only 14 in texture tool.
8/ Not sure, but it seems I can't see point-like missionZones
9/ Right click option does not work for rectangles
10/ Support of making rectangles?

Could be nice if we would share different maps that can be used as background here =) For mine you need to apply correction: X -180, Y -91, W 360, H 182
« Last Edit: November 27, 2021, 11:22:10 pm by Finnik »