OpenXcom Forum
Modding => Help => Topic started 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:
extraSprites:
- type: GlobeMarkers
width: 210
height: 7
subX: 7
subY: 7
files:
0: Resources/UI/UFO_Icons.png
ufos:
- type: STR_SMALL_BOAT
size: STR_SMALL
marker: 10
markerLand: 15
markerCrash: 20
Am i unheeding again or what? Help me please...
-
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?
-
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:
- delete: GlobeMarkers #<--
- type: GlobeMarkers
width: 105
height: 21
subX: 7
subY: 7
files:
0: Resources/ReaversArmada/reavers_geo_icons.png
-
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:
- 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.