aliens

Author Topic: GlobeMarkers, explain your smolness.  (Read 2183 times)

Offline Nord

  • Commander
  • *****
  • Posts: 1746
  • The Gate is open.
    • View Profile
GlobeMarkers, explain your smolness.
« 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...

Offline robin

  • Commander
  • *****
  • Posts: 1224
  • ULTIMATE ROOKIE
    • View Profile
Re: GlobeMarkers, explain your smolness.
« Reply #1 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?

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1512
    • View Profile
Re: GlobeMarkers, explain your smolness.
« Reply #2 on: October 13, 2021, 03:18:11 am »
My mod Harmony 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
« Last Edit: October 13, 2021, 03:21:31 am by The Reaver of Darkness »

Offline Nord

  • Commander
  • *****
  • Posts: 1746
  • The Gate is open.
    • View Profile
Re: GlobeMarkers, explain your smolness.
« Reply #3 on: October 13, 2021, 08:57:10 am »
My mod Harmony 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.