Author Topic: Custom Globe markers  (Read 3392 times)

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11721
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Custom Globe markers
« on: September 04, 2016, 03:26:15 pm »
I'm trying to make new globe markers, according to instructions from Hobbes (thanks!). However, this doesn't seem to work for me - Geoscape crashes immediately.

I'm stuck at the sprite declaration part. I did this:

Code: [Select]
#  - type: GlobeMarkers
#    width: 30
#    height: 3
#    subX: 3
#    subY: 3
#    files:
#      0: Resources/TerrainPack/Geoscape/globe_ufo_expanded.png

And of course there's the corrseponding png, exactly the same as the vanilla one, but 3 pixels wider (I'm trying to just add one marker to test) - that's why it has width: 30 instead of width: 27. If I set it to 27 to eliminate the extra marker, the game works normally.

For now I haven't done anything else, only add the extra sprite. What exactly am I doing wrong?

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3349
    • View Profile
Re: Custom Globe markers
« Reply #1 on: September 04, 2016, 03:31:59 pm »
what version you are using? AFAIK this is from recent Nightly.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11721
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Custom Globe markers
« Reply #2 on: September 04, 2016, 03:43:14 pm »
what version you are using? AFAIK this is from recent Nightly.

OXCE+. :P

Is a recent nightly version? This is something I'd expect to be in the game since the beginning...

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3349
    • View Profile
Re: Custom Globe markers
« Reply #3 on: September 04, 2016, 04:20:50 pm »
OXCE+. :P

Is a recent nightly version? This is something I'd expect to be in the game since the beginning...
I thought about this: https://openxcom.org/forum/index.php/topic,3287.msg69345.html#msg69345
If that not a case then you can discard my comment.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11721
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Custom Globe markers
« Reply #4 on: September 04, 2016, 05:11:13 pm »
I thought about this: https://openxcom.org/forum/index.php/topic,3287.msg69345.html#msg69345
If that not a case then you can discard my comment.

I don't think it is, since the crash happens without adding any code except extraSprites.

Thanks for looking it up though.