OpenXcom Forum

Modding => Help => Topic started by: Nord on October 10, 2021, 08:42:20 pm

Title: GlobeMarkers, explain your smolness.
Post by: Nord on October 10, 2021, 08:42:20 pm
Encountered strange effect when trying to implement GlobeMarkers, all markers become 1 dot. See screenshot.
Code fragment:
Code: [Select]
extraSprites:
  - type: GlobeMarkers
    width: 210
    height: 7
    subX: 7
    subY: 7
    files:
      0: Resources/UI/UFO_Icons.png
Code: [Select]
ufos:
  - type: STR_SMALL_BOAT
    size: STR_SMALL
    marker: 10
    markerLand: 15
    markerCrash: 20

Am i unheeding again or what? Help me please...
Title: Re: GlobeMarkers, explain your smolness.
Post by: robin on October 12, 2021, 11:29:07 pm
I still haven't added custom markers, but I think 40K mod is using them, maybe you should check it.
Perhaps 7*7 is too large?
Title: Re: GlobeMarkers, explain your smolness.
Post by: The Reaver of Darkness on October 13, 2021, 03:18:11 am
My mod Harmony (https://openxcom.org/forum/index.php/topic,9665.0.html) is using them, and they are 7x7. I don't remember the details, but you can check there for a reference.

edit: perhaps this is the difference:
Code: [Select]
  - delete: GlobeMarkers #<--
  - type: GlobeMarkers
    width: 105
    height: 21
    subX: 7
    subY: 7
    files:
      0: Resources/ReaversArmada/reavers_geo_icons.png
Title: Re: GlobeMarkers, explain your smolness.
Post by: Nord on October 13, 2021, 08:57:10 am
My mod Harmony (https://openxcom.org/forum/index.php/topic,9665.0.html) is using them, and they are 7x7. I don't remember the details, but you can check there for a reference.

edit: perhaps this is the difference:
Code: [Select]
  - delete: GlobeMarkers #<--
  - type: GlobeMarkers
    width: 105
    height: 21
    subX: 7
    subY: 7
    files:
      0: Resources/ReaversArmada/reavers_geo_icons.png
Yes! This is really a key thing, to delete previous GlobeMarkers.
Now it is working, thank you.